From: Nicholas C. <nc...@cs...> - 2007-07-27 01:21:34
|
I've been able to cross compile the Qtopia core libraries for gumstix. I don't know if my way is the correct way to do it, but it compiles and I can run the sample clock program on the gumstix to output on the framebuffer. to save on typing let's call the full path to the staging_dir (i.e. <path to buildroot>/build_arm_nofpu/staging_dir) "<staging_dir>" 1. Make sure you enable the C++ compiler for gumstix in the buildroot configurations.(http://docwiki.gumstix.org/Sample_code/Cpp/Hello_World). If you also want to use shared libraries with qtopia also check the ones you want. 2. Set the path so that <staging_dir>/bin is in the path. to test: if you type arm-linux-g++ without any arguments, it should output: "arm-linux-g++: no input files" 3. Run configure. The following options are necessary (I think). The remaining options are up to you (my comments are in parens) -prefix /opt/Qtopia/gumstix (where qtopia will be installed) -embedded arm (not sure if this is actually necessary) -xplatform qws/linux-arm-g++ (use the arm-linux-g++ compiler) -qt-gfx-linuxfb (i'm assuming you plan to use an lcd) -I <staging_dir>/include -I <staging_dir>/usr/include (where to find include files) -L <staging_dir>/lib -L <staging_dir>/usr/lib -make libs -nomake demos -nomake examples -nomake tools (The reason I don't make demos/examples is because the script tries to use the arm version of the qt tools to build the demos. Since (I assume) you will be cross compiling, you do not need arm versions of the qtopia tools. You need to build a set for the cross compilation machine however) 4. Install the tools using the following: make PATH=$PATH install (so that the install script can find tools like arm-linux-strip) Once everything finishes, you should have the qtopia libraries in the directory you picked. If you want to include it into your root filesystem you will need to copy the libraries manually into the appropriate location in the buildroot/build_arm_nofpu/root directory. You will also need to set up the LD_LIBRARY_PATH, or edit the /etc/ld.so.conf on the gumstix to reflect the location you put the libraries so qtopia applications can run. Nick |