Skip to content
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

Support fpm #8

Open
ivan-pi opened this issue Jul 24, 2021 · 2 comments
Open

Support fpm #8

ivan-pi opened this issue Jul 24, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ivan-pi
Copy link
Member

ivan-pi commented Jul 24, 2021

It would be nice if the Fortran wrapper could be built and used as a dependency with fpm.

The challenges are the many libraries that need to be installed and linked. Last time I tried the command needed was:

gfortran -o test_symengine -I/usr/local/include/symengine symengine_cwrapper.o test_symengine.o -L/usr/local/lib -lsymengine -lteuchos -lstdc++ -lmpfr -lgmp -lbfd

Or with the C++ driver as compiler (see #6):

g++ test.o symengine.o /home/symengine/build/symengine/libsymengine.a /home//symengine/build/symengine/utilities/teuchos/libteuchos.a -lgfortran -lgmp -lbfd -otest

@certik, is symengine installable using conda or pip?

@certik
Copy link
Contributor

certik commented Jul 25, 2021

Great idea, yes, the Fortran wrapper should use fpm.

Yes, symengine is installable using Conda.

@rikardn rikardn added the enhancement New feature or request label May 28, 2022
@rikardn
Copy link
Contributor

rikardn commented Jun 27, 2022

It is now possible to build using fpm. However I struggle with getting the tests to build and run using fpm. Help in figuring out how to fix this would be appreciated. Next step would be to get it up on the fpm-registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants