OSX Lion

27 views
Skip to first unread message

Christopher Deutsch

unread,
Aug 8, 2011, 7:23:38 PM8/8/11
to manos-...@googlegroups.com
Has anybody tried building on OSX Lion?

When I run ./configure it checks for gcc-4.0 and XCode for Lion now has gcc-4.2

Don't know how to fix that. Is there somewhere I can tell it to use 4.2?

Christopher

Christopher Deutsch

unread,
Aug 8, 2011, 7:27:12 PM8/8/11
to manos-...@googlegroups.com
Of course I'd figure it out right after sending this. 

export CC=gcc-4.2

Now running into this error, but can at least press on. 

System.DllNotFoundException: libmanos

Jackson Harper

unread,
Aug 8, 2011, 7:48:33 PM8/8/11
to manos-...@googlegroups.com
Can you do an

ls -l /usr/local/lib/manos

There should be a libmanos.dylib in there.

Jackson

Christopher Deutsch

unread,
Aug 8, 2011, 8:15:48 PM8/8/11
to manos-...@googlegroups.com
Yep, that DLL is there.

I'm getting the libev.4 architecture error:
DllImport error loading library 'dlopen(/usr/local/lib/manos/libev.4.dylib, 9): no suitable image found.  Did find:
/usr/local/lib/manos/libev.4.dylib: mach-o, but wrong architecture
/usr/local/lib/manos/libev.4.dylib: mach-o, but wrong architecture'.


Same as described here:

OSX Lion doesn't have gcc4.0, and I'm not sure how to make gcc4.2 compile for i386. Upgrading to Lion has been a giant headache

Christopher

Jackson Harper

unread,
Aug 8, 2011, 8:19:15 PM8/8/11
to manos-...@googlegroups.com
My guess is you have a 32bit mono and somehow got a 64bit libev.4.dylib

Ca you do:

file /usr/local/lib/manos/libev.4.dylib

Jackson

Christopher Deutsch

unread,
Aug 8, 2011, 8:35:21 PM8/8/11
to manos-...@googlegroups.com
Output is:
/usr/local/lib/manos/libev.4.dylib: Mach-O 64-bit dynamically linked shared library x86_64

So should I try re-install mono?

Jackson Harper

unread,
Aug 8, 2011, 8:38:45 PM8/8/11
to manos-...@googlegroups.com
No!

What you want to do is build a 32bit or universal libev.4.dylib. It
should be doing that now, but I guess there is something wrong on
Lion.

Christopher Deutsch

unread,
Aug 8, 2011, 8:43:21 PM8/8/11
to manos-...@googlegroups.com
Any idea how I'd build the universal? Can I force gcc 4.2 to do that?

Jackson Harper

unread,
Aug 9, 2011, 10:17:17 AM8/9/11
to manos-...@googlegroups.com
Hey sorry for the delay.

This should be fixed in master now. Just needed to update a configure
check to look for Lion too.

Christopher Deutsch

unread,
Aug 9, 2011, 11:35:31 AM8/9/11
to manos-...@googlegroups.com
Success! 

One step closer to not completely hating Lion.

Thanks!!! I appreciate the help!

Christopher
Reply all
Reply to author
Forward
0 new messages