![]() |
|
Build problems with Allegro 4.4.1.1 |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Building Allegro 4.4.1.1 on a VirtualBox VM running openSUSE 11.3 on a Vista host. All addon library dependencies (zlib, libpng, libogg, libvorbis) were compiled and installed sucessfully. I started with : cmake -DWANT_ALLEGROGL=on -DWANT_LOADPNG=on -DWANT_LOGG=on -DWANT_JPGALLEG=on -DCMAKE_BUILD_TYPE=Profile -DSHARED=on -G "Unix Makefiles" .. and ran make. Allegro itself built fine, but loadpng failed to build because of : [ 36%] Building C object addons/loadpng/CMakeFiles/loadpng.dir/loadpng.c.o /home/edgar/Build/allegro-4.4.1.1/addons/loadpng/loadpng.c:22:30: error: ‘Z_BEST_COMPRESSION’ undeclared here (not in a function) make[2]: *** [addons/loadpng/CMakeFiles/loadpng.dir/loadpng.c.o] Error 1 make[1]: *** [addons/loadpng/CMakeFiles/loadpng.dir/all] Error 2 make: *** [all] Error 2 This is because loadpng.c includes png.h, but not zlib.h. Continuiing on, the example program ex12bit failed to build because of : [ 62%] Building C object examples/CMakeFiles/ex12bit.dir/ex12bit.c.o Linking C executable ex12bit ../lib/liballeg-profile.so.4.4.1: undefined reference to `_colorconv_rgb_scale_5x35' ../lib/liballeg-profile.so.4.4.1: undefined reference to `dlsym' ../lib/liballeg-profile.so.4.4.1: undefined reference to `_colorconv_rgb_map' ../lib/liballeg-profile.so.4.4.1: undefined reference to `_colorconv_indexed_palette' ../lib/liballeg-profile.so.4.4.1: undefined reference to `dlopen' ../lib/liballeg-profile.so.4.4.1: undefined reference to `dlclose' collect2: ld returned 1 exit status make[2]: *** [examples/ex12bit] Error 1 make[1]: *** [examples/CMakeFiles/ex12bit.dir/all] Error 2 make: *** [all] Error 2
Edit - The undefined references to _colorconv* must be because either colconv.c or ccolconv.c was not linked during construction of the Allegro library. From looking at the build output, ccolconv.c is built though, so I don't know what is wrong. [ 28%] Building C object CMakeFiles/allegro.dir/src/misc/ccolconv.c.o so I don't know what the problem is. So the current errors are : [ 62%] Building C object examples/CMakeFiles/ex12bit.dir/ex12bit.c.o Linking C executable ex12bit ../lib/liballeg-profile.so.4.4.2: undefined reference to `_colorconv_rgb_scale_5x35' ../lib/liballeg-profile.so.4.4.2: undefined reference to `_colorconv_rgb_map' ../lib/liballeg-profile.so.4.4.2: undefined reference to `_colorconv_indexed_palette' collect2: ld returned 1 exit status make[2]: *** [examples/ex12bit] Error 1 make[1]: *** [examples/CMakeFiles/ex12bit.dir/all] Error 2 make: *** [all] Error 2 The fix for loadpng is easy, but I still don't know what cmake files to edit (and how) to fix the ex12bit linking error. Anyone know what I should do? Append -
3) Both 1) and 2) should be fixed in SVN Allegro 4.4 soon. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|