From: Philip L. <ph...@ed...> - 2007-09-17 03:59:34
|
Hi all, Here is another obstacle.. hopefully an easy fix for this one.. Building OpenVRML-0.16.6, this time on Mac OS X 10.4.10 (Xcode tools 2.4.1, gcc v4.0.1.Dependencies provided by Fink; gnome etc., seamonkey (for libjs), libpng/jpeg/z. The error appears to be a "const" qualifier popping up unexpectedly. Here is the relevant part of the build log: /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H - I. -I../.. -I../../lib/antlr -I../../java -I../../src/libopenvrml - DOPENVRML_LIBDIR_=\"/usr/local/lib\" -DOPENVRML_PKGDATADIR_=\"/usr/ local/share/openvrml\" -DBOOST_SPIRIT_THREADSAFE - DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS - DBOOST_MPL_LIMIT_VECTOR_SIZE=30 -I/sw/include -D_THREAD_SAFE -I/usr/ X11R6/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/ freetype219/include -I/sw/include/js -DXP_UNIX -g -O2 -c -o openvrml/ vrml97node.lo openvrml/vrml97node.cpp g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/antlr -I../../java - I../../src/libopenvrml -DOPENVRML_LIBDIR_=\"/usr/local/lib\" - DOPENVRML_PKGDATADIR_=\"/usr/local/share/openvrml\" - DBOOST_SPIRIT_THREADSAFE -DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS - DBOOST_MPL_LIMIT_VECTOR_SIZE=30 -I/sw/include -D_THREAD_SAFE -I/usr/ X11R6/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/ freetype219/include -I/sw/include/js -DXP_UNIX -g -O2 -c openvrml/ vrml97node.cpp -fno-common -DPIC -o openvrml/.libs/vrml97node.o In file included from /sw/include/jpeglib.h:28, from openvrml/vrml97node.cpp:34: /sw/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined In file included from openvrml/vrml97node.cpp:26: ../../config.h:23:1: warning: this is the location of the previous definition openvrml/vrml97node.cpp: In member function 'void<unnamed>::text_node::update_geometry()': openvrml/vrml97node.cpp:22976: error: invalid conversion from 'int (*) (FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)' openvrml/vrml97node.cpp:22976: error: invalid conversion from 'int (*) (FT_Vector*, void*)' to 'int (*)(const FT_Vector*, void*)' openvrml/vrml97node.cpp:22976: error: invalid conversion from 'int (*) (FT_Vector*, FT_Vector*, void*)' to 'int (*)(const FT_Vector*, const FT_Vector*, void*)' openvrml/vrml97node.cpp:22976: error: invalid conversion from 'int (*) (FT_Vector*, FT_Vector*, FT_Vector*, void*)' to 'int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' make[4]: *** [openvrml/vrml97node.lo] Error 1 make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 My configure line was: ./configure --with-apple-opengl-framework --disable-dependency- tracking FREETYPE_CFLAGS="`/sw/lib/freetype219/bin/freetype-config -- cflags`" FREETYPE_LIBS="`/sw/lib/freetype219/bin/freetype-config -- libs`" JS_CFLAGS="-I/sw/include/js -DXP_UNIX" CPPFLAGS="-I/sw/ include" LDFLAGS="-L/sw/lib" --disable-mozilla-plugin Cheers, Phil. |