Opened 9 years ago

Closed 8 years ago

#46721 closed defect (fixed)

hugin-app @2013.0.0_6: error: too few template arguments for class template 'result

Reported by: wjtriffo@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: mojca (Mojca Miklavec), dbevans (David B. Evans), malcolm@…, macports@…, olupton (Olli Lupton), michaellass (Michael Lass)
Port: hugin-app

Description

I am unable to build hugin-app on OS 10.9.5, using Xcode 6.1.1, MacPorts 2.3.3. I receive the error below. The log file is attached.

/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/CMakeFiles  41 42
[ 73%] Built target _hsi
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0" && /usr/bin/make -j8 -w all 
Exit code: 2
Error: org.macports.build for port hugin-app returned: command execution failed
Warning: targets not executed for hugin-app: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port hugin-app for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/main.log

Thank you for any help.

Attachments (5)

main.log (1.5 MB) - added by wjtriffo@… 9 years ago.
log file for failed hugin-app build
hugin-app-2014.0.0.diff (3.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 9 years ago.
patch-src-tools-ParseExp.cpp.diff (2.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 9 years ago.
patch-hugin-app-2014.0.0-lensfun-0.3.0.diff (3.5 KB) - added by dbevans (David B. Evans) 9 years ago.
Revised patch including fixes for issues with lensfun 0.3.0
patch-src-hugin_base-lensdb-LensDB.cpp.diff (387 bytes) - added by dbevans (David B. Evans) 9 years ago.

Download all attachments as: .zip

Change History (27)

Changed 9 years ago by wjtriffo@…

Attachment: main.log added

log file for failed hugin-app build

comment:1 Changed 9 years ago by wjtriffo@…

Cc: wjtriffo@… added

Cc Me!

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: wjtriffo@… removed
Keywords: mavericks removed
Port: @2013.0.0_6 removed
Summary: hugin-app @2013.0.0_6 - build failurehugin-app @2013.0.0_6: error: too few template arguments for class template 'result

The real error in the log is:

:info:build /opt/local/include/boost/utility/result_of.hpp:189:46: error: too few template arguments for class template 'result'
:info:build struct result_of_nested_result : F::template result<FArgs>
:info:build                                              ^

I guess this version of hugin-app is not compatible with this version of boost.

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Looks like hugin-app 2014.0.0 has the same error.

Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: hugin-app-2014.0.0.diff added

Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Keywords: haspatch added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Ok, I was able to build hugin-app 2014.0.0. An upstream patch was needed for compatibility with boost 1.56 and later, and for boost 1.57 a patch for the boost port was needed (which I committed in r133523). Before the hugin-app 2014.0.0 update can be committed, however, the libpano13 2.9.19 update in #47026 must be committed.

comment:5 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

Changed 9 years ago by dbevans (David B. Evans)

Revised patch including fixes for issues with lensfun 0.3.0

Changed 9 years ago by dbevans (David B. Evans)

comment:6 Changed 9 years ago by dbevans (David B. Evans)

Attached is my revised patch to fix some additional issues discovered after upgrading hugin-app to version 2014.0.0 as described here and then rebuilding with lensfun updated to version 0.3.0 (not yet committed, see #45377).

In brief the issues are

  • failure to find installed lensfun 0.3.0 during configure
  • failure to build due to removal of lens model FOV1 in lensfun 0.3.0 (enum LF_DIST_MODEL_FOV1 no longer defined)

After changes build is once again successful for me.

comment:7 Changed 9 years ago by dbevans (David B. Evans)

Cc: devans@… added

lensfun updated to 0.3.0 in r133613.

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: malcolm@… added

comment:9 Changed 9 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:10 Changed 9 years ago by roger.filmyer@…

Keep in mind that there's a bug in 2014.0 (at least with the current community binaries) that makes the program crash with a wxWidgets assert error if starting fresh (https://bugs.launchpad.net/hugin/+bug/1384283), so you might want to see if that affects a macports build of that stable.

comment:11 Changed 9 years ago by mojca (Mojca Miklavec)

I'm sorry, I prematurely upgraded to Perl5.22 in r138664 before other problems would have been addressed.

comment:12 Changed 9 years ago by glen@…

Cc: glen@… added

Cc Me!

comment:13 Changed 9 years ago by glen@…

Any updates on this? The attached patches no longer seem to work.

Last edited 9 years ago by glen@… (previous) (diff)

comment:14 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Duplicate #49455 notes that the current version is now 2015.0.0.

comment:15 Changed 8 years ago by olupton (Olli Lupton)

Cc: oliverlupton@… added

Cc Me!

comment:16 Changed 8 years ago by mojca (Mojca Miklavec)

Ryan, if #49455 is considered a duplicate, can we at least change the title of this ticket (including the update)? Otherwise I would also be tempted to open a new update ticket.

comment:17 Changed 8 years ago by michaellass (Michael Lass)

As this bug seems to also be about hugin beging out-of-date: 2016.0.0 was released recently: http://hugin.sourceforge.net/releases/2016.0.0/en.shtml

comment:18 Changed 8 years ago by michaellass (Michael Lass)

Cc: bevan@… added

Cc Me!

comment:19 Changed 8 years ago by glen@…

Cc: glen@… removed

Cc Me!

comment:20 Changed 8 years ago by glen@…

hugin-2016 doesn't build out of the box on OSX 10.11 either. It fails with exactly the same error that 2015 did. I've reported it to the developers, but they've been about as unresponsive as it's possible to be to a bug report.

comment:21 Changed 8 years ago by mojca (Mojca Miklavec)

I committed r147472 with an upgrade to 2016.0.0. It compiles for me both on 10.11 as well as 10.7 (with minor modifications and against vigra 1.9.0, so not exactly out-of-the-box). I don't have 10.9 to test. I'm closing this ticket and suggest to open new tickets for any remaining issues.

comment:22 Changed 8 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: assignedclosed
Version: 2.3.3
Note: See TracTickets for help on using tickets.