Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm trying to build sh3-linux embedded system. I have to build apache & integrate php. But I got some stuck:
1. If I cross-compile apache & cross-compile php:
apache was successful & php fail
Reason: build php with apache must use "httpd" binary-file to implement shared library (libphp5.so), but the Linux 8086 PC can not execute this file, because this file was cross-compiled
2. If I compile apache (using PC gcc) & cross-compile php (using sh3-linux-gcc), both success but the shared-library file (libphp5.so) is a 8086 shared-library file, it can be executed by the embedded-Linux.
Reason: the "httpd" binary is a 8086 base-system file, it can be executed by the PC, but it also build the wrong .so file!
Anyone have an idea to solve this issue? I think there're some parameter when build. I have no acknownledgement about this.
Where do I find an instruction?
*Note that I've build successfully both on my Linux-PC