coin icon indicating copy to clipboard operation
coin copied to clipboard

CMake doesn't create coin-default.cfg or install the coin-config script

Open VolkerEnderlein opened this issue 7 years ago • 2 comments

Original report by Bruce Lacey (Bitbucket: bblacey, GitHub: bblacey).


Many packages rely upon coin-config, such as pivy, to determine the coin installation configuration. Recently, I updated the FreeCAD builds to build against tip #035e53e53730 using CMake however pivy would not run because coin-config was not installed. To work around the problem, I modified the coin formula to perform a separate ./configure step followed by a make coin-default.cfg. A much better solution would be to add the CMake scripts to install coin-config and create and install the requisite coin-default.cfg. This should be a straight-forward configure_file() of a new coin.cfg.in that uses the proper CMake variables.

VolkerEnderlein avatar Feb 16 '17 18:02 VolkerEnderlein

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).


Please have a look at pull request #277 which was just merged into the CMake branch. Does this address the issue well enough?

VolkerEnderlein avatar Feb 09 '18 10:02 VolkerEnderlein

For me, building from master, coin-config doesn't return anything:

root@habenula:/opt/quarantine/brain-view2/install# cat ./share/Coin/conf/coin-default.cfg
# prefix is determined in coin-config, making the package "movable"
# prefix=""
host=""
exec_prefix=""
version="4.0.1"
cflags=""
cppflags=""
cxxflags=""
ldflags=""
libs=""
msvcrt=""
datadir=""
includedir=""
frameworkdir=""
htmldir=""
compiler=""
objext=""
have_3ds_import=ON
have_vrml97=ON
have_sound=ON
have_superglu=
have_threads=1
have_threadsafe=
compiler_is_gcc=
> coin-config --includedir

> coin-config --ldflags


gdevenyi avatar Jun 23 '20 18:06 gdevenyi