[Bf-committers] blenderplayer cannot be built with CMake

Dalai Felinto dfelinto at gmail.com
Sun Feb 27 06:34:44 CET 2011


confirming that trunk is not linking blenderplayer in OSX too (CMake + gcc).
Nathan, what building system you tried with your commit?

regards

2011/2/24 IRIE Shinsuke <irieshinsuke at yahoo.co.jp>:
> Build succeeded when I changed blender/source/blenderplayer/CMakeLists.txt
> as follows:
>
> Index: blender/source/blenderplayer/CMakeLists.txt
> ===================================================================
> --- blender/source/blenderplayer/CMakeLists.txt (revision 35122)
> +++ blender/source/blenderplayer/CMakeLists.txt (working copy)
> @@ -125,6 +125,20 @@
>                bf_intern_mikktspace
>        )
>
> +       if(WITH_LZMA)
> +               list(APPEND BLENDER_SORTED_LIBS extern_lzma)
> +       endif()
> +
> +       if(WITH_MOD_DECIMATE)
> +               list(APPEND BLENDER_SORTED_LIBS bf_intern_decimate)
> +       endif()
> +
> +       if(WITH_MOD_BOOLEAN)
> +               list(APPEND BLENDER_SORTED_LIBS bf_intern_bsp)
> +               list(APPEND BLENDER_SORTED_LIBS bf_intern_bop)
> +               list(APPEND BLENDER_SORTED_LIBS bf_intern_moto)
> +       endif()
> +
>        if(WITH_CODEC_QUICKTIME)
>                list(APPEND BLENDER_SORTED_LIBS bf_quicktime)
>        endif()
>
>
> blenderplayer seems to work but segmentation fault occurs when I close it.
>
> Is my solution correct??
>
> IRIE
>
> At Thu, 24 Feb 2011 13:43:48 +0200,
> Nathan Letwory wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 23.2.2011 21:12, Dalai Felinto wrote:
>> > We actually never had blenderplayer working for all the system at the
>> > same time. That's why we even had commented (#if 0) code there to make
>> > it easy to build for other plataforms.
>> >
>> > I thought Nathan's (jesterKing) commit was to finally get it working,
>> > but I confess that I still haven't had the time to test with
>> > CMake+MSVC.
>>
>> Weird. I made this commit, since it finally works with CMake+MSVC. Some
>> linux guru might need to take a peek in linking order/dependencies
>> between our libs for blenderplayer.
>>
>> /Nathan
>>
>> >
>> > 2011/2/23 IRIE Shinsuke <irieshinsuke at yahoo.co.jp>:
>> >> Umm... still broken. r35111
>> >>
>> >> jesterking, can you fix the CMake build? Your changes seem to have broken it.
>> >>
>> >>
>> >> At Tue, 22 Feb 2011 19:38:45 +0200,
>> >> Davis Sorenson wrote:
>> >>>
>> >>> I can confirm this on Ubuntu 10.10 32 bit r35080, the errors are pretty much
>> >>> the same.
>> >>>
>> >>>
>> >>>
>> >>> On Tue, Feb 22, 2011 at 7:25 PM, IRIE Shinsuke <irieshinsuke at yahoo.co.jp>wrote:
>> >>>
>> >>>> Hi,
>> >>>>
>> >>>> Today I attempted to build Blender with CMake option -DWITH_PLAYER:BOOL=ON,
>> >>>> but I got errors as follows:
>> >>>>
>> >>>> Linking CXX executable ../../bin/blenderplayer
>> >>>> ../../lib/libbf_blenkernel.a(pointcache.c.o): In function
>> >>>> `ptcache_file_compressed_read':
>> >>>> pointcache.c:(.text+0x381d): undefined reference to `LzmaUncompress'
>> >>>> ../../lib/libbf_blenkernel.a(pointcache.c.o): In function
>> >>>> `ptcache_file_compressed_write':
>> >>>> pointcache.c:(.text+0x39a2): undefined reference to `LzmaCompress'
>> >>>> ../../lib/libbf_modifiers.a(MOD_decimate.c.o): In function `applyModifier':
>> >>>> MOD_decimate.c:(.text+0x463): undefined reference to `LOD_LoadMesh'
>> >>>> MOD_decimate.c:(.text+0x47a): undefined reference to `LOD_PreprocessMesh'
>> >>>> MOD_decimate.c:(.text+0x493): undefined reference to `LOD_CollapseEdge'
>> >>>> MOD_decimate.c:(.text+0x6a5): undefined reference to
>> >>>> `LOD_FreeDecimationData'
>> >>>> ../../lib/libbf_modifiers.a(MOD_boolean_util.c.o): In function
>> >>>> `NewBooleanDerivedMesh_intern':
>> >>>> MOD_boolean_util.c:(.text+0x1585): undefined reference to
>> >>>> `CSG_NewBooleanFunction'
>> >>>> MOD_boolean_util.c:(.text+0x16b3): undefined reference to
>> >>>> `CSG_PerformBooleanOperation'
>> >>>> MOD_boolean_util.c:(.text+0x16d1): undefined reference to
>> >>>> `CSG_OutputFaceDescriptor'
>> >>>> MOD_boolean_util.c:(.text+0x16e7): undefined reference to
>> >>>> `CSG_OutputVertexDescriptor'
>> >>>> MOD_boolean_util.c:(.text+0x175e): undefined reference to
>> >>>> `CSG_FreeVertexDescriptor'
>> >>>> MOD_boolean_util.c:(.text+0x176d): undefined reference to
>> >>>> `CSG_FreeFaceDescriptor'
>> >>>> MOD_boolean_util.c:(.text+0x178c): undefined reference to
>> >>>> `CSG_FreeBooleanOperation'
>> >>>> collect2: ld returned 1 exit status
>> >>>> make[2]: *** [bin/blenderplayer] Error 1
>> >>>> make[1]: *** [source/blenderplayer/CMakeFiles/blenderplayer.dir/all] Error
>> >>>> 2
>> >>>> make: *** [all] Error 2
>> >>>>
>> >>>>
>> >>>> I confirmed r34034 is ok, but r34035 or later goes wrong.
>> >>>>
>> >>>> r35078
>> >>>> Ubuntu 10.10 amd64
>> >>>>
>> >>>> Thanks,
>> >>>>
>> >>>> IRIE
>>
>>
>> - --
>> Nathan Letwory
>> Blender Foundation | Letwory Interactive
>> http://www.blender.org | http://www.letworyinteractive.com
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iQEcBAEBAgAGBQJNZkR0AAoJEKtfN7KsE0TtmLYH/A2JBgbA0wms48KmDmU71qt2
>> 8jDkKmzIlQvZ+6jEJlpAGUc+QsAbsclM8wNcoelSjTL2//0CidkAG8L10xnQn3E8
>> QJXcraimHBqEXx2pVje6PJf4wmjtg+W2HVp5/uEtIP2VfvPh9CtfHf9Ys+3AzrcM
>> iMls5wZr7HvFN+8TZNBPw6/tySggJyPi2JTCOoWECfW/lbKtLLv3/ZeFFk60XaWG
>> d6PG/EbxElkGwlczd2yWqKsj/a4/gDAQdAMxJjJkD0lNbKOjm4Kq6mrwdSZRSObO
>> sIzFkaVe/M/SX3dUvvpfF3SjzAdnCGtbNlFhMDrWEtYmTr/sPQevOemhhsl1VjY=
>> =foVh
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list