Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#29043 closed defect (invalid)

Unable to build OpenCV MacOs 10.6.7

Reported by: bricklemacho@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: opencv

Description (last modified by mf2k (Frank Schima))

I am unable to build OpenCV. I have selfupdate and updated outdated. Log file attached.

bricklemacho-imac-g5:bricklemacho$ sudo port clean opencv
Password:
--->  Cleaning opencv
bricklemacho-imac-g5:bricklemacho$ sudo port install opencv +python27
--->  Computing dependencies for opencv
--->  Fetching opencv
--->  Verifying checksum(s) for opencv
--->  Extracting opencv
--->  Applying patches to opencv
--->  Configuring opencv
--->  Building opencv
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log.gz (52.6 KB) - added by bricklemacho@… 14 years ago.
Gziped log file

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by bricklemacho@…

Attachment: main.log.gz added

Gziped log file

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: OpenCV removed

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

Cc: ryandesign@… added

I see this in the log:

:info:build /usr/local/include/eigen3/Eigen/Array:8:4: error: #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.

That means you have a header in /usr/local that is interfering. Because of this common problem, we don't support using MacPorts while there is anything in /usr/local. Please move /usr/local aside (for example by renaming it to /usr/local-off), then clean opencv again and try installing it again.

comment:3 in reply to:  2 Changed 14 years ago by bricklemacho@…

Replying to ryandesign@…:

I see this in the log:

:info:build /usr/local/include/eigen3/Eigen/Array:8:4: error: #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.

That means you have a header in /usr/local that is interfering. Because of this common problem, we don't support using MacPorts while there is anything in /usr/local. Please move /usr/local aside (for example by renaming it to /usr/local-off), then clean opencv again and try installing it again.

Thanks. Moved /usr/local aside and opencv builds sucessfully. Can close the ticket. I will clean up /usr/local. Thanks again for the help.

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

Resolution: invalid
Status: newclosed

comment:5 in reply to:  2 Changed 13 years ago by ignacioavellino@…

Replying to ryandesign@…:

I see this in the log:

:info:build /usr/local/include/eigen3/Eigen/Array:8:4: error: #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.

That means you have a header in /usr/local that is interfering. Because of this common problem, we don't support using MacPorts while there is anything in /usr/local. Please move /usr/local aside (for example by renaming it to /usr/local-off), then clean opencv again and try installing it again.

Worked for me also!! THANKS

Note: See TracTickets for help on using tickets.