randi120 / freetype-gl

Automatically exported from code.google.com/p/freetype-gl
Other
0 stars 0 forks source link

Compile error for revision: r225 #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get the following error when compiling the r225:

[  3%] Building C object CMakeFiles/freetype-gl.dir/mat4.c.o
[  6%] Building C object CMakeFiles/freetype-gl.dir/texture-atlas.c.o
[  9%] Building C object CMakeFiles/freetype-gl.dir/texture-font.c.o
[ 12%] Building C object CMakeFiles/freetype-gl.dir/vertex-buffer.c.o
[ 15%] Building C object CMakeFiles/freetype-gl.dir/vertex-attribute.c.o
[ 18%] Building C object CMakeFiles/freetype-gl.dir/font-manager.c.o
[ 21%] Building C object CMakeFiles/freetype-gl.dir/text-buffer.c.o
[ 25%] Building C object CMakeFiles/freetype-gl.dir/shader.c.o
[ 28%] Building C object CMakeFiles/freetype-gl.dir/vector.c.o
[ 31%] Building C object CMakeFiles/freetype-gl.dir/platform.c.o
Linking C static library libfreetype-gl.a
[ 31%] Built target freetype-gl
[ 34%] Building C object CMakeFiles/demo-ansi.dir/demo-ansi.c.o
Linking C executable demo-ansi
[ 34%] Built target demo-ansi
[ 37%] Building C object CMakeFiles/demo-atb-agg.dir/demo-atb-agg.c.o
Linking C executable demo-atb-agg
[ 37%] Built target demo-atb-agg
[ 40%] Building C object CMakeFiles/demo-benchmark.dir/demo-benchmark.c.o
Linking C executable demo-benchmark
[ 40%] Built target demo-benchmark
[ 43%] Building C object CMakeFiles/demo-cartoon.dir/demo-cartoon.c.o
Linking C executable demo-cartoon
[ 43%] Built target demo-cartoon
[ 46%] Building C object CMakeFiles/demo-console.dir/demo-console.c.o
Linking C executable demo-console
[ 46%] Built target demo-console
[ 50%] Building C object CMakeFiles/demo-cube.dir/demo-cube.c.o
Linking C executable demo-cube
[ 50%] Built target demo-cube
[ 53%] Building C object 
CMakeFiles/demo-distance-field.dir/demo-distance-field.c.o
[ 56%] Building C object CMakeFiles/demo-distance-field.dir/edtaa3func.c.o
Linking C executable demo-distance-field
[ 56%] Built target demo-distance-field
[ 59%] Building C object 
CMakeFiles/demo-distance-field-2.dir/demo-distance-field-2.c.o
[ 62%] Building C object CMakeFiles/demo-distance-field-2.dir/edtaa3func.c.o
Linking C executable demo-distance-field-2
[ 62%] Built target demo-distance-field-2
[ 65%] Building C object 
CMakeFiles/demo-distance-field-3.dir/demo-distance-field-3.c.o
[ 68%] Building C object CMakeFiles/demo-distance-field-3.dir/edtaa3func.c.o
Linking C executable demo-distance-field-3
[ 68%] Built target demo-distance-field-3
[ 71%] Building C object CMakeFiles/demo-font.dir/demo-font.c.o
Linking C executable demo-font
[ 71%] Built target demo-font
[ 75%] Building C object CMakeFiles/demo-gamma.dir/demo-gamma.c.o
Linking C executable demo-gamma
[ 75%] Built target demo-gamma
[ 78%] Building C object CMakeFiles/demo-glyph.dir/demo-glyph.c.o
Linking C executable demo-glyph
[ 78%] Built target demo-glyph
[ 81%] Building C object CMakeFiles/demo-lcd.dir/demo-lcd.c.o
Linking C executable demo-lcd
[ 81%] Built target demo-lcd
[ 84%] Building C object CMakeFiles/demo-make.dir/demo-makefont.c.o
Linking C executable demo-make
[ 84%] Built target demo-make
[ 87%] Building C object CMakeFiles/demo-markup.dir/demo-markup.c.o
Linking C executable demo-markup
[ 87%] Built target demo-markup
[ 90%] Building C object CMakeFiles/demo-outline.dir/demo-outline.c.o
Linking C executable demo-outline
[ 90%] Built target demo-outline
[ 93%] Building C object CMakeFiles/demo-subpixel.dir/demo-subpixel.c.o
Linking C executable demo-subpixel
[ 93%] Built target demo-subpixel
[ 96%] Building C object CMakeFiles/demo-texture.dir/demo-texture.c.o
Linking C executable demo-texture
[ 96%] Built target demo-texture
[100%] Building C object CMakeFiles/makefont.dir/makefont.c.o
Linking C executable makefont
/usr/bin/ld: libfreetype-gl.a(texture-atlas.c.o): undefined reference to symbol 
'glTexImage2D'
/usr/bin/ld: note: 'glTexImage2D' is defined in DSO 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so so try 
adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so: could not 
read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [makefont] Error 1
make[1]: *** [CMakeFiles/makefont.dir/all] Error 2
make: *** [all] Error 2

I am using ubuntu 12.04 with a Nvidia NVS 4200M graphics card.

Original issue reported on code.google.com by gahd...@gmail.com on 9 May 2013 at 10:13

GoogleCodeExporter commented 8 years ago
Is this the demo one that fails ?

Original comment by Nicolas.Rougier@gmail.com on 17 May 2013 at 10:46

GoogleCodeExporter commented 8 years ago
Same error for me, cannot compile freetype_gl because of the undefined 
reference to glTexImage2D.
Maybe a -lGL is missing somewhere ? 

I am using ubuntu 12.04 as well

Original comment by alexisgi...@gmail.com on 3 Jun 2013 at 12:01

GoogleCodeExporter commented 8 years ago
Sorry for the long delay.

Do other demos run ok ?

Original comment by Nicolas.Rougier@gmail.com on 26 Jul 2013 at 7:38

GoogleCodeExporter commented 8 years ago
Hello
Having same issue!
Ubuntu 12.04 x86_64

Seems like it links with wrong DSO (mesa instead of nvidia) -- 
ls -lah /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so
lrwxrwxrwx 1 root root 13 Jun 19 00:54 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so -> 
mesa/libGL.so
This bug (check https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/943162) 
happens with some other software. With normal compile-time direct linking 
everything works. Maybe with static library ("/usr/bin/ld: 
libfreetype-gl.a(texture-atlas.c.o)") this bug occures too..
By the way, "export LD_LIBRARY_PATH=/usr/lib/nvidia-304-updates" makes dlopen 
work, but building freetype-gl still fails (I tried rebuilding from scratch 
after changing LD_LIBRARY_PATH) - this is strange

Original comment by fsf...@gmail.com on 3 Sep 2013 at 4:34

GoogleCodeExporter commented 8 years ago
I forgot to mention, i used r228
and demos do work
Is makefont considered a demo too? :)

Original comment by fsf...@gmail.com on 3 Sep 2013 at 4:37

GoogleCodeExporter commented 8 years ago
Yes makefont is supposed to build a header file that contain a whole font 
(well, some characters) and  is used by demo-makefont.

Could you open the issue on github ? (it is now the official repository )

Original comment by Nicolas.Rougier@gmail.com on 4 Oct 2013 at 1:18

GoogleCodeExporter commented 8 years ago
done - https://github.com/rougier/freetype-gl/issues/2

Original comment by fsf...@gmail.com on 5 Oct 2013 at 11:34