473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cross compiling PHP

Dheeraj Joshi
1,123 Expert 1GB
Hi Guys...

I want to cross compile the PHP source to a target machine...

Does anybody knows what are the steps to do that?

Regards
Dheeraj Joshi
Aug 27 '09 #1
8 4787
dlite922
1,584 Expert 1GB
PHP is a scripting language, not a real programming language (in a traditional sense) thus

No compiling is needed. PHP file will run wherever PHP is installed.



Dan

PS: if you want PHP as Windows 32 Executable, Google around, it's not too difficult.
Aug 27 '09 #2
Dheeraj Joshi
1,123 Expert 1GB
I want to place my PHP pages in an embedded board...

So to render pages i need PHP run time environment.. So i need to cross compile the PHP source(installable)..

Regards
Dheeraj Joshi
Aug 27 '09 #3
dlite922
1,584 Expert 1GB
I'm stupid, I don't know what you mean by:

PHP pages in an embedded board

Bambalam?
http://www.bambalam.se/bamcompile/

Tut:
http://forums.tizag.com/showthread.php?t=748

If that's not it, I give up. I'm sorry, I tried.


Dan
Aug 27 '09 #4
Markus
6,050 Expert 4TB
He probably means some embedded system.

Anyway, I've been unable to find anything on cross-compiling PHP. Anyway, I'm pretty sure cross-compiling is left up to the compiler, not the application you're compiling. I could be completely wrong, though; I've never done cross-compilation.

What is the host (OS running the compiler)?

Mark.
Aug 27 '09 #5
Dheeraj Joshi
1,123 Expert 1GB
OS is Wind river...

I cant directly compile the PHP in the target machine... I want to cross compile the source(PHP source--> installable) in my desktop and push it to Embedded board so that it can serve the pages... Does PHP binaries available for wind river?


I need some inputs...

Regards,
Dheeraj Joshi
Aug 28 '09 #6
Dheeraj Joshi
1,123 Expert 1GB
Yeah Mark you are right..

Its an embedded system...

Regards
Dheeraj Joshi
Aug 28 '09 #7
I am facing same problem, i am building it for mips processor. i had configure using
Expand|Select|Wrap|Line Numbers
  1. ./configure --host=mips-linux
and then edited the makefile and replace gcc with crosscomplier gcc but it gave me compilation error
Expand|Select|Wrap|Line Numbers
  1. cc1: error: unrecognized command line option "-fvisibility=hidden"
did anyone tried compiling php for cross platform
Apr 9 '10 #8
Dheeraj Joshi
1,123 Expert 1GB
@achalsaraiya
I tried and i was not successful :(

Regards
Dheeraj Joshi
Apr 16 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeremy Schoenhaar | last post by:
Only a question. I use Linux, and wont let Windows anywere near my harddrive. Is it possible to compile a win32 binary from linux??? Jeremy
0
by: CptDondo | last post by:
I hope someone can help me out. I am trying to cross-compile xcache <http://trac.lighttpd.net/xcache/> and I'm not having much luck. The problem is that xcache depends on phpize to build the...
1
by: Han-Wen Nienhuys | last post by:
Hello, I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The...
3
by: Randy Yates | last post by:
Hi Folks, I have a cross-development problem in which I'm using the x86_64 version of Fedora Core 6 as a development system but want to build executables that are 32-bit. I've got a mix of C...
0
by: winkatl1213 | last post by:
I was wondering if anyone could help me with cross-compiling Python 2.5.1 to a MIPS target. The approach I'm using is based off the suggestion in the README file that comes with the python...
1
by: ac.c.2k7 | last post by:
Hi All, While doing the cross compilation of pkg_config for directFB for MIPS target from i86 platform, i am getting the following error. "checking for extra flags to get ANSI library...
1
by: Otacon22 | last post by:
Hi all, I want to create a robot with a router board based on processor atheros 2.6, called "fonera". I have installed a version of linux, Openwrt and python and i want to use it for some...
3
by: Squat'n Dive | last post by:
Does anyone have an idea why -fno-strict-aliasing is turned off when cross compiling? in configure generated for 2.4.4: case $GCC in yes) # Python violates C99 rules, by casting between...
1
by: NeophyteDK | last post by:
hello Im trying to cross compile php for powerpc on Win XP with MinGW. I have succesfully cc'ed Lighttpd, with the same toochain. i use the command line: CC=powerpc-linux-gcc AR=powerpc-linux-ar...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.