Re: CS installation on Mac os x

Weltall <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAAR4zyTiQvgd0ZMP+e1xYWvfRSU2+haabeiuK7nepg_V5LCpLQ@mail.gmail.com>
when was this merged?

2012/5/31 Eric Sunshine <[email protected]>

> Thanks for digging up those links to past discussions. Unfortunately,
> we never did learn exactly what the error was or what build flag was
> interacting poorly with -bundle. Since the bundle-related changes were
> never polished and were intended only for his GSOC branch, it probably
> would be reasonable to revert them on trunk and 2.0. Feel free to do
> so (unless someone comes up with an argument against reversion).
>
> -- ES
>
>
> On Sun, May 27, 2012 at 10:02 AM, Alexandru Voicu
> <[email protected]> wrote:
> > Hey Eric,
> >
> > I re-added the -bundle flag to PLUGIN.LFLAGS += "-bundle" ;
> > in CS/mk/jam/macosx.jam and libraries were compiled correctly
> (vfs.csbundle:
> > Mach-O bundle i386) and it works!! I can now run walktest and other
> projects
> > that don't have dependencies which I haven't yet install.
> >
> > The bundle flag has been removed on the lod branch by Eduardo so that it
> > worked on Mac 10.6
> > (http://sourceforge.net/mailarchive/message.php?msg_id=25463144 and
> > http://sourceforge.net/mailarchive/message.php?msg_id=25783176) and got
> > merged to trunk with the GSoC projects from 2010 (r34871). I am
> wondering if
> > we should restore it (or it would break for other versions of Mac,
> probably
> > 10.6).
> >
> > I'll write a section in the manual for setting up the environment in Mac
> > Lion 10.7.
> >
> > Many thanks Eric and Weltall for support!
> > Alex.
> >
> > On Fri, May 25, 2012 at 8:41 AM, Eric Sunshine <[email protected]>
> > wrote:
> >>
> >> Maybe the wrong build command is being used? I recall someone changing
> >> something in CS/mk/jam/macosx.jam or perhaps reporting something
> >> within the last year about CS using wrong build flags for modern
> >> Xcode; something to do with the -bundle flag.
> >>
> >> -- ES
> >>
> >>
> >> On Wed, May 23, 2012 at 6:17 PM, Alexandru Voicu
> >> <[email protected]> wrote:
> >> > Regarding my concern related to the *.csbundle files (vfs.csbundle:
> >> > Mach-O
> >> > executable i386) which I believed might have to be libraries, I found
> >> >
> >> > this:
> http://stackoverflow.com/questions/1924452/what-can-cause-dlopen-no-suitable-image-found-cant-map
> >> >
> >> > So it might be the case there is a configuration problem (or setting
> the
> >> > environment correctly) like the export flags.
> >> >
> >> > Alex.
> >> >
> >> >
> >> > On Wed, May 23, 2012 at 10:49 PM, Alexandru Voicu
> >> > <[email protected]> wrote:
> >> >>
> >> >> Yes, the above tests were after introducing:
> >> >>
> >> >> export CFLAGS="-arch i386 -arch ppc"
> >> >> export LDLAGS="-arch i386 -arch ppc"
> >> >> export CXXFLAGS="-arch i386 -arch ppc"
> >> >> export CRYSTAL="/usr/CS/"
> >> >>
> >> >> I have just double checked and still the same "can't map unslidable
> >> >> segment __TEXT to 0x1000 with size 0x62000".
> >> >>
> >> >> Cheers,
> >> >> Alex.
> >> >>
> >> >> On Wed, May 23, 2012 at 9:46 PM, Eric Sunshine
> >> >> <[email protected]>
> >> >> wrote:
> >> >>>
> >> >>> You probably shouldn't be using --enable-universal-binary at all.
> It's
> >> >>> only useful if you want to build for 32-bit Intel and PowerPC
> >> >>> architectures, but for the work you will be doing, you don't need to
> >> >>> do so. Building for Intel alone is fine. For
> --enable-universal-binary
> >> >>> to actually work, you need to have the PowerPC cross-build goop
> >> >>> installed, but you probably don't have it since, as far as I know,
> >> >>> Apple no longer ships it with modern Xcode. It works for Weltall
> >> >>> because he has a rather older toolchain installed.
> >> >>>
> >> >>> You may, however, want to try Weltall's advice of adding '-arch
> i386'
> >> >>> to CFLAGS, etc., and build afresh. Whether or not it will solve the
> >> >>> zlib "unslidable segment" issue is unknown, but it probably wouldn't
> >> >>> hurt to try.
> >> >>>
> >> >>> -- ES
> >> >>>
> >> >>>
> >> >>> On Mon, May 21, 2012 at 6:34 PM, Alexandru Voicu
> >> >>> <[email protected]> wrote:
> >> >>> > With "--enable-universal-binary=yes" flag I get the "present but
> >> >>> > cannot
> >> >>> > be
> >> >>> > compiled" errors that I got previously and didn't know what to
> make
> >> >>> > of
> >> >>> > them
> >> >>> > (http://sourceforge.net/mailarchive/message.php?msg_id=29230297):
> >> >>> >
> >> >>> > configure: WARNING: cxxabi.h: present but cannot be compiled
> >> >>> > configure: WARNING: cxxabi.h:     check for missing prerequisite
> >> >>> > headers?
> >> >>> > configure: WARNING: cxxabi.h: see the Autoconf documentation
> >> >>> > configure: WARNING: cxxabi.h:     section "Present But Cannot Be
> >> >>> > Compiled"
> >> >>> > configure: WARNING: cxxabi.h: proceeding with the compiler's
> result
> >> >>> > configure: WARNING:     ##
> >> >>> > -------------------------------------------------
> >> >>> > ##
> >> >>> > configure: WARNING:     ## Report this to
> >> >>> > [email protected]
> >> >>> > ##
> >> >>> > configure: WARNING:     ##
> >> >>> > -------------------------------------------------
> >> >>> > ##
> >> >>> >
> >> >>> >
> >> >>> > Also none of the dependencies get recognize.
> >> >>> > If I remove the "--enable-universal-binary=yes flag" I get:
> >> >>> >
> >> >>> > DLERROR (/usr/CS/vfs.csplugin): dlopen(/usr/CS/vfs.csbundle, 10):
> no
> >> >>> > suitable image found.  Did find:
> >> >>> > /usr/CS/vfs.csbundle: can't map unslidable segment __TEXT to
> 0x1000
> >> >>> > with
> >> >>> > size 0x62000
> >> >>> >
> >> >>> >
> >> >>> > So I guess the question is what architecture will
> >> >>> > "--enable-universal-binary=yes" configure for compiling?
> >> >>> >
> >> >>> > Cheers,
> >> >>> > Alex.
> >> >>> >
> >> >>> > On Mon, May 21, 2012 at 8:30 AM, Weltall <[email protected]>
> wrote:
> >> >>> >>
> >> >>> >> this is the configure commands i use
> >> >>> >> ./configure --without-java --without-perl --without-python
> >> >>> >> --without-3ds
> >> >>> >> --with-cal3d=/Users/weltall/build/cal3d/ --disable-ptmalloc
> >> >>> >> --without-GTK
> >> >>> >> --enable-universal-binary=yes --enable-separate-sections
> >> >>> >>
> >> >>> >> to note if using the 10.4 toolchain you must not build for 64bit
> >> >>> >> because
> >> >>> >> apple engineers thought it was a good idea to base cocoa on
> carbon
> >> >>> >> and
> >> >>> >> so
> >> >>> >> you'll end up using carbon when using cocoa, and as it's known
> >> >>> >> carbon
> >> >>> >> is
> >> >>> >> built only for 32bit so i add something like this:
> >> >>> >>
> >> >>> >> export CFLAGS="-arch i386 -arch ppc"
> >> >>> >> export LDLAGS="-arch i386 -arch ppc"
> >> >>> >> export CXXFLAGS="-arch i386 -arch ppc"
> >> >>> >> export CRYSTAL="/Users/weltall/build/cs/"
> >> >>> >>
> >> >>> >> in the environment before configure.
> >> >>> >>
> >> >>> >>
> >> >>> >> 2012/5/21 Eric Sunshine <[email protected]>
> >> >>> >>>
> >> >>> >>> You don't actually want to be building X11 on OSX. The --with-x
> >> >>> >>> flag
> >> >>> >>> is a
> >> >>> >>> semi-hidden way to tell configure not to build any of the
> >> >>> >>> Cocoa-specific
> >> >>> >>> components (that is, it provides an escape mechanism for
> building
> >> >>> >>> Darwin-only, but you shouldn't be doing that).
> >> >>> >>>
> >> >>> >>> -- ES
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> On Sunday, May 20, 2012, Alexandru Voicu wrote:
> >> >>> >>>>
> >> >>> >>>> Actually the X11 dependency might be an (the) issue.
> >> >>> >>>>
> >> >>> >>>> I get the following error for xwin.csbundle:
> >> >>> >>>>
> >> >>> >>>>
> >> >>> >>>> LinkPlugin xwin.csbundle
> >> >>> >>>> could not find Xaw7 in search path
> >> >>> >>>> ...
> >> >>> >>>> ld: symbol(s) not found for architecture i386
> >> >>> >>>> collect2: ld returned 1 exit status
> >> >>> >>>>
> >> >>> >>>> export MACOSX_DEPLOYMENT_TARGET=10.4
> >> >>> >>>>     g++ -o xwin.csbundle
> >> >>> >>>> ./out/macosx/debug/plugins/video/canvas/xwindow/xwindow.o
> >> >>> >>>>
> >> >>> >>>>
> ./out/macosx/debug/plugins/video/canvas/xwindow/xalert_xaw/alert.o
> >> >>> >>>>
> >> >>> >>>>
> >> >>> >>>>
> ./out/macosx/debug/plugins/video/canvas/xwindow/xalert_xaw/makeform.o
> >> >>> >>>> ./out/macosx/debug/plugins/video/canvas/xwindow/plugin_impl.o
> >> >>> >>>>  -lc
> >> >>> >>>> -lm -lmx
> >> >>> >>>> -ldl -L/usr/local/lib -g3 -Wl,-framework,AppKit
> >> >>> >>>> -Wl,-framework,Foundation
> >> >>> >>>>  ./out/macosx/debug/libs/libcrystalspace-2.1.a -L/opt/local/lib
> >> >>> >>>> -lz
> >> >>> >>>> -lXxf86vm `CC="gcc" CFLAGS="-pipe -Wmost -Wno-unknown-pragmas
> >> >>> >>>> -fvisibility=hidden -march=prescott -mfpmath=sse
> >> >>> >>>> -I/usr/local/include
> >> >>> >>>> -force_cpusubtype_ALL -fno-common -ffunction-sections
> >> >>> >>>> -fdata-sections -g3
> >> >>> >>>> -DCS_DEBUG" /bin/sh ./bin/relaytool --out-dir
> >> >>> >>>> ./out/macosx/debug/plugins/video/canvas/xwindow  --relay Xaw7
> >> >>> >>>> --relay Xaw
> >> >>> >>>> -lc -lm -lmx -ldl -L/usr/local/lib -L/usr/X11/lib -lXaw7 -lXt
> >> >>> >>>> -lX11
> >> >>> >>>> -L/usr/X11/lib -lX11 -lXt -lX11` -lXcursor -lXrender
> >> >>> >>>> -L/usr/X11/lib
> >> >>> >>>> -lX11
> >> >>> >>>> -lXext -lc -lm -lmx -ldl -L/usr/local/lib -g3
> >> >>> >>>> -Wl,-framework,AppKit
> >> >>> >>>> -Wl,-framework,Foundation
> >> >>> >>>>
> >> >>> >>>> Xaw7 is in the /usr/X11/lib along with X11.
> >> >>> >>>> I've tried setting LD_LIBRARY_PATH and DYLD_LIBRARY_PATH, but
> had
> >> >>> >>>> the
> >> >>> >>>> same result.
> >> >>> >>>>
> >> >>> >>>> Thanks,
> >> >>> >>>> Alex.
> >> >>> >>>>
> >> >>> >>>> On Sun, May 20, 2012 at 10:23 PM, Alexandru Voicu
> >> >>> >>>> <[email protected]> wrote:
> >> >>> >>>>
> >> >>> >>>> sudo ./configure --enable-debug with_x11=/usr/X11
> -without-assimp
> >> >>> >>>> -without-curl -without-python
> >> >>> >>>>
> >> >>> >>>> And the configure recognizes the following packages (are there
> >> >>> >>>> any
> >> >>> >>>> required ones not present ?):
> >> >>> >>>>
> >> >>> >>>> Found
> >> >>> >>>>   cg                   (rendering)
> >> >>> >>>>   freetype2            (other)
> >> >>> >>>>   jpeg                 (image)
> >> >>> >>>>   openal               (audio)
> >> >>> >>>>   opengl               (rendering)
> >> >>> >>>>   png                  (image)
> >> >>> >>>>   x11                  (rendering)
> >> >>> >>>>   zlib                 (other)
> >> >>> >>>>
> >> >>> >>>> Cheers,
> >> >>> >>>> Alex.
> >> >>> >>>>
> >> >>> >>>> On Sun, May 20, 2012 at 9:43 PM, Weltall <[email protected]>
> >> >>> >>>> wrote:
> >> >>> >>>>
> >> >>> >>>> what are you passing at configure?
> >> >>> >>>>
> >> >>> >>>>
> >> >>> >>>> 2012/5/20 Alexandru Voicu <[email protected]>
> >> >>> >>>>
> >> >>> >>>> I was trying to figure out if my dependencies are the same
> >> >>> >>>> architecture
> >> >>> >>>> as my executable, using the file command.
> >> >>> >>>>
> >> >>> >>>> While doing that I have noticed that for walktest I have:
> >> >>> >>>>
> >> >>> >>>> file /usr/CS/walktest.app/Contents/MacOS/walktest
> >> >>> >>>>
> >> >>> >>>> /usr/CS/walktest.app/Contents/MacOS/walktest: Mach-O
> >> >>> >>>> executable i386
> >> >>> >>>>
> >> >>> >>>> but for vfs.csbundle, I also have:
> >> >>> >>>>
> >> >>> >>>> file /usr/CS/vfs.csbundle
> >> >>> >>>>
> >> >>> >>>> /usr/CS/vfs.csbundle: Mach-O executable i386
> >> >>> >>>>
> >> >>> >>>> Shouldn't this be Mach-O dynamically linked shared library i386
> >> >>> >>>> rather
> >> >>> >>>> than executable i386 ?
> >> >>> >>>>
> >> >>> >>>> Moreover, I did this for most of the libraries, but for some I
> >> >>> >>>> don't
> >> >>> >>>> know which are used by CS by default. If I create a lib
> directory
> >> >>> >>>> in
> >> >>> >>>> CS will
> >> >>> >>>> they be chosen from there?
> >> >>> >>>>
> >> >>> >>>> Thanks again,
> >> >>> >>>> Alex.
> >> >>> >>>>
> >> >>> >>>> On Sun, May 20, 2012 at 3:09 AM, Eric Sunshine
> >> >>> >>>> <[email protected]>
> >> >>> >>>> wrote:
> >> >>> >>>>
> >> >>> >>>> It looks like you have CS installed at two locations,
> >> >>> >>>> /usr/local/lib/crystalspace-2.1 and /usr/CS/, and most of the
> >> >>> >>>> warnings
> >> >>> >>>> in the log stem from that issue.
> >> >>> >>>>
> >> >>> >>>> The actual error from the log, however, is this:
> >> >>> >>>>
> >> >>> >>>> DLERROR (/usr/CS/vfs.csplugin): dlopen(/usr/CS/vfs.csbundle,
> 10):
> >> >>> >>>> no
> >> >>> >>>> suitable image found.  Did find:
> >> >>> >>>>        /usr/CS/vfs.csbundle: can't map unslidable segment
> __TEXT
> >> >>> >>>> to
> >> >>> >>>> 0x1000
> >> >>> >>>> with size 0x62000
> >> >>> >>>>
> >> >>> >>>> Googling this error doesn't reveal much, but it very well could
> >> >>> >>>> be
> >> >>> >>>> due
> >> >>> >>>> to the fact that the 3rd-party dependencies were built with a
> >> >>> >>>> different compiler, or it could be an issue with how the tools
> >> >>> >>>> were
> >> >>> >>>> invoked to build CS itself.
> >> >>> >>>>
> >> >>> >>>> -- ES
> >> >>> >>>>
> >> >>> >>>>
> >> >>> >>>> On Sat, May 19, 2012 at 7:44 AM, Alexandru Voicu
> >> >>> >>>> <[email protected]> wrote:
> >> >>> >>>> > I have attached to the thread as well.
> >> >>> >>>> > Sorry for the double email.
> >> >>> >>>> >
> >> >>> >>>> > Alex.
> >> >>> >>>> >
> >> >>> >>>> >
> >> >>> >>>> > On Sat, May 19, 2012 at 12:42 PM, Alexandru Voicu
> >> >>> >>>> > <
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> ------------------------------------------------------------------------------
> >> >>> >>> Live Security Virtual Conference
> >> >>> >>> Exclusive live event will cover all the ways today's security
> and
> >> >>> >>> threat landscape has changed and how IT managers can respond.
> >> >>> >>> Discussions
> >> >>> >>> will include endpoint security, mobile security and the latest
> in
> >> >>> >>> malware
> >> >>> >>> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> >>> >>> _______________________________________________
> >> >>> >>> Crystal-develop mailing list
> >> >>> >>> [email protected]
> >> >>> >>> https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >> >>> >>>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> ------------------------------------------------------------------------------
> >> >>> >> Live Security Virtual Conference
> >> >>> >> Exclusive live event will cover all the ways today's security and
> >> >>> >> threat landscape has changed and how IT managers can respond.
> >> >>> >> Discussions
> >> >>> >> will include endpoint security, mobile security and the latest in
> >> >>> >> malware
> >> >>> >> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> >>> >> _______________________________________________
> >> >>> >> Crystal-develop mailing list
> >> >>> >> [email protected]
> >> >>> >> https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >> >>> >>
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> ------------------------------------------------------------------------------
> >> >>> > Live Security Virtual Conference
> >> >>> > Exclusive live event will cover all the ways today's security and
> >> >>> > threat landscape has changed and how IT managers can respond.
> >> >>> > Discussions
> >> >>> > will include endpoint security, mobile security and the latest in
> >> >>> > malware
> >> >>> > threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> >>> > _______________________________________________
> >> >>> > Crystal-develop mailing list
> >> >>> > [email protected]
> >> >>> > https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> ------------------------------------------------------------------------------
> >> >>> Live Security Virtual Conference
> >> >>> Exclusive live event will cover all the ways today's security and
> >> >>> threat landscape has changed and how IT managers can respond.
> >> >>> Discussions
> >> >>> will include endpoint security, mobile security and the latest in
> >> >>> malware
> >> >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> >>> _______________________________________________
> >> >>> Crystal-develop mailing list
> >> >>> [email protected]
> >> >>> https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------------
> >> > Live Security Virtual Conference
> >> > Exclusive live event will cover all the ways today's security and
> >> > threat landscape has changed and how IT managers can respond.
> >> > Discussions
> >> > will include endpoint security, mobile security and the latest in
> >> > malware
> >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> > _______________________________________________
> >> > Crystal-develop mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >> >
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Live Security Virtual Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> Discussions
> >> will include endpoint security, mobile security and the latest in
> malware
> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> _______________________________________________
> >> Crystal-develop mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Crystal-develop mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/crystal-develop
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Crystal-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-develop
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.