Giter VIP home page Giter VIP logo

Comments (3)

CharlotteFallices avatar CharlotteFallices commented on June 21, 2024

I checked the log ./dependencies/sentry-native/out/darwin/clang/ub/debug/CMakeFiles/CMakeError.log and got:

  1 Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
  2 Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c    c
  3 Build flags:
  4 Id flags:
  5 
  6 The output was:
  7 1
  8 ld: library not found for -lSystem
  9 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 10 
 11 
 12 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
 13 Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c    ++
 14 Build flags: -std=c++14
 15 Id flags:
 16 
 17 The output was:
 18 1
 19 ld: library not found for -lc++
 20 clang: error: linker command failed with exit code 1 (use -v to see invocation)

-lx This option tells the linker to search for libx.dylib or libx.a in the library search path. If string x is of the form y.o, then that file is searched for in the same places, but without prepending lib or appending .a or .dylib to the filename.
-Ldir Add dir to the list of directories in which to search for libraries. Directories specified with -L are searched in the order they appear on the command line and before the default search path. In Xcode4 and later, there can be a space between the -L and directory.

As for the manpage, -lSystem means a lib called libSystem and I found it in /Library/Developer/CommandLineTools/SDKs/MACOSX.sdk/usr/lib, so it should be:

ld -lSystem -L "/Library/Developer/CommandLineTools/SDKs/MACOSX.sdk/usr/lib"

But I don't know anything about cmake file so that I can't change how it work :(

from nanoem.

hkrn avatar hkrn commented on June 21, 2024

Did you run following command on top directory?

git submodule update --init --recursive

Because sentry-native requires recursive submodule checkout, building sentry-native may fail without recursive submodule checkout.

On the other hand, sentry-native is only needed for crash reports and can be disabled by setting the following environment variable. If this does not work, please try that.

export NANOEM_DISABLE_BUILD_SENTRY_NATIVE=1

from nanoem.

stale avatar stale commented on June 21, 2024

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

from nanoem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.