Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Cyril Brulebois <kibi <at> debian.org>
Subject: [Patch] Add support for using (dynamically) system-wide FTGL libraries.
Newsgroups: gmane.comp.video.blender.devel
Date: Saturday 3rd May 2008 08:50:45 UTC (over 9 years ago)
Hi,

until now, I've been using the embedded FTGL libraries, but for the
usual reasons, I've changed it to use the system-wide ones. Building
statically against them is OK, but it's not possible to link
dynamically:
| Linking program ==> 'blender'
| build/linux2/lib/libbf_ftfont.a(FTF_TTFont.o): In function
`FTF_TTFont::SetFont(unsigned char const*, int, int)':
| FTF_TTFont.cpp:(.text+0x8bd): undefined reference to
`FTPixmapFont::FTPixmapFont(char const*)'
| FTF_TTFont.cpp:(.text+0x8d1): undefined reference to `FTFont::Error()
const'
| FTF_TTFont.cpp:(.text+0x90d): undefined reference to
`FTPixmapFont::FTPixmapFont(char const*)'
| FTF_TTFont.cpp:(.text+0x930): undefined reference to
`FTPixmapFont::FTPixmapFont(char const*)'
| FTF_TTFont.cpp:(.text+0xa30): undefined reference to
`FTPixmapFont::FTPixmapFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xa60): undefined reference to
`FTPixmapFont::FTPixmapFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xa8a): undefined reference to
`FTPixmapFont::FTPixmapFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xb01): undefined reference to
`FTTextureFont::FTTextureFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xb15): undefined reference to `FTFont::Error()
const'
| FTF_TTFont.cpp:(.text+0xb54): undefined reference to
`FTTextureFont::FTTextureFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xb7e): undefined reference to
`FTTextureFont::FTTextureFont(unsigned char const*, unsigned int)'
| FTF_TTFont.cpp:(.text+0xbc1): undefined reference to
`FTTextureFont::FTTextureFont(char const*)'
| FTF_TTFont.cpp:(.text+0xbe9): undefined reference to
`FTTextureFont::FTTextureFont(char const*)'
| FTF_TTFont.cpp:(.text+0xc0c): undefined reference to
`FTTextureFont::FTTextureFont(char const*)'
| collect2: ld returned 1 exit status
| scons: *** [build/linux2/bin/blender] Error 1
| scons: building terminated because of errors.

Please find attached a patch to add support for BF_FTGL_LIB where (as
far as I understand it) it belongs.

As a side note, I had to add a GL/gl.h include to have Blender compiled
against ftgl 2.1.3 rc1. I guess they cleaned up header inclusions.

Mraw,
KiBi.
 
CD: 3ms