Problem compiling community edition on Debian Etch GNU/Linux

Use this forum to ask questions about how to do things in the QCAD Community Edition.

Moderator: andrew

Problem compiling community edition on Debian Etch GNU/Linux

Postby gbp » Fri Aug 29, 2008 3:58 am

Hi All,

I am trying to compile qcad-2.0.5.0-1-community.src on Debian Etch

gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Kernel 2.6.26.3

# export QTDIR=/usr/include/qt4/Qt/
# ls /usr/include/qt4/Qt/
q3accel.h qgraphicssceneevent.h
q3action.h qgraphicsscene.h
q3asciicache.h qgraphicssvgitem.h
q3asciidict.h qgraphicsview.h
q3boxlayout.h qgridlayout.h
..etc

The file I am getting a complaint about "qassistantclient.h" is in /usr/include/qt4/QtAssistant/qassistantclient.h

I'm not sure what I should be exporting QTDIR as, I have tried:

/usr/include/qt4/
/usr/include/qt4/Qt
/usr/include/qt4/QTAssistant

They all give the same error when I run sh ./build_qcad.sh;

[code]

[..]

rm -f ../lib/libqcadguiqt.a
mv -f libqcadguiqt.a ../lib/
make[2]: Leaving directory `/opt/qcad-2.0.5.0-1-community.src/qcadguiqt/src'
make[1]: Leaving directory `/opt/qcad-2.0.5.0-1-community.src/qcadguiqt'
-------- Building QCad --------
cd src && make
make[1]: Entering directory `/opt/qcad-2.0.5.0-1-community.src/qcad/src'
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQC_APPKEY="\"/QCad\"" -DQC_APPDIR="\"qcad\"" -DQC_APPNAME="\"QCad\"" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -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
qc_applicationwindow.h:435: error: ISO C++ forbids declaration of ‘QAssistantClient’ with no type
qc_applicationwindow.h:435: error: expected ‘;’ before ‘*’ token
qc_applicationwindow.cpp: In constructor ‘QC_ApplicationWindow::QC_ApplicationWindow()’:
qc_applicationwindow.cpp:119: error: ‘assistant’ was not declared in this scope
qc_applicationwindow.cpp: In destructor ‘virtual QC_ApplicationWindow::~QC_ApplicationWindow()’:
qc_applicationwindow.cpp:209: error: ‘assistant’ was not declared in this scope
qc_applicationwindow.cpp:210: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
qc_applicationwindow.cpp: At global scope:
qc_applicationwindow.cpp:250: warning: unused parameter ‘name’
qc_applicationwindow.cpp: In member function ‘void QC_ApplicationWindow::slotHelpManual()’:
qc_applicationwindow.cpp:2941: error: ‘assistant’ was not declared in this scopeqc_applicationwindow.cpp:2946: error: expected type-specifier before ‘QAssistantClient’
qc_applicationwindow.cpp:2946: error: expected `;' before ‘QAssistantClient’
qc_applicationwindow.cpp:2958: error: ‘assistant’ was not declared in this scopemake[1]: *** [obj/qc_applicationwindow.o] Error 1
make[1]: Leaving directory `/opt/qcad-2.0.5.0-1-community.src/qcad/src'
make: *** [qcad] Error 2
-------- Building Translations --------
sh: ./release_translations.sh: No such file or directory
Building qcad binary failed

[/code]


Does anyone have any suggestions?

Thanks in advance
Geoff
gbp
Registered Member
 
Posts: 2
Joined: Fri Aug 29, 2008 3:45 am

Postby gbp » Fri Aug 29, 2008 4:11 am

Ok excuse my ignorance on the last question, Debian splits QT into several packages and I had to install "qt3-apps-dev", that caused the errors above relating to "qassistantclient.h" to go away.

However now I have a new conundrum which occurs later in the build process, I could use some help please:


[code]
/usr/share/qt3/bin/moc qc_mdiwindow.h -o moc/moc_qc_mdiwindow.cpp
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQC_APPKEY="\"/QCad\"" -DQC_APPDIR="\"qcad\"" -DQC_APPNAME="\"QCad\"" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -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
test -d ../ || mkdir -p ../
g++ -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../../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 -lqcadguiqt -lqcadactions -lqcadcmd -lqcad -ldxf -lfparser -lqt-mt -lXext -lX11 -lm -lpthread
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeSolid(DL_WriterA&, RS_Solid*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xb6c): undefined reference to `DL_Dxf::writeLine(DL_WriterA&, DL_LineData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeLine(DL_WriterA&, RS_Line*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xce1): undefined reference to `DL_Dxf::writeLine(DL_WriterA&, DL_LineData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeLeader(DL_WriterA&, RS_Leader*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xe19): undefined reference to `DL_Dxf::writeLeader(DL_WriterA&, DL_LeaderData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xed2): undefined reference to `DL_Dxf::writeLeaderVertex(DL_WriterA&, DL_LeaderVertexData const&)'
rs_filterdxf.cpp:(.text+0xf4e): undefined reference to `DL_Dxf::writeLeaderVertex(DL_WriterA&, DL_LeaderVertexData const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeEllipse(DL_WriterA&, RS_Ellipse*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x10fb): undefined reference to `DL_Dxf::writeEllipse(DL_WriterA&, DL_EllipseData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0x122d): undefined reference to `DL_Dxf::writeEllipse(DL_WriterA&, DL_EllipseData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeArc(DL_WriterA&, RS_Arc*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x139f): undefined reference to `DL_Dxf::writeArc(DL_WriterA&, DL_ArcData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeCircle(DL_WriterA&, RS_Circle*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x1489): undefined reference to `DL_Dxf::writeCircle(DL_WriterA&, DL_CircleData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writePolyline(DL_WriterA&, RS_Polyline*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x1544): undefined reference to `DL_Dxf::writePolyline(DL_WriterA&, DL_PolylineData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0x164b): undefined reference to `DL_Dxf::writeVertex(DL_WriterA&, DL_VertexData const&)'
rs_filterdxf.cpp:(.text+0x1740): undefined reference to `DL_Dxf::writeVertex(DL_WriterA&, DL_VertexData const&)'
rs_filterdxf.cpp:(.text+0x1796): undefined reference to `DL_Dxf::writePolylineEnd(DL_WriterA&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writePoint(DL_WriterA&, RS_Point*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x1870): undefined reference to `DL_Dxf::writePoint(DL_WriterA&, DL_PointData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeImage(DL_WriterA&, RS_Image*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x23de): undefined reference to `DL_Dxf::writeImage(DL_WriterA&, DL_ImageData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeAppid(DL_WriterA&, char const*)':
rs_filterdxf.cpp:(.text+0x264a): undefined reference to `DL_Dxf::writeAppid(DL_WriterA&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeImageDef(DL_WriterA&, RS_Image*)':
rs_filterdxf.cpp:(.text+0x4755): undefined reference to `DL_Dxf::writeImageDef(DL_WriterA&, int, DL_ImageData const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeInsert(DL_WriterA&, RS_Insert*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0x4bef): undefined reference to `DL_Dxf::writeInsert(DL_WriterA&, DL_InsertData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeLineType(DL_WriterA&, RS2::LineType)':
rs_filterdxf.cpp:(.text+0x4ed3): undefined reference to `DL_Dxf::writeLineType(DL_WriterA&, DL_LineTypeData const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeVariables(DL_WriterA&)':
rs_filterdxf.cpp:(.text+0x52a8): undefined reference to `DL_Dxf::checkVariable(char const*, DL_Codes::version)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::fileImport(RS_Graphic&, QString const&, RS2::FormatType)':
rs_filterdxf.cpp:(.text+0x5ce6): undefined reference to `DL_Dxf::in(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DL_CreationInterface*)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeText(DL_WriterA&, RS_Text*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xbc59): undefined reference to `DL_Dxf::writeText(DL_WriterA&, DL_TextData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xbf66): undefined reference to `DL_Dxf::writeMText(DL_WriterA&, DL_MTextData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeHatch(DL_WriterA&, RS_Hatch*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xcc97): undefined reference to `DL_Dxf::writeHatch1(DL_WriterA&, DL_HatchData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xcd1a): undefined reference to `DL_Dxf::writeHatchLoop1(DL_WriterA&, DL_HatchLoopData const&)'
rs_filterdxf.cpp:(.text+0xcdfe): undefined reference to `DL_Dxf::writeHatchEdge(DL_WriterA&, DL_HatchEdgeData const&)'
rs_filterdxf.cpp:(.text+0xcf26): undefined reference to `DL_Dxf::writeHatchEdge(DL_WriterA&, DL_HatchEdgeData const&)'
rs_filterdxf.cpp:(.text+0xd026): undefined reference to `DL_Dxf::writeHatchEdge(DL_WriterA&, DL_HatchEdgeData const&)'
rs_filterdxf.cpp:(.text+0xd11b): undefined reference to `DL_Dxf::writeHatchEdge(DL_WriterA&, DL_HatchEdgeData const&)'
rs_filterdxf.cpp:(.text+0xd158): undefined reference to `DL_Dxf::writeHatchLoop2(DL_WriterA&, DL_HatchLoopData const&)'
rs_filterdxf.cpp:(.text+0xd183): undefined reference to `DL_Dxf::writeHatch2(DL_WriterA&, DL_HatchData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeDimension(DL_WriterA&, RS_Dimension*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xd98e): undefined reference to `DL_Dxf::writeDimAngular(DL_WriterA&, DL_DimensionData const&, DL_DimAngularData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xdaf1): undefined reference to `DL_Dxf::writeDimAligned(DL_WriterA&, DL_DimensionData const&, DL_DimAlignedData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xdc25): undefined reference to `DL_Dxf::writeDimDiametric(DL_WriterA&, DL_DimensionData const&, DL_DimDiametricData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xdd85): undefined reference to `DL_Dxf::writeDimLinear(DL_WriterA&, DL_DimensionData const&, DL_DimLinearData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xde45): undefined reference to `DL_Dxf::writeDimRadial(DL_WriterA&, DL_DimensionData const&, DL_DimRadialData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeSpline(DL_WriterA&, RS_Spline*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xe40a): undefined reference to `DL_Dxf::writeSpline(DL_WriterA&, DL_SplineData const&, DL_Attributes const&)'
rs_filterdxf.cpp:(.text+0xe485): undefined reference to `DL_Dxf::writeKnot(DL_WriterA&, DL_KnotData const&)'
rs_filterdxf.cpp:(.text+0xe52f): undefined reference to `DL_Dxf::writeControlPoint(DL_WriterA&, DL_ControlPointData const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeBlock(DL_WriterA&, RS_Block*)':
rs_filterdxf.cpp:(.text+0xf0df): undefined reference to `DL_Dxf::writeBlock(DL_WriterA&, DL_BlockData const&)'
rs_filterdxf.cpp:(.text+0xf1f6): undefined reference to `DL_Dxf::writeEndBlock(DL_WriterA&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeEntityContainer(DL_WriterA&, RS_EntityContainer*, DL_Attributes const&)':
rs_filterdxf.cpp:(.text+0xf5f1): undefined reference to `DL_Dxf::writeBlockRecord(DL_WriterA&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::writeLayer(DL_WriterA&, RS_Layer*)':
rs_filterdxf.cpp:(.text+0xfb85): undefined reference to `DL_Dxf::writeLayer(DL_WriterA&, DL_LayerData const&, DL_Attributes const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::fileExport(RS_Graphic&, QString const&, RS2::FormatType)':
rs_filterdxf.cpp:(.text+0x10331): undefined reference to `DL_Dxf::out(char const*, DL_Codes::version)'
rs_filterdxf.cpp:(.text+0x1037b): undefined reference to `DL_Dxf::writeHeader(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x10411): undefined reference to `DL_Dxf::writeVPort(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x10680): undefined reference to `DL_Dxf::writeStyle(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x106ae): undefined reference to `DL_Dxf::writeView(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x106dc): undefined reference to `DL_Dxf::writeUcs(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x10952): undefined reference to `DL_Dxf::writeDimStyle(DL_WriterA&, double, double, double, double, double)'
rs_filterdxf.cpp:(.text+0x10c1c): undefined reference to `DL_WriterA::close() const'
rs_filterdxf.cpp:(.text+0x10d02): undefined reference to `DL_Dxf::writeObjects(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x10faa): undefined reference to `DL_Dxf::writeObjectsEnd(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x1100a): undefined reference to `DL_Dxf::writeBlockRecord(DL_WriterA&)'
rs_filterdxf.cpp:(.text+0x110d1): undefined reference to `DL_Dxf::writeBlockRecord(DL_WriterA&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::~RS_FilterDXF()':
rs_filterdxf.cpp:(.text+0x118e8): undefined reference to `DL_Dxf::~DL_Dxf()'
rs_filterdxf.cpp:(.text+0x11a36): undefined reference to `DL_Dxf::~DL_Dxf()'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::~RS_FilterDXF()':
rs_filterdxf.cpp:(.text+0x11cc8): undefined reference to `DL_Dxf::~DL_Dxf()'
rs_filterdxf.cpp:(.text+0x11e0b): undefined reference to `DL_Dxf::~DL_Dxf()'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::~RS_FilterDXF()':
rs_filterdxf.cpp:(.text+0x120a8): undefined reference to `DL_Dxf::~DL_Dxf()'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o):rs_filterdxf.cpp:(.text+0x121eb): more undefined references to `DL_Dxf::~DL_Dxf()' follow
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::RS_FilterDXF()':
rs_filterdxf.cpp:(.text+0x12589): undefined reference to `DL_Dxf::DL_Dxf()'
rs_filterdxf.cpp:(.text+0x12a31): undefined reference to `DL_Dxf::~DL_Dxf()'
../../qcadlib/lib/libqcad.a(rs_filterdxf.o): In function `RS_FilterDXF::RS_FilterDXF()':
rs_filterdxf.cpp:(.text+0x12d89): undefined reference to `DL_Dxf::DL_Dxf()'
rs_filterdxf.cpp:(.text+0x13231): undefined reference to `DL_Dxf::~DL_Dxf()'
collect2: ld returned 1 exit status
make[1]: *** [../qcad] Error 1
make[1]: Leaving directory `/opt/qcad-2.0.5.0-1-community.src/qcad/src'
make: *** [qcad] Error 2
-------- Building Translations --------
sh: ./release_translations.sh: No such file or directory
Building qcad binary failed
[/code]
gbp
Registered Member
 
Posts: 2
Joined: Fri Aug 29, 2008 3:45 am


Return to QCAD Community 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron