Re: CS installation on Mac os x

Eric Sunshine <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAPig+cRPwcpNtk-suzhEfCAn75S3_hd2JXOJaNxsu+UPey31ng@mail.gmail.com>
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
<[email protected]> 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 <[email protected]>
> 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
>> <[email protected]> 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 <[email protected]> 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 <[email protected]> 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"
>>> >                 <[email protected]> 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
>>> >                         [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/
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.