FreeBSD 5.0

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

mekani
Posts: 3
Joined: Sun Apr 20, 2003 3:03 pm

FreeBSD 5.0

Postby mekani » Sun Apr 20, 2003 3:09 pm

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'

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Mon Apr 21, 2003 10:08 pm

> 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.

mekani
Posts: 3
Joined: Sun Apr 20, 2003 3:03 pm

:o)

Postby mekani » Tue Apr 22, 2003 3:18 am

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? :D C ya around!!! :P

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

Re: :o)

Postby Hos » Wed Apr 23, 2003 8:07 pm

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? :D C ya around!!! :P


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

mekani
Posts: 3
Joined: Sun Apr 20, 2003 3:03 pm

Postby mekani » Thu Apr 24, 2003 1:45 am

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!


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 1 guest