MILESTONE 1 RELEASED!!!

Re: MILESTONE 1 RELEASED!!!

Postby gbear605 » Tue Oct 22, 2013 1:40 am

Trying to compile for mac. I've gotten pretty far, but I'm getting this error now, after the make command gets entered
Code: Select all
Scanning dependencies of target Sigma
[  4%] Building CXX object CMakeFiles/Sigma.dir/src/AABBTree.cpp.o
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.cpp:1:
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.h:3:
/Users/garrison/Downloads/Sigma/src/IGLComponent.h:66:75: error: a space is
      required between consecutive right angle brackets (use '> >')
        typedef std::unordered_map<std::string, std::shared_ptr<GLSLShader>> Sha...
                                                                          ^~
                                                                          > >
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.cpp:1:
/Users/garrison/Downloads/Sigma/src/AABBTree.h:39:3: warning: 'override' keyword
      is a C++11 extension [-Wc++11-extensions]
                SET_COMPONENT_ID("AABBTree");
                ^
/Users/garrison/Downloads/Sigma/src/IComponent.h:6:44: note: expanded from macro
      'SET_COMPONENT_ID'
virtual const ComponentID getComponentID() override{return getStaticComp...
                                           ^
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.cpp:3:
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:32:9: warning:
      'override' keyword is a C++11 extension [-Wc++11-extensions]
        SET_COMPONENT_ID("GLMesh");
        ^
/Users/garrison/Downloads/Sigma/src/IComponent.h:6:44: note: expanded from macro
      'SET_COMPONENT_ID'
virtual const ComponentID getComponentID() override{return getStaticComp...
                                           ^
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.cpp:3:
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:95:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->verts.size())
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:121:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->faces.size())
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:127:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->faces.size()){
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:181:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->colors.size())
               ~ ^  ~~~~~
6 warnings and 1 error generated.
make[2]: *** [CMakeFiles/Sigma.dir/src/AABBTree.cpp.o] Error 1
make[1]: *** [CMakeFiles/Sigma.dir/all] Error 2
make: *** [all] Error 2
gbear605
 
Posts: 30
Joined: Mon Aug 12, 2013 8:03 pm
Location: United States of 'MURICA

Re: MILESTONE 1 RELEASED!!!

Postby thomas9459 » Tue Oct 22, 2013 1:53 am

gbear605 wrote:Trying to compile for mac. I've gotten pretty far, but I'm getting this error now, after the make command gets entered

It seems your compiler does not support c++11 (hence the errors on "override" and ">>"). What compiler and what version are you using?
thomas9459
 
Posts: 101
Joined: Thu Aug 15, 2013 6:18 pm

Re: MILESTONE 1 RELEASED!!!

Postby Pseudonym » Tue Oct 22, 2013 3:58 am

You should be using clang++, not GCC. And especially not the GCC that comes with OS X!
Pseudonym
 
Posts: 129
Joined: Tue Aug 13, 2013 3:54 am

Re: MILESTONE 1 RELEASED!!!

Postby gbear605 » Tue Oct 22, 2013 5:47 pm

I am using clang++. I am aware of the issues with the gcc that comes with osx.
gbear605
 
Posts: 30
Joined: Mon Aug 12, 2013 8:03 pm
Location: United States of 'MURICA

Re: MILESTONE 1 RELEASED!!!

Postby Pseudonym » Tue Oct 22, 2013 10:59 pm

Cool, just checking.

You may need to enable C++11 in the compiler and linker flags. This is what I used:

Code: Select all
if (CMAKE_HOST_APPLE)
    set(PLATFORM_CXX_FLAGS
        "-std=c++11 -stdlib=libc++ -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-float-equal"
        )
    set(PLATFORM_LINKER_FLAGS "-stdlib=libc++")
endif (CMAKE_HOST_APPLE)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKER_FLAGS}")


(I always turn off -Wno-float-equal because I know what I'm doing most of the time. YMMV)
Pseudonym
 
Posts: 129
Joined: Tue Aug 13, 2013 3:54 am

Re: MILESTONE 1 RELEASED!!!

Postby gbear605 » Wed Oct 23, 2013 12:32 am

Ok, I got that working. I'm getting this warning BTW:
Code: Select all
Scanning dependencies of target Sigma
In file included from /Users/garrison/Downloads/Sigma/src/AABBTree.cpp:3:
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:95:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->verts.size())
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:121:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->faces.size())
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:127:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->faces.size()){
               ~ ^  ~~~~~
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:162:3: warning: control
      may reach end of non-void function [-Wreturn-type]
                }
                ^
