Qt v4.2.3 on ubuntu

Alain Muls alain.muls at telenet.be
Tue May 29 13:42:41 UTC 2007


Hi,

I have problems compiling QT v4.2.3 (idem dito for v4.2.1) on feisty fawn and 
on dapper drake. I always get the error:

g++ -c -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qfilesystemwatcher_inotify.o 
io/qfilesystemwatcher_inotify.cpp
io/qfilesystemwatcher_inotify.cpp: In static member function ‘static 
QInotifyFileSystemWatcherEngine* QInotifyFileSystemWatcherEngine::create()’:
io/qfilesystemwatcher_inotify.cpp:177: error: ‘inotify_init’ was not declared 
in this scope
io/qfilesystemwatcher_inotify.cpp: In destructor ‘virtual 
QInotifyFileSystemWatcherEngine::~QInotifyFileSystemWatcherEngine()’:
io/qfilesystemwatcher_inotify.cpp:194: error: ‘inotify_rm_watch’ was not 
declared in this scope
io/qfilesystemwatcher_inotify.cpp: In member function ‘virtual QStringList 
QInotifyFileSystemWatcherEngine::addPaths(const QStringList&, QStringList*, 
QStringList*)’:
io/qfilesystemwatcher_inotify.cpp:241: error: ‘inotify_add_watch’ was not 
declared in this scope
io/qfilesystemwatcher_inotify.cpp: In member function ‘virtual QStringList 
QInotifyFileSystemWatcherEngine::removePaths(const QStringList&, 
QStringList*, QStringList*)’:
io/qfilesystemwatcher_inotify.cpp:282: error: ‘inotify_rm_watch’ was not 
declared in this scope
io/qfilesystemwatcher_inotify.cpp: In member function ‘void 
QInotifyFileSystemWatcherEngine::readFromInotify()’:
io/qfilesystemwatcher_inotify.cpp:332: error: ‘inotify_rm_watch’ was not 
declared in this scope
make[2]: *** [.obj/release-shared/qfilesystemwatcher_inotify.o] Error 1
make[2]: Leaving directory 
`/data/amuls/SATNAVAM.GCV/Septentrio/QT4/QT4.2.1/qt-x11-commercial-src-4.2.1/src/corelib'
make[1]: *** [sub-corelib-make_default] Error 2
make[1]: Leaving directory 
`/data/amuls/SATNAVAM.GCV/Septentrio/QT4/QT4.2.1/qt-x11-commercial-src-4.2.1/src'
make: *** [sub-src-make_default-ordered] Error 2


So there is somewhere a problem with the location of a inotify.h file. When I 
do a apt-file find inotify.h and install all relevant packages, the error 
remains.

How to resolve this error?


-- 
______________________________________________________
Alain Muls                       alain.muls at telenet.be
RMA-CISS-ASGE                            +32.2.7426340
Renaissance Avenue 30   B1000 Brussels
______________________________________________________




More information about the ubuntu-users mailing list