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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rimher

Pages: [1]
1
General / Re: Resources [XCode 4.5]
« on: September 26, 2012, 07:37:12 pm »
I just tried it out and it seems Xcode "compile" .fs files (however, I've no clue what it does with it).

What you need do is :

- go to your project preference
- in the build phases tab
- remove any .fs files from the 'compile source' phase
- add those same files to 'copy bundle resources' phase

Let me know if it does work.
Works perfectly now! Thanks a lot  ;)

2
General / Resources [XCode 4.5]
« on: September 26, 2012, 05:16:36 pm »
Hello there! I've been trying to compile a couple of shaders in my project, but I had the hardest time.
I had put the two files "vertexShader.vs" and "fragmentShader.fs" in the Resources folder, that's already built in the project.
I was trying to access those files calling
Quote
resourcePath()+"fragmentShader.fs"

But it was failing to open both files. When I use the absolute path to the file, it is indeed found. Since this is not the most elegant solution and in the tutorial I read that every file that I dragged&dropped into the folder would be copied there, how's it possible that those files are not found??


3
General / Re: SFML Linker Errors on XCode
« on: September 23, 2012, 07:59:30 pm »
Quote
I need to add manually the Framework search path, otherwise graphics.hpp is not found
This is probably because you didn't update the template.

Anyway, thanks for your report. It seems I'll have to look into it more deeply.
Maybe I'm missing what you mean here, but I had indeed checked the option to build the templates too, when building with CMake.

4
General / Re: SFML Linker Errors on XCode
« on: September 23, 2012, 05:20:12 pm »
You mean that this part of the tutorial didn't help ?

No, the tutorial worked fine, since I managed to create the makefile and proceed to 'make all'. But then, when I created the project and went to build in XCode the template again, I get the same errors:
1) I need to add manually the Framework search path, otherwise graphics.hpp is not found
2) After the headers are found, the build process fails with the errors that I mentioned in the first post

5
General / Re: SFML Linker Errors on XCode
« on: September 23, 2012, 04:20:21 pm »
I haven't had the time to test Xcode 4.5 yet but I guess (*) you have to :

- either rebuild SFML with C++11 support (see OS X tutorial)
- or configure your project to not use C++11

(*) Apple might have changed the default settings
I've tried rebuilding everything from source according to the tutorial, but I'm getting the exact same error.
Configuring the project not to use C++11 has worked though. Thanks a lot =)

6
General / SFML Linker Errors on XCode
« on: September 22, 2012, 07:20:11 pm »
Hello there! I've been using SFML in the last couple of weeks, and I had no problems up until today.

I'm trying to learn OpenGL, so I started a project from scratch with the SFML2.0 template, I add the libraries to the search path, but then I get a bunch of linker erros:

Quote
Undefined symbols for architecture x86_64:
  "sf::RenderWindow::RenderWindow(sf::VideoMode, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, sf::ContextSettings const&)", referenced from:
      _main in main.o
  "sf::Font::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::Music::openFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
  "sf::String::String(char const*, std::__1::locale const&)", referenced from:
      _main in main.o
  "sf::Texture::loadFromFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, sf::Rect<int> const&)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64

I've been looking around for the past hour, without being able to do anything.
This is on XCode 4.5, OSX 10.8.2.

Any help is REALLY appreciated, thanks in advance!

Pages: [1]
anything