QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#947 - Debug builds failing (Linux/FreeBSD)

Attached to Project: QCAD
Opened by Tamas TEVESZ (kazmer) - Sunday, 20 October 2013, 12:14 GMT+2
Last edited by Andrew (andrew) - Monday, 16 December 2013, 13:43 GMT+2
Task Type Bug Report
Category Main
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

6a5c66 on both FreeBSD and Linux (particular example on FreeBSD). The following diff is present, but it should be a no-op in this regard:

--- a/shared.pri
+++ b/shared.pri
@@ -11,6 +11,7 @@ DEFINES += QCAD_DLL
 # output directory:
 CONFIG(debug, debug|release) {
     ROUTDIR = debug
+    QMAKE_CXXFLAGS_DEBUG += -ggdb3
 } else {
     ROUTDIR = release
 }
qmake-qt4 qcad.pro CONFIG=debug

Goes on a while, then bombs off at

g++ -c -pipe -g -ggdb3 -Wall -W -fPIC -DQCAD_DLL -DPTHREADS -DHAVE_PTHREAD_H
    -I/usr/local/share/qt4/mkspecs/freebsd-g++
    -I.
    -I/usr/local/include/qt4/QtHelp
    -I/usr/local/include/qt4/QtDesigner
    -I/usr/local/include/qt4/QtUiTools
    -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.
    -I/usr/local/include/qt4
    -I/usr/local/include
    -o debug/qtscript_Global.o
    ../../generated_cpp/com_trolltech_qt_core/qtscript_Global.cpp

../../generated_cpp/com_trolltech_qt_core/qtscript_Global.cpp:6:25: error: qmetaobject.h: No such file or directory
../../generated_cpp/com_trolltech_qt_core/qtscript_Global.cpp:8:20: error: QVariant: No such file or directory
../../generated_cpp/com_trolltech_qt_core/qtscript_Global.cpp:10:21: error: qglobal.h: No such file or directory

The corresponding good release compile line is:

g++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -fPIC -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/local/share/qt4/mkspecs/freebsd-g++
    -I.
    -I/usr/local/include/qt4/QtHelp
    -I/usr/local/include/qt4/QtDesigner
    -I/usr/local/include/qt4/QtUiTools
    -I/usr/local/include/qt4/QtCore
    -I/usr/local/include/qt4/QtNetwork
    -I/usr/local/include/qt4/QtGui
    -I/usr/local/include/qt4/QtOpenGL
    -I/usr/local/include/qt4/QtXml
    -I/usr/local/include/qt4/QtXmlPatterns
    -I/usr/local/include/qt4/QtSql
    -I/usr/local/include/qt4/QtSvg
    -I/usr/local/include/qt4/QtScriptTools
    -I/usr/local/include/qt4/QtScript
    -I/usr/local/include/qt4/QtWebKit
    -I/usr/local/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.
    -I/usr/local/include
    -Irelease
    -I/usr/local/include/qt4
    -I/usr/local/include
    -o release/qtscript_Global.o
    ../../generated_cpp/com_trolltech_qt_core/qtscript_Global.cpp

The diff between them is suspiciously big (unique items only):

includes-wise:

--- incbad      2013-10-20 11:45:37.302711863 +0200
+++ incgood     2013-10-20 11:45:31.899711566 +0200
@@ -16,7 +16,19 @@
 -I../../../../stemmer
 -I/usr/local/include
 -I/usr/local/include/qt4
+-I/usr/local/include/qt4/QtCore
 -I/usr/local/include/qt4/QtDesigner
+-I/usr/local/include/qt4/QtGui
 -I/usr/local/include/qt4/QtHelp
+-I/usr/local/include/qt4/QtNetwork
+-I/usr/local/include/qt4/QtOpenGL
+-I/usr/local/include/qt4/QtScript
+-I/usr/local/include/qt4/QtScriptTools
+-I/usr/local/include/qt4/QtSql
+-I/usr/local/include/qt4/QtSvg
 -I/usr/local/include/qt4/QtUiTools
+-I/usr/local/include/qt4/QtWebKit
+-I/usr/local/include/qt4/QtXml
+-I/usr/local/include/qt4/QtXmlPatterns
 -I/usr/local/share/qt4/mkspecs/freebsd-g++
+-Irelease

Defines-wise:

--- defbad      2013-10-20 11:51:22.405716122 +0200
+++ defgood     2013-10-20 11:52:05.362693170 +0200
@@ -1,3 +1,17 @@
 -DHAVE_PTHREAD_H
 -DPTHREADS
 -DQCAD_DLL
+-DQT_CORE_LIB
+-DQT_GUI_LIB
+-DQT_NETWORK_LIB
+-DQT_NO_DEBUG
+-DQT_OPENGL_LIB
+-DQT_SCRIPTTOOLS_LIB
+-DQT_SCRIPT_LIB
+-DQT_SHARED
+-DQT_SQL_LIB
+-DQT_SVG_LIB
+-DQT_WEBKIT_LIB
+-DQT_XMLPATTERNS_LIB
+-DQT_XML_LIB
+-D_THREAD_SAFE

qmetaobject.h is on Qt/ and QtCore/, both of which is missing from the debug include path.

On Linux, it’s complaining about QtScript/QScriptExtensionPlugin (which is in /usr/include/qt4), diffs between includes:

--- incbad      2013-10-20 12:04:32.612710645 +0200
+++ incgood     2013-10-20 12:04:58.129714235 +0200
@@ -14,7 +14,21 @@
 -I../../../../snap
 -I../../../../spatialindex
 -I../../../../stemmer
+-I/usr/X11R6/include
+-I/usr/include/qt4
+-I/usr/include/qt4/QtCore
 -I/usr/include/qt4/QtDesigner
+-I/usr/include/qt4/QtGui
 -I/usr/include/qt4/QtHelp
+-I/usr/include/qt4/QtNetwork
+-I/usr/include/qt4/QtOpenGL
+-I/usr/include/qt4/QtScript
+-I/usr/include/qt4/QtScriptTools
+-I/usr/include/qt4/QtSql
+-I/usr/include/qt4/QtSvg
 -I/usr/include/qt4/QtUiTools
+-I/usr/include/qt4/QtWebKit
+-I/usr/include/qt4/QtXml
+-I/usr/include/qt4/QtXmlPatterns
 -I/usr/share/qt4/mkspecs/linux-g++-64
+-Irelease

Defines:

--- defbad      2013-10-20 12:07:16.961712166 +0200
+++ defgood     2013-10-20 12:07:38.831670098 +0200
@@ -1,4 +1,18 @@
 -DHAVE_PTHREAD_H
 -DPTHREADS
 -DQCAD_DLL
+-DQT_CORE_LIB
+-DQT_GUI_LIB
+-DQT_NETWORK_LIB
+-DQT_NO_DEBUG
+-DQT_OPENGL_LIB
+-DQT_SCRIPTTOOLS_LIB
+-DQT_SCRIPT_LIB
+-DQT_SHARED
+-DQT_SQL_LIB
+-DQT_SVG_LIB
 -DQT_WEBKIT
+-DQT_WEBKIT_LIB
+-DQT_XMLPATTERNS_LIB
+-DQT_XML_LIB
+-D_REENTRANT
This task depends upon

Closed by  Andrew (andrew)
Monday, 16 December 2013, 13:43 GMT+2
Reason for closing:  Won't fix

Loading...