Compiling without Boost support fails.
Status: Beta
Brought to you by:
digaspero
Hi. I'm trying to compile QuadProg++ without Boost support. According to the documentation provided by ./configure --help
, I use ./configure --without-boost
. The configure
stage goes well but make
fails as follows:
$ make make all-recursive Making all in src /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT QuadProg++.lo -MD -MP -MF .deps/QuadProg++.Tpo -c -o QuadProg++.lo QuadProg++.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT QuadProg++.lo -MD -MP -MF .deps/QuadProg++.Tpo -c QuadProg++.cc -fno-common -DPIC -o .libs/QuadProg++.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT QuadProg++.lo -MD -MP -MF .deps/QuadProg++.Tpo -c QuadProg++.cc -o QuadProg++.o >/dev/null 2>&1 mv -f .deps/QuadProg++.Tpo .deps/QuadProg++.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT Array.lo -MD -MP -MF .deps/Array.Tpo -c -o Array.lo Array.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT Array.lo -MD -MP -MF .deps/Array.Tpo -c Array.cc -fno-common -DPIC -o .libs/Array.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT Array.lo -MD -MP -MF .deps/Array.Tpo -c Array.cc -o Array.o >/dev/null 2>&1 mv -f .deps/Array.Tpo .deps/Array.Plo /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o libQuadProgpp.la -rpath /usr/local/lib QuadProg++.lo Array.lo libtool: link: g++ -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libQuadProgpp.0.dylib .libs/QuadProg++.o .libs/Array.o -install_name /usr/local/lib/libQuadProgpp.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module libtool: link: dsymutil .libs/libQuadProgpp.0.dylib || : libtool: link: (cd ".libs" && rm -f "libQuadProgpp.dylib" && ln -s "libQuadProgpp.0.dylib" "libQuadProgpp.dylib") libtool: link: (cd ".libs" && rm -f "libQuadProgpp.0.0.0.dylib" && ln -s "libQuadProgpp.0.dylib" "libQuadProgpp.0.0.0.dylib") libtool: link: ar cru .libs/libQuadProgpp.a QuadProg++.o Array.o libtool: link: ranlib .libs/libQuadProgpp.a libtool: link: ( cd ".libs" && rm -f "libQuadProgpp.la" && ln -s "../libQuadProgpp.la" "libQuadProgpp.la" ) /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT libuQuadProgpp_la-uQuadProg++.lo -MD -MP -MF .deps/libuQuadProgpp_la-uQuadProg++.Tpo -c -o libuQuadProgpp_la-uQuadProg++.lo `test -f 'uQuadProg++.cc' || echo './'`uQuadProg++.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT libuQuadProgpp_la-uQuadProg++.lo -MD -MP -MF .deps/libuQuadProgpp_la-uQuadProg++.Tpo -c uQuadProg++.cc -fno-common -DPIC -o .libs/libuQuadProgpp_la-uQuadProg++.o In file included from uQuadProg++.cc:37: uQuadProg++.hh:77:42: error: boost/numeric/ublas/vector.hpp: No such file or directory uQuadProg++.hh:78:42: error: boost/numeric/ublas/matrix.hpp: No such file or directory In file included from uQuadProg++.cc:37:
Configuring with --with-boost=no
produces the same result.
Looking in uQuadProg++.cc
, it seems that it tries to include the Boost headers regardless of whether the user wants Boost support or not.
Compiling with Boost support works fine.
Thanks.
I'm attaching my
config.log
for completeness.Anybody reads this?
You can compile it, at least the normal integer version, with: