Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE Libraries set to Not Found #7

Open
tcputman opened this issue Dec 29, 2020 · 2 comments
Open

CMAKE Libraries set to Not Found #7

tcputman opened this issue Dec 29, 2020 · 2 comments

Comments

@tcputman
Copy link

build.sh fails with the following error:

Creating OPI plugin
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBOPIFORTRAN
linked by target "neptune-opi" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/src
LIBSLAM
linked by target "neptune-opi" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/src
linked by target "neptune" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/src
linked by target "neptune-sa" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/src
linked by target "openmp-test-sa" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/src
linked by target "neptune-valsent1b" in directory /cygdrive/c/Users/putmatc1/Documents/Neptune/neptuneV3/neptune/validation/sentinel-1b/src

find_library command in the src/CMakeLists.txt file is not returning the desired libraries (line 97). I have confirmed that the build.sh file is making the desired .so files in the lib/ directory. These .so files appear to trace to .dlls in OPI and libslam.

Here are the details for my build:
OS: Windows
Fortran compiler: gfortran
terminal: Cygwin
CMake: 3.14.5
Graphviz: 2.44.1

Any assistance is appreciated

@ckebschull
Copy link
Collaborator

ckebschull commented Jan 15, 2021

Hi @tcputman
Thanks for the feedback. I have not applied the build script yet using Cygwin.
You could try to add this to the top of the build script:

#!/bin/bash
#
# Define how to build the libraries and executables:
BUILD_TYPE=Debug
Fortran_COMPILER=gfortran
LIBSUFFIX="so"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
  LIBSUFFIX="so"
elif [[ "$OSTYPE" == "darwin"* ]]; then
  LIBSUFFIX="dylib"
elif [[ "$OSTYPE" == "CYGWIN"* ]]; then
  LIBSUFFIX="dll"
elif [[ "$OSTYPE" == "MINGW"* ]]; then
  LIBSUFFIX="dll"
fi

This might work. It is untested, as I do not have Cygwin or MinGW installed.
It works using the Windows Subsystem for Linux though, where I have Ubuntu installed. Did you try that yet?
Cheers,
Christopher

@tcputman
Copy link
Author

tcputman commented Jan 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants