Menu

Cannot Compile

2006-10-12
2013-04-04
  • felix_the_mac

    felix_the_mac - 2006-10-12

    Error message:
    /usr/bin/ld: cannot find -lQtGui_debug

    I have installed qt4-dev-tools, qt4-designer.
    Only qt4 is installed on my machine, running Ubuntu 6.10 beta.

    Any suggestions would be appreciated. :-)

     
    • drblast

      drblast - 2006-10-12

      It looks like you have the development headers installed properly if you're getting to the linking stage.

      My guess is that you need to run ldconfig in the directory where the qt libraries have been installed.  I'm not sure where that is on Ubuntu, but if you install QT from source it's /usr/local/Trolltech/QT-version/lib

      You might try looking there, or use the locate command to find QtGui_debug.  If you find it, run ldconfig in that directory and that should help.

       
    • Nobody/Anonymous

      You may want to install libqt4-debug-dev package.

       
    • Nobody/Anonymous

      I'm having a similar problem. When I run qmake, nothing appears to happen - no output at all - and then when I run make I get errors beginning from the following line:

      g++ -c -pipe -Wall -W -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o BasicEdit.o BasicEdit.cpp

      I'm a little surprised to see the references to qt3 given that I understand it is qt4 that is needed. I don't have qt3 installed - perhaps I should try doing so? (I'm a bit clueless when it comes to compiling programs, so any help is very welcome!)

       
    • Nobody/Anonymous

      Solved it. If you have both qt3 and qt4 installed on your system then you need to use the command qmake-qt4 rather than just qmake. Then it compiles fine.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.