1. Phix: Building Linux Executable File
- Posted by euphoric (admin) May 02, 2018
- 1582 views
PL, can I build a Linux executable file of Phix from Windows? I want to build it on my Windows box and move it to a web host.
Are there docs for this?
2. Re: Phix: Building Linux Executable File
- Posted by petelomax May 02, 2018
- 1623 views
PL, can I build a Linux executable file of Phix from Windows? I want to build it on my Windows box and move it to a web host.
Are there docs for this?
As for docs, you could lookup format in the help file, but it is a bit long-winded. Much simpler to digest, a known-to-be-working example:
I do this in the build script (on windows):
format ELF32
include p.exw
and
p -c -norun p32.exu
and
mv p32 phix/p
cd phix
chmod 777 p
./p -test
Similar for p64.exu, should you need that
3. Re: Phix: Building Linux Executable File
- Posted by euphoric (admin) May 02, 2018
- 1565 views
p -c -norun p32.exu
ha! Thanks!
The -norun also answers another question I had.
4. Re: Phix: Building Linux Executable File
- Posted by euphoric (admin) May 02, 2018
- 1527 views
Got it working! Awesome!
Thanks, Pete!
*************
Oops. That's not what I meant. Sorry!
What I mean is, take an app I've written and build the Linux executable for it on my Windows PC.
Probably the same thing, eh? Just replace p32.exu with my source file?
5. Re: Phix: Building Linux Executable File
- Posted by petelomax May 02, 2018
- 1517 views
Probably the same thing, eh? Just replace p32.exu with my source file?
Yes. If you have say myapp.exw working on windows, that you can test/build a windows executable from,
you can also create a myapp.exu stub that contains the format statement needed for cross-compilation.