Hello,
I am trying to install root v6.32.10 on my Mac from the source. Here are the cmake flags:
cmake -DCMAKE_INSTALL_PREFIX=/Users/arkasantra/Root6_Install -DPython3_EXECUTABLE=python3 -DCMAKE_CXX_STANDARD=20 -Dbuiltin_nlohmannjson=ON -Dhttp=ON -Droot7=ON -Dbuiltin_xrootd=ON -Dxrootd=ON -Dbuiltin_glew=ON /Users/arkasantra/root-6.32.10
The configuration output is the following:
When I am building the directory, I am getting this error:
CMake Error at /Users/arkasantra/Root6_Build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):
Command failed: 2
'/Applications/Xcode.app/Contents/Developer/usr/bin/make'
See also
/Users/arkasantra/Root6_Build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log
make[2]: *** [AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build] Error 1
make[1]: *** [CMakeFiles/AFTERIMAGE.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The contents of the AfterImage log file is :
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
In file included from libpng/png.c:14:
libpng/pngpriv.h:524:16: fatal error: 'fp.h' file not found
524 | # include <fp.h>
| ^~~~~~
1 error generated.
make[3]: *** [libpng/png.o] Error 1
I checked the problem here: Root6 compilation fails with AfterImage installation problem
but seems this did not help me.
May I know what a potential solution should be?
Thank you,
Arka
Please fill also the fields below. Note that root -b -q
will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug
from the ROOT prompt to pre-populate a topic.
_ROOT Version:6.32.10
_Platform: MacOSX_15.4 (Intel x86_64)
_Compiler:AppleClang 17.0.0.17000013 (Xcode 16.3)
Hi @arkasantra ,
Thanks for your question.
I am looking at this issue and will get back to you shortly.
Cheers,
Dev
couet
April 2, 2025, 8:13am
3
May be -Dbuiltin_afterimage=ON
could help ?
linev
April 2, 2025, 8:27am
4
I guess, here problem with builtin_libpng
. Not sure that #include <fp.h>
means.
One could try to install libpng-devel
package and use for ROOT compilation?
If I remember correctly, ROOT uses external libpng when all necessary include files found by cmake.
couet:
-Dbuiltin_afterimage=ON
I tried with this installation flag, but I am getting the same error while installing.
linev
April 2, 2025, 8:42pm
6
Try to install developer package for libpng
Hello,
I got excatly same message when tried to build AFTERIMAGE during the installation of ROOT (version 6.34.06, same as 6.32.10) after update to MacOSX_15.4 (M2).
Compiler was also AppleClang 17.0.0 (Xcode updated).
CMake Error at /Users/cyj6602/Packages/root_build_v6_34/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-Release.cmake:49 (message):
Command failed: 2
‘/Library/Developer/CommandLineTools/usr/bin/make’
See also
/Users/cyj6602/Packages/root_build_v6_34/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log
make[2]: *** [AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build] Error 1
make[1]: *** [CMakeFiles/AFTERIMAGE.dir/all] Error 2
make: *** [all] Error 2
The content of the log file was same. “fp.h” not found.
It looks like the libpng should not include “fp.h” header file after version 1.6.45.
The installed one in my PC is version 1.6.47 and the cmake also found it during the generation of makefile.
“Found PNG: /opt/homebrew/lib/libpng.dylib (1.6.47)”
But when I checked the /Users/cyj6602/Packages/root_build_v6_34/AFTERIMAGE-prefix/src/AFTERIMAGE/libpng/png.h file which was made during the build, it looks like the builder try to use libpng version 1.6.40, not the 1.6.47.
Can I know what should I do? Does it related to the cmake problem?
Thank you,
Youngju
couet
April 3, 2025, 6:20am
8
On the web I found that this issue is fixed in libpng version1.6.45
opened 08:46AM - 03 Jun 24 UTC
macOS
build
### Description
wxWidgets compiles fine using Apple Clang shipped with Xcode,… but when trying to use the newest `clang` from `homebrew`, the compilation fails.
This does not seem to be `libpng` issue, as this library (cloned from GitHub as a standalone project) compiles fine with the same `cmake` settings. It looks like it's a problem with wxWidgets' CMake scripts.
```
luke@Lukes-MacBook-Pro wxBuild % cmake -G Ninja -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang ~/Developer/wxWidgets
-- Setting build type to 'Debug' as none was specified.
-- The C compiler identification is Clang 18.1.6
-- The CXX compiler identification is Clang 18.1.6
-- The OBJCXX compiler identification is Clang 18.1.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting OBJCXX compiler ABI info
-- Detecting OBJCXX compiler ABI info - done
-- Check for working OBJCXX compiler: /opt/homebrew/opt/llvm/bin/clang++ - skipped
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libz.tbd (found version "1.2.12")
-- Found EXPAT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libexpat.tbd (found version "2.5.0")
-- Performing Test wxHAVE_CXX11
-- Performing Test wxHAVE_CXX11 - Success
-- Performing Test wxHAVE_CXX17
-- Performing Test wxHAVE_CXX17 - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Iconv: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libiconv.tbd
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenGL.framework
-- Could NOT find MSPACK (missing: MSPACK_LIBRARY MSPACK_INCLUDE_DIR)
-- libmspack not found
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Success
-- Looking for va_copy
-- Looking for va_copy - found
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Success
-- Looking for sigaction
-- Looking for sigaction - found
-- Performing Test wxHAVE_BACKTRACE
-- Performing Test wxHAVE_BACKTRACE - Success
-- Performing Test HAVE_CXA_DEMANGLE
-- Performing Test HAVE_CXA_DEMANGLE - Success
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Performing Test HAVE_STATFS
-- Performing Test HAVE_STATFS - Success
-- Performing Test HAVE_STATVFS
-- Performing Test HAVE_STATVFS - Success
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for flock
-- Looking for flock - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for uname
-- Looking for uname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for fdopen
-- Looking for fdopen - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for getgrgid_r
-- Looking for getgrgid_r - found
-- Looking for sys/soundcard.h
-- Looking for sys/soundcard.h - not found
-- Performing Test WX_SOCKLEN_T_IS_SOCKLEN_T
-- Performing Test WX_SOCKLEN_T_IS_SOCKLEN_T - Success
-- Performing Test SOCKOPTLEN_T_IS_SOCKLEN_T
-- Performing Test SOCKOPTLEN_T_IS_SOCKLEN_T - Success
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - not found
-- Looking for getservbyname
-- Looking for getservbyname - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Looking for inet_addr
-- Looking for inet_addr - found
-- Performing Test wxHAVE_PTHREAD_CLEANUP
-- Performing Test wxHAVE_PTHREAD_CLEANUP - Success
-- Performing Test HAVE_PTHREAD_MUTEXATTR_T
-- Performing Test HAVE_PTHREAD_MUTEXATTR_T - Success
-- Performing Test HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL
-- Performing Test HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL - Success
-- Performing Test HAVE_ABI_FORCEDUNWIND
-- Performing Test HAVE_ABI_FORCEDUNWIND - Failed
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Performing Test wxSIZE_T_IS_NOT_UINT
-- Performing Test wxSIZE_T_IS_NOT_UINT - Success
-- Performing Test wxSIZE_T_IS_NOT_ULONG
-- Performing Test wxSIZE_T_IS_NOT_ULONG - Failed
-- Performing Test wxWCHAR_T_IS_REAL_TYPE
-- Performing Test wxWCHAR_T_IS_REAL_TYPE - Success
-- Performing Test HAVE_PW_GECOS
-- Performing Test HAVE_PW_GECOS - Success
-- Looking for ftime
-- Looking for ftime - not found
-- Looking for wcsftime
-- Looking for wcsftime - found
-- Looking for wprintf
-- Looking for wprintf - found
-- Looking for putws
-- Looking for putws - not found
-- Looking for fputws
-- Looking for fputws - found
-- Looking for vswprintf
-- Looking for vswprintf - found
-- Looking for vswscanf
-- Looking for vswscanf - found
-- Looking for wcsdup
-- Looking for wcsdup - found
-- Looking for wcsnlen
-- Looking for wcsnlen - found
-- Looking for wcscasecmp
-- Looking for wcscasecmp - found
-- Looking for wcsncasecmp
-- Looking for wcsncasecmp - found
-- Looking for wcsrctombs
-- Looking for wcsrctombs - not found
-- Looking for wcstoull
-- Looking for wcstoull - found
-- Looking for wcslen
-- Looking for wcslen - found
-- Looking for fsync
-- Looking for fsync - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for setpriority
-- Looking for setpriority - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for sched.h
-- Looking for sched.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for wcstr.h
-- Looking for wcstr.h - not found
-- Performing Test wxTEST_TZ_timezone
-- Performing Test wxTEST_TZ_timezone - Success
-- Performing Test WX_GMTOFF_IN_TM
-- Performing Test WX_GMTOFF_IN_TM - Success
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for dl_iterate_phdr
-- Looking for dl_iterate_phdr - not found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - not found
-- Looking for sys/event.h
-- Looking for sys/event.h - found
-- Looking for xlocale.h
-- Looking for xlocale.h - found
-- Check size of locale_t
-- Check size of locale_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Check size of long long
-- Check size of long long - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Which libraries should wxWidgets use?
wxUSE_REGEX: builtin (enable support for wxRegEx class)
wxUSE_ZLIB: sys (use zlib for LZW compression)
wxUSE_EXPAT: sys (use expat for XML parsing)
wxUSE_LIBJPEG: builtin (use libjpeg (JPEG file format))
wxUSE_LIBPNG: builtin (use libpng (PNG image format))
wxUSE_LIBTIFF: builtin (use libtiff (TIFF file format))
wxUSE_NANOSVG: builtin (use NanoSVG for rasterizing SVG)
wxUSE_LIBLZMA: OFF (use liblzma for LZMA compression)
wxUSE_LIBSDL: OFF (use SDL for audio on Unix)
wxUSE_LIBMSPACK: OFF (use libmspack (CHM help files loading))
wxUSE_WEBVIEW: ON (enable wxWebview with WebKit)
-- Configured wxWidgets 3.3.0 for Darwin
Min OS Version required at runtime: macOS 10.10 arm64
Which GUI toolkit should wxWidgets use? osx_cocoa
Should wxWidgets be compiled into single library? OFF
Should wxWidgets be linked as a shared library? ON
Which wxWidgets API compatibility should be used? 3.2
-- Configuring done (7.5s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/luke/Developer/wxBuild
luke@Lukes-MacBook-Pro wxBuild % cmake --build . -j
[69/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngerror.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngerror.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngerror.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngerror.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngerror.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngerror.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngerror.c:19:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[73/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/png.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/png.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/png.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/png.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/png.c.o -c /Users/luke/Developer/wxWidgets/src/png/png.c
In file included from /Users/luke/Developer/wxWidgets/src/png/png.c:14:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[74/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngget.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngget.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngget.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngget.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngget.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngget.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngget.c:15:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[76/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngpread.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngpread.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngpread.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngpread.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngpread.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngpread.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngpread.c:14:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[77/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrio.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrio.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrio.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrio.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrio.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngrio.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngrio.c:21:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[78/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngmem.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngmem.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngmem.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngmem.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngmem.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngmem.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngmem.c:20:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[79/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngread.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngread.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngread.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngread.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngread.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngread.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngread.c:17:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[80/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngset.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngset.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngset.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngset.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngset.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngset.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngset.c:19:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[83/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrutil.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrutil.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrutil.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrutil.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrutil.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngrutil.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngrutil.c:17:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
[84/1003] Building C object libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrtran.c.o
FAILED: libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrtran.c.o
/opt/homebrew/opt/llvm/bin/clang -DPNG_INTEL_SSE -D_FILE_OFFSET_BITS=64 -I/Users/luke/Developer/wxBuild/lib/wx/include/osx_cocoa-unicode-3.3 -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=10.10 -fPIC -MD -MT libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrtran.c.o -MF libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrtran.c.o.d -o libs/CMakeFiles/wxpng.dir/__/__/__/src/png/pngrtran.c.o -c /Users/luke/Developer/wxWidgets/src/png/pngrtran.c
In file included from /Users/luke/Developer/wxWidgets/src/png/pngrtran.c:19:
/Users/luke/Developer/wxWidgets/src/png/pngpriv.h:536:16: fatal error: 'fp.h' file not found
536 | # include <fp.h>
| ^~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
```
### Platform and version information
- wxWidgets version you use: pretty much all of them
- wxWidgets port you use: wxMac
- OS and its version: 14.5 (23F79)
jonas
April 3, 2025, 9:38am
9
The problem is that for whatever reason, ROOT forces the buildin libpng only on macOS.
I have changed this behavior for ROOT master in the upcoming 6.36 release:
master
← guitargeek:afterimage_cocoa
opened 12:29PM - 20 Mar 25 UTC
There is probably no reason to do this anymore. These libraries should be instal… led on the system, and if not, the automatic detection a few lines above the removed lines will take care of it.
Both the ROOT conda package and the nix package have patches to circumvent this already, and it would be better to do this upstream too.
I’ll backport this to 6.34 and 6.32. Then, in the next patch releases, ROOT will pickup the system libpng and compile just fine.