Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on macOS Catalina #352

Open
rober1106 opened this issue May 29, 2024 · 2 comments
Open

Cannot compile on macOS Catalina #352

rober1106 opened this issue May 29, 2024 · 2 comments

Comments

@rober1106
Copy link

rober1106 commented May 29, 2024

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
Copy link
Author

rober1106 commented May 31, 2024 via email

@shinra-electric
Copy link

shinra-electric commented May 31, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants