[tuhopuu-devel] Fix for problem with compiling on Mac OS X 10.3(?)

Matt Ebb tuhopuu-devel@blender.org
Fri, 5 Dec 2003 20:19:32 +1100


Hi,

This mail started off as a request for help, but in the course of  
writing out this email I've since solved the problem I was having, so  
I'll mention it here anyway :)

I was having problems compiling tuhopuu2 on Mac OS X 10.3 for the first  
time. bf-blender compiles perfectly here, using the  
make/example_scripts/macos_nanmakefiles.sh script.

With tuhopuu2, I was getting the error:

------
matt:/Developer/tuhopuu/tuhopuu2 matt$ sudo  
make/example_scripts/macos_nanmakefiles.sh
NANBLENDERHOME : /Developer/tuhopuu/tuhopuu2
====> make all in intern/string
/Developer/tuhopuu/tuhopuu2/source/tools/guess/guessconfig: line 1:  
/Developer/tuhopuu/tuhopuu2/intern/string/source/tools/guess/ 
config.guess: No such file or directory
====> make all in intern/string/intern
c -DNDEBUG -FIX_NAN_WARN -I.. STR_String.cpp -o  
/Developer/tuhopuu/tuhopuu2/obj//intern/string/STR_String.o
make[2]: c: Command not found
make[2]: [/Developer/tuhopuu/tuhopuu2/obj//intern/string/STR_String.o]  
Error 127 (ignored)
------

Looking at the guessconfig file, there is a difference between the  
tuhopuu2 one, and the bf-blender one.

bf-blender:
------
# Be kind, temporarily ...
if [ -z "$SRCHOME" ]; then
     SRCHOME="$NANBLENDERHOME/source"
     export SRCHOME
fi

tuhopuu2:
------
# Be kind, temporarily ...
if [ -z "$SRCHOME" ]; then
	# ... or better yet, be smart!
     SRCHOME=`pwd`/source
     export SRCHOME
fi

It seems that the guessconfig was messing up creating the $SRCHOME  
variable - the build script would move into intern/string, then  
guessconfig would run, making $SRCHOME equal  
/Developer/tuhopuu/tuhopuu2/intern/string/source/  rather than  
/Developer/tuhopuu/tuhopuu2/source/. This would cause it to not find  
config.guess. When I manually set $SRCHOME as  
/Developer/tuhopuu/tuhopuu2/source with the command line, the compile  
started fine (and is building as I write this :)

I know basically nothing about makefiles or guessconfig or anything  
like that, so I didn't want to commit anything. I thought I'd mention  
it though, so someone who knows what they're doing can make an  
appropriate fix.

Cheers

Matt