Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: is SFML 2.1 not compatible with Xcode 5?  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

YuDoDis

  • Newbie
  • *
  • Posts: 3
    • View Profile
is SFML 2.1 not compatible with Xcode 5?
« on: September 27, 2013, 03:10:28 pm »
I did the mistake of not reading when updating my Xcode 4.6 to Xcode 5.0
Right after I create a new project I get 37 errors. Any help?
« Last Edit: September 27, 2013, 03:13:13 pm by YuDoDis »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #1 on: September 27, 2013, 03:16:11 pm »
This was already fixed a few days ago. Download the new templates from github.
SFML / OS X developer

YuDoDis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #2 on: September 27, 2013, 03:45:04 pm »
This was already fixed a few days ago. Download the new templates from github.
how? Bare with me please, because I am only a student and I am pretty new to sfml.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #3 on: September 27, 2013, 04:01:50 pm »
Either you use the "Download ZIP" function, or -- what I recommend -- you install a Git client and clone the SFML repository.

In case you don't know Git, it is a version control system that allows you to track modifications in the source code. Git provides many extremely useful features, but also takes some time to learn. As a developer, you should definitely use version control.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #4 on: October 01, 2013, 06:10:25 am »
Hey guys, I'm also having this issue.  I replaced TemplateInfo.plist with the update and I'm still getting the exact same 36 errors.  I'm assuming its probably some build setting I've got wrong.  Any suggestions?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #5 on: October 01, 2013, 08:39:47 am »
Updating the templates won't update existing projects. You need to create a new one.
SFML / OS X developer

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #6 on: October 01, 2013, 06:49:36 pm »
So heres whats happening.  I just got a new computer (2013 Macbook air) and want to bring over a project from a xcode 4 project, not that it really matters, because I'm still struggling with getting it to compile the SFML default starter project. 

I'm thinking that it I may not be using the correct version of SFML - on my original project it was the GCC version and thats what I started with on the new machine, didn't work - so I went back re-read the tutorial again for installing, downloaded the 'clang' version, over wrote all Framework library files (replacing GCC with clang), made sure I have the updated template plist, installed Command Line Tools, and started a new SFML App project using C++11 with Clang and libc++.  So (obviously) before I start porting over my code, I try to compile default project and I consistently get linker errors.

So I have then closed Xcode, deleted the project and tried with each C++ Compiler and standard library option, just to see.  Each time it fails, I close Xcode, trash project and try the next.  Still no luck :(

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #7 on: October 01, 2013, 07:51:34 pm »
You tried a lot of things, which is great! Most users only complains.. So thank you for that.  ;)

But since you tried a lot of things, anything could have gone wrong. So, just to be sure you have the clang version installed, uninstall everything related to SFML and install it back. I know, it's frustrating and takes time.

Then install the new templates. Create a new project, if possible with a different name than the previous ones to prevent any caching from Xcode (like the «hjasdfhjklas» random sequence).

If there are still errors, paste them here. Also, give me the Xcode and clang version you're using (for the later, use `clang -v` in a Terminal).

Thanks.
SFML / OS X developer

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #8 on: October 01, 2013, 08:16:47 pm »
Thanks for the help Hiura!

I'm using:
Xcode Version 5.0 (5A1413)

with

SFML-2.1-osx-clang-universal
Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

on osx 10.8.5

Thanks for the advice, I was was wondering if maybe it was a caching issue too.

I will do what you recommend tonight after work and let you know how it goes!

YuDoDis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #9 on: October 02, 2013, 04:00:22 pm »
Solved it, thank you everyone who helped.

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #10 on: October 02, 2013, 07:26:28 pm »
YuDoDis, what did you need to do?

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #11 on: October 02, 2013, 07:35:10 pm »
And just to be clear, its only templates/SFML/SFML Linker.xctemplate/TemplateInfo.plist that needs replacing, correct? Or is it EVERY TemplateInfo.plist in each template?
« Last Edit: October 02, 2013, 08:06:44 pm by pmerc »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #12 on: October 02, 2013, 11:59:45 pm »
It's probably safer to update all templates-related files, not only .plist. Download the archive and install tools/xcode/templates after having removed the previous version from /Library/Developer/Xcode/Templates/.
SFML / OS X developer

pmerc

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #13 on: October 03, 2013, 03:48:17 am »
Thanks Hiura, that did it.  Alls working now.  :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: is SFML 2.1 not compatible with Xcode 5?
« Reply #14 on: October 03, 2013, 09:11:31 am »
Great!
SFML / OS X developer

 

anything