|
From: Braden M. <br...@en...> - 2009-09-12 04:35:38
|
On Sat, 2009-09-12 at 01:59 +0000, lbu...@co... wrote:
> I've been trying to build OpenVRML on both Ubuntu 9.0.4 and RedHat 5.3 without success. I've tried to narrow things down to the bare essentials with the following configure:
>
> ./configure --disable-mozilla-plugin --disable-script-node-javascript --disable-script-node-java --disable-player --disable-xembed
>
> This gets me through configure without complaint on both systems, but gives me compile errors. Here I must beg for insight.
>
> O n Ubuntu I've gotten:
>
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../src/libopenvrml -I../src/libopenvrml -I../src/local/libopenvrml-dl -DOPENVRML_LIBDIR_=\"/usr/local/lib\" -DOPENVRML_PKGDATADIR_=\"/usr/local/share/openvrml\" -DOPENVRML_PKGLIBDIR_=\"/usr/local/lib/openvrml\" -DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS -DBOOST_MPL_LIMIT_VECTOR_SIZE=30 -I/usr/include/freetype2 -pthread -I/usr/include/libxml2 -g -O2 -MT libopenvrml/openvrml/libopenvrml_libopenvrml_la-basetypes.lo -MD -MP -MF libopenvrml/openvrml/.deps/libopenvrml_libopenvrml_la-basetypes.Tpo -c libopenvrml/openvrml/basetypes.cpp -fPIC -DPIC -o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-basetypes.o
> In file included from libopenvrml/openvrml/x3d_vrml_grammar.h:24,
> from libopenvrml/openvrml/basetypes.cpp:23:
> ../src/libopenvrml/openvrml/vrml97_grammar.h:25:47: error: boost/spirit/include/classic.hpp: No such file or directory
> ../src/libopenvrml/openvrml/vrml97_grammar.h:26:53: error: boost/spirit/include/classic_actor.hpp: No such file or directory
> ../src/libopenvrml/openvrml/vrml97_grammar.h:27:55: error: boost/spirit/include/classic_dynamic.hpp: No such file or directory
> ../src/libopenvrml/openvrml/vrml97_grammar.h:28:48: error: boost/spirit/include/phoenix1.hpp: No such file or directory
> In file included from libopenvrml/openvrml/x3d_vrml_grammar.h:24,
> from libopenvrml/openvrml/basetypes.cpp:23:
> ../src/libopenvrml/openvrml/vrml97_grammar.h:35: error: 'boost::spirit' has not been declared
> ../src/libopenvrml/openvrml/vrml97_grammar.h:35: error: expected `{' before 'char_parser'
> ../src/libopenvrml/openvrml/vrml97_grammar.h:35: error: expected initializer before '<' token
> libopenvrml/openvrml/basetypes.cpp:5050: error: expected `}' at end of input
I'm guessing your Boost version is too old. As documented in README,
you need at least 1.37.
If that's not the problem, then there's probably some development
package with Boost Spirit headers in it that you're missing.
> On RedHat I had to edit the configure script to edit out the -mt from the BOOST_LIB_SUFFIX (set to empty string to use the installed "libboost_thread.a").
".a"? Is that installed from a Red Hat rpm, or did you build that
yourself?
And you don't need to edit the configure script. You can just set
BOOST_LIB_SUFFIX at configure time; e.g.:
$ configure BOOST_LIB_SUFFIX=''
> There I end up with:
>
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:1444: instantiated from 'void std::deque<_Tp, _Alloc>::_M_reserve_map_at_back(size_t) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/deque.tcc:348: instantiated from 'void std::deque<_Tp, _Alloc>::_M_push_back_aux(const _Tp&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:1045: instantiated from 'void std::deque<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_stack.h:191: instantiated from 'void std::stack<_Tp, _Sequence>::push(const typename _Sequence::value_type&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Sequence = std::deque<openvrml::local::vrml97_parse_actions::node_data, std::allocator<openvrml::local::vrml97_parse_actions::node_data> >]'^M
> ../src/libopenvrml/openvrml/local/parse_vrml.h:285: instantiated from here^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:298: warning: lowering visibility of 'static _Tp* std::__copy<true, std::random_access_iterator_tag>::copy(const _Tp*, const _Tp*, _Tp*) [with _Tp = openvrml::local::vrml97_parse_actions::node_data*]' to match its type^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_backward<true, std::random_access_iterator_tag>::copy_b(const _Tp*, const _Tp*, _Tp*) [with _Tp = openvrml::local::vrml97_parse_actions::node_data*]':^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:443: instantiated from '_BI2 std::__copy_backward_aux(_BI1, _BI1, _BI2) [with _BI1 = openvrml::local::vrml97_parse_actions::node_data**, _BI2 = openvrml::local::vrml97_parse_actions::node_data**]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:452: instantiated from 'static _BI2 std::__copy_backward_normal<<anonymous>, <anonymous> >::copy_b_n(_BI1, _BI1, _BI2) [with _BI1 = openvrml::local::vrml97_parse_actions::node_data**, _BI2 = openvrml::local::vrml97_parse_actions::node_data**, bool <anonymous> = false, bool <anonymous> = false]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:517: instantiated from '_BI2 std::copy_backward(_BI1, _BI1, _BI2) [with _BI1 = openvrml::local::vrml97_parse_actions::node_data**, _BI2 = openvrml::local::vrml97_parse_actions::node_data**]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/deque.tcc:740: instantiated from 'void std::deque<_Tp, _Alloc>::_M_reallocate_map(size_t, bool) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:1444: instantiated from 'void std::deque<_Tp, _Alloc>::_M_reserve_map_at_back(size_t) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/deque.tcc:348: instantiated from 'void std::deque<_Tp, _Alloc>::_M_push_back_aux(const _Tp&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:1045: instantiated from 'void std::deque<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Alloc = std::allocator<openvrml::local::vrml97_parse_actions::node_data>]'^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_stack.h:191: instantiated from 'void std::stack<_Tp, _Sequence>::push(const typename _Sequence::value_type&) [with _Tp = openvrml::local::vrml97_parse_actions::node_data, _Sequence = std::deque<openvrml::local::vrml97_parse_actions::node_data, std::allocator<openvrml::local::vrml97_parse_actions::node_data> >]'^M
> ../src/libopenvrml/openvrml/local/parse_vrml.h:285: instantiated from here^M
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:422: warning: lowering visibility of 'static _Tp* std::__copy_backward<true, std::random_access_iterator_tag>::copy_b(const _Tp*, const _Tp*, _Tp*) [with _Tp = openvrml::local::vrml97_parse_actions::node_data*]' to match its type^M
> make[4]: *** [libopenvrml/openvrml/libopenvrml_libopenvrml_la-scene.lo] Error 1^M
> make[4]: Leaving directory `/home/butler/src/vrml/openvrml-0.18.3/src'^M
> make[3]: *** [all-recursive] Error 1^M
> make[3]: Leaving directory `/home/butler/src/vrml/openvrml-0.18.3/src'^M
> make[2]: *** [all] Error 2^M
> make[2]: Leaving directory `/home/butler/src/vrml/openvrml-0.18.3/src'^M
> make[1]: *** [all-recursive] Error 1^M
> make[1]: Leaving directory `/home/butler/src/vrml/openvrml-0.18.3'^M
Something must have gotten cut off here. Obviously there was an error,
but the only messages printed out are warnings.
--
Braden McDaniel <br...@en...>
|