[MacPorts] #50270: digikam 4.9.0 fails to build
#50270: digikam 4.9.0 fails to build --------------------------+-------------------------------- Reporter: till.paala@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: --------------------------+-------------------------------- Tried to install digikam on a OS X 10.11 installation. I seem to have opencv 2 installed port outdated gives among others: opencv 2.4.11_0 < 3.1.0_1 so it seems 48081 doesn't apply to me. In the beginning I got a message about ecmconfig.cmake missing, but I could come around this by installing kde-extra-cmake-modules. Still have a failure in the compilation with following errors: :info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_Vignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_DeVignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build 2 errors generated. See log file attached. -- Ticket URL: <https://trac.macports.org/ticket/50270> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam 4.9.0 fails to build ---------------------------+-------------------------------- Reporter: till.paala@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: | ---------------------------+-------------------------------- Comment (by till.paala@…): Sorry, the text from the log should look like this: {{{ :info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_Vignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_DeVignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build 2 errors generated. }}} -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+-------------------------------- Reporter: till.paala@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+-------------------------------- Changes (by ryandesign@…): * port: => digikam Old description:
Tried to install digikam on a OS X 10.11 installation. I seem to have opencv 2 installed port outdated gives among others: opencv 2.4.11_0 < 3.1.0_1 so it seems 48081 doesn't apply to me. In the beginning I got a message about ecmconfig.cmake missing, but I could come around this by installing kde-extra-cmake-modules. Still have a failure in the compilation with following errors:
:info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_Vignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_DeVignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build 2 errors generated.
See log file attached.
New description: Tried to install digikam on a OS X 10.11 installation. I seem to have opencv 2 installed port outdated gives among others: opencv 2.4.11_0 < 3.1.0_1 so it seems #48081 doesn't apply to me. In the beginning I got a message about ecmconfig.cmake missing, but I could come around this by installing kde-extra-cmake-modules. Still have a failure in the compilation with following errors: {{{ :info:build /opt/local/include/lensfun/lensfun.h:2506:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_Vignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/include/lensfun/lensfun.h:2508:5: error: templates must have C++ linkage :info:build template<typename T> static void ModifyColor_DeVignetting_PA ( :info:build ^~~~~~~~~~~~~~~~~~~~ :info:build 2 errors generated. }}} See log file attached. -- Comment: digikam depends on opencv. If opencv is outdated, MacPorts should upgrade it before attempting to build digikam. The log you attached is incomplete (missing lots of the beginning, up to somewhere in the build phase). -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+------------------- Reporter: till.paala@… | Owner: jan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+------------------- Changes (by ryandesign@…): * cc: caulier.gilles@… (added) * owner: macports-tickets@… => jan@… -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+------------------- Reporter: till.paala@… | Owner: jan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+------------------- Comment (by caulier.gilles@…): patch applied on git/master 5.0.0 (not 4.14.0) but can be backported easily : https://quickgit.kde.org/?p=digikam.git&a=commit&h=0f159981176faa6da701f112b... Gilles Caulier -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+------------------- Reporter: till.paala@… | Owner: jan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+------------------- Comment (by till.paala@…): Replying to [comment:2 ryandesign@…]:
digikam depends on opencv. If opencv is outdated, MacPorts should upgrade it before attempting to build digikam. The log you attached is incomplete (missing lots of the beginning, up to somewhere in the build phase).
Sorry, complete log attached, I didn't understand that Konsole on OS X shows only about 15 Mb of the file. -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+------------------- Reporter: till.paala@… | Owner: jan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+------------------- Comment (by till.paala@…): Replying to [comment:4 caulier.gilles@…]:
patch applied on git/master 5.0.0 (not 4.14.0) but can be backported easily :
https://quickgit.kde.org/?p=digikam.git&a=commit&h=0f159981176faa6da701f112b...
Gilles Caulier
Ok, so could I just remove the three lines manually on my computer and rebuild? -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50270: digikam @4.9.0 fails to build: lensfun.h:2506:5: error: templates must have C++ linkage ---------------------------+------------------- Reporter: till.paala@… | Owner: jan@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: digikam | ---------------------------+------------------- Comment (by till.paala@…): After changing the file according to the patch above digikam compiles fine. But I can't start the program. drkonqi crashes and produces a bug report. This is probably already a different ticket (?) or am I ommissing something? -- Ticket URL: <https://trac.macports.org/ticket/50270#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts