This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Install apache2 via cross compile on am3358

Other Parts Discussed in Thread: AM3358

Hello, (sorry for my bad english)

im new with the am335x Starter Kit. I want to install apache2 with the help of cross compiling on my am3358 board. I dont know how i have to start. I downloaded apache 2.4 and now i have to run the ./configur script. Which operations should i do? I am using the "ti-sdk-am335x-evm-07..." What is needed to cross compile on my board? And how can i do it.

  • my host machine is a Ubuntu 13.10
  • Hi Arthur,

    I will forward this to the SW team.

  • Hi Arthur,

    You need to include the Apache server recipe within Arago filesystem & rebuild your Arago image.
    I did a google search and found some Apache bb recipes, that you could use:
    http://layers.openembedded.org/layerindex/recipe/5976/
    http://layers.openembedded.org/layerindex/branch/master/layer/meta-webserver/

    A guide on how to modify your Arago filesystem build, including the above .bb files (apache recipes) can be found here: http://arago-project.org/wiki/index.php/Main_Page


    NOTE: you may need to change some variables in the apache bb files, in order to match the style of SDK7 Arago build system.

    Hope this helps.

    Best Regards,
    Yordan

  • Hi Yordan, (sorry again for my english)

    i unziped the tar ball from apache 2.4. Then i added the apr, and apr-utils, which are needed for compiling at the end. I compiled and installed the apr and the apr utils with the host gcc and at least with the gcc of the ti-sdk. Everything worked fine. Then i changed into the apache directory, to compile him and i changed now to the "environment-setup", which sets all paths for the gcc and g++ and tried to configure them. This worked as well, but when i wanna buit it with "make" he want generate some stuff with the gcc of my host machine. The problem is, that apache doesnt know, when he has to use the cross compiler and when the gcc of the host machine.
    How can i say apache, when he has to use the compiler X, or which options have i else?
    There are the configure options of apache, which i used.

    ./configure --prefix=/home/testuser/httpd/ --host=arm-linux-gnueabihf --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util


    Errors of make:

    ./gen_test_char > test_char.h
    /bin/bash: ./gen_test_char: cant execute the file
    make[2]: *** [test_char.h] Error 126

    Well, the problem is like i said. He want to generate the test_char.h with gen_test_char, but he can only do this with the gcc of my host machine. DOnt know how i have to tell him when he has to use the gcc of the host.
  • Hi Arthur,

    For this fail (complain about gen_test_char), when cross compiling Apache, check the hacks described here: https://groups.google.com/forum/#!topic/dealextreme-nas-/lmW1PdGEWA0

    Also this guide may be of some help: http://myurc.org/tools/UCHe/tutorial/HowToInstallApacheServerForUCHe.php#crossCompile

    Just FYI, my initial suggestion was not to cross compile just the apache, but the whole File System Image with the Apache recipe included in it, but if you'd like to cross compile only Apache follow the guides above.

    Hope this helps.

    Best Regards,

    Yordan