zhad3 / zrenderer

A renderer for Ragnarok Online sprites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to compile on MacOS

tidre opened this issue · comments

Hi,
I'm trying to compile zrenderer on MacOS but I'm having trouble trying to do it.
The installation of libpng, lua (5.1) and ldc2 has been performed but the problem still persists.

Captura de Tela 2023-01-13 às 07 37 51

Captura de Tela 2023-01-13 às 07 38 28

commented

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.
Captura de Tela 2023-01-27 às 06 40 25

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?

commented

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.