I have made a quick "port" of qt_dro to emc2.

The Submakefile for qt_dro was not very different from what Paul suggested:
# ----------------------------------------------------------------------
emc/qt_dro/moc_qtdro.cc: emc/qt_dro/qtdro.hh
        moc -o $@ $<

../bin/qtdro: emc/qt_dro/qtdro.cc emc/qt_dro/moc_qtdro.cc \
                ../lib/libemc.a ../lib/libnml.so
        $(CXX) $(CXXFLAGS) -I/usr/include/qt3 -o $@ $^ -lqt-mt

userspace: ../bin/qtdro
# ----------------------------------------------------------------------
an addition to the top-level Makefile to recognize the new directory, as well
as a small change to the inifile handling was necessary.  A "proper" port would
do a few more things like not hardcode -I/usr/include/qt3, but instead check
for the presence of qt at configure time.

A full patch against emc2's CVS HEAD is here, along with a screenshot to show
that it works:
        http://axis.unpy.net/01167918097
        http://axis.unpy.net/files/01167918097/emc2-qtdro.patch

To make the screenshot, I changed to the configs/sim directory and ran "emc
axis.ini &" and then "qt_dro -ini axis.ini" after the AXIS window had appeared.

Jeff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to