PDA

View Full Version : Linker error



alfblt16
27th September 2006, 16:30
Hi All,
I'm developing a little project to view the svg files with Qt4 (Qt4.1.4) under Kubuntu 6.06.1 .

Up to yesterday I had no problems, but today I reformatted the Hard Disk and I reinstalled the same version of Kubuntu, and now when I try to compile every project that use QtSvg module, the linker give me the following message:

/usr/bin/ld: cannot find -lQtSvg_debug
collect2: ld returned 1 exit status
make: *** [svgtest] Error 1

(Compiling svgviewer.pro in the Qt example files return the same error...).

I downloaded the file qt-x11-opensource-src-4.1.4.tar.gz from the Trolltech web site, and I recompiled and I reinstalled the entire Qt4, but nothing changed...

What's the problem?
How can I get lQtSvg_debug?

Thanks

wysota
27th September 2006, 16:41
Compile Qt in debug mode (for example pass -debug into configure, see configure -help for details) or compile your project in release mode (CONFIG+=release in project file).

alfblt16
28th September 2006, 10:20
Compiling the project in release mode I have the problem fixed, but recompiling the Qt with -debug option the problem persist... I don't know why...
Finally I downloaded the libqt4-debug-dev packect from anther repository by Synaptic and now the probem is solved.

Thanks a lot!