Re: [gtk-osx-users] New build system
- From: John Ralls <jralls ceridwen us>
- To: Gabriele Greco <gabrielegreco gmail com>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] New build system
- Date: Wed, 20 May 2020 10:49:40 -0700
The second one is easy: gobject-introspection is trying to link against the PyEnv libpython. PyEnv naturally
sets macosx-version-min to the running MacOS. If you want to set macosx-version-min earlier you need to build
python3 so that there's a libpython with the same linkage flags.
The pyenv-based setup doesn't change the actual builds: The same environment variables and compiler flags are
set, so ISTM that differences in dylib layout must be due to Apple changing the linker. I have a collection
of MacOS VMs that I use to build GnuCash and Gramps for distribution. On the 10.9 VM using the pyenv-based
setup I find that libintl *does* have the the LC_VERSION_MIN_MACOSX setting.
Regards,
John Ralls
On May 20, 2020, at 1:25 AM, Gabriele Greco via gtk-osx-users-list <gtk-osx-users-list gnome org> wrote:
... beside that with setup_sdk set in jhbuildrc-custom the compilation fail at:
*** Error during phase build of gobject-introspection: ########## Error running ninja *** [21/32]
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.10" but "10.15" during
configure
On Wed, May 20, 2020 at 8:59 AM Gabriele Greco <gabrielegreco gmail com> wrote:
Hi guys, I have problems with the new build system (the one with pyenv) to make jhbuild honor the osx min
version (MACOS_DEPLOYMENT_TARGET / -mmacosx-version-min ).
I've added the line in .config/jhbuildrc-custom;
setup_sdk(target="10.10")
If I start "jhbuild shell" I get the variables correctly configured (partial output of "env"):
MACOSX_DEPLOYMENT_TARGET=10.10
LDFLAGS=-L/Users/raffo/gtk/inst/lib -L/Users/raffo/gtk/inst/lib -arch x86_64
-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10 -Wl,-headerpad_max_install_names
CFLAGS=-arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10
CXXFLAGS=-arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10
OBJCFLAGS=-arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10
CPPFLAGS=-I/Users/raffo/gtk/inst/include -arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
CMAKE_PREFIX_PATH=/Users/raffo/gtk/inst:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr
LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
SDKDIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
CUPS_CONFIG=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/bin/cups-config
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
OBJC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
CXX=/Applications/Xcode.app/Contents/Developer/usr/bin/g++
LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
BUILDCFLAGS=-arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10
CFLAGS_FOR_BUILD=-arch x86_64
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-mmacosx-version-min=10.10
.... but when I start the build itself (jhbuild bootstrap-gtk-osx) it seems to ignore these settings:
NEW BUILD:
iMac-2 $ otool -l /Users/raffo/gtk/inst/lib/libintl.dylib | grep -A 3 LC_VERS
[ nothing ]
OLD BUILD (working):
iMac-2 $ otool -l /usr/local/gtk/lib/libintl.dylib | grep -A 3 LC_VERS
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.9
sdk 10.14
--
Bye,
Gabry
--
Bye,
Gabry
_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]