qt4.SlackBuild won't compile qt-4.5.3 on Slack-12.2 based distro
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
qt4.SlackBuild won't compile qt-4.5.3 on Slack-12.2 based distro
I'm trying to install Qt4 and KeePassX with SlackBuilds on Wolvix 2, a Slackware 12.2 based distro. At first, the compile quit with this message:
Quote:
"Creating qmake. Please wait...
MySQL support cannot be enabled because of functionality tests. Turn on verbose messaging (-v) to ./configure to see final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue."
Okay. MySQL wasn't installed yet, so I installed mysql-5.0.67 from the slack12.2 repo, and ran ./qt4.SlackBuild again. Again, the compile quit with the same message about no MySQL support. Rebooted the computer (sometimes it helps), and compiled again. It quit again with that same message.
I'd rather have MySQL support than not. Regardless, how do I pass the ./configure options mentioned in the error message when compiling with a Slackbuild script? Or does MySQL need some other action to make it work with other programs?
Yes, I'm using the SlackBuild bundle downloaded from slackbuilds.org <http://slackbuilds.org/repository/12.2/libraries/qt4/>, for Qt4 on Slackware 12.2, along with the latest Qt4 library source downloaded from the Trolltech/Nokia Qt project website <http://qt.nokia.com/downloads/linux-x11-cpp>. Since the qt4 source version (4.5.3) is later than that referred to in the actual qt4.Slackbuild scripts (4.5.1), I changed the version references to match. Other than that, I've made no changes nor run any extra options. I just login as root, change to the directory with the SlackBuild unpacked and the program source tarball, and run "./qt4.SlackBuild"
I'm trying to install Qt4 and KeePassX with SlackBuilds on Wolvix 2, a Slackware 12.2 based distro.
I'm sorry to say, but "Slackware-based" != "Slackware", so we can only guess what might be different in your environment. Anyway, just installing Slackware
packages on a non-Slackware distribution is probably bound to cause problems.
Quote:
The official qt.SlackBuild has this:
Code:
# Fix path to mysql header
zcat $CWD/qt.mysql.h.diff.gz | patch -p1 || exit 1
which your script doesnt have.
That is not true. The SlackBuild uses the same patch, just not the same command for patching.
I'm sorry to say, but "Slackware-based" != "Slackware", so we can only guess what might be different in your environment. Anyway, just installing Slackware
packages on a non-Slackware distribution is probably bound to cause problems.
You're right. This distro mainly defaults to LXDE, Fluxbox, and XFCE desktops, adds some programs and takes others out to keep the live CD lightweight. More over, this is a beta release, so there are kinks still being worked out. Many of the installed packages come from Slackware 12.2, but the rest are rolled by the distro designer.
Well, I'm not sure where the relevant differences lie, so how can I pass the verbose option to Qt4's ./configure through the SlackBuild, to at least see how it "fails the functionality tests"?
Well, I downloaded the originally intended version of Qt4 (4.5.1), and reset the SlackBuild script for that version, but that didn't help any. I dumped the ./configure options into the SlackBuild itself, and with verbose on, got more info that I can't really decipher...
Alright, this is the modified ./configure options in the SlackBuild:
Ran it, and failed with the same warning, but more info just before that!
Code:
Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of either license?
Creating qmake. Please wait...
floatmath auto-detection... ()
compiling floatmath.cpp
floatmath.cpp:3: warning: unused parameter 'argc'
floatmath.cpp:3: warning: unused parameter 'argv'
linking floatmath
floatmath enabled.
mmx auto-detection... ()
compiling mmx.cpp
linking mmx
mmx enabled.
3dnow auto-detection... ()
compiling 3dnow.cpp
linking 3dnow
3dnow enabled.
sse auto-detection... ()
compiling sse.cpp
linking sse
sse enabled.
sse2 auto-detection... ()
compiling sse2.cpp
linking sse2
sse2 enabled.
libtiff auto-detection... ()
compiling libtiff.cpp
linking libtiff
libtiff enabled.
libmng auto-detection... ()
compiling libmng.cpp
libmng.cpp:1:20: error: libmng.h: No such file or directory
libmng.cpp:9:2: error: #error System libmng version is less than 1.0.9; using built-in version instead.
libmng.cpp: In function 'int main(int, char**)':
libmng.cpp:5: error: 'mng_handle' was not declared in this scope
libmng.cpp:5: error: expected `;' before 'hMNG'
libmng.cpp:6: error: 'hMNG' was not declared in this scope
libmng.cpp:6: error: 'mng_cleanup' was not declared in this scope
make: *** [libmng.o] Error 1
libmng disabled.
DB2 auto-detection... ()
compiling db2.cpp
db2.cpp:1:20: error: sqlcli.h: No such file or directory
db2.cpp:2:21: error: sqlcli1.h: No such file or directory
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
compiling ibase.cpp
ibase.cpp:1:19: error: ibase.h: No such file or directory
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
compiling ../mysql/mysql.cpp
linking mysql_r
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [mysql_r] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
compiling mysql.cpp
linking mysql
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [mysql] Error 1
MySQL (thread-unsafe) disabled.
MySQL support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
The only thing I'm getting from that is that MySQL and/or other database components are not being properly detected. I know SQLite and MySQL are installed...
Well, I'm no code master to decipher this any more, so I'm going to take the mysql options out of the SlackBuild (that's the sticking point), and see how it runs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.