MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CMake module for Mathematica

  • To: mathgroup at
  • Subject: [mg114532] Re: CMake module for Mathematica
  • From: Sascha Kratky <skratky at>
  • Date: Tue, 7 Dec 2010 06:44:37 -0500 (EST)

Hi Patrick,

The module should be capable of finding your Mathematica installation on volume D on your Windows machine,
so this appears to be a bug. Please provide me with a debug log of the find_package invocation.
You can enable debugging for FindMathematica by adding the line

set (Mathematica_DEBUG On)

before loading the module with find_package. Please create an issue at Find Mathematica's GitHub site:


On 06.12.2010, at 15:43, Patrick Scheibe wrote:

> Hi Sascha,
> thank you very very much.
> On my OSX it works from the start. On the WindowsXP Server where I
> compile my stuff (for the windoze users) the package does not find a
> Mathematica installation. It says
> -- Mathematica search parameters changed, restart search ...
> -- Could NOT find Mathematica_MathLink (missing:  Mathematica_MathLi
> athematica_MathLink_INCLUDE_DIR)
> -- Could NOT find Mathematica_WolframLibrary (missing:  Mathematica_
> ry_LIBRARY Mathematica_WolframLibrary_INCLUDE_DIR)
> -- Could NOT find Mathematica (missing:  Mathematica_ROOT_DIR Mathem
> _EXECUTABLE Mathematica_FRONTEND_EXECUTABLE) (found version "8.0.0")
> We don't have Mathematica installed at the usual location but I was curious why it
> said (found version "8.0.0") and so I quickly scanned through your code and saw
> that you, in the case of Windows, look for the registry key.
> The registry-key is available
> HKEY_LOCAL_MACHINE\SOFTWARE\Wolfram Research\Installations\1803527
> and the ExecutablePath points to the right location. When I set
> SET(Mathematica_ROOT_DIR "D:/Program Files/Wolfram Research/Mathematica/8.0")
> SET(Mathematica_HOST_ROOT_DIR "D:/Program Files/Wolfram Research/Mathematica/8.0")
> everything is fine.
> If you want to track this issue down, don't hesitate to contact me. I can
> provide you further information or debug output.
> Cheers
> Patrick      
> On Dec 6, 2010, at 3:55 AM, Sascha Kratky wrote:
>> Announcing: CMake module that finds a Mathematica installation and
>> provides CMake functions for Mathematica's C/C++ interface.
>> Features:
>> * Works with Windows, Linux and Mac OS X versions of Mathematica.
>> * Finds Mathematica versions from 5.2 to 8.0.
>> * Finds include directories and libraries for MathLink.
>> * Finds include directories and libraries for LibraryLink (Mathematica
>> 8 only).
>> * Provides exact version information for Mathematica, MathLink and
>> LibraryLink.
>> * Allows for running Mathematica code during CMake configure or build
>> time.
>> * Allows for running Mathematica code as a pre-link, pre-build or post-
>> build action.
>> * Allows for running Mathematica code in CMake test targets.
>> * Supports generating C code from MathLink template files using mprep.
>> * Supports building dynamic libraries loadable with LibraryLink
>> (Mathematica 8 only).
>> * Supports generating stand-alone C code from Mathematica code with
>> CCodeGenerator (Mathematica 8 only).
>> * Provides CMake interface to Mathematica's Splice function.
>> * Fully leverages CMake's cross-compiling support.
>> For more information see
>> Sascha Kratky

  • Prev by Date: Are these bugs fixed in Mathematica 8 ?
  • Next by Date: Re: Replacement Rule with Sqrt in denominator. Also Bug in Series
  • Previous by thread: Re: CMake module for Mathematica
  • Next by thread: Re: CMake module for Mathematica