I'm trying to compile Qcad 184.108.40.206-1 on Ubuntu 9.04 with Qt4.5 which is installed via Synaptic. I used build_qcad.sh script located in scripts directory. At the stage of "--- building qcad ---"I got this error report:
Code: Select all
rm: cannot remove `qcad': No such file or directory
Project MESSAGE: Property Editor
Project MESSAGE: NO Property Editor
Project MESSAGE: Platform: Unix / Linux / OS X
Project MESSAGE: Product: QCad
g++ -static-libgcc -L. -Wl,-O1 -o qcad .obj/qc_applicationwindow.o .obj/qc_application.o .obj/main.o .obj/moc_qc_applicationwindow.o .obj/moc_qc_application.o .obj/qrc_qcad.o -L/usr/lib -L/plugins/codecs -lqjpcodecs -lqcncodecs -lqkrcodecs -lqtwcodecs -L/plugins/imageformats -lqjpeg -lqgif -lQtAssistantClient -L../qcadguiqt/lib -lqcadguiqt -L../qcadactions/lib -lqcadactions -L../qcadprop/lib -lqcadprop -L../qcadlib/lib -lqcad -L../dxflib/lib -llibdxf -L../fparser/lib -lfparser -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lqjpcodecs
collect2: ld returned 1 exit status
make: *** [qcad] Error 1
I tried to compile qcad manually. First I made a "make clean". Then qmake, and then make. I got the same result. I looked for qjpcodec library which is located at the path:
I manually edited Makefile which is not generally recommended and added the path to the LIB variable with -L prefix.
Then I get the same link error for qjpeg and qgif libraries. I also found them in the path:
For them also, I edited the Makefile and added the path to the LIB variable. I compiled via "make" again; this time I got a sequence of "undefined reference" error which exceeded the terminal buffer. I tried to redirect the stdout to a file so that I could post the error message here, it did not work for make command.
Any suggestion will be highly appreciated.
Thanks in advance.