PDA

View Full Version : QT4 on Slackware linux



dive
27th December 2007, 13:53
Hi, I'm trying to install and create a package for QT4. The error I'm getting:



qmake
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/.qmake.cache:2: Unknown replace function: quote
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/.qmake.cache:3: Unknown replace function: quote
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/.qmake.cache:2: Unknown replace function: quote
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/.qmake.cache:3: Unknown replace function: quote
projects.pro:28: Unknown replace function: unique
projects.pro:28: Unknown replace function: lower
projects.pro:28: Unknown test function: for
WARNING: translations.path is not defined: install target not created

WARNING: qmake.path is not defined: install target not created


Any help would be great.

jpn
27th December 2007, 14:00
Hmm, did you run configure script?

dive
27th December 2007, 15:33
I did but I have just realised that I didn't run it again after doing
export QMAKESPEC=$QTDIR/mkspecs/linux-g++

Now configure gives an error:


script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/usr/lib/qt/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp: In member function ‘bool QFSFileEnginePrivate::nativeOpen(QFlags<QIODevice::OpenModeFlag>)’:
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp:163: error: ‘QT_FOPEN’ was not declared in this scope
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp:177: error: ‘QT_FSEEK’ was not declared in this scope
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp: In member function ‘bool QFSFileEnginePrivate::isSymlink() const’:
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp:498: error: ‘QT_LSTAT’ was not declared in this scope
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp: In member function ‘virtual bool QFSFileEngine::setSize(qint64)’:
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp:895: error: ‘QT_FTRUNCATE’ was not declared in this scope
/mnt/str6/downloads/qt/qt-x11-opensource-src-4.3.3/src/corelib/io/qfsfileengine_unix.cpp:896: error: ‘QT_TRUNCATE’ was not declared in this scope
gmake: *** [qfsfileengine_unix.o] Error 1

marcel
27th December 2007, 15:48
You must not provide the path to the make spec, but only the make spec name:
export QMAKESPEC=linux-g++

dive
27th December 2007, 18:58
Getting closer now. Thanks for your help so far.

jpn
27th December 2007, 18:59
qmake install? Did you actually read installation instructions (http://doc.trolltech.com/4.3/install-x11.html)? ;) You shouldn't be running qmake at all, but only configure, make and make install.

dive
27th December 2007, 19:08
Yeah lol took so long to 'make' I forgot what I was at :)