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 - Mr.Zeus

Pages: [1]
1
Window / Re: When was the requestFocus() method added?
« on: January 23, 2019, 02:29:36 am »
Ya, I figured it out, just before I checked the forum. DUH!  :P Thanks!

2
Window / [SOLVED: 2.2]When was the requestFocus() method added?
« on: January 23, 2019, 01:58:26 am »
The title is the question. I want be able install SFML via "apt-get", and the version that is installed on Raspbian Jessie does not install a version of SFML that supports requestFocus(). Also, what would the best way to implement this anyway? I was thinking by checking the Major, Minor, and Patch of SFML's version with an "#if".

3
The preprocessor passed "Config.hpp" file:

(click to show/hide)

Hope it helps!

4
Here is my TargetConditionals.h file in full:

(click to show/hide)

Now I don't quite know what you mean by "preprocessed version of Config.hpp." but I assume you mean a list of the values of the defines. How might I get that? (Again, new to C++, sorry.) Just point me in the right direction and will get them to you ASAP.

Oh, also, I am not using XCode or have installed its Developer Tools(I am using VS Code: https://code.visualstudio.com/). I moved the SFML include(named "SFML", of course) directory right into my "/usr/local/include" directory. Should I have done that? :-\

5
Thanks; That worked. I a new to C++ and the whole preprocessor thing, sorry if it was obvious. I have worked with Python before and might check out the SFML bindings for it.  ;) Have a nice day/night/evening/morning/afternoon! :P

EDIT: Was this the right category to post this question in? If not, whoops!

6
May I first thank each and every member of the SFML Team and anyone who has contributed to the SFML project for you work. I LOVE SFML so much! :D It gives what may I call "simplistic control," the best kind.  ;)

Now for some context:
I am working on a Pong extension named Pong++. I have set up a game engine/game state manager, and have coded a splash screen. But, when I build I am greeted by this error complaining about the
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
line of "Config.hpp" file(line 54 to be exact). Here is the full error:

/usr/local/include/SFML/Config.hpp:54:9: error: invalid token at start of a preprocessor expression
    #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
        ^
 

I am on MacOS(OS X as it was called at the time of release)version 1.9 (Mavericks), and have SFML 2.5.1 installed. I have not tried reinstalling SFML, but it seems to be an issue with my version of SFML, so if I do I will install the latest commit.

(I did try this in a file just importing the "Config.h" file by itself in a single file and still got an error.)

Pages: [1]