Google cartographer without ROS

770 views
Skip to first unread message

pa...@flylab.io

unread,
Jan 17, 2017, 10:59:40 AM1/17/17
to google-cartographer
Hello,

I have followed this tutorial in order to install Cartographer and getting started without ROS.
My problem is when I run the bash script install_cartographer (located in cartographer/scripts), it's not compiling when the script tries to do "ninja" command.
Here is th error I got :
```
[6/281] Building CXX object CMakeFiles/cartographer.dir/common/lua_parameter_dictionary.cc.o
FAILED: /usr/bin/c++   -DGOOGLE_GLOG_DLL_DECL="" -isystem /usr/include/eigen3 -isystem /usr/local/include -isystem /usr/include/lua5.1 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/libpng12 -I. -I../ -O3 -DNDEBUG    -pthread -std=c++11  -Wall -Wpedantic -Werror=format-security -Werror=missing-braces -Werror=reorder -Werror=return-type -Werror=uninitialized -O3 -DNDEBUG -MMD -MT CMakeFiles/cartographer.dir/common/lua_parameter_dictionary.cc.o -MF CMakeFiles/cartographer.dir/common/lua_parameter_dictionary.cc.o.d -o CMakeFiles/cartographer.dir/common/lua_parameter_dictionary.cc.o -c common/lua_parameter_dictionary.cc
common/lua_parameter_dictionary.cc: In function ‘void cartographer::common::{anonymous}::QuoteStringOnStack(lua_State*)’:
common/lua_parameter_dictionary.cc:49:24: error: ‘lua_pushglobaltable’ was not declared in this scope
   lua_pushglobaltable(L);         // S: ... string globals
                        ^
common/lua_parameter_dictionary.cc: In lambda function:
common/lua_parameter_dictionary.cc:332:3: error: control reaches end of non-void function [-Werror=return-type]
   };
   ^
cc1plus: some warnings being treated as errors
[6/281] Building CXX object CMakeFiles/cartographer.dir/mapping_2d/scan_matching/real_time_correlative_scan_matcher.cc.o
ninja: build stopped: subcommand failed.
```


So my first question is has anyone tried to install and use this version of Cartographer (without ROS)?

If yes, did you get the same error?

Damon Kohler

unread,
Jan 17, 2017, 11:55:10 AM1/17/17
to pa...@flylab.io, google-cartographer
Hi,

Could you please file an issue on Github and include some details about your configuration (OS, compiler version, etc.)?

Have a look at the Travis configuration for an example of building and installing the library in a stock Trusy/Xenial Docker image. Builds are green so I expect this is an issue resulting from an untested configuration.

Damon

--
You received this message because you are subscribed to the Google Groups "google-cartographer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartogra...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cartographer/1f567fdb-c2f0-442c-be82-47bb5d04853e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

Przemysław Makosiej

unread,
Jan 24, 2017, 10:43:10 AM1/24/17
to google-cartographer
This may have to do with your lua version. lua_pushglobaltable is available in 5.2

pa...@flylab.io

unread,
Jan 27, 2017, 4:53:41 AM1/27/17
to google-cartographer, pa...@flylab.io
Hi,

First of all thank you for your answer, and to answer to your question my OS is Ubuntu 16.04 LTS, G++ compiler version 5.4.0.

I solved some of the package installing problems, there was an error in my package manager and I solved it by using this command (reference: http://askubuntu.com/questions/66875/how-to-disable-multiarch-support).

sudo dpkg --remove-architecture arm64

I only needed the amd64.

H
owever there is a new problem:
after having run succesfully (and consecutively) install_debs.sh and install_ceres.h, I executed install_cartographer.sh script
and I got this :
# Build and install Cartographer.
cd cartographer
mkdir build
cd build
cmake
.. -G Ninja
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at common/CMakeLists.txt:19 (google_test):
 
Unknown CMake command "google_test".


CMake Warning (dev) in CMakeLists.txt:
 
No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required
(VERSION 3.5)

  should be added at the top of the file
.  The version specified may be lower
 
if you wish to support older CMake versions for this project.  For more
  information run
"cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!


It seems like the install_debs.sh hasn't installed google test.

Did you got the same error ?
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsub...@googlegroups.com.

Damon Kohler

unread,
Jan 30, 2017, 6:20:49 AM1/30/17
to pa...@flylab.io, google-cartographer
Could you please file an issue on GitHub? It's easier to track that way.

To unsubscribe from this group and stop receiving emails from it, send an email to google-cartogra...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
--
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

--
You received this message because you are subscribed to the Google Groups "google-cartographer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartogra...@googlegroups.com.

To post to this group, send email to google-ca...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

pa...@flylab.io

unread,
Jan 30, 2017, 6:42:53 AM1/30/17
to google-cartographer, pa...@flylab.io
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsub...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
--
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

--
You received this message because you are subscribed to the Google Groups "google-cartographer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages