[sundials-users] Installation issue with SUNDIALS v6.7.0 on Windows

41 views
Skip to first unread message

Francis Pako

unread,
Mar 14, 2024, 3:40:03 PMMar 14
to SUNDIAL...@listserv.llnl.gov

Dear all,

I am a new user of SUNDIALS suite. I am facing installation issues of the suite on Windows. I followed the installation guide using cmake-gui and Visual Studio Command Prompt. I’m using cmake version 3.29.0. The generator I used is visual studio 2022. Following the generation step, the execution of msbuild ALL_BUILD.vcxproj and msbuild INSTALL.vcxproj commands did not produce the libraries and header files in the INSTDIR, it ran but produced errors instead.

Please let me know, where am I going wrong and how I can resolve the problem.

Best Regards

Francis Pako



To unsubscribe from the SUNDIALS-USERS list: write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV

Balos, Cody

unread,
Mar 15, 2024, 1:21:15 PMMar 15
to SUNDIAL...@listserv.llnl.gov

Hi Francis,

 

Can you post a snippet of the errors that you saw?  Try building static libraries only by setting the cmake option BUILD_SHARED_LIBS to OFF and BUILD_STATIC_LIBS to ON.

 

Best,

Cody

 

-- 

 

Cody Balos

Computational Scientist

Center for Applied Scientific Computing

Lawrence Livermore National Laboratory

Mohamed Elshami

unread,
Mar 18, 2024, 10:52:42 AMMar 18
to SUNDIAL...@listserv.llnl.gov
I am also a new user of this suit. After a lot of trials I succeeded to install it, but I do not know how to run an example or where I should work with this tool. 
Does it have its own GUI interface? or should I recall it from other platforms like MATLAB and VSC. 
I posted a question two weeks ago and got no reply. thanks in advance

Regarding to installation I did>>>
1- installed a C compiler to your machine MinGW
2- installed CMAKE gui as SUNDIALS manual explained 
3- then unpacked .tar files using CMAKE 

--
Best Regards, 
Mohamed Mostafa Elshami
Ph. D. Student
Egypt-Japan University of Science and Technology (E-JUST),
P.O. Box 179, New Borg El Arab City, Egypt
Postal Code : 21934

Balos, Cody

unread,
Mar 18, 2024, 11:00:35 AMMar 18
to SUNDIAL...@listserv.llnl.gov

Hi Mohamed,

 

SUNDIALS is a library that is meant to be called from other programs. It does not have a GUI interface. We also do not have a MATLAB interface currently. One way to use SUNDIALS is to call it from a simple C program like this example code: https://github.com/LLNL/sundials/blob/main/examples/cvode/serial/cvAdvDiff_bnd.c.  

Mohamed Elshami

unread,
Aug 5, 2024, 12:10:31 PMAug 5
to SUNDIAL...@listserv.llnl.gov
I am facing the same problem. I tried this suggestion
by setting the cmake option BUILD_SHARED_LIBS to OFF and BUILD_STATIC_LIBS to ON.
the instdir is still empty no modules generated, the following screen from cmake
...
Capture.PNG

Balos, Cody

unread,
Aug 5, 2024, 12:17:23 PMAug 5
to SUNDIAL...@listserv.llnl.gov

Hi Mohamed,

 

Since you are on Windows the rt and POSIX FAILED output is to be expected. You should still be able to proceed to the next step (compiling the library).

 

Regards,

Cody

 

From: sundials-users <sundial...@llnl.gov> on behalf of Mohamed Elshami <00002a9c4ba2e96...@LISTSERV.LLNL.GOV>
Date: Monday, August 5, 2024 at 9:10
AM
To: sundials-users <sundial...@llnl.gov>
Subject: Re: [sundials-users] Installation issue with SUNDIALS v6.7.0 on Windows

I am facing the same problem. I tried this suggestion

by setting the cmake option BUILD_SHARED_LIBS to OFF and BUILD_STATIC_LIBS to ON.

the instdir is still empty no modules generated, the following screen from cmake

...

Mohamed Elshami

unread,
Aug 6, 2024, 1:52:03 PMAug 6
to SUNDIAL...@listserv.llnl.gov
I am sure that I have followed the instructions well, and I think there is no next step, this step was the last step in installation process when you hit GENERATE in CMAKE gui, However there is no modules generated in INSTDIR, moreover the default or custom path DIR of the benchmark itself did not created at all. 
* 1 - installed MinGW64 bit
* 2 - cmd to check gcc and g++ versions
       gcc version : g++ (MinGW.org GCC-6.3.0-1) 
       g++ version : gcc (MinGW.org GCC-6.3.0-1)
* 2 - added path in environments 
* 3 - installed CMAKE
* 4 - configured CMAKE and selected MinGW as c compiler
* 5 - selected source, build, and install directories
* 6 - all modules generated
* 7 - result is still empty directories 
what mistake I did I do not know
THANKS A LOT PROF. CODY FOR YOUR SUPPORT!

Balos, Cody

unread,
Sep 4, 2024, 6:42:48 PMSep 4
to SUNDIAL...@listserv.llnl.gov

Mohamed,

 

You say that the INSTDIR is still empty, but this should only be populated after you run `make install` (the exact `make` command may depend on your mingw setup)  after the CMake generate step.

Reply all
Reply to author
Forward
0 new messages