Failed to compile on MacOS
tidre opened this issue · comments
Hi @tidre , OSX is currently not supported as I do not own a device.
To maybe get it to work you'd need to modify /LuaD/dub.json
and add a new entry like this:
"preBuildCommands-osx": ["/bin/sh \"$PACKAGE_DIR/build_clibs.sh\" \"$PACKAGE_DIR\""],
.
/LuaD/build_clibs.sh
will most likely also be adjusted to support OSX.
The same would need to be done for https://github.com/zhad3/libpng-apng.
I try execute command
dub build --force
in project folder libpng-apng, but not locate dub.json.
I used the ./configure and make commands after the dub build didn't work.
I identified that this architecture x86_64 problem is common when compiling with gcc, and that g++ is used on macos, is there any way to have this change in project execution?
Hi @tidre, I cannot reproduce this issue regarding dub.json missing. Make sure you are in the right folder. If you are then perhaps this is a bug with dub
(https://github.com/dlang/dub).
Is the docker image no option for you? https://hub.docker.com/r/zhade/zrenderer (https://github.com/zhad3/zrenderer#docker). You can also make changes to the code and build the docker image on your system.