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.


Topics - Mr.Zeus

Pages: [1]
1
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".

2
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]