Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2016 12:16:00 -0500
From:      Kyle Evans <kevans91@ksu.edu>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Re: Help wanted for new port: linking error in FreeCAD
Message-ID:  <CACNAnaEut5cr943hU_VaY9XaY3wN%2BtSX2RLo0SPrFnwFoE4%2BFg@mail.gmail.com>
In-Reply-To: <e5484678-f4a5-48ae-5052-189ec7b81775@FreeBSD.org>
References:  <c047a292-6a71-7c19-fefb-b19cf92b436f@FreeBSD.org> <CACNAnaEPFhLDiTKrirME0BcYdrz6Hz0Y7VjH5=gZphwgrVyJFw@mail.gmail.com> <e5484678-f4a5-48ae-5052-189ec7b81775@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 11, 2016 at 11:50 AM, Pedro Giffuni <pfg@freebsd.org> wrote:
>
>
> On 08/11/16 10:43, Kyle Evans wrote:
>>
>> On Thu, Aug 11, 2016 at 10:25 AM, Pedro Giffuni <pfg@freebsd.org> wrote:
>>>
>>> Hello guys;
>>>
>>> I wanted to take a look at bringing back some old engineering glory to
>>> the
>>> ports trees by porting FreeCAD (from the Wanted Ports wiki).
>>>
>>> My initial attempt is here:
>>> https://people.freebsd.org/~pfg/ports/freecad.tgz
>>>
>>> Unfortunately it only reaches 71 % of the build and I would need the
>>> help of a CMake/linker expert to continue.
>>>
>>> The complete build log is here:
>>> https://people.freebsd.org/~pfg/ports/freecad-log.txt
>>>
>>> The relevant failure:
>>>
>>> ... [snip]
>>>
>>> Regards,
>>>
>>> Pedro.
>>> _______________________________________________
>>> freebsd-ports@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
>>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>>
>>
>> Looks like a missing declared dependency of libCoin.so from
>> graphics/Coin, which will likely/hopefully solve the problem --
>> graphics/Coin does include some pkgconfig magic.
>>
>
> Hmm .. I will add it explicitly but it is already installed
> through SoQt:
>
> % ls /usr/local/lib/libCoin*
> /usr/local/lib/libCoin.so /usr/local/lib/libCoinMP.so.1.8.3
> /usr/local/lib/libCoin.so.60 /usr/local/lib/libCoinUtils.so
> /usr/local/lib/libCoin.so.60.1.3 /usr/local/lib/libCoinUtils.so.3
> /usr/local/lib/libCoinMP.so /usr/local/lib/libCoinUtils.so.3.10.10
> /usr/local/lib/libCoinMP.so.1
>
> :(
>
> Pedro.

Hi,

Without diving too deeply into it for lack of time at the moment, I suspect
it's because of the stuff around /CMakeLists.txt:721 -- if I recall
correctly, find_package(Coin3D...) will do two things:

* Search for Coin3D.pc (in this case, in /usr/local/libdata/pkgconfig) to
aide in configuring it properly
* Set COIN3D_* variables, also based on this name

However, FreeCAD is expecting it to be Coin3D, where graphics/Coin gives us
Coin. As a first step, I would attempt a replacement on all CMakeLists.txt
in this project to replace COIN3D_ with COIN_, and then replace the
find_package Coin3D with Coin, see if that solves it.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaEut5cr943hU_VaY9XaY3wN%2BtSX2RLo0SPrFnwFoE4%2BFg>