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 <sunshine@sunshineco.com> 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
<voicualexandruteodor@gmail.com> 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
> <voicualexandruteodor@gmail.com> wrote:
>>
>> Yes, I did this, and it's the same output with system.log
>>
>> Alex.
>>
>>
>> On Sat, May 19, 2012 at 12:40 PM, weltall <weltall2@gmail.com> wrote:
>>>
>>> go the the folder with the app (the cs root folder) and do
>>> ./walktest.app/Content/MacOS/walktest
>>> this way you'll get proper terminal output
>>> Il giorno sab, 19/05/2012 alle 12.18 +0100, Alexandru Voicu ha scritto:
>>> > Hey Eric,
>>> >
>>> >
>>> > Thanks for the suggestion, I added something similar
>>> > to CS_IMPLEMENT_PLATFORM_PLUGIN in CS/include/csutil/macosx/csosdef.h
>>> > and I only get a ld problem for two projects (sndsysopenal.csbundle
>>> > and xwin.csbundle - but because OpenAL and Xaw7 were not found).
>>> >
>>> >
>>> > However, when I try to start any application the window closes. I
>>> > tried running from the command line: 'open walktest.app/' and 'open -a
>>> > walktest' with the same result. I have attached you system.log
>>> >
>>> >
>>> > I have tried setting up the CRYSTAL environment var by:
>>> >
>>> >
>>> >         defaults write NSGlobalDomain CrystalSpaceRoot "/usr/local/"
>>> >         export CRYSTAL="/usr/local"
>>> >         setenv CRYSTAL "/usr/local/"
>>> >
>>> >
>>> > but to the same result.
>>> >
>>> >
>>> > Thanks,
>>> > Alex.
>>> >
>>> > On Fri, May 18, 2012 at 11:24 PM, Eric Sunshine
>>> > <sunshine@sunshineco.com> wrote:
>>> >         This doesn't really appear to be a problem with the 3rd-party
>>> >         dependences since it is stating that main() can not be found.
>>> >         What is
>>> >         the actual build command which fails? Is it building an
>>> >         application at
>>> >         this point or a plugin? If it's a plugin, then it may be the
>>> >         case that
>>> >         when CS is built with this particular compiler, the plugin
>>> >         needs a
>>> >         main(), as is the case with Unix. See, for instance,
>>> >         CS/include/csutil/unix/csosdef.h:CS_IMPLEMENT_PLATFORM_PLUGIN.
>>> >
>>> >         -- ES
>>> >
>>> >
>>> >         On Fri, May 18, 2012 at 6:11 PM, Alexandru Voicu
>>> >         <voicualexandruteodor@gmail.com> wrote:
>>> >         > Hi Jonathan,
>>> >         >
>>> >         > I also tried to install CS on lion, see
>>> >         >
>>> >         thread:
>>> > http://sourceforge.net/mailarchive/message.php?msg_id=29230297
>>> >         > At the moment I have installed XCode 4.1 and changed gcc, g
>>> >         ++, cc and c++
>>> >         > to i686-apple-darwin11-gcc-4.2.1 instead
>>> >         > of i686-apple-darwin11-llvm-gcc-4.2. Everything compiles
>>> >         (make install as
>>> >         > well from what I saw) and the executables are built, but I
>>> >         have some linking
>>> >         > problems (so they don't really run):
>>> >         >
>>> >         >
>>> >         > 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
>>> >         >
>>> >         >
>>> >         > I think it might be cause by the fact that the dependencies
>>> >         were compiled
>>> >         > with the old llvm compiler so I should probably recompile
>>> >         them. I'll do that
>>> >         > these days and email if it works.
>>> >         >
>>> >         > Cheers,
>>> >         > Alex.
>>> >         >
>>> >         > On Fri, May 18, 2012 at 2:39 PM, Jonathan Dixon
>>> >         <me.jonny27@gmail.com>
>>> >         > wrote:
>>> >         >>
>>> >         >> Hi Christian,
>>> >         >>
>>> >         >> Sorry for my mistake indeed the '-' is not required. I may
>>> >         have been a bit
>>> >         >> early in sending through the email, although i got a lot
>>> >         further on the
>>> >         >> make, CS is failing to 'make install' so possibly changing
>>> >         the compiler from
>>> >         >> gcc to clang may not make any difference.
>>> >         >>
>>> >         >> I will continue to try to resolve this issue and keep you
>>> >         updated
>>> >         >>
>>> >         >> Thanks
>>> >         >>
>>> >         >> Jonathan
>>> >         >>
>>> >         >>
>>> >         >> On 18 May 2012 14:24, Christian Van Brussel
>>> >         >> <christian.vanbrussel@uclouvain.be> wrote:
>>> >         >>>
>>> >         >>> Hi,
>>> >         >>>
>>> >         >>> Tanks for the tip!
>>> >         >>>
>>> >         >>> I'm updating the manual but would like to be sure to
>>> >         provide some good
>>> >         >>> example. I have several questions for that:
>>> >         >>>
>>> >         >>> * In your example, you have a '-' before the 'CC' option,
>>> >         although this
>>> >         >>> doesn't seem to be allowed. Aren't the real options to be
>>> >         used
>>> >         >>> './configure CC=/usr/bin/clang CXX=/usr/bin/clang++' ?
>>> >         >>>
>>> >         >>> * Are your additional options given to 'make' really
>>> >         useful? Shouldn't
>>> >         >>> simply 'make' or 'jam' be enough?
>>> >         >>>
>>> >         >>> * Finally, I guess a better example would use gcc instead
>>> >         of clang, ie
>>> >         >>> './configure CC=/usr/bin/gcc CXX=/usr/bin/g++'
>>> >         >>>
>>> >         >>>
>>> >         >>>
>>> >         >>> On Fri, 2012-05-18 at 12:27 +0100, Jonathan Dixon wrote:
>>> >         >>> > Hi All,
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > I have managed to resolve this issue and i would
>>> >         recommend an update
>>> >         >>> > to the install guide. First users will need to install
>>> >         clang and clang
>>> >         >>> > ++
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > Then do ./configure -CC=/usr/bin/clang
>>> >         CXX=/usr/bin/clang++
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > Followed by
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > make  -CC=/usr/bin/clang CXX=/usr/bin/clang++
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > Hope that helps someone else
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > Thanks
>>> >         >>> >
>>> >         >>> >
>>> >         >>> > Jonathan
>>> >         >>> >
>>> >         >>> > On 18 May 2012 12:07, Jonathan Dixon
>>> >         <me.jonny27@gmail.com> wrote:
>>> >         >>> >         Wow, well thats very kind of Apple. Have you got
>>> >         any
>>> >         >>> >         recommendations for an alternative. Would it
>>> >         just be worth
>>> >         >>> >         using a linux machine instead of mac as this
>>> >         isnt the first
>>> >         >>> >         issue i have had with development on the mac.
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >         Thanks for the help
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >         On 18 May 2012 12:00, Weltall
>>> >         <weltall2@gmail.com> wrote:
>>> >         >>> >                 The c++ compiler in xcode 4 doesn't
>>> >         support the c++
>>> >         >>> >                 standard. It might sound like a joke but
>>> >         apple shipped
>>> >         >>> >                 an incomplete compiler. The thunk issue
>>> >         is at code
>>> >         >>> >                 generation. So the code is correctly
>>> >         parsed but the
>>> >         >>> >                 backend doesn't know how to create the
>>> >         assembly code
>>> >         >>> >                 for the target. To make it easy you need
>>> >         another
>>> >         >>> >                 compiler
>>> >         >>> >
>>> >         >>> >                 On May 18, 2012 11:45 AM, "Jonathan
>>> >         Dixon"
>>> >         >>> >                 <me.jonny27@gmail.com> wrote:
>>> >         >>> >
>>> >         >>> >                         Hi Everyone,
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >                         I am having a bit of trouble
>>> >         installing
>>> >         >>> >                         crystal space on mac osx lion. I
>>> >         have checked
>>> >         >>> >                         and double checked all the
>>> >         requirements, i
>>> >         >>> >                         have tried using make and jam
>>> >         but cannot get
>>> >         >>> >                         it to install. i have saved a
>>> >         log of
>>> >         >>> >                         my ./configure and make command
>>> >         output.
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >                         Log file :
>>> >         http://pastebin.com/nrRgixYZ
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >                         If anyone can suggest what the
>>> >         problem is i
>>> >         >>> >                         would be most grateful
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >                         Thanks
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >                         Jonathan
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >
>>> >         >>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> >         >>> >                         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
>>> >         >>> >
>>> >         Crystal-develop@lists.sourceforge.net
>>> >         >>> >
>>> >         >>> >
>>> >         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
>>> >         >>> >                 Crystal-develop@lists.sourceforge.net
>>> >         >>> >
>>> >         >>> >
>>> >         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
>>> >         >>> > Crystal-develop@lists.sourceforge.net
>>> >         >>> >
>>> >         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
>>> >         >>> Crystal-develop@lists.sourceforge.net
>>> >         >>>
>>> >         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
>>> >         >> Crystal-develop@lists.sourceforge.net
>>> >         >>
>>> >         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
>>> >         > Crystal-develop@lists.sourceforge.net
>>> >         > 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
>>> >         Crystal-develop@lists.sourceforge.net
>>> >         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 Crystal-develop@lists.sourceforge.net
>>> > 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
>>> Crystal-develop@lists.sourceforge.net
>>> 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
> Crystal-develop@lists.sourceforge.net
> 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
Crystal-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-develop