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

Author Topic: xcode 6 and sfml --clang errors  (Read 8820 times)

0 Members and 1 Guest are viewing this topic.

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
xcode 6 and sfml --clang errors
« on: September 24, 2014, 07:01:59 pm »
Hello Guys :)

I am new on the Forum, so far only messing around with c++

I now want to start the next Project using sfml. Unfortunatly when following the tutorial
on the Webside, I get :

Apple Match-O-Link Errors

clang: error: unknown argument: '-frameworksfml-system'
clang: error: unknown argument: '-frameworksfml-window'
clang: error: unknown argument: '-frameworksfml-graphics'
clang: error: unknown argument: '-frameworksfml-audio'
clang: error: unknown argument: '-frameworksfml-network'


I have OS X 10.9.5 running, Xcode for c++ working (default)

now i downloaded the sfml package and did as stated in the tutorial:
-copied frameworks to HD/library/frameworks
-copied Templates into /developer/xcode/templates (i had to make Xcode folder and templates. there was none)

typed in terminal:
cd
and drag and dropped install.sh
-it installed
-after installation it prompted me to run doctor
-i did-it said my system is ready



then i created a sfml app project and tried to run it (as told in the tutorial)
then it says Build failed and i get the error messages


clang: error: unknown argument: '-frameworksfml-system'
clang: error: unknown argument: '-frameworksfml-window'
clang: error: unknown argument: '-frameworksfml-graphics'
clang: error: unknown argument: '-frameworksfml-audio'
clang: error: unknown argument: '-frameworksfml-network'

any hints what i am missing?

Thank you in advance

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #1 on: September 24, 2014, 07:43:03 pm »
Quote from: tutorial
If you have Xcode 5, you must use the new version of the templates.
;)
SFML / OS X developer

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #2 on: September 24, 2014, 07:47:48 pm »
Also for xcode 6? :) thanks already ;)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #3 on: September 24, 2014, 07:50:13 pm »
Yes, the tutorial sentence was not updated but it should work for v6 too.
SFML / OS X developer

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #4 on: September 24, 2014, 08:15:41 pm »
Okay finally :D
Thank you very much!

-for all who have the same problem:
   download the Xcode templates (separately to the sfml folder)
   copy the sfml folder to /library /developer /Xcode / templates
   don´t be surprised if this folder doesn't exist and create it ;)


Okay my next question is:
-once i finished a small program using c++ and eventually sfml,
  can i output this as an exe too? (export) ? or is Xcode mac software creation only?


-what do i need to take care of regarding publishing later:
   possible to publish in .exe   .apk   .app     too?


I plan learning sfml in a project and want to know what on which devices I can use this later :)
or if it is possible to arrange it to work for other devices too after being finished



Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #5 on: September 24, 2014, 09:11:01 pm »
An Xcode project can produce only Mac application. Forget about cross compiling for another OS, it's a mess.

The procedure to publish your app is standard, refer to Apple's doc corresponding to your IDE version.
SFML / OS X developer

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #6 on: September 25, 2014, 12:07:47 am »
okay :S so what would be a good program to make windows / android exports on mac...
 
maybe code blocks? - i didn t got to understand how to set this one up with sfml on mac either though :(

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #7 on: September 25, 2014, 02:12:37 am »
okay :S so what would be a good program to make windows / android exports on mac...

A cross compiler, but as Hiura already said....

Forget about cross compiling for another OS, it's a mess.

If you want a windows executable install windows (run in a VM or directly on some hardware) and compile there.
« Last Edit: September 25, 2014, 02:15:03 am by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #8 on: September 25, 2014, 03:08:09 am »
jeah tarts actually what i tried last 5 hrs BUT

my cd drive doesn't work anymore, so i can´t use bootcamp.
so I tried using vmware fusion to set up my new created partition to install my windows iso to the new partition

windows works in a newly created virtual machine, but i want it on my hard drive:



but somehow commands like /Applications/VMware Fusion.app

give back (when typed into Terminal):
no such file or dictionary

so fustrating i only want to stars some c++ coding and finally begin with fsml

20hr+ already without coming to the solution on a simple IDE set up to start the actual work :(

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #9 on: September 25, 2014, 03:23:40 am »
ok next try :D Why not using xcode since it is set up already:





BUT....

...there is no preusbbootsupported to change or add mine too :S

Any idea?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #10 on: September 25, 2014, 03:43:43 am »
Look dude, don't try to cross compile, forget you even heard about it. And after you do that maybe you should actually have a code base before trying to target different platforms (hint: write something before worrying about different platforms).

And no, we aren't going to help you install windows or fix your CD/DVD drive here.
« Last Edit: September 25, 2014, 03:45:22 am by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #11 on: September 25, 2014, 11:04:33 am »
ok i forget about it

i just want to know where to start to eventually end up where i plan to go:

my final AIM:
a simple top down 2d rig for android

now i don´t know if its good to start with c++ and sfml first to get the basic ideas

or start with android right away...

as far as i know i can use c++ on android later. pls correct me if i am wrong

and i can do this in xcode? -NO since its only ipohe imac stuff...

so i need windows right?

Affekidz

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: xcode 6 and sfml --clang errors
« Reply #12 on: September 27, 2014, 01:10:39 am »
ok i know you are annoyed by not sgml regarded questions

so an update on what I have been doing:
-wasting a whole week to figure out that a windows partition on my mac with a broken cd drive is impossible -.-

NOW the question regarding my aim in learning sfml :
since i am totally annoyed by this macbook and apple itself, i plan for the sfml I learn to give me windows applications. BUT since i don´t have windows running ( only mac os x 10.9.5) is it possible to code this program here, and if so, with the help of which IDE?

i don´t want to develop for this os x or any other macbook iphone what so ever, i just aim at
windows and android support, but need to do the coding and testing on mac.

please give me an answer on this and a small hint on how to get things set up so i can finally start to code :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: xcode 6 and sfml --clang errors
« Reply #13 on: September 27, 2014, 09:36:24 am »
Quote
i don´t want to develop for this os x or any other macbook iphone what so ever, i just aim at
windows and android support, but need to do the coding and testing on mac.

There's a lot of confusion here.

To create a Windows executable you need a compiler generating Windows binaries. That is, either attempt cross compiling (but from what I've read it's a no-go) or install Windows with one of the major compiler for that platform (e.g. mingw, visual). If you don't have a working CD drive, ask a friend to create an USB version of your DVD if you're legally not able to download the iso.

Android is another story. You should be able to do it on Mac (but I never tried). Have you already developed for Android? If no, start by reading the official tutorial to get to know the grounds before starting using SFML. Then, be aware that SFML 2.1 and below don't support Android. You can find a beta implementation on SFML's git repository and more information on this forum and probably the wiki too.
SFML / OS X developer

 

anything