Re: [gtk-osx-users] gtk-osx jhbuild and XCode 4.4.1 on Lion



On 8/18/12 7:22 AM, John Ralls wrote:
>
> Yeah, it should work. I just did a test build on Mountain Lion with
Xcode 4.4.1. The only problem was freetype, which needs to have
configure and make run manually. Just drop into a shell and run
../configure --prefix=$PREFIX && make; then you can quit the shell and
pick rerun install. It's been discussed here before. No issues with gtk.

Thanks you are of course right. reconfiguring helps.

>
> objcMsgsend is the C function that dispatches objective-c messages.
Suggests that a library is missing. Perhaps you need to reinstall
command-line tools?

Hmmm, I have tried reinstaling cmd-line tools. Didn't help. However I
have conducted further tests indicating the following :

Mac OS 10.7.4 - Xcode 4.1 with command line tools
setup_sdk(target="10.4", sdk_version="10.6", architectures=["i386"])
setup_sdk(target="10.4", sdk_version="10.7", architectures=["i386"])
both compile just fine.

Mac OS 10.7.4 - Xcode 4.4.1 with command line tools
setup_sdk(target="10.7", sdk_version="10.7", architectures=["x86_64"])
setup_sdk(target="10.6", sdk_version="10.7", architectures=["i386"])
setup_sdk(target="10.5", sdk_version="10.7", architectures=["i386"])
compile ok

However Mac OS 10.7.4 - Xcode 4.4.1 both
setup_sdk(target="10.4", sdk_version="10.7", architectures=["i386"])
and
setup_sdk(target="10.4", sdk_version="10.6", architectures=["i386"]) -
using a 10.6 SDK folder copied from Xcode 4.1

fails to compile with :
________________________
dyld: Symbol not found: _objc_msgSend
  Referenced from:
/Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
  Expected in:
/Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
________________________

I have tested this in a clear environment (on VM for 4.1 one VM for
4.4.1 - always deleted the whole gtk/inst - and all gtk/source
directories between building with a new setup_sdk setting).
So I'm pretty sure these results are valid.

I don't expect anyone to fix this combination. And after resolving my
errors I can continue building my app. I'm not even sure it makes a big
practical difference in the end product (target=10.4/10.5)?
I just wanted to let everyone know how it looks like atm, if they would
try to build this setup_sdk combination with Xcode 4.4.1 on Lion.

Thanks and regards
Marco




> 
> On Aug 17, 2012, at 1:08 AM, MaSch <masch82 googlemail com> wrote:
> 
>> Hello,
>>
>> I have already built gtk applications with gtk-osx just fine in the past
>> (Snow Leopard and Xcode 3 and 4).
>>
>> However I can not even get meta-gtk-osx-core on the default moduleset to
>> build with the newest Xcode 4.4.1 on Mac OS 10.7 (Lion).
>>
>> So build environment :
>> * Mac OS 10.7.4 (64-bit)
>> * Xcode 4.4.1 (4F1003)
>> * Xcode 4.4 Command line tools for Lion (Aug 2012)
>>  including Apple/clang 421.0.60
>>
>> Originally I tried building :
>> target="10.4", sdk_version="10.6", architectures=["i386"]
>> (using an old 10.6 SDK in /Developer)
>>
>> which leads to the following error :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> *** Installing freetype *** [4/14]
>> make install
>> make: *** No rule to make target `install'.  Stop.
>> *** Error during phase install of freetype: ########## Error running
>> make install *** [4/14]
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>
>> a further looks gives :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> bash-3.2$ make
>> cc  -I/Users/gtkdev2/gtk/inst/include
>> -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -I./objs -I./builds/ansi
>> -I./include -arch i386 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include
>> -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.4
>> -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o
>> objs/ftsystem.o src/base/ftsystem.c
>> Undefined symbols for architecture i386:
>>  "_main", referenced from:
>>      __start in crt1.o
>> ld: symbol(s) not found for architecture i386
>> collect2: ld returned 1 exit status
>> make: *** [objs/ftsystem.o] Error 1
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>
>> I can circumvent this error by commenting out the
>> TT_CONFIG_OPTION_BYTECODE_INTERPRETER in
>> include/freetype/config/ftoption.h
>> then do another configure and recompile
>> which was suggested in a list post on the gtk-list here :
>> https://mail.gnome.org/archives/gtk-list/2012-May/msg00053.html
>>
>> then it builds and installs just fine (of course without the
>> BYTECODE_INTERPRETER)
>>
>> but then jhbuild halts at gtk+ :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> libtool: install: /Users/gtkdev2/.local/bin/install-check
>> .libs/im-viqr.lai
>> /Users/gtkdev2/gtk/inst/lib/gtk-2.0/2.10.0/immodules/im-viqr.la
>> make  install-data-hook
>> /bin/sh /Users/gtkdev2/gtk/source/gtk+-2.24.9/install-sh -d
>> /Users/gtkdev2/gtk/inst/etc/gtk-2.0
>> ../../gtk/gtk-query-immodules-2.0 >
>> /Users/gtkdev2/gtk/inst/etc/gtk-2.0/gtk.immodules
>> dyld: lazy symbol binding failed: Symbol not found: _objc_msgSend
>>  Referenced from:
>> /Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
>>  Expected in:
>> /Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
>>
>> dyld: Symbol not found: _objc_msgSend
>>  Referenced from:
>> /Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
>>  Expected in:
>> /Users/gtkdev2/gtk/source/gtk+-2.24.9/gtk/.libs/libgtk-quartz-2.0.0.dylib
>>
>> /bin/sh: line 1: 62251 Trace/BPT trap: 5
>> ../../gtk/gtk-query-immodules-2.0 >
>> /Users/gtkdev2/gtk/inst/etc/gtk-2.0/gtk.immodules
>> make[4]: *** [install-data-hook] Error 133
>> make[3]: *** [install-data-am] Error 2
>> make[2]: *** [install-am] Error 2
>> make[1]: *** [install-recursive] Error 1
>> make: *** [install-recursive] Error 1
>> *** Error during phase install of gtk+: ########## Error running make
>> install *** [12/14]
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>
>>
>> I also tried building
>> target="10.4", sdk_version="10.7", architectures=["i386"]
>> target="10.4", sdk_version="10.7", architectures=["x86_64"]
>> which didn't improve anything - it still doesn't build.
>>
>> Then I tried it in a clean Lion VM just with XCode 4.4.1 and the Dev
>> Tools to rule out any environmental issues on my system. This didn't
>> help either.
>>
>> The I tried out Xcode 4.1 which uses old apple gcc instead of llvm on
>> 10.7.4 in a clean vm and it gave the same errors.
>>
>> Should this work ?
>> Or did I just do some stupid mistake I don't see ?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]