[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch] Blender on Debian GNU/KFreeBSD



(I CCed the blender package mantainer. I hope it is not a mistake.)

I am on Debian GNU/KFreeBSD i386.
This is the output of "uname -a":
GNU/kFreeBSD debian 7.1-1-686-smp #0 Thu Sep  4 18:55:28 CEST 2008
i686 i386 Intel(R) Pentium(R) Dual  CPU  T2330  @ 1.60GHz GNU/kFreeBSD

I am trying to learn Blender Game Engine following the tutorial at
[BGE tutoria].

I installed the version of Blender in Debian repositories.
The Blender package in Debian GNU/KFreeBSD is out of sync with the
GNU/Linux version, as showed at [Blender Debian unstable] (2.45 vs.
2.46).

Starting the Game Engine (pressing P) crashes the version of Blender
in Debian GNU/KFreeBSD; instead it doesn't crash that in Debian
GNU/Linux (I tried it on a Debian GNU/Linux x86 32 bit computer).

I decided to try to sync the Blender package on Debian GNU/KFreeBSD
with the version in Debian GNU/Linux.

I managed to reproduce the build log at [2.46 buildd kfreebsd-i386],
using "apt-get --build source blender". I report here the interesting
part.
Configuring library bf_string
Unknown window system specified.
# Build plugins by hand
ln -sf ../../../source/blender/blenpluginapi \
		install/linux2/plugins/include
ln: creating symbolic link `install/linux2/plugins/include': No such
file or directory
make: *** [build-stamp] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20080905-0940
FAILED [dpkg-buildpackage died]

The problem was that the GNU/KFreeBSD support patch had been disabled
because needing updating, as you can read from [Blender package
changelog]. I report here the interesting part.
   * debian/patches/10_gnukfreebsd_support:
      - Disable it, needs update.

I updated the patch.
The reason of the build failure was this (as you can read from
[Blender package changelog]). I report here the interesting part.
   * Use the system-wide FTGL library instead of the embedded one

But the compilation fails almost at the end, and I don't understand
why... Here is the last part of the build log:
Linking program ==> 'blender'
build/linux2/lib/libblender_creator.a(creator.o): In function `main':
/home/user/debian/blender-2.46+dfsg/source/creator/creator.c:281:
undefined reference to `zLhm65070058860608_br_init'
collect2: ld returned 1 exit status
scons: *** [build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Build command 'cd blender-2.46+dfsg && dpkg-buildpackage -b -uc' failed.


Can you please try to sync the package of Blender in Debian
GNU/KFreeBSD with that in Debian GNU/Linux?

I describe here what I modified to advance from the configuration
error to the compilation error (I am referring to Blender package
2.46+dfsg-4).

1) apply this diff to debian/patches/series
###START DIFF
1d0
< #10_gnukfreebsd_support
2a2
> 06_gnukfreebsd_support
###END DIFF

2) rename debian/patches/10_gnukfreebsd_support to
debian/patches/06_gnukfreebsd_support and apply to it this diff
###START DIFF
3c3
< @@ -185,7 +185,7 @@
---
> @@ -203,7 +203,7 @@
89,99d88
< --- a/extern/bFTGL/src/FTVectoriser.cpp	2007-09-18 06:59:15.000000000 +0200
< +++ b/extern/bFTGL/src/FTVectoriser.cpp	2007-11-25 18:08:28.000000000 +0100
< @@ -7,7 +7,7 @@
<
<  #ifdef __APPLE_CC__
<      typedef GLvoid (*GLUTesselatorFunction)(...);
< -#elif defined( __mips ) || defined( __linux__ ) || defined(
__FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined
(__CYGWIN__)
< +#elif defined( __mips ) || defined( __linux__ ) || defined(
__FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined
(__CYGWIN__) || defined (__FreeBSD_kernel__)
<      typedef GLvoid (*GLUTesselatorFunction)();
<  #elif defined ( WIN32)
<      typedef GLvoid (CALLBACK *GLUTesselatorFunction)( );
102c91
< @@ -54,7 +54,7 @@
---
> @@ -53,7 +53,7 @@
113c102
< @@ -58,7 +58,7 @@
---
> @@ -55,7 +55,7 @@
###END DIFF


Thanks for your work in Debian GNU/KFreeBSD and in the Blender package.





[BGE tutoria] http://wiki.blender.org/index.php/BSoD/Introduction_to_the_Game_Engine/The_basics_of_the_Blender_GE

[Blender Debian unstable]
http://packages.debian.org/search?keywords=blender&searchon=names&suite=unstable&section=all

[2.46 buildd kfreebsd-i386]
http://buildd.debian-ports.org/fetch.php?pkg=blender&arch=kfreebsd-i386&ver=2.46%2Bdfsg-4&stamp=1220600361&file=log&as=raw

[Blender package changelog]
http://packages.debian.org/changelogs/pool/main/b/blender/current/changelog


Reply to: