[SOLVED] Undefined references to freetype2's everything
Posted: Mon Aug 11, 2014 8:42 am
So after building my shiny new toolchain, I decided to start porting some libraries over. I managed to get freetype to build after doing these things:
edit builds/unix/config.sub in a way similar to OS Specific Toolchain
I get a shiny libfreetype.a in my $SYROOT/usr/lib.
Except when I try to link with it, doing the simplest example from http://www.freetype.org/freetype2/docs/ ... step1.html, ie. just setup an FT_Library object and call FT_Init_FreeType(&library)
I've tried all manner of things:
1. recompiling the thing 23910823 times
2. wrapping the #includes in extern "C"
3. compiling test as a C program
nothing. If anybody is willing to spend some time, the static library is here:
https://drive.google.com/file/d/0BxDNp6 ... sp=sharing
Thank you.
EDIT: I should probably mention that I'm using FreeType 2.5.3 from the website download.
edit builds/unix/config.sub in a way similar to OS Specific Toolchain
Code: Select all
# note that x86_64-orionx-gcc etc. is the name of my toolchain
export DESTDIR=$SYSROOT
./configure --prefix=/usr --host=x86_64-orionx --without-harfbuzz --without-png --without-bzip2 --without-zlib
make
make install
Except when I try to link with it, doing the simplest example from http://www.freetype.org/freetype2/docs/ ... step1.html, ie. just setup an FT_Library object and call FT_Init_FreeType(&library)
Code: Select all
x86_64-orionx-g++ -Wall -O2 -o test test.cpp -lfreetype
test.cpp:(.text.startup+0xa): undefined reference to `FT_Init_FreeType'
collect2: error: ld returned 1 exit status
1. recompiling the thing 23910823 times
2. wrapping the #includes in extern "C"
3. compiling test as a C program
nothing. If anybody is willing to spend some time, the static library is here:
https://drive.google.com/file/d/0BxDNp6 ... sp=sharing
Thank you.
EDIT: I should probably mention that I'm using FreeType 2.5.3 from the website download.