Opened 6 months ago
Last modified 6 months ago
#72593 assigned defect
opencv4 @4.5.0: error: no viable overloaded '='
| Reported by: | NucleaPeon (Dann) | Owned by: | mascguy (Christopher Nielsen) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.7 |
| Keywords: | snowleopard | Cc: | |
| Port: | opencv4 |
Description (last modified by NucleaPeon (Dann))
I am unable to install opencv4 on OS X 10.6.8
I ran the command: sudo port install opencv4
Around 80% it stopped with an error. Including the main.log here.
I had updated macports prior to this. I also ran sudo port clean opencv4 before attempting install again and saw the same behavior.
I was able to install opencv3.
Message I saw was:
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/build" && /usr/bin/make -j2 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build Failed to build opencv4: command execution failed
:debug:build Error code: CHILDSTATUS 99682 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 10)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/main.log for details.
I might not be seeing it, but there doesn't seem to be an obvious reason why it failed. Let me know if there's any way I can help debug and solve this issue.
Attachments (1)
Change History (4)
Changed 6 months ago by NucleaPeon (Dann)
comment:1 Changed 6 months ago by NucleaPeon (Dann)
| Description: | modified (diff) |
|---|
comment:2 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
| Keywords: | snowleopard added; opencv build removed |
|---|---|
| Owner: | set to mascguy |
| Status: | new → assigned |
| Summary: | opencv4 fails to build on OS X 10.6.8 → opencv4 @4.5.0: error: no viable overloaded '=' |
The log says the reason for the failure was:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv4-4.5.0/modules/highgui/src/window_cocoa.mm:249:65: warning: instance method '-convertSizeFromBacking:' not found (return type defaults to 'id') [-Wobjc-method-access]
scaledImageSize = [[window contentView] convertSizeFromBacking:imageSize];
^~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv4-4.5.0/modules/highgui/src/window_cocoa.mm:85:12: note: receiver is instance of class declared here
@interface CVView : NSView
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv4-4.5.0/modules/highgui/src/window_cocoa.mm:249:41: error: no viable overloaded '='
scaledImageSize = [[window contentView] convertSizeFromBacking:imageSize];
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'id' to 'const CGSize' for 1st argument
struct CGSize {
^
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'id' to 'CGSize' for 1st argument
1 warning and 1 error generated.
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/build'
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
(Followed by many more errors.) We see the same on our 10.6 build machine:
https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/238774
comment:3 Changed 6 months ago by NucleaPeon (Dann)
I appreciate it. Glad you can reproduce the problem.

log file for the building of opencv4