Adding CMakelist.txt to source directory

Hello sir,
I am trying to setting up this (aviso-fes/INSTALL.md at main · CNES/aviso-fes · GitHub).

  1. installed successfully this command (conda install pyfes -c fbriol )
  2. Then successfully ran this command ( mkdir build && cd build)
  3. Problem starts here when i run this command( cmake … -DCMAKE_INSTALL_PREFIX=/opt/local )

for this third command I receive following massage

(avisofes7) C:\Users\hp\build>cmake … -DCMAKE_INSTALL_PREFIX=/opt/local
CMake Warning:
Ignoring extra path from command line:

“…”

CMake Error: The source directory “C:/Users/hp” does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

I am using windows 10, anaconda env, created this particular enviroment on python 3.7, as newer pythons do not allow to install first command

I am phd student in geology trying to work on remote sensing of coasts. At this perticular point I am hanged…please please help me.

regards

Judging from the error message what you did was something like

git clone <repo> aviso-fes
mkdir build && cd build
cmake ...  -DCMAKE_INSTALL_PREFIX=/opt/local

What you should have done:

git clone <repo> aviso-fes
cd aviso-fes
mkdir build && cd build
cmake ..  -DCMAKE_INSTALL_PREFIX=C:/aviso-fes

or

git clone <repo> aviso-fes
mkdir build && cd build
cmake ../aviso-fes  -DCMAKE_INSTALL_PREFIX=C:/aviso-fes

To sum up:

  • you’re in a wrong directory, trying to give wrong relative path to source
  • even if you were in the right directory, its .. not ...
  • since you’re apparently on Windows, /opt/local is most probably not what you want. Use a path where you want it to be installed
1 Like

(avisofesgit) C:\Users\hp\aviso-fes\build>cmake … -DCMAKE_INSTALL_PREFIX=/users/hp
– Building for: NMake Makefiles
CMake Error at CMakeLists.txt:34 (project):
Running

‘nmake’ ‘-?’

failed with:
The system cannot find the file specified

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
See also “C:/Users/hp/aviso-fes/build/CMakeFiles/CMakeOutput.log”.

On windows you need to run CMake from the Visual Studio Command Prompt so that it can find the needed tools.

1 Like

(avisofesgit) C:\Users\hp\aviso-fes\build>cmake … -DCMAKE_INSTALL_PREFIX=C:/aviso-fes
– Building for: NMake Makefiles
CMake Error at CMakeLists.txt:34 (project):
Running

‘nmake’ ‘-?’

failed with:

The system cannot find the file specified

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
See also “C:/Users/hp/aviso-fes/build/CMakeFiles/CMakeOutput.log”.

ok sir. Thank you. should I run CMake GUI to use Visual studio to find/generate needed tools or any other method please?