Giter Club home page Giter Club logo

Comments (8)

apigott avatar apigott commented on September 1, 2024 1

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.

apigott avatar apigott commented on September 1, 2024

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.

balos1 avatar balos1 commented on September 1, 2024

@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.

apigott avatar apigott commented on September 1, 2024

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.

balos1 avatar balos1 commented on September 1, 2024

@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.

apigott avatar apigott commented on September 1, 2024

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.

balos1 avatar balos1 commented on September 1, 2024

@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.

gardner48 avatar gardner48 commented on September 1, 2024

This issue was addressed in the SUNDIALS v5.7.0 release.

from sundials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.