pjasicek / OpenClaw

Reimplementation of Captain Claw (1997) platformer
GNU General Public License v3.0
338 stars 39 forks source link

macOS build fail at 100% #169

Closed naymapl closed 1 year ago

naymapl commented 2 years ago

Hello. I try to build on macOS apple silicon arm64. Always got error at 100%:

I have instaled sdl2, SDL2_ttf, SDL2_image, timidity, freetds. Have Xcode installed.

[100%] Linking CXX executable ../Build_Release/openclaw
ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../Build_Release/openclaw] Error 1
make[1]: *** [CMakeFiles/openclaw.dir/all] Error 2
make: *** [all] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea what is wrong ??

pjasicek commented 2 years ago

Hi,

I am not really familiar with macOS build/dev environment, but

ld: library not found for -lSDL2

means that the linker cannot find SDL2 library - check if you really have it installed. e.g. find /usr/lib -name 'libSDL2*'

as for the bottom output, I guess it's output from XCode IDE ? I really can't help there, but it looks like it is not configured properly maybe ?