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

Wrong mathlink library selection in Mathematica 10.3 #2

Closed
kthr opened this issue Nov 26, 2015 · 2 comments
Closed

Wrong mathlink library selection in Mathematica 10.3 #2

kthr opened this issue Nov 26, 2015 · 2 comments

Comments

@kthr
Copy link

kthr commented Nov 26, 2015

When using ${Mathematica_MathLink_LIBRARIES} cmake selects the following mathlink library /Applications/Mathematica.app/Contents/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions/AlternativeLibraries/mathlink.framework/mathlink in Mathematica 10.3. Unfortunately this library is linked against a non existing library /Volumes/Jenkins/workspace/MathLink.MacOSX-x86-64.release/scratch/CMake.build/lib/mathlink-libc++.framework/Versions/4.25/mathlink-libc++, which subsequently leads to a error when using the compiled executable.
A solution could be to use the library under /Applications/Mathematica.app//Contents/Frameworks/mathlink.framework/mathlink.

@sakra
Copy link
Owner

sakra commented Nov 26, 2015

Set the flag Mathematica_USE_LIBCXX_LIBRARIES to OFF before invoking find_package to force using of the standard MathLink framework linked with libstdc++.

set (Mathematica_USE_LIBCXX_LIBRARIES OFF)
find_package(Mathematica)

@kthr
Copy link
Author

kthr commented Nov 26, 2015

Cool,

tanke you very much. Wasn’t aware of it. Anyway great tool you implemented there.

Best,
Konstantin

On 26 Nov 2015, at 13:27, Sascha Kratky notifications@github.com wrote:

Set the flag Mathematica_USE_LIBCXX_LIBRARIES to OFF before invoking find_package to force using of the standard MathLink framework linked with libstdc++.

set (Mathematica_USE_LIBCXX_LIBRARIES OFF)
find_package(Mathematica)

Reply to this email directly or view it on GitHub #2 (comment).

@sakra sakra closed this as completed Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants