macos build - make fails tiff.h file not found (Issue #23702)

403 views
Skip to first unread message

ext2txe

unread,
Jul 11, 2023, 6:59:04 AM7/11/23
to wx-...@googlegroups.com, Subscribed

build process - following instructions as documented in ./docs/osx/install.md

tomsk@tomskem1 Desktop % cd wxWidgets 
tomsk@tomskem1 wxWidgets % mkdir build-cocoa-debug
tomsk@tomskem1 wxWidgets % cd build-cocoa-debug 
tomsk@tomskem1 build-cocoa-debug % ../configure --enable-debug
...
.... config messages)
...
tomsk@tomskem1 build-cocoa-debug % make

wxwidgets_build.log

config.log: (not the problem)
config.log

Description

build fails during make : fatal error **'tiff.h' file not found**

output from make:

/Users/tomsk/Desktop/wxWidgets/build-cocoa-debug/bk-deps g++ -std=gnu++11 -mmacosx-version-min=10.10 -c -o coredll_imagtiff.o    -I../src/jpeg -I../src/png    -I/Users/tomsk/Desktop/wxWidgets/build-cocoa-debug/lib/wx/include/osx_cocoa-unicode-3.3 -I../include -D_FILE_OFFSET_BITS=64  -D__WXOSX_COCOA__      -DWXBUILDING -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic -fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -g -O0 -I/opt/homebrew/Cellar/pcre2/10.42/include -fno-common  -fvisibility=hidden -fvisibility-inlines-hidden   ../src/common/imagtiff.cpp
**../src/common/imagtiff.cpp:37:14:** **fatal error:** **'tiff.h' file not found**
    #include "tiff.h"
             **^~~~~~~~**
1 error generated.

Platform and version information

  • wxWidgets version 3.2.2.1 both git clone from repo and macos download from website
  • wxWidgets port - wxOSX
  • OS - macOS 13.4.1
  • Compiler - g++

missing tiff.h file is in tiff/libtiff/tiff.h


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23702@github.com>

oneeyeman1

unread,
Jul 11, 2023, 7:05:14 AM7/11/23
to wx-...@googlegroups.com, Subscribed

@ext2txe ,
How exactly did you clone the repo?
Please check the https://wxwidgets.org/develop/code-repository/ on how to properly fix your issue.

Thx.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23702/1630621824@github.com>

VZ

unread,
Jul 11, 2023, 7:06:14 AM7/11/23
to wx-...@googlegroups.com, Subscribed

There is indeed a problem when using system libtiff, for now you should be able to fix the problem by rerunning configure with --with-libtiff=builtin option, but I'll fix this a bit later, thanks for reporting.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23702/1630623138@github.com>

VZ

unread,
Jul 11, 2023, 7:06:54 AM7/11/23
to wx-...@googlegroups.com, Subscribed

@oneeyeman1 Please stop posting wrong information, this has nothing to do with the submodules.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23702/1630623894@github.com>

VZ

unread,
Jul 11, 2023, 7:29:43 AM7/11/23
to wx-...@googlegroups.com, Subscribed

In fact, fixing this is even simpler than I thought (it's a literally 4 character fix), so I've done it in the associated PR and you should be able to patch your configure to fix the problem by doing just this:

diff --git a/configure b/configure
index a6bf7fe6ba..4e0fcd183e 100755
--- a/configure
+++ b/configure
@@ -25977,7 +25977,7 @@ else
 $as_echo "yes" >&6; }

                 TIFF_LINK=$LIBTIFF_LIBS
-                CFLAGS="$LIBTIFF_CFLAGS $CFLAGS"
+                CXXFLAGS="$LIBTIFF_CFLAGS $CXXFLAGS"

 fi


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23702/1630653613@github.com>

VZ

unread,
Jul 20, 2023, 9:30:36 AM7/20/23
to wx-...@googlegroups.com, Subscribed

Closed #23702 as completed via 340320d.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/23702/issue_event/9874596123@github.com>

Reply all
Reply to author
Forward
0 new messages