bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
14.85k stars 1.93k forks source link

Build issue for target ios-simulator #2399

Open lvalencia opened 3 years ago

lvalencia commented 3 years ago

After cloning down the following repo's

git clone git://github.com/bkaradzic/bx.git
git clone git://github.com/bkaradzic/bimg.git
git clone git://github.com/bkaradzic/bgfx.git

the following action

cd bgfix
make ios-simulator

results in this an error

==== Building bimg_decode (debug) ====
Creating ../../ios-simulator/obj/Debug/bimg_decode
Creating ../../ios-simulator/obj/Debug/bimg_decode/bimg/src
image_decode.cpp
In file included from ../../../../bimg/src/image_decode.cpp:70:
../../../../bimg/3rdparty/stb/stb_image.h:931:1: fatal error: thread-local storage is not supported for the current target
STBI_THREAD_LOCAL
^
../../../../bimg/3rdparty/stb/stb_image.h:592:39: note: expanded from macro 'STBI_THREAD_LOCAL'
      #define STBI_THREAD_LOCAL       thread_local
                                      ^
1 error generated.
make[2]: *** [../../ios-simulator/obj/Debug/bimg_decode/bimg/src/image_decode.o] Error 1
make[1]: *** [bimg_decode] Error 2
make: *** [ios-simulator-debug] Error 2

Please advise.

sweep3r commented 3 years ago

Yeah I got this too.. but iOS-simulator64-release is OK.

 make ios-simulator-release
/Applications/Xcode.app/Contents/Developer/usr/bin/make -R -C .build/projects/gmake-ios-simulator config=release
==== Building bx (release) ====
==== Building bgfx (release) ====
==== Building bimg (release) ====
==== Building bimg_decode (release) ====
image_decode.cpp
In file included from ../../../../bimg/src/image_decode.cpp:70:
../../../../bimg/3rdparty/stb/stb_image.h:931:1: fatal error: thread-local storage is not supported for the current target
STBI_THREAD_LOCAL
^