Date: Thu, 11 Aug 2016 15:03:29 -0500 From: Pedro Giffuni <pfg@FreeBSD.org> To: Kyle Evans <kevans91@ksu.edu> Cc: ports-list freebsd <freebsd-ports@freebsd.org> Subject: Re: Help wanted for new port: linking error in FreeCAD Message-ID: <1eb15879-13ad-7936-3f43-d178ee678f74@FreeBSD.org> In-Reply-To: <CACNAnaEut5cr943hU_VaY9XaY3wN%2BtSX2RLo0SPrFnwFoE4%2BFg@mail.gmail.com> References: <c047a292-6a71-7c19-fefb-b19cf92b436f@FreeBSD.org> <CACNAnaEPFhLDiTKrirME0BcYdrz6Hz0Y7VjH5=gZphwgrVyJFw@mail.gmail.com> <e5484678-f4a5-48ae-5052-189ec7b81775@FreeBSD.org> <CACNAnaEut5cr943hU_VaY9XaY3wN%2BtSX2RLo0SPrFnwFoE4%2BFg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/11/16 12:16, Kyle Evans wrote: > On Thu, Aug 11, 2016 at 11:50 AM, Pedro Giffuni <pfg@freebsd.org > <mailto: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 > <mailto: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 <mailto: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 > <mailto: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 OK, it's /usr/local/libdata/pkgconfig/Coin.pc And I notice now that it is being build with gcc. > * 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. > I tried that now, but it becomes a mess as CMake is not able to find the library. Currently when configuring it finds it fine: -- Checking for module 'Coin' -- Found Coin, version 3.1.3 I suspect the issue will solve relatively fast by building with GCC (and an updated linker) to build FreeCAD but I will try first with the Coin3D built using clang. Thanks! Pedro.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1eb15879-13ad-7936-3f43-d178ee678f74>