/Users/garrison/Downloads/Sigma/src/components/GLMesh.h:181:18: warning:
      comparison of 0 <= unsigned expression is always true
      [-Wtautological-compare]
            if(0 <= index && index < this->colors.size())
               ~ ^  ~~~~~
5 warnings generated.


I had to put the two btBullet files in a bullet folder. Before they were just in the include folder.

Now I'm getting this with linking:
Code: Select all
ld: warning: directory not found for option '-L/Users/garrison/Downloads/Sigma/lib/x86'
ld: warning: ignoring file /usr/local/lib/libSOIL.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/lib/libSOIL.a
Undefined symbols for architecture x86_64:
  "_SOIL_last_result", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_cubemap", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_single_cubemap", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_texture", referenced from:
      Sigma::GLMesh::ParseMTL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLMesh.cpp.o
      Sigma::GLSprite::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in GLSprite.cpp.o
  "btCollisionObject::setActivationState(int) const", referenced from:
      Sigma::BulletMover::ApplyForces(double) in BulletMover.cpp.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]: *** [bin/Sigma] Error 1
make[1]: *** [CMakeFiles/Sigma.dir/all] Error 2
make: *** [all] Error 2
gbear605
 
Posts: 30
Joined: Mon Aug 12, 2013 8:03 pm
Location: United States of 'MURICA

Re: MILESTONE 1 RELEASED!!!

Postby catageek » Fri Oct 25, 2013 10:06 pm

gbear605 wrote:Now I'm getting this with linking:
Code: Select all
ld: warning: directory not found for option '-L/Users/garrison/Downloads/Sigma/lib/x86'
ld: warning: ignoring file /usr/local/lib/libSOIL.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/lib/libSOIL.a
Undefined symbols for architecture x86_64:
  "_SOIL_last_result", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_cubemap", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_single_cubemap", referenced from:
      Sigma::GLCubeSphere::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLCubeSphere.cpp.o
  "_SOIL_load_OGL_texture", referenced from:
      Sigma::GLMesh::ParseMTL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in GLMesh.cpp.o
      Sigma::GLSprite::LoadTexture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in GLSprite.cpp.o
  "btCollisionObject::setActivationState(int) const", referenced from:
      Sigma::BulletMover::ApplyForces(double) in BulletMover.cpp.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]: *** [bin/Sigma] Error 1
make[1]: *** [CMakeFiles/Sigma.dir/all] Error 2
make: *** [all] Error 2


You must update to Bullet v2.81
catageek
 
Posts: 39
Joined: Tue Oct 15, 2013 2:23 pm

Re: MILESTONE 1 RELEASED!!!

Postby catageek » Fri Oct 25, 2013 10:09 pm

I found a solution for the error

Code: Select all
/usr/local/include/bullet/BulletCollision/CollisionDispatch/btCollisionWorld.h:74:34: fatal error: LinearMath/btVector3.h: No such file or directory


You can fix it manually, or wait for the PR to be pulled in the repo and synchronize.

Don't forget to clean the project directory of all the Makefiles and regenerate them before building.
catageek
 
Posts: 39
Joined: Tue Oct 15, 2013 2:23 pm

Re: MILESTONE 1 RELEASED!!!

Postby Loffa » Fri Oct 25, 2013 10:28 pm

catageek wrote:I found a solution for the error

Code: Select all
/usr/local/include/bullet/BulletCollision/CollisionDispatch/btCollisionWorld.h:74:34: fatal error: LinearMath/btVector3.h: No such file or directory


You can fix it manually, or wait for the PR to be pulled in the repo and synchronize.

Don't forget to clean the project directory of all the Makefiles and regenerate them before building.


Thanks a lot! I have been struggling with this error the whole week. And I just wanted to try Milestone 1...
:D :D
Loffa
 
Posts: 5
Joined: Wed Aug 14, 2013 9:47 pm
Location: Stockholm, Sweden

Re: MILESTONE 1 RELEASED!!!

Postby supermario357 » Sun Oct 27, 2013 7:11 pm

danix111 wrote:
IvanMolnar wrote:Thanks but I was reffering to "what I need to install in order to run this" ? :) Like some Microsoft Redistributable package or something? Because on XP machine it keep saying that "is not valid Win32 application".

That binary is 64-bit I think.

*Sigh* I dont have Win64, I have Win32 on Windows XP.... :cry:
supermario357
 
Posts: 10
Joined: Sat Sep 07, 2013 11:40 pm

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 1 guest

cron