Closed joyel24 closed 6 months ago
Well, I finally build it, both re3 and reVC.
This is because macOS building instructions are faulty...
We need to add --os=macosx
to premake command, for me it worked like this:
premake5 --os=macosx --with-librw gmake2
cd build
make config=debug_macosx-amd64-librw_gl3_glfw-oal
OS : Intel macOS 12.7
Describe the bug Prebuild re3 works perfectly but reVC is not working. https://github.com/halpz/re3/issues/23 I wanted to fix it but I can't build either re3 or reVC on macOS.
Error occurs when ld is trying to link librw (this file especially: ../vendor/librw/lib/macosx-amd64-librw_gl3_glfw-oal/Debug/librw.a) ld is telling me the lib was not built for x86_64:
unknown-unsupported file format (0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20)
I don't know but I suggest it can be due to premake5 & make that building librw for mac arm instead of intel... ?
I also tried to build librw separately but have issues like @halpz had about 'RWDEVICE' so I'm stuck. https://github.com/aap/librw/issues/58
Version latest miami branch