LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-27-2007, 05:50 PM   #1
ICEMANII
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Rep: Reputation: 0
Qt 3.3.7 wont install properly with Xorg7.1 (binaries missing/compile problems)


Hello all,

I have been trying to compile Qt to install KDE. But, when I install Qt (3.3.7 or 3.3.8) it compiles and installs - but with lots missing. For instance in the /opt/qt/bin folder only moc and qmake are available.

This means I am unable to install KDE properly. I can install a simpler configuration just fine - it has all the binaries.

For instance, if I do the recommended BLFS install (for /opt) (in SVN/devel copy):

Code:
bash
export QTDIR=$PWD &&
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&
export PATH=$PWD/bin:$PATH &&

./configure -prefix /opt/qt-3.3.7 \
            -sysconfdir /etc/qt \
            -qt-gif \
            -system-zlib \
            -system-libpng \
            -system-libjpeg \
            -system-libmng \
            -plugin-imgfmt-png \
            -plugin-imgfmt-jpeg \
            -plugin-imgfmt-mng \
            -no-exceptions \
            -thread \
            -tablet &&

make &&
exit
Then I get a poor Qt install with missing binaries (which ultimately serves me no purpose).

This is the bottom part of the make command for the above:

Code:
In file included from main.cpp:12:
../../../../src/kernel/qmngio.cpp:58:20: error: libmng.h: No such file or directory
../../../../src/kernel/qmngio.cpp:85: error: 'mng_ptr' has not been declared
../../../../src/kernel/qmngio.cpp:85: error: 'mng_uint32' has not been declared
../../../../src/kernel/qmngio.cpp:85: error: 'mng_uint32p' has not been declared
../../../../src/kernel/qmngio.cpp:114: error: 'mng_int32' has not been declared
../../../../src/kernel/qmngio.cpp:115: error: 'mng_int8' has not been declared
../../../../src/kernel/qmngio.cpp:116: error: 'mng_chunkid' has not been declared
../../../../src/kernel/qmngio.cpp:117: error: 'mng_uint32' has not been declared
../../../../src/kernel/qmngio.cpp:118: error: 'mng_int32' has not been declared
../../../../src/kernel/qmngio.cpp:119: error: 'mng_int32' has not been declared
../../../../src/kernel/qmngio.cpp:120: error: 'mng_pchar' has not been declared
../../../../src/kernel/qmngio.cpp:131: error: 'mng_uint32' has not been declared
../../../../src/kernel/qmngio.cpp:131: error: 'mng_uint32' has not been declared
../../../../src/kernel/qmngio.cpp:142: error: 'mng_ptr' does not name a type
../../../../src/kernel/qmngio.cpp:146: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:154: error: 'mng_uint32' does not name a type
../../../../src/kernel/qmngio.cpp:158: error: 'mng_uint32' has not been declared
../../../../src/kernel/qmngio.cpp:173: error: 'mng_handle' does not name a type
../../../../src/kernel/qmngio.cpp: In member function 'bool QMNGFormat::readdata(int, int, int)':
../../../../src/kernel/qmngio.cpp:88: warning: comparison between signed and unsigned integer expressions
../../../../src/kernel/qmngio.cpp:91: error: invalid type argument of 'unary *'
../../../../src/kernel/qmngio.cpp:93: warning: comparison between signed and unsigned integer expressions
../../../../src/kernel/qmngio.cpp:95: error: invalid conversion from 'int' to 'void*'
../../../../src/kernel/qmngio.cpp:95: error:   initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'
../../../../src/kernel/qmngio.cpp:101: error: invalid conversion from 'int' to 'void*'
../../../../src/kernel/qmngio.cpp:101: error:   initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'
../../../../src/kernel/qmngio.cpp:102: error: 'mng_ptr' was not declared in this scope
../../../../src/kernel/qmngio.cpp:108: error: invalid conversion from 'int' to 'void*'
../../../../src/kernel/qmngio.cpp:108: error:   initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'
../../../../src/kernel/qmngio.cpp: In member function 'bool QMNGFormat::errorproc(int, int, int, int, int, int, int)':
../../../../src/kernel/qmngio.cpp:123: error: operands to ?: have different types
../../../../src/kernel/qmngio.cpp: In member function 'bool QMNGFormat::processheader(int, int)':
../../../../src/kernel/qmngio.cpp:137: error: 'handle' was not declared in this scope
../../../../src/kernel/qmngio.cpp:139: error: 'MNG_CANVAS_BGRA8' was not declared in this scope
../../../../src/kernel/qmngio.cpp:139: error: 'MNG_CANVAS_ARGB8' was not declared in this scope
../../../../src/kernel/qmngio.cpp:139: error: 'mng_set_canvasstyle' was not declared in this scope
../../../../src/kernel/qmngio.cpp: In constructor 'QMNGFormat::QMNGFormat()':
../../../../src/kernel/qmngio.cpp:301: error: 'handle' was not declared in this scope
../../../../src/kernel/qmngio.cpp: In destructor 'virtual QMNGFormat::~QMNGFormat()':
../../../../src/kernel/qmngio.cpp:316: error: 'handle' was not declared in this scope
../../../../src/kernel/qmngio.cpp:316: error: 'mng_cleanup' was not declared in this scope
../../../../src/kernel/qmngio.cpp: At global scope:
../../../../src/kernel/qmngio.cpp:322: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:326: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:330: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:334: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:346: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:351: error: 'mng_ptr' does not name a type
../../../../src/kernel/qmngio.cpp:355: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:363: error: 'mng_uint32' does not name a type
../../../../src/kernel/qmngio.cpp:367: error: 'mng_bool' does not name a type
../../../../src/kernel/qmngio.cpp:372: error: 'mng_ptr' does not name a type
../../../../src/kernel/qmngio.cpp:376: error: variable or field 'memfree' declared void
../../../../src/kernel/qmngio.cpp:376: error: 'mng_ptr' was not declared in this scope
../../../../src/kernel/qmngio.cpp:376: error: 'mng_size_t' was not declared in this scope
../../../../src/kernel/qmngio.cpp:376: error: initializer expression list treated as compound expression
../../../../src/kernel/qmngio.cpp:377: error: expected ',' or ';' before '{' token
../../../../src/kernel/qmngio.cpp: In member function 'virtual int QMNGFormat::decode(QImage&, QImageConsumer*, const uchar*, int)':
../../../../src/kernel/qmngio.cpp:397: error: 'handle' was not declared in this scope
../../../../src/kernel/qmngio.cpp:397: error: 'mng_ptr' was not declared in this scope
../../../../src/kernel/qmngio.cpp:397: error: '::memalloc' has not been declared
../../../../src/kernel/qmngio.cpp:397: error: 'mng_initialize' was not declared in this scope
../../../../src/kernel/qmngio.cpp:398: error: 'MNG_TRUE' was not declared in this scope
../../../../src/kernel/qmngio.cpp:398: error: 'mng_set_suspensionmode' was not declared in this scope
../../../../src/kernel/qmngio.cpp:399: error: '::openstream' has not been declared
../../../../src/kernel/qmngio.cpp:399: error: 'mng_setcb_openstream' was not declared in this scope
../../../../src/kernel/qmngio.cpp:400: error: '::closestream' has not been declared
../../../../src/kernel/qmngio.cpp:400: error: 'mng_setcb_closestream' was not declared in this scope
../../../../src/kernel/qmngio.cpp:401: error: '::readdata' has not been declared
../../../../src/kernel/qmngio.cpp:401: error: 'mng_setcb_readdata' was not declared in this scope
../../../../src/kernel/qmngio.cpp:402: error: '::errorproc' has not been declared
../../../../src/kernel/qmngio.cpp:402: error: 'mng_setcb_errorproc' was not declared in this scope
../../../../src/kernel/qmngio.cpp:403: error: '::processheader' has not been declared
../../../../src/kernel/qmngio.cpp:403: error: 'mng_setcb_processheader' was not declared in this scope
../../../../src/kernel/qmngio.cpp:404: error: '::getcanvasline' has not been declared
../../../../src/kernel/qmngio.cpp:404: error: 'mng_setcb_getcanvasline' was not declared in this scope
../../../../src/kernel/qmngio.cpp:405: error: '::refresh' has not been declared
../../../../src/kernel/qmngio.cpp:405: error: 'mng_setcb_refresh' was not declared in this scope
../../../../src/kernel/qmngio.cpp:406: error: '::gettickcount' has not been declared
../../../../src/kernel/qmngio.cpp:406: error: 'mng_setcb_gettickcount' was not declared in this scope
../../../../src/kernel/qmngio.cpp:407: error: '::settimer' has not been declared
../../../../src/kernel/qmngio.cpp:407: error: 'mng_setcb_settimer' was not declared in this scope
../../../../src/kernel/qmngio.cpp:409: error: 'mng_readdisplay' was not declared in this scope
../../../../src/kernel/qmngio.cpp:415: error: 'handle' was not declared in this scope
../../../../src/kernel/qmngio.cpp:415: error: 'mng_display_resume' was not declared in this scope
make[4]: *** [.obj/release-shared-mt/main.o] Error 1
make[4]: Leaving directory `/blfs/qt-x11-free-3.3.8/plugins/src/imageformats/mng'
make[3]: *** [sub-mng] Error 2
make[3]: Leaving directory `/blfs/qt-x11-free-3.3.8/plugins/src/imageformats'
make[2]: *** [sub-imageformats] Error 2
make[2]: Leaving directory `/blfs/qt-x11-free-3.3.8/plugins/src'
make[1]: *** [sub-plugins] Error 2
make[1]: Leaving directory `/blfs/qt-x11-free-3.3.8'
make: *** [init] Error 2
However if I install it like so:

