error compiling gmsh with -DENABLE_BUILD_DYNAMIC=1
I'm trying to build gmsh dynamically linked to the shared Gmsh library with
cmake -DENABLE_BUILD_DYNAMIC=1 ..
make
make install
but I get this error message
Linking CXX shared library libgmsh.so
/usr/bin/ld: /usr/local/lib/libfltk_gl.a(Fl_Gl_Device_Plugin.o): relocation R_X86_64_PC32 against symbol `fl_graphics_driver' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/shared.dir/build.make:11616: libgmsh.so.4.9.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:1517: CMakeFiles/shared.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
I installed the following fltk
fltk-config --api-version
1.3
many thanks in advance for your help,
andrea