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

Chris Want tuhopuu-devel@blender.org
Fri, 05 Dec 2003 08:10:14 -0700


Hi Matt,

That weird hack to guessconfig was created to make the
fast 'make clean' work correctly (the bf-blender make clean
was too slow for me). I'll look at it again and see if I can
find a decent solution. In short: it seems for some reason
the $SRCHOME variable isn't getting passed to the
guessconfig script sometimes.

Chris

Matt Ebb wrote:
> 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
> 
> _______________________________________________
> tuhopuu-devel mailing list
> tuhopuu-devel@blender.org
> http://www.blender.org/mailman/listinfo/tuhopuu-devel