Bug #268

osx (clang) compile error - opencv vs. tiff conflict

Added by petr almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:28.09.2013
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:1.6.0
Version:1.4.0 Operating System:Mac OS

Description

version: 1.4.0 tarball from sf.net

this can be related: https://trac.macports.org/ticket/38168

:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkImage.h:87:
:info:build In file included from /opt/local/include/tiffio.h:33:
:info:build /opt/local/include/tiff.h:77:23: error: typedef redefinition with different types ('long' vs 'int64_t' (aka 'long long'))
:info:build typedef TIFF_INT64_T  int64;
:info:build                       ^
:info:build /opt/local/include/opencv2/core/types_c.h:163:20: note: previous definition is here
:info:build    typedef int64_t int64;
:info:build                    ^
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkImage.cpp:28:
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkImage.h:87:
:info:build In file included from /opt/local/include/tiffio.h:33:
:info:build /opt/local/include/tiff.h:78:23: error: typedef redefinition with different types ('unsigned long' vs 'uint64_t' (aka 'unsigned long long'))
:info:build typedef TIFF_UINT64_T uint64;
:info:build                       ^
:info:build /opt/local/include/opencv2/core/types_c.h:164:21: note: previous definition is here
:info:build    typedef uint64_t uint64;
:info:build                     ^
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkBaseViewPort.cpp:28:
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkBaseViewPort.h:36:
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkImage.h:87:
:info:build In file included from /opt/local/include/tiffio.h:33:
:info:build /opt/local/include/tiff.h:77:23: error: typedef redefinition with different types ('long' vs 'int64_t' (aka 'long long'))
:info:build typedef TIFF_INT64_T  int64;
:info:build                       ^
:info:build /opt/local/include/opencv2/core/types_c.h:163:20: note: previous definition is here
:info:build    typedef int64_t int64;
:info:build                    ^
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkBaseViewPort.cpp:28:
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkBaseViewPort.h:36:
:info:build In file included from /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/src/DkImage.h:87:
:info:build In file included from /opt/local/include/tiffio.h:33:
:info:build /opt/local/include/tiff.h:78:23: error: typedef redefinition with different types ('unsigned long' vs 'uint64_t' (aka 'unsigned long long'))
:info:build typedef TIFF_UINT64_T uint64;
:info:build                       ^
:info:build /opt/local/include/opencv2/core/types_c.h:164:21: note: previous definition is here
:info:build    typedef uint64_t uint64;
:info:build                     ^
:info:build /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_Users_pvanek_oss_macports_trunk_dports_aqua_nomacs/nomacs/work/nomacs-1.4.0/CMakeFiles 50

History

#1 Updated by Stefan almost 6 years ago

  • % Done changed from 0 to 100

added the defines to the code

#2 Updated by Stefan almost 6 years ago

  • Target version set to 1.6.0

#3 Updated by Stefan almost 6 years ago

  • Status changed from New to Closed

Also available in: Atom PDF