Comments (8)
ETA: Wow, I feel dumb. One of the install guides I had originally looked at (this one) was very old and tar xfz ../sun_cmake.tar.gz
is deprecated. Works perfectly now I think! Thanks @balos1
from sundials.
I ran into a similar error when running cmake .. -c ../cmakelists.txt
from /build. I'm horribly unfamiliar with cmake so maybe I shouldn't do that either...
I've also tried copy/pasted from the README: cmake -DCMAKE_INSTALL_PREFIX=/mnt/shared/sundials-5.6.1/inst -DEXAMPLES_INSTALL_PATH=/mnt/shared/sundials-5.6.1/inst/examples ../src
which returns another unknown command error Unknown CMake command "add_prefix"
. @gardner48 do you know whether these are related and if I forgot to point to a header file somewhere with all these include statements?
from sundials.
@apigott Try cmake -DCMAKE_INSTALL_PREFIX=/mnt/shared/sundials-5.6.1/inst -DEXAMPLES_INSTALL_PATH=/mnt/shared/sundials-5.6.1/inst/examples ../
instead. On your first run of CMake, the ../
should give the path to the root of SUNDIALS, not the src/
directory within SUNDIALS.
from sundials.
Thanks for the quick reply! That actually gets me back to the original print_error for CMAKE_SOURCE_DIR == CMAKE_BINARY_DIR
... I should be building in the /build right?
ETA: echo $CMAKE_BINARY_DIR
and $CMAKE_SOURCE_DIR
are both empty variables
from sundials.
@apigott Assuming you have this layout:
sundials
├── CMakeLists.txt
├── CONTRIBUTING.md
├── INSTALL_GUIDE.pdf
├── LICENSE
├── NOTICE
├── README.md
├── build
├── cmake
├── doc
├── examples
├── include
├── src
└── test
Then, from inside the build
directory, cmake -DCMAKE_INSTALL_PREFIX=/mnt/shared/sundials-5.6.1/inst -DEXAMPLES_INSTALL_PATH=/mnt/shared/sundials-5.6.1/inst/examples ../
should work. If it does not, delete your build
directory, create it again, and retry the cmake command.
from sundials.
Hm. That didn't work so I tried tar-ing again. From the beginning:
tar xfz ../sun_cmake.tar.gz
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/mnt/shared/sundials-5.6.1/inst -DEXAMPLES_INSTALL_PATH=/mnt/shared/sundials-5.6.1/inst/examples ../
doesn't work. It's an error about the config file CMake Error: File /mnt/shared/sundials-5.6.1/src/sundials/sundials_config.in does not exist.
It's been about a week since I could work on this but I think last time I fixed that error by copy/pasting the config settings. (IIRC, from here)
from sundials.
@apigott Try this:
git clone https://github.com/LLNL/sundials.git
cd sundials
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/mnt/shared/sundials-5.6.1/inst -DEXAMPLES_INSTALL_PATH=/mnt/shared/sundials-5.6.1/inst/examples ../
Without knowing your directory layout, it is hard to say what is going wrong. If the above procedure works, then I suspect your layout is not what I assumed it is.
from sundials.
This issue was addressed in the SUNDIALS v5.7.0 release.
from sundials.
Related Issues (20)
- 6.7.0 failed to build with open-mpi 5.0 HOT 4
- library does not support the 'bdf' method HOT 2
- Duplicated symbols in libsundials_ida.a and libsundials_sunlinsolklu.a HOT 2
- Type conversion (maybe corrupting data)? HOT 5
- Possible incorrect build order when building FORTRAN interface HOT 5
- CVODES returns at wrong time when integrating backwards HOT 3
- API inconsistency: some SUNDIALS "Space" functions use `sunindextype` and some use `long int` HOT 5
- Crash when using dense linear solver and Netwon nonlinear solver with relative large number of equations HOT 3
- 7.0.0 release build failure HOT 1
- Update SUNDIALS source tree figure in documentation HOT 1
- Error when building both static and shared libs on Windows with MSVC HOT 4
- ARKODE error messages are being cutoff HOT 10
- Build Error with MPI and C++ Examples Enabled HOT 5
- Error Handler Memory Leak HOT 3
- Fortran interface on 32 bits machines? HOT 2
- Getting Error when trying to Build Paradis with KINSOL HOT 2
- Question about KINSOL behavior HOT 16
- IDA inconsistent results on MacOS HOT 1
- [BUG] SUNDIALS fails to build due to a linker error with MSYS+gfortran on Windows HOT 1
- Check system installation of sundials HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sundials.