qcad scripting does not appear to be enabled.

Asked by tomdean

I am attempting to use qcad 2.0.5.0 installed with apt-get. Scripting does not appear to be enabled.

getting the sources and using the build script, "scripting" build fails.

export QTDIR=/usr/share/qt3/
export QMAKESPEC=/usr/share/qt3/mkspecs/linux-g++-32/

in mkspecs/defs.pro, comment out adding -pedantic to ???FLAGS to eliminate the "long long" not supported error - g++ (Ubuntu 4.3.2-1ubuntu12) 4.3.2

./build_qcad.sh scripting
...
cd src && make
make[1]: Entering directory `/home/tomdean/Documents/Qcad/qcad-2.0.5.0-1/qcad/src'
g++ -c -m32 -pipe -Wall -W -O2 -DQC_APPKEY="\"/QCad\"" -DQC_APPDIR="\"qcad\"" -DQC_APPNAME="\"QCad\"" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/share/qt3/mkspecs/linux-g++-32 -I. -I../../fparser/include -I../../dxflib/include -I../../qcadlib/include -I../../qcadcmd/include -I../../qcadactions/include -I../../qcadguiqt/include -I/usr/include/qt3 -Imoc/ -o obj/qc_applicationwindow.o qc_applicationwindow.cpp
In file included from qc_applicationwindow.cpp:27:
qc_applicationwindow.h:32:30: error: qassistantclient.h: No such file or directory
In file included from ../../qcadlib/include/rs_img.h:31,
                 from ../../qcadlib/include/rs_painter.h:32,
                 from ../../qcadlib/include/rs_painterqt.h:35,
                 from ../../qcadguiqt/include/qg_graphicview.h:41,
                 from qc_graphicview.h:36,
                 from qc_applicationwindow.h:50,
                 from qc_applicationwindow.cpp:27:

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu qcad Edit question
Assignee:
No assignee Edit question
Solved by:
tomdean
Solved:
Last query:
Last reply:
Revision history for this message
tomdean (tomdean) said :
#1

apt-get autoremove removed qt3-apps-dev. Restoring that, returned me to the original problem. libqcadscripting is not built.

./build_qcad.sh scripting notrans
...
/usr/include/qt3/qimage.h:61: warning: suggest parentheses around && within ||
/usr/share/qt3/bin/moc qc_mdiwindow.h -o moc/moc_qc_mdiwindow.cpp
g++ -c -m32 -pipe -Wall -W -O2 -DQC_APPKEY="\"/QCad\"" -DQC_APPDIR="\"qcad\"" -DQC_APPNAME="\"QCad\"" -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/share/qt3/mkspecs/linux-g++-32 -I. -I../../fparser/include -I../../dxflib/include -I../../qcadlib/include -I../../qcadcmd/include -I../../qcadactions/include -I../../qcadguiqt/include -I/usr/include/qt3 -Imoc/ -o obj/moc_qc_mdiwindow.o moc/moc_qc_mdiwindow.cpp
In file included from ../../qcadlib/include/rs_img.h:31,
                 from ../../qcadlib/include/rs_painter.h:32,
                 from ../../qcadlib/include/rs_painterqt.h:35,
                 from ../../qcadguiqt/include/qg_graphicview.h:41,
                 from moc/../qc_graphicview.h:36,
                 from moc/../qc_mdiwindow.h:39,
                 from moc/moc_qc_mdiwindow.cpp:11:
/usr/include/qt3/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/include/qt3/qimage.h:61: warning: suggest parentheses around && within ||
test -d ../ || mkdir -p ../
g++ -m32 -Wl,-rpath,/usr/share/qt3/lib -o ../qcad obj/qc_applicationwindow.o obj/qc_dialogfactory.o obj/qc_graphicview.o obj/qc_mdiwindow.o obj/main.o obj/qmake_image_collection.o obj/moc_qc_applicationwindow.o obj/moc_qc_graphicview.o obj/moc_qc_mdiwindow.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqassistantclient -L../../qcadscripting/lib -L../../qcadguiqt/lib -L../../qcadactions/lib -L../../qcadcmd/lib -L../../qcadlib/lib -L../../dxflib/lib -L../../fparser/lib -L/usr/share/qt3/lib -lfontconfig -ljpeg -lpng -lz -lSM -lICE -ldl -lpthread -lqcadscripting -lqcadguiqt -lqcadactions -lqcadcmd -lqcad -ldxf -lfparser -lqsa -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: cannot find -lqcadscripting
collect2: ld returned 1 exit status
make[1]: *** [../qcad] Error 1
make[1]: Leaving directory `/home/tomdean/Documents/Qcad/qcad-2.0.5.0-1/qcad/src'
make: *** [qcad] Error 2
Building qcad binary failed

Revision history for this message
tomdean (tomdean) said :
#2

I found the answer. The Ribbonsoft forum says scripting is not available.

http://www.ribbonsoft.com/forum/viewtopic.php?t=54

Thanks