Hi!

I'm trying to build Neko VM 1.1 and the current CVS
revision in Mac OS X.4.3, but I get:

I uncommented the two lines under the "For OSX"
comment in the Makefile. And I tried compiling with
GCC versions 3.3 and 4.0.

I'd love to get this thing working, because I'm very
eager to try to compile haXe into Neko.


HK

Hi,

There should not be so many problems with compiling Neko on OSX. Actually, someone already send me a patch for this, but there was some changes in the C sources that I'm not sure if they are not other way of doing it.

- first you need to build a shared library (bin/libneko.dylib). the "gcc -shared" parameter is not supported on OSX. I read somewhere that you need to use "gcc -dynamiclib". One other option is to use "libtool -dynamic" at link time, although I would prefer to know how to do with gcc

- it seems that OSX makes a difference between "shared" (.dylib) and "dynamicly loadable" (.bundle/.so) libraries. Other .ndll libraries need to be compiled as "dynamicly loadable", only libneko.dylib is really "shared" in the sense of OSX.

- there was another error at linking time that was due to some C globals not being initialized. I would like to avoid initializing all the globals and I think this should be possible with some compilation flag.

Anyway thanks for your help, with only a few Makefile changes it should be possible to compile Neko on OSX.

Best,
Nicolas


---
Neko : One VM to run them all

Reply via email to