Re: CS installation on Mac os x
Eric Sunshine <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <CAPig+cQoVUxXN3R6fxc0uvyZaa7PJKzvJZZp3wAb5VyunN7MWQ@mail.gmail.com> |
There is a difference between using only "-arch i386", as I suggested, and using the full "-arch i386 -arch ppc". Your testing would be simplified by using only "-arch i386"; also, with the evidence presented, it's not clear if your testing actually succeeded using "-arch i386 -arch ppc". (Perhaps you actually tested the output of a previous build?) -- ES On Wed, May 23, 2012 at 5: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/