geos: No such file or directory

  c++, g++, geos, linux, raspberry-pi

I am trying to use the geos library on a Raspbery Pi 3, using Debian. I am trying to compile a program in C ++.

The same program can be compiled on other computers, this means that the source code of my program is correct.

When executing the command geos-config --version, version 3.7.1 is returned to me.

Would anyone know of anything that could help me?


Building target using GCC compiler: sources/geometry-manager.cpp
g++ -g -c sources/geometry-manager.cpp -std=c++17 -w -c -rdynamic -W `wx-config --cxxflags --libs --gl-libs` `geos-config --cflags` -lgeos -lglut -lGLU -lGL -lm -lGLEW  -o builded/geometry-manager.o `pkg-config --libs geographiclib`
In file included from sources/geometry-manager.cpp:14:
sources/../include/geometry-manager.hpp:26:10: fatal error: geos.h: No such file or directory
 #include <geos.h>
compilation terminated.
make: *** [Makefile:37: builded/geometry-manager.o] Error 1

geos-config --includes : /usr/include.

geos-config --cflags : –I/usr/include.

geos-config --libs : –L/usr/lib/aarcg64-linux-gnu -lgeos-3.7.1 .

I installed via apt-get. However, as it didn’t work, I installed it from the cloned github repository. –

Source: Windows Questions C++