Code:
bash
export QTDIR=$PWD &&
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&
export PATH=$PWD/bin:$PATH &&

./configure -prefix /opt/qt-3.3.8 \
            -sysconfdir /etc/qt \
            -qt-gif \
            -system-zlib \
            -system-libpng &&

make &&
exit
Then it DOES install with the binaries, and I can install KDE. However KDE will not display any PNG images (not a pretty sight).


Does anyone have any recommendations on how I can fix this?

Any support is appreciated

Last edited by ICEMANII; 03-27-2007 at 05:54 PM.
 
Old 03-27-2007, 06:25 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
It can't find the libmng header file. Did you install libmng first? Don't pass the --with-system-FOO switch, unless you've already installed the FOO package system-wide.
 
Old 03-27-2007, 06:28 PM   #3
ICEMANII
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Arow
It can't find the libmng header file. Did you install libmng first? Don't pass the --with-system-FOO switch, unless you've already installed the FOO package system-wide.
I was actually about to reply saying I have just figured that out and fixed it

Cheers for the help, all the same.

Adios
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper 1.24 compile problems - Missing kernel sources? IceDane Linux - Software 1 10-04-2006 02:30 PM
Spca5xx wont install properly, Slackware 10.02, 2.6.14.3 Dagger907 Linux - Software 1 12-09-2005 06:53 AM
Which kernels best to compile binaries against? WoofDeF Debian 3 06-24-2005 01:47 AM
compile windows binaries on Linux? muczy Linux - Newbie 4 07-24-2004 01:05 AM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration