Re: CS installation on Mac os x

Weltall <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAAR4zySxWEARtdO_-MnhPtpD_kEVfUUYF=QAKaEYQdDJZw9+8A@mail.gmail.com>
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
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.