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

MacOs, m2, failed to compile build.sh (linker error) #115

Open
arthurhgoldblatt opened this issue Nov 20, 2024 · 2 comments
Open

MacOs, m2, failed to compile build.sh (linker error) #115

arthurhgoldblatt opened this issue Nov 20, 2024 · 2 comments

Comments

@arthurhgoldblatt
Copy link

./setup.bash has been complied successfully.
But, when I compiled ./build.sh, it reported

[ 98%] Linking CXX executable ../output/bin/DroneShell
Undefined symbols for architecture arm64:
  "std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
      std::exception_ptr std::make_exception_ptr[abi:ne190103]<std::__1::future_error>(std::__1::future_error) in libAirLib.a[2](RpcLibClientBase.cpp.o)
  "___cxa_init_primary_exception", referenced from:
      std::exception_ptr std::make_exception_ptr[abi:ne190103]<std::__1::future_error>(std::__1::future_error) in libAirLib.a[2](RpcLibClientBase.cpp.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [output/bin/DroneShell] Error 1
make[1]: *** [DroneShell/CMakeFiles/DroneShell.dir/all] Error 2
[ 98%] Built target DroneServer
16 warnings generated.
[100%] Linking CXX executable ../output/bin/AirLibUnitTests
[100%] Built target AirLibUnitTests
make: *** [all] Error 2
(base) agoldblatt@jbirtman-laptop Colosseum % 
@coyotespike
Copy link

I am also seeing this. Not sure if it matters or how to avoid.

@coyotespike
Copy link

After struggling for 8 hours with various changes, I finally got it to build on the main branch, on M1 Sonoma.

However, a much easier way is to follow this video: https://www.youtube.com/watch?v=hXYWLF3QsNk

Note, importantly:

  • The hash he is on - in March of 2023. Evidently maintainer updates have broken it since then.
  • The UE version he is on, later versions did not work for me
  • My XCode build failed on Rosetta (the way he is showing) and succeeded on non-Rosetta.

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