Crystal Space
Welcome, Guest. Please login or register.
November 24, 2014, 09:31:46 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2046 Topics by 9101 Members
Latest Member: Adamgit
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Tutorial Zero with Xcode 3
« previous next »
Pages: [1] Print
Author Topic: Tutorial Zero with Xcode 3  (Read 1986 times)
Webslinger
Newbie
*
Posts: 2


View Profile Email
« on: October 30, 2008, 12:42:50 pm »

Hello,
first of all, thank you for this great tool you made.

I'm on Macbook pro whith os X 10.5.5 and, with some efforts, i managed to make CS work (building it with jam). Walktest runs (with a little warning from sndsyscoreaudio plugin) . Cool ! 

Next step is to test Tutorial Zero (http://crystalspace3d.org/main/Tutorial_Zero) with Xcode 3 :
  • Create new Empty project
  • Add Cocoa target
  • Add AppKit, Cocoa, Foundation and OpenGL frameworks + CS libraries in CS/lib
  • Add code files like it says in the tutorial

I've attached a screenshot of my project window.

When i build my project i have 342 errors !! I put them all in the attached file "CStest-build.txt" but the first of them is :

/Users/mathieu/Applications/CrystalSpace-1.2.1/include/crystalspace-1.2/csutil/algorithms.h:34: error: expected constructor, destructor, or type conversion before 'void'

I don't understand what could be the problem, a little help would be appreciate.
Thanks in advance.






* xcodeproj.jpg (30.19 KB, 688x452 - viewed 319 times.)
* CStest-build.txt (122.66 KB - downloaded 235 times.)
Logged
Penwriter
Newbie
*
Posts: 9


View Profile Email
« Reply #1 on: October 30, 2008, 08:19:01 pm »

Did you set the header path for CS in the project get info window?
Logged
Webslinger
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: November 02, 2008, 08:14:05 pm »

Hi,
yes i put the correct path to the CS include dir and lib dir also. I use the MacOSX10.4u SDK.

I looked into "csutil/algorithms.h" and i think the problem is that in every method definition, the return type is "CS_FORCEINLINE_TEMPLATEMETHOD" and the compiler does not recognize it.

Has anyone succeed to make CS working with Xcode ?


Logged
Penwriter
Newbie
*
Posts: 9


View Profile Email
« Reply #3 on: November 02, 2008, 08:56:36 pm »

So far, I have been able to compile without errors using Xcode on 10.4 ppc, but have not managed to get the link to work.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.247 seconds with 16 queries.