X-Plane / xptools

X-Plane Scenery Tools: WorldEditor (WED) and more
92 stars 35 forks source link

Can't build DDSTool on MacOS 12.6 on Intel #27

Closed vvampirius closed 1 year ago

vvampirius commented 1 year ago

MacOS 12.6 Intel CPU xptools branch master (last commit 9e80df97d42a1e093f723df82df6f70b06c2fcec) libpng 1.6.39

LD_LIBRARY_PATH=/usr/local/lib conf=release_opt make DDSTool DSFTool

ld: warning: object file (./libs/local/lib/libtiff.a(tif_unix.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngrutil.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngset.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngtrans.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwio.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwrite.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwtran.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwutil.o)) was built for newer macOS version (12.0) than being linked (10.11)
undef: _inflateReset2
undef: _inflateValidate
Undefined symbols for architecture x86_64:
  "_inflateReset2", referenced from:
      _png_inflate_claim in libpng.a(pngrutil.o)
  "_inflateValidate", referenced from:
      _png_inflate_claim in libpng.a(pngrutil.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ --FAILED-- ]
make[1]: *** [build/Darwin/release_opt/DDSTool] Error 1

Can you help me to build DDSTool and DSFTool? I want to use their 64-bit version with World2XPlane.

vvampirius commented 1 year ago

Any comments? I have this after git pull && brew upgrade libpng (MacOS 13.2 now):

[ CXX ] ./src/XPTools/DDSTool.cpp
[ LD  ] ./build/Darwin/release_opt/DDSTool
ld: warning: object file (./libs/local/lib/libtiff.a(tif_aux.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_close.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_codec.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_color.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_compress.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_dir.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_dirinfo.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_dirread.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_dirwrite.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_dumpmode.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_error.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_extension.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_fax3.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_fax3sm.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_flush.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_getimage.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_hash_set.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(png.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_jbig.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_jpeg.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_jpeg_12.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_lerc.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_luv.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngerror.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngget.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngmem.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngpread.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngread.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_lzma.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngrio.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngrtran.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_lzw.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngrutil.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_next.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_ojpeg.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngset.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngtrans.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwio.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwrite.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_open.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwtran.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libpng.a(pngwutil.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_packbits.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_pixarlog.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_predict.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_print.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_read.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_strip.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_swab.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_thunder.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_tile.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_version.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_warning.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_webp.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_write.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_zip.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_zstd.o)) was built for newer macOS version (13.0) than being linked (10.11)
ld: warning: object file (./libs/local/lib/libtiff.a(tif_unix.o)) was built for newer macOS version (13.0) than being linked (10.11)
undef: _ZSTD_compressStream
undef: _ZSTD_createCStream
undef: _ZSTD_createDStream
undef: _ZSTD_decompressStream
undef: _ZSTD_endStream
undef: _ZSTD_freeCStream
undef: _ZSTD_freeDStream
undef: _ZSTD_getErrorName
undef: _ZSTD_initCStream
undef: _ZSTD_initDStream
undef: _ZSTD_isError
undef: _ZSTD_maxCLevel
undef: _inflateReset2
undef: _inflateValidate
undef: _lzma_code
undef: _lzma_end
undef: _lzma_lzma_preset
undef: _lzma_memusage
undef: _lzma_stream_decoder
undef: _lzma_stream_encoder
Undefined symbols for architecture x86_64:
  "_ZSTD_compressStream", referenced from:
      _ZSTDEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_createCStream", referenced from:
      _ZSTDPreEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_createDStream", referenced from:
      _ZSTDPreDecode in libtiff.a(tif_zstd.o)
  "_ZSTD_decompressStream", referenced from:
      _ZSTDDecode in libtiff.a(tif_zstd.o)
  "_ZSTD_endStream", referenced from:
      _ZSTDPostEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_freeCStream", referenced from:
      _ZSTDSetupDecode in libtiff.a(tif_zstd.o)
      _ZSTDCleanup in libtiff.a(tif_zstd.o)
  "_ZSTD_freeDStream", referenced from:
      _ZSTDSetupEncode in libtiff.a(tif_zstd.o)
      _ZSTDCleanup in libtiff.a(tif_zstd.o)
  "_ZSTD_getErrorName", referenced from:
      _ZSTDPreDecode in libtiff.a(tif_zstd.o)
      _ZSTDDecode in libtiff.a(tif_zstd.o)
      _ZSTDPreEncode in libtiff.a(tif_zstd.o)
      _ZSTDPostEncode in libtiff.a(tif_zstd.o)
      _ZSTDEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_initCStream", referenced from:
      _ZSTDPreEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_initDStream", referenced from:
      _ZSTDPreDecode in libtiff.a(tif_zstd.o)
  "_ZSTD_isError", referenced from:
      _ZSTDPreDecode in libtiff.a(tif_zstd.o)
      _ZSTDDecode in libtiff.a(tif_zstd.o)
      _ZSTDPreEncode in libtiff.a(tif_zstd.o)
      _ZSTDPostEncode in libtiff.a(tif_zstd.o)
      _ZSTDEncode in libtiff.a(tif_zstd.o)
  "_ZSTD_maxCLevel", referenced from:
      _ZSTDVSetField in libtiff.a(tif_zstd.o)
  "_inflateReset2", referenced from:
      _png_inflate_claim in libpng.a(pngrutil.o)
  "_inflateValidate", referenced from:
      _png_inflate_claim in libpng.a(pngrutil.o)
  "_lzma_code", referenced from:
      _LZMADecode in libtiff.a(tif_lzma.o)
      _LZMAPostEncode in libtiff.a(tif_lzma.o)
      _LZMAEncode in libtiff.a(tif_lzma.o)
  "_lzma_end", referenced from:
      _LZMASetupDecode in libtiff.a(tif_lzma.o)
      _LZMASetupEncode in libtiff.a(tif_lzma.o)
      _LZMACleanup in libtiff.a(tif_lzma.o)
  "_lzma_lzma_preset", referenced from:
      _TIFFInitLZMA in libtiff.a(tif_lzma.o)
      _LZMAVSetField in libtiff.a(tif_lzma.o)
  "_lzma_memusage", referenced from:
      _LZMADecode in libtiff.a(tif_lzma.o)
  "_lzma_stream_decoder", referenced from:
      _LZMAPreDecode in libtiff.a(tif_lzma.o)
      _LZMADecode in libtiff.a(tif_lzma.o)
  "_lzma_stream_encoder", referenced from:
      _LZMAVSetField in libtiff.a(tif_lzma.o)
      _LZMAPreEncode in libtiff.a(tif_lzma.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ --FAILED-- ]
make[1]: *** [build/Darwin/release_opt/DDSTool] Error 1
make: *** [DDSTool] Error 2