FreeCAD build, need cmake help

Richard Shaw hobbes1069 at gmail.com
Wed Nov 30 20:11:22 CET 2011


On Wed, Nov 30, 2011 at 11:17 AM, Kevin Kofler <kevin.kofler at chello.at> wrote:
> Richard Shaw wrote:
>> But it's still looking for it's plugins modules in /usr/Mod instead of
>> /usr/lib64/freecad/Mod.
>>
>> Does this have anything to do with LIBRARY_OUTPUT_DIRECTORY or
>> RUNTIME_OUTPUT_DIRECTORY?
>>
>> Or is this getting set somewhere else?
>
> This is probably hardcoded somewhere in the code, probably through some -D
> flag being passed to the compiler by the build system. Look for
> add_definitions calls in the CMakeLists.txt files.

It turns out it's largely Python based and looks for the Mod directory
relative to the binary directory.

I talked to one of the developers and he said it would be better to go
ahead and put everything in /usr/lib{,64}/freecad and symlink the
binaries to /usr/bin. It makes my system install option pretty much
useless since you can set the install location by overriding
CMAKE_INSTALL_PREFIX, but I still have to setup the proper rpath's so
everything can find everything else...

Thanks,
Richard


More information about the rpmfusion-developers mailing list