Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: OSX build fails due to include path


Chronological Thread 
  • From: "J. Davison de St. Germain" < >
  • To:
  • Subject: [Manta] Re: OSX build fails due to include path
  • Date: Tue, 09 Sep 2008 15:19:21 -0600

Your compiler 'must' know where its own include (basic/default) files are.  If the compiler can't find 'string', then there is an error in the way it was configured/installed. 

What happens when you try compiling a simple program?

#include <string>
int
main()
{
  return 0;
}

g++ test.cc

Also, what does "g++ --version" display?

    - Davison

Bo Huang wrote:
" type="cite">

On OS X, I successfully used Cmake to generate command line make file. When I build the project via ‘make’, the build system doesn’t know where is #include <string> in About.h

 

This is illustrated by this error:

In file included from /Users/Bo/SVN/Manta/build/src/About.cc:29:

/Users/Bo/SVN/Manta/Core/Util/About.h:33:18: error: string: No such file or directory

 

I have located the header ‘string’ to be in /usr/include/c++/4.0.0 on my machine. How and where can I insert this include path into the CMake build process?

 

I have set those flags (all used to be blank) in the CMake gui to be /usr/include/c++/4.0.0:

COMPILER_LIBRARY_PATH

THIRD_PARTY_INCLUDE_PATH

THIRD_PARTY_LIBRARY_PATH

 

But it doesn’t help. My command line compilation is still:

 

/usr/bin/c++ isysroot /Developer/SDKs/MacOSX10.4u.sdk –Wall –Wno-strict-aliasing –fPIC –march=Nocona –mtune=Nocona –msse –msse2 –msse3 –mfpmath=sse -03 –DNDEBUG –g3 –fgcse-sm –funroll-loops –fstrict-aliasing –fsched-interblock –freorder-blocks –I/Users/Bo/SVN/MantaRay_remote –I/Users/Bo/SVN/MantaRay_remote/build/include –I/usr/X11R6/include –fPIC –o CMakeFiles/About.dir/src/About.o –c /Users/Bo/SVN/Manta/build/src/About.cc

 

Please let me know if I should ask OSX groups or CMake groups.

 

Thanks


-- 
-----------------------------------------------------------------------
- J. Davison de St. Germain         
 
 ">
     (801) 581-4078 -
- Chief Software Engineer           http://www.cs.utah.edu/~dav       -
- SCI Institute, SE C-SAFE          University of Utah                -
-----------------------------------------------------------------------



Archive powered by MHonArc 2.6.16.

Top of page