Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working on OS X El Capitan #12

Open
neodev2 opened this issue Jun 1, 2017 · 5 comments
Open

not working on OS X El Capitan #12

neodev2 opened this issue Jun 1, 2017 · 5 comments

Comments

@neodev2
Copy link

neodev2 commented Jun 1, 2017

I tried to compile with terminal and Xcode but it always fails in all the ways I tried

@neodev2 neodev2 changed the title cmake not working on OS X cmake was not working on OS X [SOLVED] Jun 1, 2017
@neodev2 neodev2 changed the title cmake was not working on OS X [SOLVED] not working on OS X El Capitan Jun 2, 2017
@ghost
Copy link

ghost commented Jun 2, 2017

@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.

@neodev2
Copy link
Author

neodev2 commented Jun 6, 2017

@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

@ghost
Copy link

ghost commented Jun 6, 2017

@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.

@neodev2
Copy link
Author

neodev2 commented Jun 7, 2017

@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

@neodev2
Copy link
Author

neodev2 commented Jun 7, 2017

Same error on macOS Sierra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant