-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error building native library in Fedora 28 #1
Comments
Thanks for the report. Someone else had issues with an Anaconda distribution of python failing to build because of the Out of curiosity, what did you need to change in MathLinkEnvironment? If more configuration is needed I should allow it to be passed in the initialization. |
I'm going to expunge the "-q" from the |
Using the standard python which comes with Fedora (not anaconda) and PJLink versrion 1.0.3:
Notice the include has
and
|
@bgatessucks I think I got a patch for this path as well as the others. The path finding is a bit more centralized now. Can you give it another try? Hopefully the only issue is just these paths. |
Not there yet with 1.0.4:
and it seems that
|
@bgatessucks Okay I think I got a fix in place for the bad directory finding. Thanks for all your help with this. I also have a system where you can provide your own from PJLink import MathLinkEnvironment as Env
Env.INSTALLATION_DIRECTORY = "mathematica/installation/directory" I got it to find things properly on Mac for a different Mathematica version, but we'll see how it goes. |
Progress, it's just g++ now, with
|
@bgatessucks do you have a library called MLi4 in /opt/Wolfram/Mathematica/11.3/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/CompilerAdditions? For me it's MLi4.a, but setup.py doesn't care about the extension. The fact that it got through the gcc call suggests it's just a linking issue, now. |
I tried to rewrite the dependency finder so that it doesn't require a file called MLi4 but instead looks for the highest-version library files in the directory. Let me know if it worked. If not, can you paste the file names inside |
|
Ah that could entirely be the issue then. Any chance the current version (1.0.6) builds? I added more intelligent path-finding so it ought to have found either |
Progress but not there yet: Env.INSTALLATION_DIRECTORY = "/opt/Wolfram/Mathematica/11.3"
Env.MATHLINK_LIBRARY_NAME = "ML64i4"
|
That's very odd...so the library compiled but gave that warning? Could you show me the compiler output and what's in ~/.Mathematica/Paclets/Repository/PJLink-1.0.6/PJLink/PJLinkNativeLibrary? I think it must be linking against the .so version of libML64i4 instead of the .a, since it was able to find both. If that's the case I'll need to change how I choose to the link MathLink library in slightly. |
Notice I edited
~/.Mathematica/Paclets/Repository/PJLink-.0.2/PJLink/MathLinkEnvironment.py:666
to reflect the actual installation root for Mathematica.and
%tb
givesThe text was updated successfully, but these errors were encountered: