Results 1 to 7 of 7

Thread: QT3 Development Files

  1. #1

    QT3 Development Files

    I can't find the libs directory in debian! I have libqt3-dev and all it's requirements installed (like libqt3 ..) .... and whereis qt returns /usr/shar/qt and /usr/include/qt but they are all header files and no 'libraries'.

    Here is output from trying to compile a QT3 app ...

    Code:
    ash@nwsupplies:~/test$ g++ -I$QTDIR/include -lqt -o test test.C 
    /tmp/ccJTMklm.o: In function `main':
    /tmp/ccJTMklm.o(.text+0x29): undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
    /tmp/ccJTMklm.o(.text+0x52): undefined reference to `QString::QString[in-charge](char const*)'
    /tmp/ccJTMklm.o(.text+0x7c): undefined reference to `QLabel::QLabel[in-charge](QString const&, QWidget*, char const*, unsigned)'
    /tmp/ccJTMklm.o(.text+0x139): undefined reference to `QApplication::setMainWidget(QWidget*)'
    /tmp/ccJTMklm.o(.text+0x159): undefined reference to `QApplication::exec()'
    /tmp/ccJTMklm.o(.text+0x166): undefined reference to `QApplication::~QApplication [in-charge]()'
    /tmp/ccJTMklm.o(.text+0x182): undefined reference to `QApplication::~QApplication [in-charge]()'
    /tmp/ccJTMklm.o: In function `QString::~QString [in-charge]()':
    /tmp/ccJTMklm.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x1e): undefined reference to `QString::shared_null'
    /tmp/ccJTMklm.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x26): undefined reference to `QString::shared_null'
    /tmp/ccJTMklm.o(.gnu.linkonce.t._ZN7QStringD1Ev+0x37): undefined reference to `QStringData::deleteSelf()'
    collect2: ld returned 1 exit status
    ash@nwsupplies:~/test$
    Here is the output using the qmake method ...

    Code:
    ash@nwsupplies:~/test$ qmake -project
    ash@nwsupplies:~/test$ qmake
    ash@nwsupplies:~/test$ make
    g++ -c -pipe -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wall -W -O2  -DQT_NO_DEBUG -I/usr/share/qt//include -I/usr/share/qt//mkspecs/linux-g++ -o test.o test.C
    g++  -o test test.o    -L/usr/share/qt//lib  -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
    test.o: In function `main':
    test.o(.text+0x2a): undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
    test.o(.text+0x4f): undefined reference to `QString::QString[in-charge](char const*)'
    test.o(.text+0x73): undefined reference to `QLabel::QLabel[in-charge](QString const&, QWidget*, char const*, unsigned)'
    test.o(.text+0x8c): undefined reference to `QString::shared_null'
    test.o(.text+0x96): undefined reference to `QStringData::deleteSelf()'
    test.o(.text+0xc3): undefined reference to `QApplication::setMainWidget(QWidget*)'
    test.o(.text+0xd6): undefined reference to `QApplication::exec()'
    test.o(.text+0xe0): undefined reference to `QApplication::~QApplication [in-charge]()'
    test.o(.text+0x101): undefined reference to `QString::shared_null'
    test.o(.text+0x11a): undefined reference to `QString::shared_null'
    test.o(.text+0x124): undefined reference to `QStringData::deleteSelf()'
    test.o(.text+0x144): undefined reference to `QString::shared_null'
    test.o(.text+0x15a): undefined reference to `QApplication::~QApplication [in-charge]()'
    collect2: ld returned 1 exit status
    make: *** [test] Error 1
    ash@nwsupplies:~/test$
    and I am using QApplication (qapplication.h) and QLabel (qlabel.h).

  2. #2

    Re:QT3 Development Files

    Oddly enough precompiled binaries work fine (like konq) but I can't seem to compile my own applications (which I need since I am starting to pick up QT to add to my list of toolkits).

  3. #3
    Guest

    Re:QT3 Development Files

    those libraries must be on your system somewhere otherwise u wouldn't be able to run binaries like konq

    do u have libqt-mt.so somewhere on your system?
    or libqt.so but if u have that it means debian fucked up once again cuz QT works better when it uses multithreading

    anyway, i seriously recommend deleting all of the qt debs and just compile it from source using these configure options: -release -shared -sm -thread -qt-gif -system-libpng -system-libmng -system-zlib -system-libjpeg -xft -no-g++-exceptions

    it should work a lot better and everything will be installed in a directory like /usr/local/qt or wherever u wanna put it and it won't be shattered around ur filesystems like so many of the distros seem to do even though it sucks and causes nothing but problems

    > debian >
    > distros >

  4. #4

    Re:QT3 Development Files

    [quote author=Ralinx link=board=2;threadid=4524;start=0#45223 date=1028945770]
    do u have libqt-mt.so somewhere on your system?
    [/quote]

    I have that in /usr/lib/

    anyway, i seriously recommend deleting all of the qt debs and just compile it from source
    I'll give that a shot.

  5. #5

    Re:QT3 Development Files

    I compilied it from source and it now only errors out once with this ...

    Code:
    /usr/bin/ld: cannot find -lqt
    Happens for both manual compile and qmake.

  6. #6
    Guest

    Re:QT3 Development Files

    try making it look for lqt-mt instead of lqt

  7. #7

    Re:QT3 Development Files

    Thanks!

Similar Threads

  1. Software development using QT3 or QT4
    By lsatenstein in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 09-11-2011, 12:24 PM
  2. Programming language development
    By tech291083 in forum Programming
    Replies: 1
    Last Post: 10-15-2007, 02:39 PM
  3. Arrested Development
    By countach44 in forum General Chat
    Replies: 1
    Last Post: 11-15-2005, 12:15 PM
  4. RH9 can't add development tools?
    By cgchris99 in forum Linux - General Topics
    Replies: 7
    Last Post: 05-06-2003, 07:49 PM
  5. The final frontier - new in development
    By in forum General Chat
    Replies: 3
    Last Post: 04-09-2002, 07:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •