bgfx icon indicating copy to clipboard operation
bgfx copied to clipboard

build error on macos10.15

Open coffice12 opened this issue 4 years ago • 4 comments

make -C .build/projects/gmake-osx config=debug64 ==== Building bx (debug64) ==== ==== Building bin2c (debug64) ==== Linking bin2c Undefined symbols for architecture x86_64: "_NSLog", referenced from: bx::debugOutput(char const*) in libbxDebug.a(debug.o) "___CFStringMakeConstantString", referenced from: bx::debugOutput(char const*) in libbxDebug.a(debug.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [../../osx64_clang/bin/bin2cDebug] Error 1 make[1]: *** [bin2c] Error 2 make: *** [osx-debug64] Error 2

gcc -v

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.0 (clang-1100.0.33.5) Target: x86_64-apple-darwin19.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

coffice12 avatar Apr 02 '20 13:04 coffice12

bx lib error

coffice12 avatar Apr 02 '20 13:04 coffice12

Has the same problem. Add Foundation.framework to the frameworks list in order to solve this

oferrun avatar Jun 23 '20 08:06 oferrun

Also examples do not compile on mac osx. Screen Shot 2020-06-23 at 14 29 15 added a screenshot of the missing frameworks i had to add in order for them to compile

Cocoa, FoundationCore, Metal and QuartzCore frameworks are missing from projects

oferrun avatar Jun 23 '20 11:06 oferrun

Wow. When your ex boss helps you build bgfx :D Thanks @oferrun. Nemanja

nemanjajelisijevic avatar Dec 18 '23 11:12 nemanjajelisijevic