-
Notifications
You must be signed in to change notification settings - Fork 0
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
Missing proper path to cfitsio. #15
Comments
Usually it is a problem with CCfits. When you installed CCfits are you sure Where is your cfitsio installed? |
Both @michalbilek and @gdespali are having trouble linking cfitsio to glamer during the cmake configuration step so I thought it would be good to add this to the issue on this. Maybe the problems are the same and this will create a record that others might benefit from in the future. First thing @michalbilek is whether there were any errors when you installed cfitsio? And were it is installed? @ntessore It has always been a mystery to me how to properly set the path to cfitsio or any other library by hand within the cmake system when it is not in a stand location. This is the problem that @gdespali is having. I have used Conda to install all the dependancies lately and when I do this everything goes fine even when it is a local installation. |
See pull request #16 |
It seems that there were no errors. Here you can see the command I used and its output: Package Planenvironment location: /home/bilek/miniconda3/envs/glamer This is where my cfitsio files are: |
Hi, we solved the cfitsio issue also. After using the new CMakeList.txt file the error changed. Cmake worked, but not make. The solution was to explicitely add the path of the cfitsio library inside the CMakeList.txt file in SLsimLib folder |
Great! Just don't push that version or it will cause problems on other systems. |
I found that the header path for cfitsio needs to be set in SLsimLin as well as in glamer. If you have a non standard installation of cfitsio you should be able to find it by setting the environmental variable CFITSIO_DIR to the path to your instillation. |
I'm going to move this conversation from email to here so there is a record and others can see it (@ntessore ?).
@JulioFig83 said
Since Friday I have been trying to properlly install it and I have come to the same error over and over again, is until I make the /build directory and type cmake .. I get error:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CFITSIO (missing: CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindCFITSIO.cmake:33 (find_package_handle_standard_args)
cmake/Modules/FindCCfits.cmake:11 (find_package)
CMakeLists.txt:33 (find_package)
I have tried fixing it and I think it might be a problem with the Path to CFITSIO, Friday and today I installed CFITSIO properly and I can even test it and it does work, is just that error that keeps appearing on my screen.
Have you know of someone with the same problem or know how to tackle it? Maybe something with the /glamer/cmake/Modules FindCFITSIO.cmake file that I can change to find the path?
The text was updated successfully, but these errors were encountered: