Re: can I use or-tools with Ubuntu 11.04?

225 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Laurent Perron

ungelesen,
18.06.2011, 18:07:5918.06.11
an Shawn Helm, or-tools-discuss
BTW, it should be Makefile.local and not makefile.local.

--Laurent

2011/6/19 Laurent Perron <laurent...@gmail.com>:
> Hi,
>
> I did not see a problem.
>
> Can you check copy pasting the path to cbc in the compilation line and
> check it finds cbc/include/coin/...
>
> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include
> -DUSE_CBC -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include
> -DUSE_GLPK -I/usr/include/python2.7 -I/usr/lib/python2.7 -c
> gen/algorithms/knapsack_solver_wrap.cc -o
> objs/knapsack_solver_wrap.o
>
> ==>
>
> ls ../cbc-2.6.2/include
>
> you should see coin.
>
> cbc is compiled statically, no need for LD_LIBRARY_PATH.
> You can try to move the Cbc-2.6.2 elsewhere, but this should not be a problem.
>
> You can work around and not use cbc by undefining it (CBC_DIR and
> CLP_DIR) in Makefile.local and Makefile.def.
>
> As a side note, we use the system zlib, you can remove zlib-1.2.5.
>
> --Laurent
>
> 2011/6/18 Shawn Helm <helm....@gmail.com>:
>> Hi there,
>>
>> I am having trouble installing the software on ubuntu 11.  It happens when I
>> get to the "make all" step at the end.  I think it has to do with cbc and
>> makefile.local.
>> Here's the exact error on failure: "fatal error: coin/CbcMessage.hpp: No
>> such file or directory"
>>
>> I have installed everything under this folder this folder
>>
>> /home/newbie/projects/or_tools
>>
>> BACKGROUND
>>
>> The components I'm using are
>>
>> GLPK
>> http://code.google.com/p/or-tools/downloads/detail?name=google-or-tools-glpk-dependencies-ubuntu-10.04-64bit.tar.gz&can=2&q=
>> CBC
>> http://code.google.com/p/or-tools/downloads/detail?name=google-or-tools-dependencies-ubuntu-10.04-64bit.tar.gz&can=2&q=
>> DEPENDENCIES
>> http://code.google.com/p/or-tools/downloads/detail?name=google-or-tools-dependencies-ubuntu-10.04-64bit.tar.gz&can=2&q=
>> JAVA -- jdk does not come with ubuntu 11
>>
>> sudo add-apt-repository ppa:sun-java-community-team/sun-java6
>>
>> sudo apt-get update
>>
>> sudo apt-get install sun-java6-jdk
>>
>>
>> my folders look like this:
>>
>> /home/newbie/projects/or_tools/install/gflags-1.4
>> /home/newbie/projects/or_tools/install/google-apputils-0.1
>> /home/newbie/projects/or_tools/install/protobuf-2.3.0
>> /home/newbie/projects/or_tools/install/zlib-1.2.5
>>
>> # this is where makefile.local is and where I run 'make all'
>> /home/newbie/projects/or_tools/install/trunk
>>
>> # this was from the components above
>> /home/newbie/projects/or_tools/glpk-4.45
>> /home/newbie/projects/or_tools/cbc-2.6.2
>>
>> # I compiled this from source to fix the problem
>> /home/newbie/projects/or_tools/Cbc-2.6.2
>>
>> Here's the contents of makefile.local after it was modified
>>
>> # Python version -- ubuntu 11 uses python2.7
>> UNIX_PYTHON_VER=2.7
>> # Where gflags is installed.
>> UNIX_GFLAGS_DIR=../gflags-1.4
>> # Swig binary.
>> UNIX_SWIG_BINARY=swig
>> # Where protocol buffers are installed
>> UNIX_PROTOBUF_DIR=../protobuf-2.3.0
>> # This is the root directory of the CLP installation. Please undefine if CLP
>> is
>> # not installed. If you have installed CBC, CLP_DIR can have the same value
>> as
>> # CBC_DIR.
>> UNIX_CLP_DIR=../cbc-2.6.2
>> # This is the root directory of the CBC installation. Please undefine if CBC
>> is
>> # not installed.
>> UNIX_CBC_DIR=../cbc-2.6.2
>> # This is the root directory of glpk installation. Please undefine if GLPK
>> is
>> # not installed.
>> UNIX_GLPK_DIR=../glpk-4.45
>>
>> # Linux jdk root
>> # first, determine 32 or 64 bits.
>> ifeq "$(SYSTEM)" "unix"
>>   LBITS := $(shell getconf LONG_BIT)
>>   ifeq ($(LBITS),64)
>>      JDK_EXT=64
>>   else
>>     JDK_EXT=32
>>   endif
>> endif
>>
>> # Note I had to change the linux reference here for java which I installed
>> above.
>> LINUX_JDK_ROOT=/usr/lib/jvm/java-6-sun-1.6.0.24
>>
>> The error says that "fatal error: coin/CbcMessage.hpp: No such file or
>> directory"
>> I can see that file in these folders
>>
>> /home/newbie/projects/or_tools/cbc-2.6.2/include/coin/CbcMessage.hpp
>>
>> /home/newbie/projects/or_tools/Cbc-2.6.2/Cbc/src/CbcMessage.hpp
>> /home/newbie/projects/or_tools/Cbc-2.6.2/include/coin/CbcMessage.hpp
>>
>> Can you see any typo?
>>
>> Hankank suggested setting up a LD_LIBRARY_PATH for cbc and glpk.  Would that
>> fix it?
>>
>>
>> Thank you very much!
>> Shawn Helm, Portland, Oregon, USA
>>
>>
>>
>> Below is the message when I run 'make all'
>>
>> newbie@ubuntu:~/projects/or_tools/install/trunk$ make all
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/routing.cc -o   objs/routing.o
>> ar rv librouting.a objs/routing.o
>> ar: creating librouting.a
>> a - objs/routing.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/alldiff_cst.cc -o   objs/alldiff_cst.o
>> ../protobuf-2.3.0/bin/protoc --proto_path=constraint_solver
>> --cpp_out=gen/constraint_solver constraint_solver/assignment.proto
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/assignment.cc -o   objs/assignment.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> gen/constraint_solver/assignment.pb.cc -o   objs/assignment.pb.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/constraint_solver.cc -o   objs/constraint_solver.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/constraints.cc -o   objs/constraints.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/count_cst.cc -o   objs/count_cst.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/default_search.cc -o   objs/default_search.o
>> ../protobuf-2.3.0/bin/protoc --proto_path=constraint_solver
>> --cpp_out=gen/constraint_solver constraint_solver/demon_profiler.proto
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/demon_profiler.cc -o   objs/demon_profiler.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> gen/constraint_solver/demon_profiler.pb.cc -o   objs/demon_profiler.pb.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/element.cc -o   objs/element.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/expr_array.cc -o   objs/expr_array.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/expr_cst.cc -o   objs/expr_cst.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/expressions.cc -o   objs/expressions.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/interval.cc -o   objs/interval.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/local_search.cc -o   objs/local_search.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/nogoods.cc -o   objs/nogoods.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/pack.cc -o   objs/pack.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/range_cst.cc -o   objs/range_cst.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/resource.cc -o   objs/resource.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/sched_search.cc -o   objs/sched_search.o
>> ../protobuf-2.3.0/bin/protoc --proto_path=constraint_solver
>> --cpp_out=gen/constraint_solver constraint_solver/search_limit.proto
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/search.cc -o   objs/search.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> gen/constraint_solver/search_limit.pb.cc -o   objs/search_limit.pb.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/table.cc -o   objs/table.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/timetabling.cc -o   objs/timetabling.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/tree_monitor.cc -o   objs/tree_monitor.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> constraint_solver/utilities.cc -o   objs/utilities.o
>> ar rv libconstraint_solver.a objs/alldiff_cst.o objs/assignment.o
>> objs/assignment.pb.o objs/constraint_solver.o objs/constraints.o
>> objs/count_cst.o objs/default_search.o objs/demon_profiler.o
>> objs/demon_profiler.pb.o objs/element.o objs/expr_array.o objs/expr_cst.o
>> objs/expressions.o objs/interval.o objs/local_search.o objs/nogoods.o
>> objs/pack.o objs/range_cst.o objs/resource.o objs/sched_search.o
>> objs/search.o objs/search_limit.pb.o objs/table.o objs/timetabling.o
>> objs/tree_monitor.o objs/utilities.o
>> ar: creating libconstraint_solver.a
>> a - objs/alldiff_cst.o
>> a - objs/assignment.o
>> a - objs/assignment.pb.o
>> a - objs/constraint_solver.o
>> a - objs/constraints.o
>> a - objs/count_cst.o
>> a - objs/default_search.o
>> a - objs/demon_profiler.o
>> a - objs/demon_profiler.pb.o
>> a - objs/element.o
>> a - objs/expr_array.o
>> a - objs/expr_cst.o
>> a - objs/expressions.o
>> a - objs/interval.o
>> a - objs/local_search.o
>> a - objs/nogoods.o
>> a - objs/pack.o
>> a - objs/range_cst.o
>> a - objs/resource.o
>> a - objs/sched_search.o
>> a - objs/search.o
>> a - objs/search_limit.pb.o
>> a - objs/table.o
>> a - objs/timetabling.o
>> a - objs/tree_monitor.o
>> a - objs/utilities.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> util/bitset.cc -o   objs/bitset.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> util/cached_log.cc -o   objs/cached_log.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> util/const_int_array.cc -o   objs/const_int_array.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> util/xml_helper.cc -o   objs/xml_helper.o
>> ar rv libutil.a objs/bitset.o objs/cached_log.o objs/const_int_array.o
>> objs/xml_helper.o
>> ar: creating libutil.a
>> a - objs/bitset.o
>> a - objs/cached_log.o
>> a - objs/const_int_array.o
>> a - objs/xml_helper.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/bitmap.cc -o   objs/bitmap.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/callback.cc -o   objs/callback.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/join.cc -o   objs/join.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/logging.cc -o   objs/logging.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/random.cc -o   objs/random.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/stringpiece.cc -o   objs/stringpiece.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/stringprintf.cc -o   objs/stringprintf.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/sysinfo.cc -o   objs/sysinfo.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> base/timer.cc -o   objs/timer.o
>> ar rv libbase.a objs/bitmap.o objs/callback.o objs/join.o objs/logging.o
>> objs/random.o objs/stringpiece.o objs/stringprintf.o objs/sysinfo.o
>> objs/timer.o
>> ar: creating libbase.a
>> a - objs/bitmap.o
>> a - objs/callback.o
>> a - objs/join.o
>> a - objs/logging.o
>> a - objs/random.o
>> a - objs/stringpiece.o
>> a - objs/stringprintf.o
>> a - objs/sysinfo.o
>> a - objs/timer.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/costas_array.cc -o   objs/costas_array.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/costas_array.o librouting.a libconstraint_solver.a libutil.a libbase.a
>> -o   costas_array
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/cryptarithm.cc -o   objs/cryptarithm.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/cryptarithm.o librouting.a libconstraint_solver.a libutil.a libbase.a
>> -o   cryptarithm
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/cvrptw.cc -o   objs/cvrptw.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/cvrptw.o librouting.a libconstraint_solver.a libutil.a libbase.a -o
>> cvrptw
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/assignment.cc -o   objs/linear_assignment.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/bron_kerbosch.cc -o   objs/bron_kerbosch.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/connectivity.cc -o   objs/connectivity.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/max_flow.cc -o   objs/max_flow.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/min_cost_flow.cc -o   objs/min_cost_flow.o
>> ar rv libgraph.a objs/linear_assignment.o objs/bron_kerbosch.o
>> objs/connectivity.o objs/max_flow.o objs/min_cost_flow.o
>> ar: creating libgraph.a
>> a - objs/linear_assignment.o
>> a - objs/bron_kerbosch.o
>> a - objs/connectivity.o
>> a - objs/max_flow.o
>> a - objs/min_cost_flow.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/bellman_ford.cc -o   objs/bellman_ford.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/dijkstra.cc -o   objs/dijkstra.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> graph/shortestpaths.cc -o   objs/shortestpaths.o
>> ar rv libshortestpaths.a objs/bellman_ford.o objs/dijkstra.o
>> objs/shortestpaths.o
>> ar: creating libshortestpaths.a
>> a - objs/bellman_ford.o
>> a - objs/dijkstra.o
>> a - objs/shortestpaths.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/flow_example.cc -o   objs/flow_example.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/flow_example.o libgraph.a libshortestpaths.a libutil.a libbase.a -o
>> flow_example
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/golomb.cc -o   objs/golomb.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/golomb.o librouting.a libconstraint_solver.a libutil.a libbase.a -o
>> golomb
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/magic_square.cc -o   objs/magic_square.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/magic_square.o librouting.a libconstraint_solver.a libutil.a libbase.a
>> -o   magic_square
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/network_routing.cc -o   objs/network_routing.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/network_routing.o librouting.a libconstraint_solver.a libgraph.a
>> libshortestpaths.a libutil.a libbase.a -o   network_routing
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/nqueens.cc -o   objs/nqueens.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/nqueens.o librouting.a libconstraint_solver.a libutil.a libbase.a -o
>> nqueens
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> examples/tsp.cc -o   objs/tsp.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath
>> ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> objs/tsp.o librouting.a libconstraint_solver.a libutil.a libbase.a -o   tsp
>> swig -c++ -python -o gen/constraint_solver/constraint_solver_wrap.cc -module
>> pywrapcp constraint_solver/constraint_solver.swig
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -I/usr/include/python2.7 -I/usr/lib/python2.7 -c
>> gen/constraint_solver/constraint_solver_wrap.cc -o
>> objs/constraint_solver_wrap.o
>> gcc -shared -o   _pywrapcp.so objs/constraint_solver_wrap.o librouting.a
>> libconstraint_solver.a libutil.a libbase.a -Wl,-rpath ../gflags-1.4/lib
>> -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath ../protobuf-2.3.0/lib
>> -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> swig -c++ -python -o gen/constraint_solver/routing_wrap.cc -module
>> pywraprouting constraint_solver/routing.swig
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -I/usr/include/python2.7 -I/usr/lib/python2.7 -c
>> gen/constraint_solver/routing_wrap.cc -o   objs/routing_wrap.o
>> gcc -shared -o   _pywraprouting.so objs/routing_wrap.o librouting.a
>> libconstraint_solver.a libutil.a libbase.a -Wl,-rpath ../gflags-1.4/lib
>> -L../gflags-1.4/lib -lgflags -lz -Wl,-rpath ../protobuf-2.3.0/lib
>> -L../protobuf-2.3.0/lib -lprotobuf -lpthread -lrt
>> swig -c++ -java -o gen/constraint_solver/constraint_solver_java_wrap.cc
>> -package com.google.ortools.constraintsolver -outdir
>> gen/com/google/ortools/constraintsolver
>> constraint_solver/constraint_solver.swig
>> constraint_solver/constraint_solver.h:2432: Warning(473): Returning a
>> pointer or reference in a director method is not recommended.
>> sed -i -e 's/Tlong/T_long/g'
>> gen/com/google/ortools/constraintsolver/Solver.java
>> /usr/lib/jvm/java-6-sun-1.6.0.24/bin/javac -d objs
>> com/google/ortools/constraintsolver/*.java
>> gen/com/google/ortools/constraintsolver/*.java
>> /usr/lib/jvm/java-6-sun-1.6.0.24/bin/jar cf
>> com.google.ortools.constraintsolver.jar -C objs
>> com/google/ortools/constraintsolver
>> g++ -fPIC -O1 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -I/usr/lib/jvm/java-6-sun-1.6.0.24/include
>> -I/usr/lib/jvm/java-6-sun-1.6.0.24/include/linux -c
>> gen/constraint_solver/constraint_solver_java_wrap.cc -o
>> objs/constraint_solver_java_wrap.o
>> gcc -shared -o   libjniconstraintsolver.so
>> objs/constraint_solver_java_wrap.o librouting.a libconstraint_solver.a
>> libutil.a libbase.a -Wl,-rpath ../gflags-1.4/lib -L../gflags-1.4/lib
>> -lgflags -lz -Wl,-rpath ../protobuf-2.3.0/lib -L../protobuf-2.3.0/lib
>> -lprotobuf -lpthread -lrt
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> algorithms/hungarian.cc -o   objs/hungarian.o
>> ../protobuf-2.3.0/bin/protoc --proto_path=linear_solver
>> --cpp_out=gen/linear_solver linear_solver/linear_solver.proto
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK -c
>> algorithms/knapsack_solver.cc -o   objs/knapsack_solver.o
>> ar rv libalgorithms.a objs/hungarian.o objs/knapsack_solver.o
>> ar: creating libalgorithms.a
>> a - objs/hungarian.o
>> a - objs/knapsack_solver.o
>> swig -c++ -python -o gen/algorithms/knapsack_solver_wrap.cc -module
>> pywrapknapsack_solver algorithms/knapsack_solver.swig
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK
>> -I/usr/include/python2.7 -I/usr/lib/python2.7 -c
>> gen/algorithms/knapsack_solver_wrap.cc -o   objs/knapsack_solver_wrap.o
>> g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
>> -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include -DUSE_CBC
>> -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include -DUSE_GLPK  -c
>> linear_solver/cbc_interface.cc -o   objs/cbc_interface.o
>> linear_solver/cbc_interface.cc:34:31: fatal error: coin/CbcMessage.hpp: No
>> such file or directory
>> compilation terminated.
>> make: *** [objs/cbc_interface.o] Error 1
>>
>>
>
>
>
> --
> --Laurent
>

--
--Laurent

hakank

ungelesen,
20.06.2011, 01:23:3720.06.11
an or-tools-discuss
I changed to Ubuntu 11.04 the other week (from 10.04 via an
installation of 10.11) and the only thing I had to change was the
Python version to:

UNIX_PYTHON_VER=2.7

It took me a while to realize that I had to change this variable (it
complained about a missing Python.h). Also, I did a couple of `make
clean && make all` during these tests.

The relevant paths in my LD_LIBRARY_PATH are the following:

$HOME/or-tools/svn/or-tools-read-only
$HOME/or-tools/glpk-4.45/lib
$HOME/or-tools/cbc-2.6.2/lib/coin


And this is my Makefile.local if it is of any help. Maybe some stuff
is not installed in the recommended places, but it works well for me.


# Python version (to be used to find include files).
# UNIX_PYTHON_VER=2.6
UNIX_PYTHON_VER=2.7
# Where gflags is installed.
# UNIX_GFLAGS_DIR=../gflags-1.4
UNIX_GFLAGS_DIR=/usr/local
# Swig binary.
UNIX_SWIG_BINARY=swig
# Where protocol buffers are installed
# UNIX_PROTOBUF_DIR=../protobuf-2.3.0
UNIX_PROTOBUF_DIR=/usr/local
# This is the root directory of the CLP installation. Please undefine
if CLP is
# not installed. If you have installed CBC, CLP_DIR can have the same
value as
# CBC_DIR.
# UNIX_CLP_DIR=../cbc-2.6.2
UNIX_CLP_DIR=../../cbc-2.6.2
# This is the root directory of the CBC installation. Please undefine
if CBC is
# not installed.
# UNIX_CBC_DIR=../cbc-2.6.2
UNIX_CBC_DIR=../../cbc-2.6.2
# This is the root directory of glpk installation. Please undefine if
GLPK is
# not installed.
# UNIX_GLPK_DIR=../glpk-4.45
UNIX_GLPK_DIR=../../glpk-4.45
# Linux jdk root
# first, determine 32 or 64 bits.
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
JDK_EXT=64
else
JDK_EXT=32
endif
# LINUX_JDK_ROOT=/usr/local/buildtools/java/jdk-$(JDK_EXT)
LINUX_JDK_ROOT=/usr/lib/jvm/java-6-sun/
# Include files path for java on mac os X
MAC_JDK_HEADERS=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/
Contents/Home/include
#MAC_JDK_HEADERS=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/
Contents/Home/bundle/Headers

JAVA_INC=-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/
include/linux
JAVAC_BIN=javac
JAVA_BIN=java

Hope this helps

/Hakan (a.k.a. hakank)


On Jun 19, 12:07 am, Laurent Perron <laurent.per...@gmail.com> wrote:
> BTW, it should be Makefile.local and not makefile.local.
>
> --Laurent
>
> 2011/6/19 Laurent Perron <laurent.per...@gmail.com>:
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > I did not see a problem.
>
> > Can you check copy pasting the path to cbc in the compilation line and
> > check it finds cbc/include/coin/...
>
> > g++ -fPIC -O3 -DNDEBUG -I. -Igen -I../gflags-1.4/include -DARCH_K8
> > -Wno-deprecated -I../protobuf-2.3.0/include -I../cbc-2.6.2/include
> > -DUSE_CBC -I../cbc-2.6.2/include -DUSE_CLP -I../glpk-4.45/include
> > -DUSE_GLPK -I/usr/include/python2.7 -I/usr/lib/python2.7 -c
> > gen/algorithms/knapsack_solver_wrap.cc -o
> > objs/knapsack_solver_wrap.o
>
> > ==>
>
> > ls ../cbc-2.6.2/include
>
> > you should see coin.
>
> > cbc is compiled statically, no need for LD_LIBRARY_PATH.
> > You can try to move the Cbc-2.6.2 elsewhere, but this should not be a problem.
>
> > You can work around and not use cbc by undefining it (CBC_DIR and
> > CLP_DIR) in Makefile.local and Makefile.def.
>
> > As a side note, we use the system zlib, you can remove zlib-1.2.5.
>
> > --Laurent
>
> > 2011/6/18 Shawn Helm <helm.sh...@gmail.com>:
> >> Hi there,
>
> >> I am having trouble installing the software on ubuntu 11.  It happens when I
> >> get to the "make all" step at the end.  I think it has to do with cbc and
> >> makefile.local.
> >> Here's the exact error on failure: "fatal error: coin/CbcMessage.hpp: No
> >> such file or directory"
>
> >> I have installed everything under this folder this folder
>
> >> /home/newbie/projects/or_tools
>
> >> BACKGROUND
>
> >> The components I'm using are
>
> >> GLPK
> >>http://code.google.com/p/or-tools/downloads/detail?name=google-or-too...
> >> CBC
> >>http://code.google.com/p/or-tools/downloads/detail?name=google-or-too...
> >> DEPENDENCIES
> >>http://code.google.com/p/or-tools/downloads/detail?name=google-or-too...
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten