Page 1 of 1

*fixed* Problem compiling in Cygwin (free-windows)

Posted: Fri Jul 18, 2003 7:16 am
by Mel_Q
gcc stops dead in its tracks right around buttons.c on the latest
checkout of bf-blender. Both Tuhopuu (current) and a week old
copy of bf-blender 2.27 compile- it's just the latest bf-blender driving
me nuts. Since I can still compile the 'older' blender, I suspect a
misplaced file or a script typo. It's 1207am here, so I'm going to
sleep some so I can make better sense of things and bring back more
relevant info. In the mean time, it would be nice if someone could
attempt to duplicate the problem (w98se, cygwin gcc in freewin-env).

I didn't do a checkout tonight (doh! :o ), so if it exists and was fixed, I apologize
for wasting anyone's time....must sleep...zz.zzz

Re: Problem compiling in Cygwin (free-windows)

Posted: Fri Jul 18, 2003 11:26 am
by _florian_
i can't reproduce the problem with the latest cvs version.
i don't have w98 here. just W2k and WXP...
could you please post the error message from gcc?

florian

It figures...

Posted: Fri Jul 18, 2003 7:45 pm
by Mel_Q
It figures. Apparantly the checkout last night fixed the problem-
it now compiles 'normally'. Serves me right for not using last night's checkout huh :) ?
Thanks for the help though -
I shamefully repeat the above apology, and sentence myself to take a
break for the weekend :)

Posted: Mon Jul 21, 2003 11:35 pm
by leinad13
Stopped working for me. error is

Code: Select all

make[2]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/obj/windows/b
lender/bpython/frozen'
make[1]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/python
/freeze'
make[1]: Entering directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/strin
g'
====> make  all in intern/string/intern
make[2]: Entering directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/strin
g/intern'
g++ -c -pipe -mno-cygwin -mwindows -DNDEBUG -O2 -Wall -W -Wshadow -Wpointer-arit
h -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-pro
totypes -Wmissing-declarations -Wnested-externs -Wredundant-decls  -Wreorder -Wc
tor-dtor-privacy -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign
-promo -Wsynth  -DFREE_WINDOWS -I/usr/include/mingw -I.. STR_String.cpp -o /usr/
bin/STR_StringUSERPROFILE%/tuhopuu/blender/obj//windows/intern/string/%.o
Assembler messages:
FATAL: can't create /usr/bin/STR_StringUSERPROFILE%/tuhopuu/blender/obj//windows
/intern/string/%.o: No such file or directory
cc1plus: warning: ignoring command line option '-Wbad-function-cast'
cc1plus: warning: ignoring command line option '-Wmissing-declarations'
cc1plus: warning: ignoring command line option '-Wnested-externs'
cc1plus: warning: changing search order for system directory "/usr/include/mingw
"
cc1plus: warning:   as it has already been specified as a non-system directory
In file included from STR_String.cpp:42:
../STR_String.h: In member function `float STR_String::ToFloat() const':
../STR_String.h:144: warning: use of old-style cast
../STR_String.h: In member function `const STR_String&
   STR_String::operator=(const byte*)':
../STR_String.h:148: warning: use of old-style cast
../STR_String.h:148: warning: use of old-style cast
make[2]: *** [/usr/bin/STR_StringUSERPROFILE%/tuhopuu/blender/obj//windows/inter
n/string/%.o] Error 2
make[2]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/string
/intern'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/string
'
make: *** [interndir] Error 1
make: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender'
Straight into the build, was working but now it isnt, any ideas?

No Idea...

Posted: Wed Jul 23, 2003 5:02 am
by Mel_Q
leinad13-
No idea on that one- Double check your cygwin install and check that all environment variables are where they needed; or not needed- the only way I got python to cooperate on my machine was to uninstall the 2.2 version I already had and use the one that comes with cygwin. Those more experienced with python and makefiles probably wouldn't need to do something so drastic, but I've used windoze too long :roll: (bad habit).

One of the times I had a Tuhopuu build fail, I'd forgot to put the 'lib' directory in the 'blender' directory :oops: . This stuff makes me feel so old! This is a long long way from 8bit assembly language...

Posted: Thu Jul 24, 2003 8:21 pm
by Hos
leinad13 wrote:

Code: Select all

