Error compiling Qt app

El3ctroded
Got this error running bitbake:

| checking keysymdef.h... configure: error: Cannot find keysymdef.h
| FATAL: oe_runconf failed
NOTE: Task failed:
/home/user/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/libx11-1_1.3.3-r
3/temp/log.do_configure.8751
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/home/user/project/openembedded/recipes/xorg-lib/libx11_1.3.3.bb
do_configure failed
ERROR: Task 854
(/home/user/project/openembedded/recipes/xorg-lib/libx11_1.3.3.bb,
do_configure) failed
NOTE: Tasks Summary: Attempted 603 tasks of which 161 didn't need to be
rerun and 1 failed.
ERROR: '/home/user/project/openembedded/recipes/xorg-lib/libx11_1.3.3.bb'
failed

Thanks!

El3ctroded
Had to install a package called x11proto-core-dev to get past that error.

El3ctroded
Next compile error I got was this:
Basic XLib functionality test failed!
|  You might need to modify the include and library search paths by editing
|  QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in
/home/user/project/build/tmp/work/i686-linux/qt4-tools-native-4.6.0-r5.0/qt-ever
ywhere-opensource-src-4.6.0/mkspecs/linux-g++.
| FATAL: Configuring qt failed. EXTRA_OECONF was -prefix
/home/user/project/build/tmp/staging/i686-linux/usr                
-qt-libjpeg -qt-gif -system-zlib                 -no-libjpeg -no-libpng    
            -no-accessibility                 -no-cups                
-no-exceptions                  -no-nas-sound                 -no-nis      
          -verbose -release -fast -static                 -qt3support
NOTE: Task failed:
/home/user/project/build/tmp/work/i686-linux/qt4-tools-native-4.6.0-r5.0/temp/lo
g.do_configure.26171
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/home/user/project/openembedded/recipes/qt4/qt4-tools-native_4.6.0.bb
do_configure failed
ERROR: Task 190
(/home/user/project/openembedded/recipes/qt4/qt4-tools-native_4.6.0.bb,
do_configure) failed
NOTE: Tasks Summary: Attempted 1287 tasks of which 1056 didn't need to be
rerun and 1 failed.
ERROR:
'/home/user/project/openembedded/recipes/qt4/qt4-tools-native_4.6.0.bb'
failed


Solution was to install libxext-dev

El3ctroded
I just got another error: 
| Qt QTGUI library not found.
| Qt QTCORE library not found.


Found I needed to install libqt4-dev. However that depended upon
libglu1-mesa-dev which could not be installed.

Trying to directly install libglu1-mesa-dev and got:
  Depends: libglu1-mesa (=7.4-0ubuntu3.2) but 7.4-0ubuntu3.3 is to be
installed

Basically, the file in the repos was older than the one I had. What
happened, I found, is that I had installed libglu1-mesa 7.4-0ubuntu3.3 from
the Jaunty's Proposed which was now, along with any other packages built
from the mesa 7.4-0ubuntu3.3 source, no longer there. The solution was to
manually download and install it from
https://launchpad.net/ubuntu/jaunty/i386/libglu1-mesa-dev/7.4-0ubuntu3.3

Sheesh!

El3ctroded
AND after doing all that, I ran out of disk space. This project is taking
up over 28GB of space!!!

So now I moved all files to external drive, and had to change the
following:
In /external-drive/path/project/build/tmp/saved_tmpdir contents had to
point to new tempdir.

Also, after all the above, I forgot to actually install libqt4-dev.

After that, still with the QT errors. So I opened the package mananger and
searched for everything libqt3 and installed it all. Then searched for
libqt4 and installed it all. Still I get the following error:

NOTE: Running task 1471 of 2099 (ID: 5,
/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb,
do_configure)
ERROR: function do_configure failed
ERROR: log data follows
(/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1
.0-r0/temp/log.do_configure.26523)
| Qt QTGUI library not found.
| Qt QTCORE library not found.
| CMake Error at
/media/320gb-2/project/build/tmp/staging/i686-linux/usr/share/cmake-2.6/Modules/
FindQt4.cmake:1080
(FILE):
|   file Internal CMake error when trying to open file:
|  
/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1.
0-r0/lcdslider/images.qrc
|   for reading.
| Call Stack (most recent call first):
|   CMakeLists.txt:19 (QT4_ADD_RESOURCES)
| 
| 
| -- Configuring incomplete, errors occurred!
NOTE: Task failed:
/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1.
0-r0/temp/log.do_configure.26523
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb do_configure
failed
ERROR: Task 5
(/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb,
do_configure) failed
NOTE: Tasks Summary: Attempted 1470 tasks of which 1470 didn't need to be
rerun and 1 failed.
ERROR: '/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb'
failed

