openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.98k stars 2.55k forks source link

This package doesn't support your platform #8155

Open kresdjan opened 1 month ago

kresdjan commented 1 month ago

Download the latest nightly version of openFrameworks of_v20241016_osx_release. Change directory into of_v20241016_osx_release/apps/myApps/emptyExample and run make or make && make RunRelease.

$ make 
../../../libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:220: *** This package doesn't support your platform, ../../../libs/openFrameworksCompiled/project probably you downloaded the wrong package?.  Stop.

openFrameworks: of_v20241016_osx_release

System info.

$ sw_vers
ProductName:        macOS
ProductVersion:     15.0.1
BuildVersion:       24A348
$ softwareupdate --history | grep "Command Line Tools for Xcode"
(standard input):3:Command Line Tools for Xcode                       16.0       17.09.2024, 19.48.57  
(standard input):4:Command Line Tools for Xcode                       15.3       17.09.2024, 19.48.57  
(standard input):5:Command Line Tools for Xcode                       16.0       17.09.2024, 20.38.46

Properly not relevant but for completion, list of installed packages from MacPorts.

$ port installed
The following ports are currently installed:
  abseil @20240722.0_0 (active)
  aom @3.9.1_0 (active)
  autopep8_select @0.1_1 (active)
  bash @5.2.32_0 (active)
  Bear @3.1.3_5 (active)
  boost181 @1.81.0_10+no_single+no_static+python312 (active)
  brotli @1.1.0_0 (active)
  bzip2 @1.0.8_0 (active)
  c-ares @1.33.1_0 (active)
  cairo @1.17.6_2+quartz+x11 (active)
  cctools @949.0.1_3+xcode (active)
  clojure @1.12.0.1479_0 (active)
  coreutils @9.5_0 (active)
  curl-ca-bundle @8.10.1_0 (active)
  dav1d @1.4.3_0 (active)
  db48 @4.8.30_5 (active)
  dbus @1.14.10_1 (active)
  djvulibre @3.5.28_3 (active)
  double-conversion @3.3.0_0 (active)
  emacs-app-devel @20240804_0+imagemagick+nativecomp+rsvg+treesitter+xwidgets (active)
  emacs-mac-app-devel @20240623_2+imagemagick+metal+nativecomp+renameapp+treesitter (active)
  expat @2.6.3_0 (active)
  fftw-3 @3.3.10_0+gfortran (active)
  fish @3.7.1_0 (active)
  flake8_select @0.1_1 (active)
  fontconfig @2.15.0_0 (active)
  freetype @2.13.3_0 (active)
  fribidi @1.0.15_0 (active)
  gcc14 @14.2.0_3+stdlib_flag (active)
  gcc14-libcxx @14.2.0_3+clang18 (active)
  gcc_select @0.1_10 (active)
  gd2 @2.3.3_7+x11 (active)
  gdbm @1.24_0 (active)
  gdk-pixbuf2 @2.42.12_0 (active)
  gettext @0.22.5_0 (active)
  gettext-runtime @0.22.5_0 (active)
  gettext-tools-libs @0.22.5_0 (active)
  ghostscript @10.04.0_0+x11 (active)
  giflib @4.2.3_1 (active)
  glib2 @2.78.4_1+x11 (active)
  gmp @6.3.0_0 (active)
  gnutls @3.7.11_1 (active)
  gobject-introspection @1.78.1_3 (active)
  graphite2 @1.3.14_0 (active)
  graphviz @9.0.0_1+pangocairo+x11 (active)
  groff @1.23.0_0 (active)
  grpc @1.48.4_10 (active)
  gts @0.7.6-20121130_1 (active)
  harfbuzz @8.5.0_0 (active)
  icu @74.2_0 (active)
  ImageMagick @6.9.13-16_1+x11 (active)
  imath @3.1.11_0 (active)
  isl @0.24_1 (active)
  isort_select @0.1_1 (active)
  jansson @2.14_0 (active)
  jasper @4.2.4_0 (active)
  jbig2dec @0.20_0 (active)
  jbigkit @2.1_0 (active)
  kvazaar @2.3.1_0 (active)
  lbzip2 @2.5_3 (active)
  lcms2 @2.16_0 (active)
  ld64 @3_6+ld64_xcode (active)
  ld64-xcode @2_6 (active)
  leiningen @2.11.2_0 (active)
  lerc @4.0.0_1 (active)
  libb2 @0.98.1_1 (active)
  libcxx @5.0.1_5 (active)
  libde265 @1.0.15_0 (active)
  libdeflate @1.21_0 (active)
  libedit @20240808-3.1_0 (active)
  libelf @0.8.13_2 (active)
  libffi @3.4.6_1 (active)
  libfmt9 @9.1.0_0 (active)
  libgcc @8.0_0 (active)
  libgcc14 @14.2.0_3+stdlib_flag (active)
  libheif @1.18.2_1+kvazaar (active)
  libiconv @1.17_0 (active)
  libidn @1.42_0 (active)
  libidn2 @2.3.7_0 (active)
  libjpeg-turbo @3.0.4_0 (active)
  libLASi @1.1.3_1 (active)
  libmpc @1.3.1_0 (active)
  libnetpbm @11.07.01_0 (active)
  libpaper @2.2.5_0 (active)
  libpixman @0.43.4_1 (active)
  libpng @1.6.44_0 (active)
  libraw @0.21.2_0 (active)
  librsvg @2.56.3_0 (active)
  libtasn1 @4.19.0_0 (active)
  libtextstyle @0.22.5_0 (active)
  libtool @2.5.3_0 (active)
  libtorrent-rasterbar @2.0.10_1+python312 (active)
  libunistring @1.2_0 (active)
  libuv @1.44.2_0 (active)
  libxml2 @2.13.4_0 (active)
  libxslt @1.1.42_0 (active)
  lz4 @1.10.0_0 (active)
  lzma @24.08_0 (active)
  m4 @1.4.19_1 (active)
  md4c @0.4.8_0 (active)
  mpfr @4.2.1_0 (active)
  ncurses @6.5_0 (active)
  netpbm @11.07.01_0+x11 (active)
  nettle @3.10_0 (active)
  nodejs22 @22.8.0_0 (active)
  openexr @3.2.4_0 (active)
  openjdk21 @21.0.4_1+release+server (active)
  openjpeg @2.5.2_0 (active)
  openssl @3_20 (active)
  openssl3 @3.3.2_0 (active)
  ossp-uuid @1.6.2_13+perl5_34 (active)
  p11-kit @0.25.5_0 (active)
  pandoc @3.4_1 (active)
  pango @1.52.2_0+quartz+x11 (active)
  pcre2 @10.44_0 (active)
  perl5 @5.34.3_0+perl5_34 (active)
  perl5.34 @5.34.3_1 (active)
  pip_select @0.1_3 (active)
  pkgconfig @0.29.2_0 (active)
  pnpm @9.12.1_0 (active)
  protobuf3-cpp @3.21.12_2 (active)
  psutils @p17_1 (active)
  py312-appdirs @1.4.4_0 (active)
  py312-astroid @3.2.2_0 (active)
  py312-autopep8 @2.3.1_0 (active)
  py312-codestyle @2.12.0_0 (active)
  py312-dill @0.3.9_0 (active)
  py312-docstring-to-markdown @0.15_0 (active)
  py312-docstyle @6.3.0_0 (active)
  py312-flake8 @7.1.0_0 (active)
  py312-flake8-mccabe @0.7.0_0 (active)
  py312-gnureadline @8.1.2_0 (active)
  py312-importlib-metadata @7.1.0_0 (active)
  py312-isort @5.13.2_0 (active)
  py312-jedi @0.19.1_0 (active)
  py312-mako @1.3.5_0 (active)
  py312-markdown @3.6_0 (active)
  py312-markupsafe @2.1.5_0 (active)
  py312-packaging @24.1_0 (active)
  py312-parso @0.8.4_0 (active)
  py312-pip @24.2_0 (active)
  py312-platformdirs @4.3.6_0 (active)
  py312-pluggy @1.5.0_0 (active)
  py312-pyflakes @3.2.0_0 (active)
  py312-pylint @3.2.3_0 (active)
  py312-python-lsp-jsonrpc @1.1.2_0 (active)
  py312-python-lsp-server @1.12.0_0 (active)
  py312-pytoolconfig @1.3.1_0 (active)
  py312-rope @1.13.0_0 (active)
  py312-setuptools @75.1.0_0 (active)
  py312-snowballstemmer @2.2.0_0 (active)
  py312-tomli @2.0.1_0 (active)
  py312-tomlkit @0.12.5_0 (active)
  py312-ujson @5.10.0_0 (active)
  py312-whatthepatch @1.0.6_0 (active)
  py312-yapf @0.40.2_0 (active)
  py312-zipp @3.19.2_0 (active)
  pycodestyle_select @0.1_1 (active)
  pydocstyle_select @0.1_1 (active)
  pyflakes_select @0.1_1 (active)
  pylint_select @0.1_2 (active)
  pyright @1.1.384_0 (active)
  python-lsp-server_select @0.1_1 (active)
  python3_select @0.1_0 (active)
  python3_select-312 @0.1_1 (active)
  python312 @3.12.7_0+lto+optimizations (active)
  python_select @0.3_10 (active)
  python_select-312 @0.3_1 (active)
  qBittorrent @5.0.0_1+gui+webui (active)
  qt6-qtbase @6.7.2_0+openssl (active)
  qt6-qtsvg @6.7.2_0 (active)
  qt6-qttranslations @6.7.2_0 (active)
  re2 @2024-04-01_4 (active)
  readline @8.2.013_0 (active)
  rlwrap @0.46.1_0 (active)
  sbcl @2.4.8_0+fancy (active)
  shared-mime-info @2.4_0 (active)
  sqlite3 @3.46.1_0 (active)
  svt-av1 @2.2.1_0 (active)
  tiff @4.7.0_0 (active)
  tree-sitter @0.24.3_0 (active)
  tree-sitter-bash @0.23.1_0 (active)
  tree-sitter-c @0.23.1_0 (active)
  tree-sitter-c-sharp @0.23.0_0 (active)
  tree-sitter-cmake @0.1.0_0 (active)
  tree-sitter-cpp @0.23.1_0 (active)
  tree-sitter-css @0.23.0_0 (active)
  tree-sitter-dockerfile @0.2.0_0 (active)
  tree-sitter-elixir @0.3.1_0 (active)
  tree-sitter-go @0.23.1_0 (active)
  tree-sitter-go-mod @1.1.0_0 (active)
  tree-sitter-heex @0.6.0_0 (active)
  tree-sitter-html @0.23.0_0 (active)
  tree-sitter-java @0.23.2_0 (active)
  tree-sitter-javascript @0.23.0_0 (active)
  tree-sitter-json @0.23.0_0 (active)
  tree-sitter-lua @2.1.3_0 (active)
  tree-sitter-php @0.23.5_0 (active)
  tree-sitter-python @0.23.2_0 (active)
  tree-sitter-ruby @0.23.0_0 (active)
  tree-sitter-rust @0.23.0_0 (active)
  tree-sitter-toml @0.5.1_0 (active)
  tree-sitter-tsx @0.23.0_0 (active)
  tree-sitter-typescript @0.23.0_0 (active)
  tree-sitter-yaml @0.5.0_0 (active)
  uchardet @0.0.8_0 (active)
  urw-fonts @1.0.7pre44_0 (active)
  vala @0.56.17_2+valadoc (active)
  webp @1.4.0_0 (active)
  Xft2 @2.3.8_0 (active)
  xorg-libice @1.1.1_0 (active)
  xorg-libsm @1.2.4_0 (active)
  xorg-libX11 @1.8.10_0 (active)
  xorg-libXau @1.0.11_0 (active)
  xorg-libXaw @1.0.16_1 (active)
  xorg-libxcb @1.17.0_0+python312 (active)
  xorg-libXdmcp @1.1.5_0 (active)
  xorg-libXext @1.3.6_0 (active)
  xorg-libXmu @1.2.1_0 (active)
  xorg-libXt @1.3.0_1 (active)
  xorg-xcb-proto @1.17.0_0+python312 (active)
  xorg-xcb-util @0.4.1_0 (active)
  xorg-xorgproto @2024.1_0 (active)
  xpm @3.5.17_0 (active)
  xrender @0.9.11_0 (active)
  xz @5.6.3_0 (active)
  yapf_select @0.1_1 (active)
  zlib @1.3.1_0 (active)
  zstd @1.5.6_0 (active)
