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

Author Topic: Xcode Compile Help (Screenshots) [SOLVED]  (Read 7539 times)

0 Members and 1 Guest are viewing this topic.

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« on: October 29, 2010, 05:49:49 pm »
Hey

I'm trying to compile the basic sfml prgram and it keeps coming up with compile errors. At first it was saying I had all these errors in the code (12 to be precise) and then Priomsrb narrowed it down to I did not locate the headers in the Search path. How do I do this? I keep getting this when I did the search path thing or maybe I'm just doing it wrong:

When i try and fix it:



When I don't:



Many Thanks

Simon

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #1 on: October 29, 2010, 06:07:18 pm »
Have you check your SFML installation? Where are your SFML framework?

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #2 on: October 29, 2010, 06:19:45 pm »
thanks for the reply.

I'm Pretty sure theirs nothing wrong with my installation, although I'm not sure where my framework should be? I did what the tutorial says - it just doesn't mention anything about this.

Simon

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #3 on: October 29, 2010, 06:52:06 pm »
Yes it does.
Quote
Once you've downloaded and installed the files on your hard drive, copy the contents of the SFML-x.y/lib directory (or lib64 if you use the 64 bits version) into the /Library/Frameworks directory


http://www.sfml-dev.org/tutorials/1.6/start-osx.php

In your xcode project, Are the framework red?

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #4 on: October 29, 2010, 09:34:41 pm »
I'm pretty sure I did this step but I'll re check it.




Yes they are red ^^^^

Simon

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #5 on: October 29, 2010, 10:44:37 pm »
That's mean xcode has a link to a framework which doesn't exist.
You have to install your framework in the right directory "/Library/Frameworks"

Or giving your framework to xcode : by removing the old one and drag and drop the new one in the framework folder on your xcode project.

If you choose the second solution you will have to do for eacg new project.

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #6 on: October 30, 2010, 12:20:57 pm »
Sorry but iI'm really struggling on this. When ever I try dragging it onto the project red writing it just ass it to the text and does not allow me to add it to the red headers. I then tried right clicking on them and adding the existing files to them. That just added it to the project but not physically to the red file. I have also now installed it in the write place and renamed the file "SFML" (included in the "Include" folder) "sfml.framework" and now the only file that recognises it is, well see for yourself:

These are a few pics to explain:











Sorry this message was so lengthy but this problem is really draining my energy and programming time + the fact I can't compile yet is annoying.

Yours Sincerely

Simon

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #7 on: October 30, 2010, 12:46:27 pm »
Okay for this one. For the other look at my sfml's installation.



Could you show me the same ?

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #8 on: October 30, 2010, 02:14:21 pm »
Thank you so much. Do I just put the correct files in each then hey presto!

Thanks for the tolerance and patience guys!

Simon

Also one final question: What did you place in the final SFML.framework

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #9 on: October 30, 2010, 02:33:25 pm »
I place nothing that is just the framework i found on the zip.

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #10 on: October 30, 2010, 03:09:26 pm »
Ok thanks a lot mate.

also I've got one last file that I don't know what to do with?

Config.hpp

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #11 on: October 30, 2010, 03:25:59 pm »
Get the SFML.framework on the website and put it with the other framework and don't modify it unless you exactly what you do.

FYI the file is needed by SFML inside

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #12 on: October 30, 2010, 03:32:07 pm »
sorry I don't understand - could you do some quick screen shots running me through it? It's really hard to visualise as I'm pretty crap at mac os x

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #13 on: October 30, 2010, 06:06:39 pm »
Download this file. And copy the content of the folder lib in /Library/Frameworks . You don't have to go inside the framework, and to know how file are stored.

Here is the content of my SMFL.framework

Father_Sloth

  • Newbie
  • *
  • Posts: 48
    • View Profile
Xcode Compile Help (Screenshots) [SOLVED]
« Reply #14 on: October 30, 2010, 08:02:34 pm »
Thanks a tonne Mate. You really have helped - Finally this thing compiles.

Moral of the story. Find a helpful forum and anything can be achieved.

Simon

 

anything