Page 1 of 1

QCAD Community Edition 3.1.0.3 not building

Posted: Sat May 25, 2013 1:48 am
by prokoudine
Hi, hopefully this is the right section of the forum :)

OpenNurbs fails to build in Community Edition (tagged as v3.1.0.3) on Ubuntu 13.04, 32bit:

make[5]: Entering directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src/3rdparty/opennurbs/opennurbs'
g++ -c -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DQCAD_DLL -DPTHREADS -DHAVE_PTHREAD_H -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I../../../core -I../../../core/math -I../../../grid -I../../../snap -I../../../gui -I../../../entity -I../../../operations -I../../../scripting -I../../../stemmer -I../../../scripting/ecmaapi -I../../../scripting/ecmaapi/generated -I../../../scripting/ecmaapi/adapters -I../../../io/dxf -I../../../spatialindex -I../../../3rdparty -I/usr/X11R6/include -Irelease -o release/opennurbs_brep_tools.o ../opennurbs_brep_tools.cpp
In file included from ../opennurbs.h:42:0,
from ../opennurbs_brep_tools.cpp:16:
../opennurbs_base64.h:130:22: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from ../opennurbs.h:93:0,
from ../opennurbs_brep_tools.cpp:16:
../opennurbs_light.h:115:34: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
../opennurbs_light.h:116:40: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
../opennurbs_light.h:117:33: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
../opennurbs_light.h:118:35: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
../opennurbs_light.h:119:40: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
../opennurbs_brep_tools.cpp: In function 'bool CheckForMatchingVertexIndices(int, int, int*)':
../opennurbs_brep_tools.cpp:399:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
../opennurbs_brep_tools.cpp: At global scope:
../opennurbs_brep_tools.cpp:1981:11: warning: unused parameter 'start_point' [-Wunused-parameter]
../opennurbs_brep_tools.cpp:1986:11: warning: unused parameter 'end_point' [-Wunused-parameter]
../opennurbs_brep_tools.cpp:2031:11: warning: unused parameter 'end_point' [-Wunused-parameter]
../opennurbs_brep_tools.cpp: In member function 'bool ON_Brep::CloseTrimGap(ON_BrepTrim&, ON_BrepTrim&)':
../opennurbs_brep_tools.cpp:2084:7: warning: variable 'coord1_lock' set but not used [-Wunused-but-set-variable]
../opennurbs_brep_tools.cpp: At global scope:
../opennurbs_brep_tools.cpp:2337:6: warning: unused parameter 'min_degree' [-Wunused-parameter]
In file included from ../opennurbs_array.h:1548:0,
from ../opennurbs.h:47,
from ../opennurbs_brep_tools.cpp:16:
../opennurbs_array_defs.h: In instantiation of 'bool ON_SimpleArray<T>::HeapSort(int (*)(const T*, const T*)) [with T = int [2]]':
../opennurbs_brep_tools.cpp:2769:21: required from here
../opennurbs_array_defs.h:463:7: error: 'ON_hsort' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from ../opennurbs.h:67:0,
from ../opennurbs_brep_tools.cpp:16:
../opennurbs_math.h:1403:6: note: 'void ON_hsort(void*, size_t, size_t, int (*)(void*, const void*, const void*), void*)' declared here, later in the translation unit
make[5]: *** [release/opennurbs_brep_tools.o] Error 1
make[5]: Leaving directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src/3rdparty/opennurbs/opennurbs'
make[4]: *** [release] Error 2
make[4]: Leaving directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src/3rdparty/opennurbs/opennurbs'
make[3]: *** [sub-opennurbs-make_default-ordered] Error 2
make[3]: Leaving directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src/3rdparty/opennurbs'
make[2]: *** [sub-opennurbs-make_default-ordered] Error 2
make[2]: Leaving directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src/3rdparty'
make[1]: *** [sub-3rdparty-make_default-ordered] Error 2
make[1]: Leaving directory `/home/alexandre/soft/graphics/qcad/qcad-3.1.0.3/src'
make: *** [sub-src-make_default-ordered] Error 2

Re: QCAD Community Edition 3.1.0.3 not building

Posted: Sat May 25, 2013 2:12 pm
by andrew
Thanks for the report.

Ubuntu 13.04 comes with gcc version 4.7.3 which seems to handle includes slightly differently and requires additional header files to be included.

I've fixed this and various other issues in connection with gcc 4.7.3 in the latest master branch in git:

https://github.com/qcad/qcad/archive/master.zip

Re: QCAD Community Edition 3.1.0.3 not building

Posted: Sat May 25, 2013 2:40 pm
by andrew
I've also updated the compilation instructions on the web site at:
http://qcad.org/en/component/content/ar ... om-sources

Under Linux, the dependencies and the configure options for Qt are crucial to successfully compile QCAD 3.

Re: QCAD Community Edition 3.1.0.3 not building

Posted: Thu Jun 13, 2013 1:06 pm
by Avneet
I have cloned the qcad from github.
http://qcad.org/en/component/content/ar ... om-sources

After configure qt, went to "cd ~/qcad" and ran "qmake -r".

It is giving error.
Reading /home/avneet/qcad/src/src.pro
Reading /home/avneet/qcad/src/3rdparty/3rdparty.pro
Project ERROR: Script bindings not available for Qt version 5.0.1. You can add them to src/scripting/qt-labs-qtscriptgenerator-5.0.1 or use another version of Qt.


So, please provide solution soon.

Re: QCAD Community Edition 3.1.0.3 not building

Posted: Thu Jun 13, 2013 1:18 pm
by andrew
Qt 5 is not supported at this point. Please try Qt 4.8.4 instead.