ofTheo commented 1 month ago

Can replicate here. Might be related to the recent PG changes or renaming some platform vars from osx to macOS
cc @danoli3 @dimitre

ofTheo commented 1 month ago

Okay - seems to be related to osx -> macOS

If I call export MAKEFILE_DEBUG=1 before running make

=================== config.mk platform detection ================
PLATFORM_ARCH=x86_64
PLATFORM_OS=Darwin
PLATFORM_VARIANT=default
PLATFORM_LIB_SUBPATH=macos <---------------------------- THIS
dimitre commented 1 month ago

any idea of how to fix @ofTheo? I've just fixed nightly to generate again with the latest.

ofTheo commented 1 month ago

I tried renaming the target to osx in config.shared.mk but because all the libs in the packaged release are setting in macos/ it breaks that.

So this gets me closer in OF/libs/openFrameworksCompiled/project/

Rename the osx folder to macos and rename the config.osx.default.mk file to config.macos.default.mk

image

I get an error about the icon - which I am trying to fix now

ofTheo commented 1 month ago

Okay and to fix the icon error in the newly renamed config.macos.default.mk change all instances ( 3 ) of osx/ to $(PLATFORM_LIB_SUBPATH)/

Then it builds and runs for me with make Release

kresdjan commented 1 month ago

Thanks @ofTheo. Renaming did the job. I can compile too.

kresdjan commented 2 weeks ago

When can we expect this to patched into a nightly release?

ofTheo commented 2 weeks ago

Oof - I thought it was fixed already. @danoli3 ?

I can do the fix described here: https://github.com/openframeworks/openFrameworks/issues/8155#issuecomment-2427147069

But I wasn't sure what the intention was for the changes or if we are missing something else for things to work

ofTheo commented 2 weeks ago

Separately I think we should hold off on merging any new feature PRs until the nightly builds are working again.