Manta Interactive Ray Tracer Development Mailing List

Text archives Help


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


Chronological Thread 
  • From: Abe Stephens < >
  • To:
  • Subject: [Manta] Re: Re: OSX build fails due to include path
  • Date: Tue, 9 Sep 2008 15:26:00 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=TjK2WNUt+DDNOeC9r7l4GqmD+xeXi8xJ0erd0wqlkyQXic7WGYyagNcWuz9tPRNaGZ rrCzePPA9QHiWXiUp+YXFpCs8OejolbxxrS8vW3/v2Mpr9PZkYKj7j8dA34ua5+LjJjY M99eOofD4lD8l/mqDtz/jiHG86Z4mGI5x6oLk=

This problem was reported on the mailing list earlier in the summer. I believe the user partially installed the OSX development tools from a web download, instead of installing from the original media, then reinstalled from several different sources causing some type of configuration problem.


Many people around here use Manta on OSX on a daily basis so we're pretty sure it builds ;-)

Abe

On Sep 9, 2008, at 3:19 PM, J. Davison de St. Germain wrote:

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         
 
 " style="color: blue; text-decoration: underline; ">
     (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