El3ctroded
Ah ha! Part of the error fixed! Here's what was wrong, thanks to
http://blog.cor-net.org/hello-world-in-qt-using-cmake-and-openembedded/3/

CMake is using a file called FindQt4.cmake to look for Qt4 libraries, while
it would work with the qt4×11 of Qt, Qt4-embedded produce libraries that
end with an E, making it inefficient only because of that missing E.
Since the problem has been corrected in a more recent version of cmake,
another cleaner solution is to download the last version of the
FindQt4.cmake file here and to replace yours. This will also work if you
have a native cmake (as long as your version is recent enough to handle
stuff in that .cmake file).

Otherwise, you can change add the E manually (dirty). If you use a cmake
from OE (ie you didn’t ASSUME cmake-native in your local.conf), just edit
the file
/path/to/your/build/tmp-folder/staging/i686-linux/usr/share/cmake-2.6/Modules/Fi
ndQt4.cmake

Line 696, add ${QT_MODULE}E, it should now look like this:

NAMES ${QT_MODULE} ${QT_MODULE}4 ${QT_MODULE}E

Now, it finds QT4! WHO HOO!

However I get a new error:
NOTE: Running task 1471 of 2099 (ID: 5,
/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb,
do_configure)
ERROR: function do_configure failed
ERROR: log data follows
(/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1
.0-r0/temp/log.do_configure.17589)
| -- Found Qt-Version 4.6.0
| CMake Error at
/media/320gb-2/project/build/tmp/staging/i686-linux/usr/share/cmake-2.6/Modules/
FindQt4.cmake:1080
(FILE):
|   file Internal CMake error when trying to open file:
|  
/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1.
0-r0/lcdslider/images.qrc
|   for reading.
| Call Stack (most recent call first):
|   CMakeLists.txt:19 (QT4_ADD_RESOURCES)
| 
| 
| -- Configuring incomplete, errors occurred!
NOTE: Task failed:
/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1.
0-r0/temp/log.do_configure.17589
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb do_configure
failed
ERROR: Task 5
(/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb,
do_configure) failed
NOTE: Tasks Summary: Attempted 1470 tasks of which 1470 didn't need to be
rerun and 1 failed.
ERROR: '/home/user/project/openembedded/recipes/lcdslider/lcdslider.bb'
failed

Not sure what that means.

El3ctroded
Don't know if this is related, but I found this in
/media/320gb-2/project/build/tmp/work/armv4t-angstrom-linux-gnueabi/lcdslider-1.
0-r0/lcdslider-1.0/CMakeFiles/CMakeError.log

Compiling the C compiler identification source file "CMakeCCompilerId.c"
failed.
Compiler:
/home/user/project/build/tmp/cross/armv4t/bin/arm-angstrom-linux-gnueabi-gcc
-march=armv4t -mtune=arm920t -mthumb-interwork -mno-thumb
Build flags:
-isystem/home/user/project/build/tmp/staging/armv4t-angstrom-linux-gnueabi/usr/i
nclude;-fexpensive-optimizations;-frename-registers;-fomit-frame-pointer;-O2;-gg
db3
Id flags: 

The output was:
1
CMakeCCompilerId.c:1: error: bad value (armv4t -mtune=arm920t
-mthumb-interwork -mno-thumb) for -march= switch

El3ctroded
No, I don't think it's related... I deleted the log and the error didn't
reappear upon trying bitbake lcdslider again.

El3ctroded
Can no-one help? I'm really stuck here.

El3ctroded
Still no-one help?

eddylau
A poor lonely guy talking to himself in this show!

Anyway, it's a good show!

Thank you.

El3ctroded
Yeah, and I'm sort of fed up with it :( I can't seem to make any progress,
and many of the guides are abysmal: loads of it is incomplete and little
written to explain what I need explained, or it's so fragmented I can't
seem to put it together. I know 0 about Linux programming, cross compiling,
etc., but I need to get this done so I can start developing a QT4 app I
need for a project I'm doing.

I guess I'm just going to have to start over, which _really_ sucks because
downloading all of the stuff that had to be downloaded during the bitbake
compile took me a WEEK! and I expect if I delete the whole folder I have to
start that all over, but I don't know because no-one will answer any of my
questions, so I've stopped asking...

There's often talk about how great the Linux community is, but every time I
get stuck on something that's really important for me, I rarely get any
help or answers to my questions. 

And that doesn't usually bother me much, except I've got a timeline on this
and I'm sitting at square 1 because I can't get a successful compilation.
/rant

Marius
Ger rid of idiotic build systems never finished, never documented and
extremely over-bloated.

Do it manually, is faster, is smarter, gives you full control.

Rosiekay
Theirs ways to determine if your still with connected professional, if your
using the [url=https://www.ukwritingexperts.co.uk/]Best Essay Writing
Service UK[/url]