make[2]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/obj/windows/b
lender/bpython/frozen'
make[1]: Leaving directory `/usr/bin/%USERPROFILE%/tuhopuu/blender/intern/python
/freeze'
etc
What is this %USERPROFILE% weirdness?
I think that is screwing you up ... try
compiling somewhere with a less
error-prone directory name.

Chris

hmmm...

Posted: Thu Jul 24, 2003 8:37 pm
by Mel_Q
Perhaps cygwin was installed under a different windows user name than is currently being used?...

Posted: Fri Jul 25, 2003 12:14 pm
by leinad13
Hmm, yes i moved my source directory and it has now got past the error from before, don't know whether it will complete or not. For some reason, when i opened up cygwin it defaulted to "/bin/%USERPROFILE%/", so when i did a CVS download it went in there, i moved it to my just "/" directory and hopefully it will complete ok. I let you know if if it does later.

It was going so well, then i got a windows message saying makesdna had crashed, and i had this message in cygwin.

Code: Select all

gcc -mwindows -mno-cygwin -o /tuhopuu/blender/obj//windows/blender/makesdna/debu
g/makesdna /tuhopuu/blender/obj//windows/blender/makesdna/debug/makesdna.o   \
/tuhopuu/blender/lib//windows/guardedalloc/lib/libguardedalloc.a
/tuhopuu/blender/source//tools/cygwin/cl_wrapper.pl - /tuhopuu/blender/obj//wind
ows/blender/makesdna/debug/makesdna \
    /tuhopuu/blender/obj//windows/blender/makesdna/debug/DNA.c
make[4]: *** [/tuhopuu/blender/obj//windows/blender/makesdna/debug/DNA.c] Error
128
make[4]: Leaving directory `/tuhopuu/blender/source/blender/makesdna/intern'
make[3]: *** [debug] Error 1
make[3]: Leaving directory `/tuhopuu/blender/source/blender/makesdna'
make[2]: *** [debug] Error 1
make[2]: Leaving directory `/tuhopuu/blender/source/blender'
make[1]: *** [debug] Error 1
make[1]: Leaving directory `/tuhopuu/blender/source'
make: *** [debug] Error 2
make: Leaving directory `/tuhopuu/blender'
I'll do a CVS update and try again, might just have been windows randomly crashing, but if not, then i need help again. :(

:Edit: Nope tried again and got the same error, any ideas?

Posted: Fri Jul 25, 2003 3:50 pm
by _florian_
hi

the message looks to me like you forgot to set "source free_windows-env". happens to me all the time ;-)

florian

Posted: Fri Jul 25, 2003 5:06 pm
by leinad13
Nope, wasnt that, i checked that i tried again and got the same, makedns is crashing whatever that is. :x Blender frustrates me, nop wonder we havnt got hardly any developers, its damn imposible to compile.

Posted: Fri Jul 25, 2003 10:02 pm
by Hos
I think I've found the problem ... please update
source/blender/makesdna/intern/Makefile from
cvs and try again.

Chris

Posted: Fri Jul 25, 2003 10:25 pm
by leinad13
Sorry hos, still got an error, but i not getting makedns.exe crash :).

Code: Select all

gcc -mwindows -mno-cygwin -o /tuhopuu/blender/obj//windows/blender/makesdna/debu
g/makesdna /tuhopuu/blender/obj//windows/blender/makesdna/debug/makesdna.o   \
/tuhopuu/blender/lib//windows/guardedalloc/lib/libguardedalloc.a
/tuhopuu/blender/obj//windows/blender/makesdna/debug/makesdna /tuhopuu/blender/o
bj//windows/blender/makesdna/debug/DNA.c
make[4]: *** [/tuhopuu/blender/obj//windows/blender/makesdna/debug/DNA.c] Error
1
make[4]: Leaving directory `/tuhopuu/blender/source/blender/makesdna/intern'
make[3]: *** [debug] Error 1
make[3]: Leaving directory `/tuhopuu/blender/source/blender/makesdna'
make[2]: *** [debug] Error 1
make[2]: Leaving directory `/tuhopuu/blender/source/blender'
make[1]: *** [debug] Error 1
make[1]: Leaving directory `/tuhopuu/blender/source'
make: *** [debug] Error 2
make: Leaving directory `/tuhopuu/blender'
Sorry for being a pain Hos.

Posted: Fri Jul 25, 2003 11:00 pm
by Hos
maybe try a 'make clean' and make again.

Chris

Posted: Fri Jul 25, 2003 11:15 pm
by leinad13
Hmm strange, i always do, i tried again and still the same error, sorry Hos.

Posted: Sat Jul 26, 2003 12:28 am
by Hos
Does the file

tuhopuu/blender/obj//windows/blender/makesdna/debug/DNA.c

exist?

How about

tuhopuu/blender/obj//windows/blender/makesdna/debug/DNA.o?

Chris

P.S. Have you tried the bf-blender build at all?