Manta Interactive Ray Tracer Development Mailing List

Text archives Help


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


Chronological Thread 
  • From: Solomon Boulos < >
  • To:
  • Cc:
  • Subject: [Manta] Re: RE: Re: RE: Re: Re: OSX build fails due to include path
  • Date: Wed, 10 Sep 2008 11:10:31 -0700

Just committed the fix. Good catch. None of us use Tiger anymore, so my guess is that was the problem ;)

On Sep 10, 2008, at 11:05 AM, Bo Huang wrote:

I tried ccmake as well and after pressing c to configure at a new build-demo1 directory, the same erroneous spelling/dir appears.

I use cmake-2.6.1-Darwin-universal on OSX 10.4.9. It is obtained from cmake.org

The CMake mailing list thinks it’s a problem with my system environment vars. But these locations don’t have that erroneous spelling/dir.

Cat ~/.bash_profile
Export PATH=/usr/local/bin:$PATH

Echo $PATH
/usr/local/bin:bin:/sbin:/usr/bin:/usr/sbin

Cat ~/.MacOSX/environment.plist
No such file or directory


From: Abe Stephens 
[mailto:
Sent: Wednesday, September 10, 2008 1:40 PM
To: 

Cc: 
< >
Subject: [Manta] Re: RE: Re: Re: OSX build fails due to include path

Interesting, is this a graphical utility instead of the terminal based ccmake?

Where did you obtain Cmake? Most of us use MacPorts, so we might have a different version.

Abe

On Sep 10, 2008, at 11:10 AM, "Bo Huang" 
< >
 wrote:
Thank you. After some more looking, my headers not found problem is caused by a subtle incorrectly spelled path:


On OSX, while running CMake-GUI

CMAKE_OSX_SYSROOT is always /Develeper/SDKs/MacOSX10.4u.sdk

Notice the incorrect spelling ‘Develeper’ instead of Developer. Nor does this erroneous directory exist.

I correct the spelling but after pressing ‘Configure’, it switches back.

Moreover, this directory, misspelled or not, does not exist when I type ‘set’ or ‘env’ in a command line. I also uninstalled, restarted, and reinstalled Xcode.

Where in OSX or CMake can I correct this behavior?

Thanks


No response from the CMake or xCode mailing list yet.
From: Abe Stephens 
[mailto:
Sent: Tuesday, September 09, 2008 5:26 PM
To: 

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

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.

https://lists.sci.utah.edu/sympa/arc/manta/2008-06/msg00084.html

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:
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 -
-----------------------------------------------------------------------

n">University of Utah                -
-----------------------------------------------------------------------

ml>




Archive powered by MHonArc 2.6.16.

Top of page