not working on OS X El Capitan
I tried to compile with terminal and Xcode but it always fails in all the ways I tried
@neodev2 could you link a copy of the log that shows when building the library please? It would help solve the problem much quicker. Thanks.
@xprogram when I run make it fails with these errors:
john:build john$ make
Scanning dependencies of target three
[ 2%] Building CXX object CMakeFiles/three.dir/three/impl/src.cpp.o
In file included from /Users/john/Desktop/three_cpp/three/impl/src.cpp:2:
In file included from /Users/john/Desktop/three_cpp/./three/impl/src.hpp:26:
In file included from /Users/john/Desktop/three_cpp/./three/renderers/impl/gl_renderer.ipp:36:
/Users/john/Desktop/three_cpp/./three/utils/hash.hpp:30:3: fatal error:
'register' storage class specifier is deprecated and incompatible with
C++1z [-Wdeprecated-register]
register ub4 a,b,c,len;
^~~~~~~~~
clang: fatal error: unable to execute command: Segmentation fault: 11
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
make[2]: *** [CMakeFiles/three.dir/three/impl/src.cpp.o] Error 254
make[1]: *** [CMakeFiles/three.dir/all] Error 2
make: *** [all] Error 2
@neodev2 I think you're using the master branch, and that branch hasn't been updated / tested in a while (compared to the other branches). I built the dev_r65_cleanup branch with no problem, and I suggest you try that one. For that error you got, I presume it just arises from the fact that the register keyword is deprecated in C++17.
@xprogram I tried dev_r65_cleanup:
Scanning dependencies of target shader2
[ 56%] Building CXX object examples/CMakeFiles/shader2.dir/shader2.cpp.o
/Users/john/Desktop/three_cpp/examples/shader2.cpp:144:53: fatal error: too many arguments to function call, expected at most 6, have 7
std::vector<Material::Ptr>( 1, material ) ),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/john/Desktop/three_cpp/./three/extras/geometries/box_geometry.h:15:3: note: 'create' declared here
static Ptr create( float width,
^
1 error generated.
make[2]: *** [examples/CMakeFiles/shader2.dir/shader2.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/shader2.dir/all] Error 2
make: *** [all] Error 2
Same error on macOS Sierra