=======================
Install a crossing toolchain
=======================
- Download openmoko cross-compiler instead of that from FriendlyArm to avoid 'Segmentation fault'.
- Extract the package to root
- Export path of toolchains, run also add following line in /root/.bashrc
Cross-compile mesa library (openGL in Linux)
==================================
- Download and unpack mesa libraries. See the tutorial here (http://www.mesa3d.org/)
- You need to use arm-gcc instead of your host gcc to build the mesa library. Max just create a symbolic link refer to the arm-gcc, by
>cd ~/project/mesa/Mesa-7.5.1
>./configure --host=arm-linux --prefix=/usr/local/mesa
>make
>make install
- Then, you can find the library and include files at /usr/local/mesa.
Copy the demo to target board
=======================
My mini2440 is remotely loaded by nfs network on my host machine. The root directory of mini2440 is located at /disk1/nfs/root/ on my host machine. Just copy some demo executables (you can find at for examples Mesa-7.5.1/progs/xdemos) to /disk1/nfs/root/. And start the demos by minicom. See the tutorial.
Hey, thanks for this help !
ReplyDeleteBut what are the performance of OpenGl on the mini2440 ?
I am facing some graphic performance issues on the mini2440, and I was wondering if it will be better with openGl....
Thanks in advance for your help...
Hi,
ReplyDeleteCan you share your compiled mesa libraries? I am having trouble compiling mesa. I get the following error.
CC glai_dispatch.lo : No such file or directory.
Thanks,
Anvesh
This was very useful, thanks for posting all steps in such a good manner, couldn't find anything better on internet.
ReplyDelete