Menu

#2 Compiling without Boost support fails.

v1.0 (example)
open
nobody
boost (1)
5
2015-02-20
2013-09-26
Dominique
No

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.

Discussion

  • Dominique

    Dominique - 2013-09-26

    I'm attaching my config.log for completeness.

     
  • Dominique

    Dominique - 2013-10-14

    Anybody reads this?

     
  • Antonello Lobianco

    You can compile it, at least the normal integer version, with:

    g++ -O -o myquadprog main.cc QuadProg++.cc Array.cc
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.