Cool VL Viewer forum
http://sldev.free.fr/forum/

Build error in final stages with 1.26.8.15
http://sldev.free.fr/forum/viewtopic.php?f=6&t=1261
Page 1 of 1

Author:  Jessica Hultcrantz [ 2013-06-29 18:44:54 ]
Post subject:  Build error in final stages with 1.26.8.15

Henri, another issue popped up with today's code :(

Code:
Verifying message template
master: http://bitbucket.org/lindenlab/master-message-template/raw/tip/message_template.msg
current: /root/COOL_VL/linden/scripts/messages/message_template.msg
Refreshing master cache from http://bitbucket.org/lindenlab/master-message-template/raw/tip/message_template.msg
--- PASS ---
Newer
        in message ObjectFlagUpdate: has 1 extra blocks
        in message AvatarAppearance: has 1 extra blocks
        in message SimStats: has 1 extra blocks
        in message GodUpdateRegionInfo: has 1 extra blocks
        in message RegionHandshake: has 1 extra blocks
        in message RegionInfo: has 1 extra blocks

/root/COOL_VL/linden/indra/../lib/release/libpangoft2-1.0.so: undefined reference to `FT_Stream_GetLong'
/root/COOL_VL/linden/indra/../lib/release/libpangoft2-1.0.so: undefined reference to `FT_Stream_GetShort'
collect2: ld returned 1 exit status
make[2]: *** [newview/CoolVLViewer] Error 1
make[2]: Leaving directory `/root/COOL_VL/linden/indra/viewer-linux-i686-release'
make[1]: *** [newview/CMakeFiles/CoolVLViewer.dir/all] Error 2
make[1]: Leaving directory `/root/COOL_VL/linden/indra/viewer-linux-i686-release'
make: *** [all] Error 2
make: Leaving directory `/root/COOL_VL/linden/indra/viewer-linux-i686-release'
Error: the command 'make' exited with status 2


It was a clean run from scratch, no traces left from earlier versions.
Only changes made by me is switching tcmalloc back on, and change to libpng-1.2. Else it's completely your original code that is used.
Last version (1.26.8.14) compiled perfectly without a glitch.
And I do
Code:
./buildlinux.sh --ignore-warnings


Your expertise is appreciated as always!

Author:  Henri Beauchamp [ 2013-06-30 07:13:20 ]
Post subject:  Re: Build error in final stages with 1.26.8.15

Grrr... Yes, this is due to the pre-built GTK+ libraries that are used to compile (but not to run, since they are not bundled with the viewer that instead uses the end user's system GTK+ libraries) the viewer... The FT_Stream_GetLong() and FT_Stream_GetShort() functions have been deprecated starting from Freetype v2.4.5 and since the old GTK+ pre-built libraries were built using an older version (and never updated since by LL), the linker bails on build systems without a v2.4.4 or older libfreetype dynamic library installed...

I made a patch for freetype v2.4.12 that re-implements the deprecated functions so that the linker stops complaining (even if, in the end, those functions won't be used at all by the viewer) and recompiled a freetype pre-built with it: it seems to be working fine, here.

You can apply this other patch to the source tree of the Cool VL Viewer v1.26.4.79, v1.26.8.15 or v1.26.9.15 (*) so to be able to use the new pre-built library: let me know if it works for you.



(*) To apply the patch, download it and, from a terminal and while inside the linden/ directory of the viewer sources, use:
Code:
patch -p1 -s </path_to_the_patch/cool_vl_viewer-1.26.4.79-freetype.patch.txt

Author:  Jessica Hultcrantz [ 2013-06-30 15:48:22 ]
Post subject:  Re: Build error in final stages with 1.26.8.15

Henri Beauchamp wrote:
You can apply this other patch to the source tree of the Cool VL Viewer v1.26.4.79, v1.26.8.15 or v1.26.9.15 (*) so to be able to use the new pre-built library: let me know if it works for you.


With that patch applied it was possible to compile 1.26.8.15 without any errors, and the viewer also starts fine.

I'll let you know if there are other issues showing later when I'm online, but for a start it looks very good.

Thanks for the prompt help Henri ^_^

Author:  Henri Beauchamp [ 2013-07-05 22:23:43 ]
Post subject:  Re: Build error in final stages with 1.26.8.15

Today's releases are using a new pre-built library that got the necessary patch applied.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/