-
Notifications
You must be signed in to change notification settings - Fork 26
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
SPRAL build in Windows #137
Comments
SPRAL requires autotools to generate the necessary build files so I suggest that you generate these in Linux by running We are working on moving SPRAL over to a meson based build system that will avoid all this and work on Windows. |
Does autogen.sh give libraries or project files for Visual Studio? |
We do not supply libraries or project files for Visual Studio as we do not support Visual Studio. |
I don’t use Linux. So could you please tell me what autogen.sh actually does? |
It generates the necessary files for you to be able to start compilation, see here for more details: |
Do they generate file that I can compile with other files in a Visual Studio environment? I know you said you don’t support Visual Studio. Just clarifying. |
Yes once you have the build files generated you should be able to compile SPRAL under Visual Studio provided you can install the necessary dependencies METIS and hwloc in your Visual Studio environment. |
I don’t have access to a Linux machine. If it’s not too much to ask, can you provide them to me or add it to a repository and give me a link? |
In that case I suggest you use WSL: |
Thanks jfowkes. I am trying as we type. |
I have ./autogen.sh 'd the repository as suggested.
I am getting a bunch of files.
[image: image.png]
Which among these should I use in my VS project.
…On Tue, Sep 19, 2023 at 1:32 PM Jari ***@***.***> wrote:
In that case I suggest you use WSL:
https://learn.microsoft.com/en-us/windows/wsl/about
—
Reply to this email directly, view it on GitHub
<#137 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHO5AOPRNQVLGQNBEBMWG3X3FGRFANCNFSM6AAAAAA44Y6MYM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@bharswami |
Thanks a ton. |
MinGW generates static libraries on Windows as |
I doubt if it works that way. I am getting the following error on compiling (after renaming it to *.lib). spralltestfull_dlls is my project name. |
Can you try with the dynamic shared library? Ipopt is compiled with |
Can you also provide your compilers (C, C++ and Fortran)? |
.dll needs .lib. Both are needed while compiling. |
Oh, you need the import libraries (.lib or .dll.a) and not static libraries .a. |
Send me the import libraries. I will try. |
SPRAL.v2023.9.7.x86_64-w64-mingw32-libgfortran5.tar.gz |
I am still getting the same error. |
I am only building a C++ project (running test ssids.cpp). So I won't need a FORTRAN compiler. I am giving the path to the dlls to the C++ compiler. |
Can you please send me the *.o files generated by the cross-compiler? |
Yes, I can. I hope that it will help you. |
Does the function ldlt_app_tests(), in file ldlt_app.cpp, run fine at your end? Can you please confirm? |
@bharswami Can you try to compiler SPRAL with the new Meson build system on Windows? |
Sure. Give me a day’s time as I am also with another assignment.
…On Mon, Oct 30, 2023 at 2:25 AM Alexis Montoison ***@***.***> wrote:
@bharswami <https://github.com/bharswami> Can you try to compiler SPRAL
with the new Meson build system on Windows?
—
Reply to this email directly, view it on GitHub
<#137 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHO5ALWEGA4CSJKKCJIPK3YB27DHAVCNFSM6AAAAAA44Y6MYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGIZDENBVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am sorry for the delay in replying. I have been busy with the placement
season here.
I don't know if you still like me to build the new repository.
Do you have the Meson build system as a Visual Studio project? Or is it
using a makefile?
How do I build it on my windows PC? Please let me know.
On Mon, Oct 30, 2023 at 12:59 PM Bharath ae15d019 ***@***.***>
wrote:
… Sure. Give me a day’s time as I am also with another assignment.
On Mon, Oct 30, 2023 at 2:25 AM Alexis Montoison ***@***.***>
wrote:
> @bharswami <https://github.com/bharswami> Can you try to compiler SPRAL
> with the new Meson build system on Windows?
>
> —
> Reply to this email directly, view it on GitHub
> <#137 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHHO5ALWEGA4CSJKKCJIPK3YB27DHAVCNFSM6AAAAAA44Y6MYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGIZDENBVHA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Can you build and test SPRAL on your windows PC with the meson build system? |
I am having trouble installing OpenBLAS on my windows PC. |
I believe you can pass the paths as options to
All the meson options we support are described in |
We should also add paths to metis and hwloc.
|
@amontoison could you advise? |
@bharswami Did you compile
|
CC=gcc CXX=g++ FC=ifort meson setup builddir |
@amontoison can you advise? |
In that case you need to define |
I added them to the environment variables. |
Hi,
I am trying to build SPRAL in Windows Visual Studio 2022.
Can anyone share the proj files with the necessary cpps and headers?
Or could someone tell me what files are needed in the projects?
The text was updated successfully, but these errors were encountered: