Opened 11 years ago

Closed 11 years ago

#38854 closed defect (duplicate)

opencv: conflicting declarations

Reported by: karo11 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: opencv

Description

Using port opencv with tiff throws errors:

/opt/local/include/tiff.h:77: error: conflicting declaration ‘typedef long int int64’ /opt/local/include/opencv2/core/types_c.h:163: error: ‘int64’ has a previous declaration as ‘typedef int64_t int64’ /opt/local/include/tiff.h:78: error: conflicting declaration ‘typedef long unsigned int uint64’ /opt/local/include/opencv2/core/types_c.h:164: error: ‘uint64’ has a previous declaration as ‘typedef uint64_t uint64’

Replacing line 163-164 in /opt/local/include/opencv2/core/types_c.h

	typedef int64_t int64;
	typedef uint64_t uint64;

by

/* Unsigned 64-bit type */
#ifndef __LP64__
   typedef long long int int64;
   typedef long long unsigned int uint64;
#else /* __LP64__ */
   typedef long int int64;
   typedef long unsigned int uint64;
#endif /* __LP64__ */
/*   typedef int64_t int64; */
/*   typedef uint64_t uint64; */

allows at least for 32 and 64 bit compilation on Mountain Lion, Lion & Leopard!

Although opencv has a quick revision cycle seemingly nobody used this combination of opencv and tiff.

This is a precision (?) or repetition of ticket #38168 since there happened nothing after more than two new revisions of opencv!

Change History (1)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Keywords: declaration mismatch removed
Resolution: duplicate
Status: newclosed
Summary: conflicting declarationsopencv: conflicting declarations

Please don't open duplicate tickets, they don't make things get fixed any faster.

Note: See TracTickets for help on using tickets.