Opened 6 years ago

Last modified 6 years ago

#55752 closed defect

gdal @2.2.3_1: fatal error: 'MacTypes.h' file not found — at Initial Version

Reported by: kencu (Ken) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gdal

Description

This build is on 10.6.8, but I'm not yet sure if that fact is relevant:

libtool: compile:  /opt/local/bin/clang++-mp-3.9 -std=gnu++11 -c -DHAVE_LIBJPEG -DPCIDSK_INTERNAL -Isdk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/port -I/opt/local -I/opt/local/include -I/opt/local/include/libqhull -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe -DGDAL_COMPILATION -stdlib=libc++ -arch x86_64 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough sdk/channel/cpixelinterleavedchannel.cpp -o ../o/cpixelinterleavedchannel.o >/dev/null 2>&1
r2000.cpp:55:14: fatal error: 'MacTypes.h' file not found
    #include <MacTypes.h>
             ^
1 error generated.

It was quite easily fixed with this -- in file:

ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp

change

#ifdef __APPLE__
    #include <MacTypes.h>
#endif

to

#ifdef __APPLE__
    #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
#endif

Change History (1)

Changed 6 years ago by kencu (Ken)

Attachment: gdal.build.1068.fail.log added
Note: See TracTickets for help on using tickets.