Previous Thread  Next Thread

chat icon FreeBSD 5.0

mekani

Posted: Sun Apr 20, 2003 2:09 pm
Joined: 20 Apr 2003
Posts: 3
2.26 source and CVS source wouldn't compile on my box. The message is:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intern/guardedalloc -I../../source/blender/makesdna -I../../source/blender/blenkernel -I../../source/blender/blenloader -I../../source/blender/misc -I../../source/blender/bpython/include -I../../source/blender/blenlib -I../../source/blender/renderconverter -I../../source/blender/render/extern/include -I../../source/kernel/gen_messaging -I../../source/kernel/gen_system -I../../source/blender/include -I/usr/local/include -I/usr/X11R6/include -DFreeBSD -D_THREAD_SAFE -O2 -fomit-frame-pointer -ffast-math -march=pentium2 -funsigned-char -MT creator.lo -MD -MP -MF .deps/creator.Tpo -c creator.c -fPIC -DPIC -o .libs/creator.lo
In file included from /usr/include/sys/rtprio.h:37,
from creator.c:94:
/usr/include/sys/priority.h:124: syntax error before "u_char"
In file included from creator.c:94:
/usr/include/sys/rtprio.h:73: syntax error before "u_short"
gmake[3]: *** [creator.lo] Error 1
gmake[3]: Leaving directory `/usr/home/meka/Files/blender-2.26/source/creator'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/meka/Files/blender-2.26/source'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/meka/Files/blender-2.26'
gmake: *** [all] Error 2

CFLAGS='-O2 -fomit-frame-pointer -ffast-math -march=pentium2'
CXXFLAGS='-O2 -fomit-frame-pointer -ffast-math -march=pentium2'
CPPFLAGS='-I/usr/local/include -I/usr/X11R6/include'
Reply with quote


SirDude

Posted: Mon Apr 21, 2003 9:08 pm
Joined: 13 Oct 2002
Posts: 939
> from creator.c:94:
> /usr/include/sys/priority.h:124: syntax error before "u_char"

/usr/include/sys/priority.h is a system file if you have a syntax error there, I would guess you have a bad .h
or its expecting some other include ahead of it
that isn't included for some reason.

I would first figure out where its getting included from and
maybe use grep to find where u_char is defined.
You can probably get around it by includeing <sys/types.h> or something similar.
Reply with quote


mekani

Posted: Tue Apr 22, 2003 2:18 am
Joined: 20 Apr 2003
Posts: 3
Man, I don't know how to say this. Let me put it this way. I was jumping around the house for at least 15 min. when I've saw Blender splash screen. I've just added LDFLAGS=-L <jpeg_dir> -ljpeg -lpng and it's working just fine. Thanks a lot. By the way, I study programing for 3 years and something simple like that never crossed my mind. Solution always must be simle, I know, but why can't I figure it out? Very Happy C ya around!!! Razz
Reply with quote


Hos

Posted: Wed Apr 23, 2003 7:07 pm
Joined: 15 Oct 2002
Posts: 215
mekani wrote:
Man, I don't know how to say this. Let me put it this way. I was jumping around the house for at least 15 min. when I've saw Blender splash screen. I've just added LDFLAGS=-L <jpeg_dir> -ljpeg -lpng and it's working just fine. Thanks a lot. By the way, I study programing for 3 years and something simple like that never crossed my mind. Solution always must be simle, I know, but why can't I figure it out? Very Happy C ya around!!! Razz


That's really great news as FreeBSD has been a sore
spot in the auto* development effort. Too aid the
developers it would be great if you provided a step by
step list of all of the modifications you had to make to
get it to work.

Regards,
Chris
Reply with quote


mekani

Posted: Thu Apr 24, 2003 12:45 am
Joined: 20 Apr 2003
Posts: 3
In source/blender/creator/creator.c:
#include <sys/types.h>
at the top of the file.
LDFLAGS='-L/usr/X11R6/lib -L/usr/local/lib -ljpeg -lpng'
CPPFLAGS='-I/usr/local/include -I/usr/X11R6/include'
CFLAGS and CXXFLAGS are just for optimisation, so it may be omited. I've never made any patches so I don't know how to do it. If anyone could tell me how to do it I would be glad to. Good luck!
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group