CNES / aviso-fes

FES is the last version of the FES (Finite Element Solution) tide model.
https://cnes.github.io/aviso-fes
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

CMake Error: The source directory “C:/Users/hp” does not appear to contain CMakeLists.txt. #11

Closed AimAlee closed 2 years ago

AimAlee commented 2 years ago

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

installed successfully this command (conda install pyfes -c fbriol )
Then successfully ran this command ( mkdir build && cd build)
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

fbriol commented 2 years ago

If you want to build the code with cmake, you have to clone the GIT repository first, then run the setup and build commands.

git clone https://github.com/CNES/aviso-fes.git
cd aviso-fes
mkdir build
cd build
cmake … -DCMAKE_INSTALL_PREFIX=<TARGET PATH>

If you want to use only, the Python interface, you can also use the python script "setup.py" present in the root of the repository.

git clone https://github.com/CNES/aviso-fes.git
cd aviso-fes
pip install .
AimAlee commented 2 years ago

Thank you sir for reply. which should be the TARGET PATH in this/last command please? cmake … -DCMAKE_INSTALL_PREFIX=

AimAlee commented 1 year ago

Dear sir,

found error :

(avisofes) C:\Users\hp\aviso-fes-2.9.4\aviso-fes\build>cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local 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-2.9.4/aviso-fes/build/CMakeFiles/CMakeOutput.log".

plz help to resolve this issue

regards alee

On Sun, Jul 24, 2022 at 12:10 PM Frédéric BRIOL @.***> wrote:

If you want to build the code with cmake, you have to clone the GIT repository first, then run the setup and build commands.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

mkdir build cd build

cmake … -DCMAKE_INSTALL_PREFIX=

If you want to use only, the Python interface, you can also use the python script "setup.py" present in the root of the repository.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

pip install .

— Reply to this email directly, view it on GitHub https://github.com/CNES/aviso-fes/issues/11#issuecomment-1193261621, or unsubscribe https://github.com/notifications/unsubscribe-auth/APASDCLIQUZMMTJ3SSWCQQTVVTT6TANCNFSM54OGFKTA . You are receiving this because you authored the thread.Message ID: @.***>

-- Muhammad Ali Solangi

Assistant Professor

Department of Geology

Sindh University Campus Mirpurkhas University of Sindh, Jamshoro

*Sindh, Pakistan*Phone# +92 334 3456154 sucm.usindh.edu.pk

fbriol commented 1 year ago

I have generated new packages automatically for python 3.7, 3.8, 3.9 and 3.10 for windows, OSX and Linux. Don't compile your version, but use conda to install the latest version of the library.

conda install -c fbriol pyfes

F.

Le mer. 10 août 2022 à 11:43, Muhammad Ali Solangi @.***> a écrit :

Dear sir,

found error :

(avisofes) C:\Users\hp\aviso-fes-2.9.4\aviso-fes\build>cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local 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-2.9.4/aviso-fes/build/CMakeFiles/CMakeOutput.log".

plz help to resolve this issue

regards alee

On Sun, Jul 24, 2022 at 12:10 PM Frédéric BRIOL @.***> wrote:

If you want to build the code with cmake, you have to clone the GIT repository first, then run the setup and build commands.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

mkdir build cd build

cmake … -DCMAKE_INSTALL_PREFIX=

If you want to use only, the Python interface, you can also use the python script "setup.py" present in the root of the repository.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

pip install .

— Reply to this email directly, view it on GitHub https://github.com/CNES/aviso-fes/issues/11#issuecomment-1193261621, or unsubscribe < https://github.com/notifications/unsubscribe-auth/APASDCLIQUZMMTJ3SSWCQQTVVTT6TANCNFSM54OGFKTA

. You are receiving this because you authored the thread.Message ID: @.***>

-- Muhammad Ali Solangi

Assistant Professor

Department of Geology

Sindh University Campus Mirpurkhas University of Sindh, Jamshoro

*Sindh, Pakistan*Phone# +92 334 3456154 sucm.usindh.edu.pk

— Reply to this email directly, view it on GitHub https://github.com/CNES/aviso-fes/issues/11#issuecomment-1210427092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBAST257ZDPL5GINAP7P3VYN2VHANCNFSM54OGFKTA . You are receiving this because you modified the open/close state.Message ID: @.***>

AimAlee commented 1 year ago

Installation Instructions Requirements

cmake: CMake netcdf:

With reference to url pasted below, when I install cmake and hdf5 (which are mentioned as requirements in installation instructions) they result in conflict and incompatibility. it results as that strict channel priority remove packages required for satiffiabiliy.

https://github.com/AimAlee/aviso-fes/blob/main/INSTALL.md

AimAlee commented 1 year ago

I have generated new packages automatically for python 3.7, 3.8, 3.9 and 3.10 for windows, OSX and Linux. Don't compile your version, but use conda to install the latest version of the library. conda install -c fbriol pyfes F. Le mer. 10 août 2022 à 11:43, Muhammad Ali Solangi @.> a écrit : Dear sir, found error : (avisofes) C:\Users\hp\aviso-fes-2.9.4\aviso-fes\build>cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local 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-2.9.4/aviso-fes/build/CMakeFiles/CMakeOutput.log". plz help to resolve this issue regards alee On Sun, Jul 24, 2022 at 12:10 PM Frédéric BRIOL @.> wrote: > If you want to build the code with cmake, you have to clone the GIT > repository first, then run the setup and build commands. > > git clone https://github.com/CNES/aviso-fes.git > cd aviso-fes > > mkdir build > cd build > > cmake … -DCMAKE_INSTALL_PREFIX= > > If you want to use only, the Python interface, you can also use the python > script "setup.py" present in the root of the repository. > > git clone https://github.com/CNES/aviso-fes.git > cd aviso-fes > > pip install . > > — > Reply to this email directly, view it on GitHub > <#11 (comment)>, or > unsubscribe > < https://github.com/notifications/unsubscribe-auth/APASDCLIQUZMMTJ3SSWCQQTVVTT6TANCNFSM54OGFKTA > > . > You are receiving this because you authored the thread.Message ID: > @.> > -- Muhammad Ali Solangi Assistant Professor Department of Geology Sindh University Campus Mirpurkhas University of Sindh, Jamshoro Sindh, PakistanPhone# +92 334 3456154* sucm.usindh.edu.pk — Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBAST257ZDPL5GINAP7P3VYN2VHANCNFSM54OGFKTA . You are receiving this because you modified the open/close state.Message ID: @.***>

(new_avisfes) C:\Users\hp\aviso-fes-2.9.4\build>cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local 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-2.9.4/build/CMakeFiles/CMakeOutput.log".

goth this error please

AimAlee commented 1 year ago

Grateful for your reply sir. Stay blessed

On Sun, 24 Jul 2022, 12:10 pm Frédéric BRIOL, @.***> wrote:

If you want to build the code with cmake, you have to clone the GIT repository first, then run the setup and build commands.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

mkdir build cd build

cmake … -DCMAKE_INSTALL_PREFIX=

If you want to use only, the Python interface, you can also use the python script "setup.py" present in the root of the repository.

git clone https://github.com/CNES/aviso-fes.git cd aviso-fes

pip install .

— Reply to this email directly, view it on GitHub https://github.com/CNES/aviso-fes/issues/11#issuecomment-1193261621, or unsubscribe https://github.com/notifications/unsubscribe-auth/APASDCLIQUZMMTJ3SSWCQQTVVTT6TANCNFSM54OGFKTA . You are receiving this because you authored the thread.Message ID: @.***>