Tried compiling blender in cygwin using Hos' instructions

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

Tried compiling blender in cygwin using Hos' instructions

Postby thorax » Tue Apr 15, 2003 12:02 am

Used instructions to

http://projects.blender.org/viewcvs/vie ... ot=tuhopuu

Got this:

http://www.bl3nder.com/output.txt
http://www.bl3nder.com/error.txt

The thing that caused the error (I captured this using the "Mark" option in the cygwin window, note "yahyah" is a directory I created when I found out that the make, I guess the makefile is at fault, splits paths with "spaces" in them.. but that isn't the problem here, it seems to be a problem with a C++ file somewhere, probably something I'm lacking,
I'll check back to see if anyone has fixed this problem or if there is something I need to download for cygwin.. I think I can get listing of all my installed packages.. ):

dlltool: Processing def file: /home/yahyah/tuhopuu/blender/dlltool/ntdll.def
dlltool: LIBRARY: NTDLL.DLL base: ffffffff
dlltool: Processed def file
dlltool: Processing definitions
dlltool: Processed definitions
dlltool: Creating library file: /home/yahyah/tuhopuu/blender/lib/windows/openssl/lib/freentdll.a
dlltool: run: as -o dh.o dh.s
dlltool: run: as -o dt.o dt.s
dlltool: Creating stub file: ds00000.o
dlltool: Creating stub file: ds00001.o
dlltool: Creating stub file: ds00002.o
dlltool: Creating stub file: ds00003.o
dlltool: Creating stub file: ds00004.o
dlltool: Creating stub file: ds00005.o
dlltool: Created lib file
ranlib /home/yahyah/tuhopuu/blender/lib/windows/openssl/lib/freentdll.a
rm ./ntdll.dll
make[1]: Entering directory `/home/yahyah/tuhopuu/blender/intern/string'
====> make all in intern/string/intern
make[2]: Entering directory `/home/yahyah/tuhopuu/blender/intern/string/intern'
g++ -c -pipe -mno-cygwin -mwindows -DNDEBUG -O2 -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -
ct-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wredundant-decls -Wreorder
tual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wsynth -DFREE_WINDOWS -I/usr/include/min
e/yahyah/tuhopuu/blender/obj//windows/intern/string/STR_String.o
In file included from STR_String.cpp:42:
../STR_String.h:48: vector: No such file or directory
In file included from STR_String.cpp:42:
../STR_String.h:125: syntax error before `('
../STR_String.h: In method `const class STR_String & STR_String::Reverse()':
../STR_String.h:88: implicit declaration of function `int swap(...)'
../STR_String.h: In method `char STR_String::GetAt(int) const':
../STR_String.h:99: warning: use of old-style cast
../STR_String.h: In method `void STR_String::SetAt(int, char)':
../STR_String.h:100: warning: use of old-style cast
../STR_String.h: In method `float STR_String::ToFloat() const':
../STR_String.h:144: implicit declaration of function `int atof(...)'
../STR_String.h:144: warning: use of old-style cast
../STR_String.h: In method `int STR_String::ToInt() const':
../STR_String.h:145: implicit declaration of function `int atoi(...)'
../STR_String.h: In method `const class 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
STR_String.cpp: In method `STR_String::STR_String(char, int)':
STR_String.cpp:85: warning: use of old-style cast
STR_String.cpp:86: implicit declaration of function `int memset(...)'
STR_String.cpp: In method `STR_String::STR_String(const char *)':
STR_String.cpp:102: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(const char *, int)':
STR_String.cpp:123: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(const STR_String &)':
STR_String.cpp:138: warning: use of old-style cast
STR_String.cpp:139: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(const STR_String &, int)':
STR_String.cpp:154: warning: use of old-style cast
STR_String.cpp:155: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(const char *, int, const char *, int)':
STR_String.cpp:170: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(int)':
STR_String.cpp:185: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(long unsigned int)':
STR_String.cpp:199: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(float)':
STR_String.cpp:212: warning: use of old-style cast
STR_String.cpp: In method `STR_String::STR_String(double)':
STR_String.cpp:225: warning: use of old-style cast
STR_String.cpp: In method `void STR_String::AllocBuffer(int, bool)':
STR_String.cpp:253: warning: use of old-style cast
STR_String.cpp: In method `class STR_String & STR_String::Format(const char *, ...)':
STR_String.cpp:271: warning: use of old-style cast
STR_String.cpp:274: warning: use of old-style cast
STR_String.cpp:276: warning: use of old-style cast
STR_String.cpp:277: warning: use of old-style cast
STR_String.cpp: In method `class STR_String & STR_String::FormatAdd(const char *, ...)':
STR_String.cpp:291: warning: use of old-style cast
STR_String.cpp:294: warning: use of old-style cast
STR_String.cpp:296: warning: use of old-style cast
STR_String.cpp:297: warning: use of old-style cast
STR_String.cpp: In method `int STR_String::Find(char, int = 0) const':
STR_String.cpp:349: warning: use of old-style cast
STR_String.cpp:350: warning: use of old-style cast
STR_String.cpp:351: warning: use of old-style cast
STR_String.cpp:352: implicit declaration of function `int strchr(...)'
STR_String.cpp:352: initialization to `char *' from `int' lacks a cast
STR_String.cpp: In method `int STR_String::Find(const char *, int = 0) const':
STR_String.cpp:363: warning: use of old-style cast
STR_String.cpp:364: warning: use of old-style cast
STR_String.cpp:365: warning: use of old-style cast
STR_String.cpp:366: implicit declaration of function `int strstr(...)'
STR_String.cpp:366: initialization to `char *' from `int' lacks a cast
STR_String.cpp: In method `int STR_String::Find(const STR_String &, int = 0) const':
STR_String.cpp:377: warning: use of old-style cast
STR_String.cpp:378: warning: use of old-style cast
STR_String.cpp:379: warning: use of old-style cast
STR_String.cpp:380: initialization to `char *' from `int' lacks a cast
STR_String.cpp: In method `int STR_String::RFind(char) const':
STR_String.cpp:391: warning: use of old-style cast
STR_String.cpp:392: implicit declaration of function `int strrchr(...)'
STR_String.cpp:392: initialization to `char *' from `int' lacks a cast
STR_String.cpp: In method `int STR_String::FindOneOf(const char *, int = 0) const':
STR_String.cpp:403: warning: use of old-style cast
STR_String.cpp:404: warning: use of old-style cast
STR_String.cpp:405: warning: use of old-style cast
STR_String.cpp:406: implicit declaration of function `int strpbrk(...)'
STR_String.cpp:406: initialization to `char *' from `int' lacks a cast
STR_String.cpp: In method `void STR_String::Replace(int, int, const STR_String &)':
STR_String.cpp:444: warning: use of old-style cast
STR_String.cpp: In method `int STR_String::CompareNoCase(const STR_String &) const':
STR_String.cpp:487: implicit declaration of function `int stricmp(...)'
STR_String.cpp: In method `class STR_String & STR_String::Upper()':
STR_String.cpp:506: warning: use of old-style cast
STR_String.cpp:508: implicit declaration of function `int _strupr(...)'
STR_String.cpp: In method `class STR_String & STR_String::Lower()':
STR_String.cpp:523: warning: use of old-style cast
STR_String.cpp:525: implicit declaration of function `int _strlwr(...)'
STR_String.cpp: In method `class STR_String & STR_String::Capitalize()':
STR_String.cpp:540: warning: use of old-style cast
STR_String.cpp:542: implicit declaration of function `int toupper(...)'
STR_String.cpp: In method `class STR_String & STR_String::TrimLeft()':
STR_String.cpp:561: warning: use of old-style cast
STR_String.cpp:563: implicit declaration of function `int memmove(...)'
STR_String.cpp: In method `class STR_String & STR_String::TrimRight()':
STR_String.cpp:574: warning: use of old-style cast
STR_String.cpp: In method `class STR_String & STR_String::TrimLeft(char *)':
STR_String.cpp:600: warning: use of old-style cast
STR_String.cpp: In method `class STR_String & STR_String::TrimRight(char *)':
STR_String.cpp:613: warning: use of old-style cast
STR_String.cpp: In method `class STR_String & STR_String::TrimQuotes()':
STR_String.cpp:639: warning: use of old-style cast
STR_String.cpp: In method `const class STR_String & STR_String::Copy(const char *, int)':
STR_String.cpp:661: warning: use of old-style cast
STR_String.cpp:662: warning: use of old-style cast
STR_String.cpp:663: warning: use of old-style cast
STR_String.cpp: In method `const class STR_String & STR_String::Concat(const char *, int)':
STR_String.cpp:680: warning: use of old-style cast
STR_String.cpp:681: warning: use of old-style cast
STR_String.cpp:682: warning: use of old-style cast
STR_String.cpp:683: warning: use of old-style cast
STR_String.cpp: At top level:
STR_String.cpp:697: syntax error before `::'
STR_String.cpp:700: syntax error before `;'
STR_String.cpp:708: syntax error before `.'
STR_String.cpp:712: ANSI C++ forbids declaration `lcv' with no type
STR_String.cpp:712: `pos' was not declared in this scope
STR_String.cpp:713: parse error before `}'
make[2]: *** [/home/yahyah/tuhopuu/blender/obj//windows/intern/string/STR_String.o] Error 1
make[2]: Leaving directory `/home/yahyah/tuhopuu/blender/intern/string/intern'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/yahyah/tuhopuu/blender/intern/string'
make: *** [interndir] Error 1
make: Leaving directory `/home/yahyah/tuhopuu/blender'

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

Postby thorax » Tue Apr 15, 2003 12:07 am

Looks like string.h is missing..


I started the CVS download once and interrupted it, then deleted
the directory "rm -rf *", and reinstalled it again using the same cvs
instructions, is there a way to get that string.h file?

Or is it something else?


-------------------


Update, I did a fresh install with the same notes, and
checked to see if I had everything installed according to cygwin,
and still came up with the same results.. Its either a problem with
cygwin or the distribution is incomplete.. Or something is missing from the directions..

Dani
Posts: 251
Joined: Fri Oct 18, 2002 8:35 pm

Postby Dani » Tue Apr 15, 2003 11:57 am

I think you should delet the yahyah\tuhopuu\blender dir
you can do this through windows...
go there:
..\cygwin\home\yahyah\tuhopuu\
and delete the blender dir... then redownload your cvs...
(maybe you prefer doing this through cygwin)
note: you need python and perl for cygwin...

Dani

alien-xmp
Posts: 217
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand
Contact:

Postby alien-xmp » Tue Apr 15, 2003 2:41 pm

In file included from STR_String.cpp:42:
../STR_String.h:48: vector: No such file or directory

The compiler can't find the 'vector' header. This is part of the standard c++ library and should be installed...

On my cygwin system it is in /usr/include/c++/3.2 directory. It came in the gcc package, which is obviously installed.

What version of cygwin are you running?

Kester

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Postby Hos » Thu Apr 17, 2003 2:31 am

Yeah, maybe a bad gcc install, maybe try reinstalling
(seen one other guy with a weird gcc prob and reinstalling
fixed it).

Make sure to update your sources too.

Chris

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

I told cygwin to install current release..

Postby thorax » Sat Apr 26, 2003 8:04 pm

I'm gradually figuring out how to update cygwin..

I used:

Code: Select all

./free*


(I use tab completion.. )

then I typed

Code: Select all

make all


It got to a certain place in the compile:


Code: Select all

freezing beta.Scenegraph ...
freezing gzip ...
freezing mcf ...
freezing mcf.utils ...
freezing mcf.utils.hier_rx ...
freezing mcf.utils.hierobj ...
freezing mcf.utils.singletonlist ...
freezing simpleparse ...
freezing simpleparse.bootstrap ...
freezing simpleparse.generator ...
freezing types ...
freezing util ...
freezing util.quat ...
freezing util.vect ...
freezing vrml ...
freezing vrml.basenodes ...
freezing vrml.fieldcoercian ...
freezing vrml.loader ...
freezing vrml.parser ...
freezing vrml.scenegraph ...
freezing vrml.utils ...
freezing vrml.utils.collapse ...
freezing vrml.utils.err ...
freezing vrml.utils.namespace ...
freezing vrml.utils.typeclasses ...
generating table of frozen modules
Warning: unknown modules remain: array math operator strop struct time zlib
Now run "make" in /home/crapper/blender/obj//windows/blender/bpython/frozen to build the target: VRMLmain
make  -C /home/crapper/blender/obj//windows/blender/bpython/frozen
make[2]: Entering directory `/home/crapper/blender/obj/windows/blender/bpython/frozen'
perl /home/crapper/blender/source//tools/cygwin/cl_wrapper.pl -I/usr/include/python2.2   -I. -I./Include -DHAVE_CONFIG_H  -c -o confi
g.o config.c
cl: not found
make[2]: *** [config.o] Error 127
make[2]: Leaving directory `/home/crapper/blender/obj/windows/blender/bpython/frozen'
make[1]: *** [importer] Error 2
make[1]: Leaving directory `/home/crapper/blender/intern/python/freeze'
make: *** [frozen] Error 2
make: Leaving directory `/home/crapper/blender'



What is cl_wrapper.pl ? It looks like some kind of wrapper for a
microsoft linker (after doing searches on google I determined this
might be what this is).. What do I need??

Hos
Posts: 215
Joined: Wed Oct 16, 2002 12:06 am

Re: I told cygwin to install current release..

Postby Hos » Sat Apr 26, 2003 8:47 pm

thorax wrote:I'm gradually figuring out how to update cygwin..

Code: Select all

./free*



Bad plan ... you have to source it or the
variables that get set in that file don't get
into your environment. Please review the
instructions and try again.

Chris

matt_e
Posts: 898
Joined: Mon Oct 14, 2002 4:32 am
Location: Sydney, Australia
Contact:

Re: I told cygwin to install current release..

Postby matt_e » Sun Apr 27, 2003 7:32 am

thorax wrote:I'm gradually figuring out how to update cygwin..


Alternatively, you could just use the cygwin GUI package selection in the setup program. That always worked well for me.

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

Re: I told cygwin to install current release..

Postby thorax » Tue Apr 29, 2003 12:20 pm

broken wrote:
thorax wrote:I'm gradually figuring out how to update cygwin..


Alternatively, you could just use the cygwin GUI package selection in the setup program. That always worked well for me.



That's what I'm talking about.. Its actually a very confusing and poorly designed interface.. But it works okay after you've used it a few hundred times.. Who the hell knows what "Exp" and"curr" is supposed to mean?
And I don't believe in documentation.. Where a interface is lacking is where documentation comes in.. First make the interface so idiotically
easy that the documentation becomes pointless.. I think blender is
getting nearer that but it needs better documentation..

thorax
Posts: 320
Joined: Sun Oct 27, 2002 6:45 am
Contact:

Okay

Postby thorax » Tue Apr 29, 2003 12:30 pm

it looks like its compiling..

What I did was a mistake on my part..

I forgot to more the lib file into the blender directory..

I had tarred up the download.. And was restoring it but each time
I was not puting the lib file into the blender directory.. Also
I didn't do "source free*" which seems to be the major problem,
thanks for the help guys..
I'm going to leave my P500 laptop on all night..

I hope it doesn't end up fried in the morning..


I was going to try the compile someone did already, but
I guess I will have my own in 6 hours..
8^)

Maybe I will get to rool my own changes!!

Goody!!


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 0 guests