SFML community forums

Help => General => Topic started by: jld89 on May 29, 2014, 03:13:24 pm

Title: Installing SFML 2.1 with Xcode 5.1
Post by: jld89 on May 29, 2014, 03:13:24 pm
So I am aware there are like a thousand posts concerning this so forgive me in advance.

I've been trying to find a solution to the following:

unknown argument: '-frameworksfml-system' [-Wunused-command-line-argument-hard-error-in-future]

So I tried reinstalling the library following the instructions. I had to use sudo for the install.sh as I didn't have permission. It still didn't budge, I am using the SFML app template and not the command line. Just wanting to run it for the first time and see what happens but I get the unknown arguments.

I tried copying the frameworks to /MYUSERNAME/Library/Frameworks/ but that didn't work either. I had copied the frameworks to /HDD/Library/Frameworks and also copied the relevant dylib, extlib and copied the templates to MYUSERNAME/Developer/Xcode.

I found a solution while browsing that involved using

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future something something

But I doubt that's what I should do.

What am I doing wrong?  Thanks a lot.
Title: Re: Installing SFML 2.1 with Xcode 5.1
Post by: Hiura on May 29, 2014, 03:30:43 pm
So I am aware there are like a thousand posts concerning this so forgive me in advance.

Yes, indeed. At least these two contain the solution:

http://en.sfml-dev.org/forums/index.php?topic=14673.0
http://en.sfml-dev.org/forums/index.php?topic=14849.0

It's also in red at the beginning of the tutorial here http://www.sfml-dev.org/tutorials/2.1/start-osx.php

Quote
If you have Xcode 5, you must use the new version of the templates (http://www.sfml-dev.org/download.php).
Title: Re: Installing SFML 2.1 with Xcode 5.1
Post by: jld89 on May 30, 2014, 10:39:21 am
Hi Hiura

Thanks a lot that was the issue. I hadn't seen those solutions while browsing. I should have read more closely the instructions about the templates.

It works now. Thanks a lot!