Results 1 to 2 of 2

Thread: undefined reference to `QInotifyFileSystemWatcherEngine::create()'

  1. #1
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: undefined reference to `QInotifyFileSystemWatcherEngine::create()'

    Hello.
    I'm trying to compile a qt-embedded program using qmake but I'm getting the error:
    libQtCore.so: undefined reference to `QInotifyFileSystemWatcherEngine::create()'

    Looking through the source code it seems the file system watcher stuff is only compiled if QT_NO_FILESYSTEMWATCHER is not defined. In qfeatures.h QT_NO_FILESYSTEMWATCHER is defined if QT_NO_THREAD is defined.

    To configure qt I'm running:

    ./configure \
    -opensource \
    -release \
    -embedded x86 \
    -xplatform qws/i686-pc-linux-gnu-g++ \
    -prefix /usr/crossdev/usr/local/Trolltech/QtEmbedded-4.5.3 \
    -dbus \
    -ldbus-1 \
    -no-sql-psql \
    -no-qt3support \
    -no-phonon \
    -no-phonon-backend \
    -no-svg \
    -no-webkit \
    -no-scripttools \
    -no-gif \
    -no-libtiff \
    -qt-libpng \
    -qt-libmng \
    -qt-libjpeg \
    -no-openssl \
    -nomake "examples demos docs" \
    -v \
    -no-nis \
    -no-cups \
    -no-opengl \
    -depths 1,4,8,16,18,24 \
    -no-rpath

    But this generates makefiles for qmake that include -DQT_NO_THREAD in CPPFLAGS.

    So my question is: how should I be using configure so that qmake DOESN'T compile with QT_NO_THREAD defined and I can use the filesystem watcher stuff my program seems to need.


    Added after 23 minutes:


    Also, passing -feature-thread to configure doesn't solve the problem.
    Last edited by Shum; 18th January 2011 at 10:23.

  2. #2
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: undefined reference to `QInotifyFileSystemWatcherEngine::create()'

    Having the same problem here. Got this in another forum:

    "When creating the mkspec for a embedded target if the name of the directory does not match "linux-*" then the following build error will be seen.
    undefined reference to `QDnotifyFileSystemWatcherEngine::create()'
    see also:
    http://doc.trolltech.com/4.4/qt-embedded-crosscompiling.html#step-2-create-a-target-specific-qmake-specification"

    I dont know yet if it will solve the problem because it is still compiling here. But I didnt want to postpone the reply since I could forget.

Similar Threads

  1. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 16:45
  2. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 14:04
  3. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 14:45
  4. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 09:34
  5. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 13:14

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.