From owner-freebsd-ports@freebsd.org Thu Aug 11 20:06:45 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A79E1BB62B6 for ; Thu, 11 Aug 2016 20:06:45 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm9-vm0.bullet.mail.bf1.yahoo.com (nm9-vm0.bullet.mail.bf1.yahoo.com [98.139.213.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E8F714EB for ; Thu, 11 Aug 2016 20:06:45 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1470945799; bh=icbfuzZ5K/FiRRmKuJ3M40hcRIpqasHUZvgI4HbJ+r0=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=tPnckJa1lku58T+MowsUt2GOB27g7/W7+cAVJlBCVVLWIm6tMsP54lZNHdyKj7lujqtiMpzeYWfNoQcrBr9yj9kZpAXFIX+UG9WjXOts8aSXhiux565NSn2Btjcvv/mto3rUkXCvU/ONETahulVuv0/hex829OZxyQ1V62hcqv7l5hH5ZGHjFf8wJ0Fr5rfjO7s+CWBX+qxBeE8UwU97qzcQp9BsPkXyyT5suL2epZ87DpPBzxkPSb2WsZ6cF+Mzz7M56Ad/2mIBmM20T5trmwXtWODD1ZfF9EOoEbOuYvALzgeptL6PSkFYf/RsZohVgOpNWikMYe1JpzV+8Hy/EA== Received: from [66.196.81.172] by nm9.bullet.mail.bf1.yahoo.com with NNFMP; 11 Aug 2016 20:03:19 -0000 Received: from [98.139.211.199] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 11 Aug 2016 20:03:19 -0000 Received: from [127.0.0.1] by smtp208.mail.bf1.yahoo.com with NNFMP; 11 Aug 2016 20:03:19 -0000 X-Yahoo-Newman-Id: 910182.92001.bm@smtp208.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: mHfMPFoVM1nSi73tx3tC4W05opW1ItpudoAFBr6OLxMr1.O eJ2pZCyuJps1Bm5X53FvJha447z57a2nlcMx2VsdsFLCY1XOwLmQ4FOKA1xO R9Un0.xlsut96ndhSa3tBBJpbkFozEXLUZLI8xxlZKkzSh72fGHOQXMLJBq8 gfDRpU7C3Nc5rg3TNj5hcalW9.1GJpaQ4xqLr4cDp6EyEw2R.LJN5SXe38yA RbdE__vTrBxmgRKxLnfJ04BbiGq6mX9_R.oT9gEx_fbqTOCPGX2sXfSGo7.W Ojyy4B1ZtrwY8tDmOPvWPtz5UrPmLBrU0OpjAHVvbXeBzM3NEBW1vtVngIHH BqTFgKg8TrElssHtu6s6JzcO6LrDYC7UQM3OJYQDAnOi51g3JEevI5iCaYeD .hEV4z5crFKflSWRwoXeob8zozY0id3BG77dZvO0gYqBPeLu4B6GUP1ZhiRr BufB6DEGyxp6l.FDZHggnamjqumxlk6sRpruIlsy6aFSJXHBw77f4ONjpUVM alX0FWN44uNJpMWfhIgN4.LxZPlZ4aLMa8S4DPcLjtg8fsA-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: Help wanted for new port: linking error in FreeCAD To: Kyle Evans References: Cc: ports-list freebsd From: Pedro Giffuni Message-ID: <1eb15879-13ad-7936-3f43-d178ee678f74@FreeBSD.org> Date: Thu, 11 Aug 2016 15:03:29 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 20:06:45 -0000 On 08/11/16 12:16, Kyle Evans wrote: > On Thu, Aug 11, 2016 at 11:50 AM, Pedro Giffuni > wrote: >> >> >> On 08/11/16 10:43, Kyle Evans wrote: >>> >>> On Thu, Aug 11, 2016 at 10:25 AM, Pedro Giffuni > 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 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.