Error in instalation - gflags.h

142 views
Skip to first unread message

Rogerio Atem de Carvalho

unread,
Mar 21, 2013, 5:06:23 PM3/21/13
to or-tools...@googlegroups.com
Hi,

I am installing on Ubuntu 10.04, and first I've got an error related to the hash library, solved after installing sparsehash-2.0.2.
Now I am getting the "gflags.h error" below. How can I proceed?
(I know that that people posted the same error on the project page, but I couldn't get any solution)

Thanks on advance.

In file included from src/base/logging.h:20,
                 from src/constraint_solver/alldiff_cst.cc:22:
src/base/commandlineflags.h:17:27: error: gflags/gflags.h: Arquivo ou diretório não encontrado
In file included from src/constraint_solver/alldiff_cst.cc:22:
src/base/logging.h:23: error: expected constructor, destructor, or type conversion before ‘(’ token
src/base/logging.h:24: error: expected constructor, destructor, or type conversion before ‘(’ token
src/base/logging.h: In constructor ‘LogMessage::LogMessage(const char*, int)’:
src/base/logging.h:88: error: ‘FLAGS_log_prefix’ was not declared in this scope
make: ** [objs/alldiff_cst.o] Erro 1

Laurent Perron

unread,
Mar 21, 2013, 5:08:28 PM3/21/13
to or-tools-discuss

Did you run the make third_party command as described in the getting started?

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rogerio Atem de Carvalho

unread,
Mar 21, 2013, 5:38:58 PM3/21/13
to or-tools...@googlegroups.com
Oh, shame on me, I thought it was only for Mac users, I am doing it right now.
Thanks!

Laurent Perron

unread,
Mar 21, 2013, 5:41:44 PM3/21/13
to or-tools-discuss

Don't forget to delete Makefile.local. it should be recreated automatically.

Thanks

Rogerio Atem de Carvalho

unread,
Mar 21, 2013, 7:48:15 PM3/21/13
to or-tools...@googlegroups.com
Hi again,
everything went fine, but when I make all:
src/constraint_solver/routing.cc:2236: error: ‘atan2’ is not a member of ‘std’
Any hint?

Thanks in advance

Laurent Perron

unread,
Mar 21, 2013, 8:08:21 PM3/21/13
to or-tools-discuss

Old version of GCC maybe.
Can you upgrade tout ubuntu 12.04?

Rogerio Atem de Carvalho

unread,
Mar 21, 2013, 8:39:30 PM3/21/13
to or-tools...@googlegroups.com
Uh, I see, I will upgrade.
Thanks one more time.
Reply all
Reply to author
Forward
0 new messages