Hello I ran those initial commands to set the GTK development sh gtk-osx-setup.sh jhbuild bootstrap-gtk-osx jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3
but last one failed.
The error I got is:
...
Library m found: YES
Found pkg-config: YES (/Users/dj/gtk/inst/bin/pkg-config) 2.2.0
Found CMake: /Users/dj/gtk/inst/bin/cmake (3.29.3)
Run-time dependency freetype2 found: NO (tried pkgconfig, framework and cmake)
Dependency Freetype found: NO. Found 2.13.2 but need: '>= 12.0.6'
Run-time dependency freetype found: NO (tried pkgconfig, framework and cmake)
Not looking for a fallback subproject for the dependency freetype2 because:
Use of fallback dependencies is disabled.
../../../../gtk/source/harfbuzz-8.5.0/meson.build:105:17: ERROR: Dependency 'freetype2' is required but not found.
On the other hand there is /Users/dj/gtk/inst/include/freetype2 folder with files, so I suppose jhbuild didnât solve the dependencies well.
Iâm using Homebrew, what wasnât in the PATH during initialisation.
You are misinformed about gtk-osx (which uses jhbuild) not being suitable anymore. It is actively maintained and used by people.
I have seen that error before, it is the result of a tainted development environment. Most likely cause: you have a Homebrew installation, but you need a clean environment, no traces of any kind of package manager allowed.
Hello @RdH and thank you for the information,
note that on the MacOS page for the official GTK website there the link regarding jhbuild point to webpage(s) planed for retirement, see here or here for instance.
That is what pointed towards the wrong direction, and also the fact that I tried to follow this method but could not find any way to install GTK4 (that I really need), so I figured that GTK4 being unsupported (or so it seems) it was a depreciated method, my bad.
Could you by any chance let me know, if that is possible, how to install GTK4 using jhbuild ?
Understandable, I donât keep up with all the websites, I stick to the canonical source, gtk-osx. As long as thereâs activity, itâs alive and well.
Yes, you can build GTK4 with jhbuild. For example, Iâm doing this for Rnote here. However, my setup looks quite different from the outside compared to what youâre getting when using gtk-osxâs gtk-osx-setup.sh. That is because I do this a lot and have evolved this into my own thing (jhb)
Itâs probably easier to help if you show me the code you have.
@RdH thank you !
I will give a look to the links you provided (this might take some time since I am sharing the MacBook I use with a co-worker).
You will find here the source of my atomes software that I am trying to package for OSX:
So far I am not able to to build a proper working app (that includes all required libraries, and where the binary is able to search for lib in that app, and not outside).
For the meson archive you will find a lot of MacOS things in the âmisc/macosâ folder, also if you decide to try this format, simply use the script build-osx.h distributed in the repository to build the MacOS version.
The whole wiki is meant to be archivedâi.e. set to be read only, see this issue for the process and timeline. Individual pages will be migrated elsewhere.
I gave it a quick try to build Atomes and noticed that it needs fortran, which I donât have yet. So no âquick tryâ.
Besides Fortran, GTK and OpenMP, any other dependencies?