Compiling x86-Qtopia

DuiNui
Hi,
A friend told me about the FriendlyARM board and I have been trying to
compile the stuff from this website.
Thought I'd start with x86-Qtopia, write some code, use the simulator, buy
a board, play, usual stuff.
I am new to Linux, but not to embedded programming, that has been my career
for nearly 30 years.
I followed the steps on the Equally Bad blog (thanks for that work by the
way, that made the initial steps sooooo much easier for a Linux beginner).

First problem I had was in camera.pro
videocaptureview.cpp threw an error on the line.
#include <linux/videodev.h>
the file is there but it couldn't find it, anyway I hacked the line to be:

#include
</opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/sys-root/usr/includ
e/linux/videodev.h>

now the file compiles, not an elegant solution, but I want to get this
thing built.

Next problem:
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib/libqtop
ia.so:
undefined reference to `uuid_generate'

While making minesweeper.
I found various references to this error that suggested adding -luuid to
the linker, which I did, but it still won't work.

I am using Ubuntu 11.10 by the way, though I can't see why either of these
errors would be OS related.

arm-qtopia won't build either, but one step at a time!

Anyone able to help me here please?
I am starting to pull what little hair I have left out :)

Cheers.

Dui.

DuiNui
So I find I didn't have x11R6 in the \usr directory (or anywhere for that
matter)
The make process didn't show an error, it just kinda stopped, which is
weird (to me)

I downloaded the latest version (x11R6.8.1), and of course that doesn't
compile.

../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type.

I'm guessing the latest version is too new.
Any pointers to which version I need would be very helpful.

Thanks in advance.

TheRegnirps
You are new to Linux and you decided to start by compiling a new system?
The Linux kernel and file system that ships on the boards is perfectly
serviceable and has demos of the I/O. Why not use the included too chain
and try some simple applications? Certainly jumping into the cubicly
complicated combination of Linux*embedded*(configure and build) by building
a new system is the most error prone approach.

DuiNui
Thanks for your reply.
I went this route because I read killfire's excellent blog and it mentioned
that by compiling x86qtopia you could run an emulator on the PC.
I haven't actually bought a board yet, I downloaded everything from this
site.
I wanted to check the dev tools out and the instructions in the blog made
it look simple, so I followed them.

There is another (long) thread about compiling this stuff and it seems like
many people have many different problems, but no one seems to have had the
problems I am having.
This is almost certainly due to lack of familiarization with the OS and the
toolchain.
There are probably other packages that I need to download and install
before everything works, but as a complete Linux beginner, I have no idea
what they are (the x11R6 package is a good example of that)

I'm not too concerned about compiling the kernel (though I find the number
and type of errors worrying), just want the emulator, I assumed (perhaps
wrongly) that x86qtopia needed to be compiled to run that.

DuiNui
I did assume wrongly...
I have ./run-hello working in the emulator.
3 hardcoded path "errors" in the script needed to be corrected, but at
least it works now and I can play.

Thanks for setting me off in the right (or at least different) direction.

xian ming wu
g++  -o minesweep .obj/release-shared/minefield.o
.obj/release-shared/minesweep.o .obj/release-shared/main.o
.obj/release-shared/moc_minefield.o .obj/release-shared/moc_minesweep.o  
-lqtopia2 -lqtopia -lqpe -L/root/yizhi/host/qtopia-free-2.2.0/qtopia/lib
-L/root/yizhi/host/qtopia-free-2.2.0/qt2/lib -lqte 
/root/yizhi/host/qtopia-free-2.2.0/qtopia/lib/libqtopia.so: undefined
reference to `uuid_generate'
collect2: ld &#36820;&#22238; 1
make[6]: *** [minesweep] &#38169;&#35823; 1
make[6]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia/src/games/minesweep'
make[5]: *** [all] &#38169;&#35823; 2
make[5]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia/src/games/minesweep'
make[4]: *** [sub-games-minesweep] &#38169;&#35823; 2
make[4]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia/src'
make[3]: *** [sub-src-components_pro] &#38169;&#35823; 2
make[3]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia/src'
make[2]: *** [install] &#38169;&#35823; 2
make[2]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia/src'
make[1]: *** [install] &#38169;&#35823; 2
make[1]:&#27491;&#22312;&#31163;&#24320;&#30446;&#24405;
`/root/yizhi/host/qtopia-free-2.2.0/qtopia'

elessar
after you install libv4l-dev
sudo ln -s /usr/include/libv4l1-videodev.h   /usr/include/linux/videodev.h