1. Phix: Building Linux Executable File

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? grin

new topic     » topic index » view message » categorize

2. Re: Phix: Building Linux Executable File

euphoric said...

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? grin

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):

p32.exu said...

format ELF32
include p.exw

and

phixzip.bat said...

p -c -norun p32.exu

and

http://phix.x10.mx/download.php said...

mv p32 phix/p
cd phix
chmod 777 p
./p -test

Similar for p64.exu, should you need that

new topic     » goto parent     » topic index » view message » categorize

3. Re: Phix: Building Linux Executable File

petelomax said...

p -c -norun p32.exu

ha! Thanks!

The -norun also answers another question I had. grin

new topic     » goto parent     » topic index » view message » categorize

4. Re: Phix: Building Linux Executable File

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: Phix: Building Linux Executable File

euphoric said...

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu