After moving to v1-gpl, can't compile


Getting the stb_image_write.h issue building rack itself.

g++ -std=c++11 -Wsuggest-override -Iinclude -Idep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/window.cpp.o src/window.cpp
src/window.cpp:23:10: fatal error: stb_image_write.h: No such file or directory
#include <stb_image_write.h>

(Noxy) #2

Sounds like the dependencies are not updated?

Have you tried a git submodule update --recursive --remote followed by a make dep and make?


Yes, tried that. Now trying a clean in dep first.


cleaning dep did it. tx!

(Noxy) #5


(Circadian Sound) #6

What command should be input into terminal to run the clean command mentioned above?

I’m also having some issues compiling Rack V1 stable branch. After running the make command I get this error:

src/random.cpp:14:1 error: thread-local storage is not supported for the current target

thread_local uin64_t xoroshiro128plus_state[2];

1 error generated.
make: *** [build/src/random.cpp.o] Error 1

I found the random.cpp file in the src folder and line 14 in the code matches the unsupported target.

Any suggestions to fix this? Thanks for taking the time to answer with possible solutions :slight_smile:

(Andrew Belt) #7

make clean; cd dep; make clean should do it.

Your error is unrelated and probably has to do with using an old compiler. What’s your compiler version?

(Circadian Sound) #8

Thank you, I’ll try what you mentioned above. How do I check the compiler version? Are you referring to the version of python installed or Xcode? If it’s Xcode, I’m running 7.2.1 on OS 10.10.5.

(Andrew Belt) #9

C/C++ compiler. clang --version

(Circadian Sound) #10

Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

(Andrew Belt) #11

Looks like Xcode 8+ is required to build Rack of Mac now.

(Circadian Sound) #12

Is this also true for building modules?

(Andrew Belt) #13

No, I think I’ve even built plugins on MacOS 10.7, but I haven’t in a while.
The difficulty with something as old as 10.7 is that Homebrew has dropped support, but with 10.10, you might still be fine.

(Circadian Sound) #14

Okay, so I guess unless I’m able to upgrade to 10.11, I can just cd to the plugin folder on the dev version of Rack 1 and git clone, etc etc in there.

(Andrew Belt) #15

You could download the Rack SDK and build with RACK_DIR=<Rack SDK dir> make. Rack v1 development blog

(Circadian Sound) #16

Okay, I guess I’ll have to wait until the SDK is available and learn which commands to use. Maybe it’s worth while to try and upgrade to 10.11.

Thanks Andrew.

(Andrew Belt) #17

The SDK is already available, just posted a link to it.

1 Like
(Circadian Sound) #18

Oh yes I see now, thank you!