Skip to content

Error in compilation on Ubuntu 18.04 #18

@igarag

Description

@igarag

Hi to all.

I'm installing the library and I had this error during compilation following the instructions in the README.

[  0%] Built target playercommon
[  0%] Generating functiontable_gen.h
[  0%] Built target functiontable_gen
[  0%] Generating player_interfaces.h
[  0%] Built target player_interfaces
[  0%] Generating playerxdr.?
[  1%] Built target playerxdr_src
[  1%] Generating interface_table.h
[  2%] Built target interface_table
[  4%] Built target playerinterface
[  4%] Built target playerjpeg
[  5%] Linking C shared library libplayerwkb.so
/usr/bin/ld: cannot find -lgeos
collect2: error: ld returned 1 exit status
libplayerwkb/CMakeFiles/playerwkb.dir/build.make:95: recipe for target 'libplayerwkb/libplayerwkb.so.3.1.1-dev' failed
make[2]: *** [libplayerwkb/libplayerwkb.so.3.1.1-dev] Error 1
CMakeFiles/Makefile2:739: recipe for target 'libplayerwkb/CMakeFiles/playerwkb.dir/all' failed
make[1]: *** [libplayerwkb/CMakeFiles/playerwkb.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

The computer has Ubuntu 18.04 almost newly installed.

I solved the error by installing the libgeos++ library with the following command:

sudo apt install libgeos++-dev

With this library installed the compilation has been successfully completed.

Greetings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions