nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.21k stars 191 forks source link

Cannot compile on macOS Catalina #352

Open rober1106 opened 4 months ago

rober1106 commented 4 months ago

Hello,

I am trying to build the source-engine on Intel MacBook but it is failing and I have no idea what can be wrong. Could you please advise?

[ 780/2206] Compiling filesystem/QueuedLoader.cpp
[ 781/2206] Linking build/engine/libengine.dylib
ld: warning: directory not found for option '-L/Users/macbookair/source-engine/lib/darwin/x86_64/'
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _V_UCS2ToUnicode(unsigned short const*, wchar_t*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UnicodeToUCS2(wchar_t const*, int, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UCS2ToUTF8(unsigned short const*, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UTF8ToUCS2(char const*, int, unsigned short*, int) in libtier1.a(strtools.cpp.32.o)
  "_iconv_close", referenced from:
      _V_UCS2ToUnicode(unsigned short const*, wchar_t*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UnicodeToUCS2(wchar_t const*, int, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UCS2ToUTF8(unsigned short const*, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UTF8ToUCS2(char const*, int, unsigned short*, int) in libtier1.a(strtools.cpp.32.o)
  "_iconv_open", referenced from:
      _V_UCS2ToUnicode(unsigned short const*, wchar_t*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UnicodeToUCS2(wchar_t const*, int, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UCS2ToUTF8(unsigned short const*, char*, int) in libtier1.a(strtools.cpp.32.o)
      _V_UTF8ToUCS2(char const*, int, unsigned short*, int) in libtier1.a(strtools.cpp.32.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Waf: Leaving directory `/Users/macbookair/source-engine/build'
Build failed
 -> task in 'engine' failed with exit status 1 (run with -v to display more information)
rober1106 commented 4 months ago

Thanks, but starting with macOS Catalina, 32-bit apps are no longer compatible with macOS.Dňa 31. 5. 2024 o 11:23 užívateľ Maksymilian Wilczyński @.***> napísal: try 32 bits.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

shinra-electric commented 4 months ago

Try the build script mentioned here.

I've been told that compiling on Intel is possible, but I don't know about Catalina specifically.

Edit: Actually that script is an older version that aborts on x64. Comment out that architecture check on lines 35 to 38and run again. If it builds ok and fails to launch, also comment out line 384. (It was causing an issue for some people).