Git Product home page Git Product logo

csfml's Introduction

SFML logo

SFML — Simple and Fast Multimedia Library

SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python.

State of Development

Development is focused on the next major version in the master branch. No more features are planned for the 2.x release series.

  • The master branch contains work in progress for the next major version SFML 3. As such it's considered unstable, but any testing and feedback is highly appreciated.
  • The 2.6.1 tag is the latest official SFML release and will be the last minor release in the 2.x series.

CMake Template

The easiest way to get started with SFML is our CMake-based project template. This template will automatically download and build SFML alongside your own application. Read the README for full instructions on how to use it.

Download

  • You can get the latest official release on SFML's website.
  • You can also get the source code of the current development version from the Git repository.
  • Alternatively, you can get the latest snapshot / artifact builds from the artifacts storage.

Install

Follow the instructions of the tutorials, there is one for each platform/compiler that SFML supports.

Learn

There are several places to learn SFML:

Community

Here are some useful community links:

Contribute

SFML is an open-source project, and it needs your help to go on growing and improving. If you want to get involved and suggest some additional features, file a bug report or submit a patch, please have a look at the contribution guidelines.

Authors

License

The SFML libraries and source code are distributed under the zlib/libpng license. See license.md. External libraries used by SFML are distributed under their own licenses.

In short, SFML is free for any use (commercial or personal, proprietary or open-source). You can use SFML in your project without any restriction. You can even omit to mention that you use SFML -- although it would be appreciated.

External libraries used by SFML

csfml's People

Contributors

asumface avatar bqleine avatar christhrasher avatar crumblingstatue avatar dabbertorres avatar davipb avatar demoxinmc avatar djmaster avatar dogunbound avatar enokviking avatar expl0it3r avatar frex avatar gyscos avatar jairard avatar jcowgill avatar kimci86 avatar laiheau avatar laurentgomila avatar lmbarros avatar luhrel avatar mantognini avatar marioalexsan avatar mgrojo avatar oprypin avatar spacechase0 avatar texus avatar tintou avatar vonagam avatar wesofx avatar zsbzsb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csfml's Issues

Floating point exception (AV) when using a shader (x64)

It might not necessarily a bug in CSFML, but when using a shader in combination with any shape, I get a floating point exception (access violation) on my Win64 system. The same code works fine on when compiled for 32-bit.

Note: I'm not using the original CSFML binding but my PasSfml binding for Pascal, but since the very same code used to work with version 2.2 and there haven't been many changes on the CSFML interface I doubt that it's the different binding.

In my test code the error is exposed when calling sfRenderTexture_drawSprite. If the shader is not specified in the render state it works (not giving the wanted results though).

Since SFML is a spare time project of mine, I don't have much time to invest in this issue, but if someone experiences the same problem (or can tell that it does work), it could already be of help.

sfGlslBVec* types contain `bool` fields, which is not a valid C primitive

Example:

typedef struct
{
    bool x;
    bool y;
    bool z;
    bool w;
} sfGlslBvec4;

Glsl.h fails to compile with a C compiler due to this.

C does have stdbool.h, which defines a bool type, but AFAIK, this is not guaranteed to be the same bool type that C++ has. I am unsure what to do here. Is it required that the CSFML structs have the same size and layout as their C++ counterparts?

cc @dabbertorres (#102)

csfml-1.5 binaries for 64bit linux are linked against sfml-1.4-1084

$ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ldd libcsfml-graphics.so.1.5
linux-vdso.so.1 => (0x00007fffe8335000)
libsfml-graphics.so.1.4-1084 => not found
libsfml-window.so.1.4-1084 => not found
libsfml-system.so.1.4-1084 => not found
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6 (0x00007f745df66000)
libm.so.6 => /lib64/libm.so.6 (0x00007f745dce4000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f745dace000)
libc.so.6 => /lib64/libc.so.6 (0x00007f745d74d000)
/lib64/ld-linux-x86-64.so.2 (0x00000037f6200000)

Both the sdk and dev 64bit GNU/Linux 1.5 packages are affected.

CSFML sfShader_createFromFile

While playing with the Shader.cpp example I've discovered a missing feature within the CSFML binding.

I'm talking about the sfShader_createFromFile function. The creation of a shader passing "vert", "geom" and "frag" files is not implemented. Therefore it is not possible to convert Geometry shader example from Shader.cpp to native C code using CSFML as binding, furthermore it's not possible to create a Shader passing a "geom" shader.

I could modify sfShader_createFromFile function by adding the missing "geom" parameter, but this certanly would break backward compatibility.

Please let me know what you think about this issue.

Add FindSFML.cmake comment to readme.txt

I took me forever to find a solution to CSFML not being able to find SFML the solution was to copy FindSFML.cmake to my /usr/share/cmake2.8/Modules directory on linux.

Could you make that more clear in CSFML's readme for others.

Implementation will leak exceptions across C API boundaries, have no way of indicating failure to callers.

Some examples of problems here:

  • All the creation factories 'return new Foo;' In the case of memory failure, this doesn't generate nullptr, it throws std::bad_alloc.
  • Any function that internally uses STL functions could be throwing (internal bad_alloc's, or other STL-thrown exceptions). Here it is both a problem that the function is throwing across a C-boundary, and that even if you surround with a try/catch, you have no way of signalling any failure to a caller.

For example, sfHttpRequest_setUri. This internally is using the std::string::operator= to copy the character array in SFML. Here, you can get a bad_alloc, or a length_error (http://en.cppreference.com/w/cpp/string/basic_string/operator%3D). If you correctly catch the exception before leaking it to your caller, you have no way of indicating any failure with the signature:

void sfHttpRequest_setUri(sfHttpRequest* httpRequest, const char* uri);

This is where C and C++ API's need to be slightly different. You can't just pass the 'this' pointer as the first parameter to every function, because your primary error propagating mechanism (exceptions) does not exist.

Sound.h typo

\brief Tell whether or not a soud is in loop mode

soud -> sound

size_t not declared in several headers

size_t is not anymore a built-in type and must be added with #include <stddef.h> otherwise we get the following error with gcc 4.5 :

CSFML/include/SFML/Window/VideoMode.h:63: error: ‘size_t’ was not declared in this scope

CSFML not updated for sf::Time update

After adding sf::Time CSFML does not compile.

Scanning dependencies of target csfml-system
[ 2%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Clock.cpp.o
/Users/henrikno/Software/CSFML/src/SFML/System/Clock.cpp: In function ‘sfUint32 sfClock_GetTime(const sfClock_)’:
/Users/henrikno/Software/CSFML/src/SFML/System/Clock.cpp:59: error: cannot convert ‘sf::Time’ to ‘sfUint32’ in return
/Users/henrikno/Software/CSFML/src/SFML/System/Clock.cpp: In function ‘void sfClock_Reset(sfClock_)’:
/Users/henrikno/Software/CSFML/src/SFML/System/Clock.cpp:66: error: ‘class sf::Clock’ has no member named ‘Reset’
make[2]: *** [src/SFML/System/CMakeFiles/csfml-system.dir/Clock.cpp.o] Error 1
make[1]: *** [src/SFML/System/CMakeFiles/csfml-system.dir/all] Error 2
make: *** [all] Error 2

CSFML fails to build

[ 54%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp: In function ‘sfVector2f sfRenderTexture_mapPixelToCoords(const sfRenderTexture*, sfVector2i, const sfView*)’:
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp:151:41: error: ‘const class sf::RenderTexture’ has no member named ‘mapPixelToCoords’
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp:153:41: error: ‘const class sf::RenderTexture’ has no member named ‘mapPixelToCoords’
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp: In function ‘sfVector2i sfRenderTexture_mapCoordsToPixel(const sfRenderTexture*, sfVector2f, const sfView*)’:
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp:170:41: error: ‘const class sf::RenderTexture’ has no member named ‘mapCoordsToPixel’
/home/fowl/projects/CSFML/src/SFML/Graphics/RenderTexture.cpp:172:41: error: ‘const class sf::RenderTexture’ has no member named ‘mapCoordsToPixel’
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error 2
make: *** [all] Error 2

Tested against SFML from HEAD

Text doesn't work on Mac

When running below code on Mac OS 10.9.5 with SFML and CSFML from homebrew, I see the sprite but I don't see the text.

#include <SFML/Graphics.h>
#include "stdlib.h"
#include "stdio.h"

int main()
{
    sfVideoMode vm = {800, 600, 32};
    sfRenderWindow *window = sfRenderWindow_create(vm, "SFML window", sfDefaultStyle, NULL);
    sfTexture *texture = sfTexture_createFromFile("test.png", NULL);
    sfSprite *sprite = sfSprite_create();
    sfSprite_setTexture(sprite, texture, sfTrue);
    sfFont *font = sfFont_createFromFile("arial.ttf");
    if (font == NULL) {
        printf("No Font found\n");
        exit(EXIT_FAILURE);
    }
    sfText *text = sfText_create();
    if (text == NULL) {
        printf("Can't create text\n");
        exit(EXIT_FAILURE);
    }
    sfText_setString(text, "Hello World");
    sfText_setColor(text, sfYellow);
    sfVector2f pos = {100,100};
    sfText_setPosition(text, pos);
    sfText_setCharacterSize(text, 50);

    while (sfRenderWindow_isOpen(window))
    {
        sfEvent ev;
        while (sfRenderWindow_pollEvent(window, &ev))
        {
            if (ev.type == sfEvtClosed)
                sfRenderWindow_close(window);
        }
        sfRenderWindow_clear(window, sfBlack);
        sfRenderWindow_drawSprite(window, sprite, NULL);
        sfRenderWindow_drawText(window, text, NULL);
        sfRenderWindow_display(window);
    }
    return EXIT_SUCCESS;
}

add include(CMakeParseArguments) to cmake/Macros.cmake

CMake Error at cmake/Macros.cmake:9 (cmake_parse_arguments):
Unknown CMake command "cmake_parse_arguments".
Call Stack (most recent call first):
src/SFML/System/CMakeLists.txt:28 (csfml_add_library)

add the following line to the top of Macros.cmake:
include(CMakeParseArguments)

Done.

Add a way to capture error messages.

For languages with error handling facilities, it would be useful to be able to capture messages output to sf::err() from CSFML. I suggest an API like:

sfErrorCapture* sfErrorCapture_start();
const char* sfErrorCapture_get(const sfErrorCapture* capture);
void sfErrorCapture_end(sfErrorCapture* capture);

I tried to implement this myself using std::ostringstream, but it seems like something is going odd in linking and each CSFML module has its own copy of the sf::err function, so placing these functions in the system module means that errors from other modules are not redirected.

Cmake et CSFML

Bonjour,

A la compilation de CSFML avec le makefile généré avec cmake, le compilo nous dit que memcpy n'est pas un membre de std, ce qui est effectivement le cas. memcpy est présent dans string.h selon le man. Après inclusion de string, et la suppression de std:: la compilation marche nickel.

Je ne corrige pas moi même car vous connaissez certainement mieux que moi l'endroit le plus propice pour faire cette inclusion :)

Cordialement,
Baptiste.

Build issue with CSFML on Mac OS X Mavericks (10.9)

Hi there,

I've looked through old issues and the forums and haven't found anyone with this particular issue.

I've built SFML-2.0 statically, and am attempting to build CSFML with the following settings:

screenshot 2013-11-07 18 07 46
screenshot 2013-11-07 18 07 51

And I'm getting the following (really long) output:

[jared@Adam-Smith CSFML-2.0-Static (master)]$ make
[  2%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Clock.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Mutex.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Sleep.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Thread.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Time.cpp.o
Linking CXX shared library ../../../lib/libcsfml-system.dylib
[ 11%] Built target csfml-system
[ 13%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Context.cpp.o
[ 15%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Joystick.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Keyboard.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Mouse.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/VideoMode.cpp.o
[ 25%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Window.cpp.o
Linking CXX shared library ../../../lib/libcsfml-window.dylib
Undefined symbols for architecture x86_64:
  "_CFArrayCreate", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFArrayGetCount", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CFArrayGetValueAtIndex", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CFDataGetBytePtr", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFDictionaryCreateMutable", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFDictionarySetValue", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFGetTypeID", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberCreate", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberGetTypeID", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberGetValue", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFRelease", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::close() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      ...
  "_CFRetain", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadButton(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFRunLoopGetCurrent", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFRunLoopRunInMode", referenced from:
      sf::priv::HIDJoystickManager::getJoystickCount() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::update() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFSetGetCount", referenced from:
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::initializeKeyboard() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::initializeMouse() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFSetGetValues", referenced from:
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::initializeKeyboard() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::initializeMouse() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFStringCompare", referenced from:
      sf::priv::modeBitsPerPixel(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayCopyAllDisplayModes", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayCopyDisplayMode", referenced from:
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeCopyPixelEncoding", referenced from:
      sf::priv::modeBitsPerPixel(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeGetHeight", referenced from:
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeGetWidth", referenced from:
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeRelease", referenced from:
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayMoveCursorToPoint", referenced from:
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_CGDisplayPixelsHigh", referenced from:
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      -[SFWindowController screenHeight] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGDisplayPixelsWide", referenced from:
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
  "_CGEventCreateMouseEvent", referenced from:
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_CGEventPost", referenced from:
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_CGLEnable", referenced from:
      -[SFWindowController applyContext:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGLSetParameter", referenced from:
      -[SFWindowController applyContext:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGMainDisplayID", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGWindowLevelForKey", referenced from:
      -[SFWindowController initWithMode:andStyle:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_GetCurrentProcess", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_IOHIDDeviceCopyMatchingElements", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDDeviceGetProperty", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDDeviceGetValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetDevice", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetPhysicalMax", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetPhysicalMin", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetType", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetUsage", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      (anonymous namespace)::JoystickButtonSortPredicate(__IOHIDElement*, __IOHIDElement*) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadButton(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetUsagePage", referenced from:
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDManagerClose", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerCopyDevices", referenced from:
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::copyJoysticks() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerCreate", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerOpen", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerRegisterDeviceMatchingCallback", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerRegisterDeviceRemovalCallback", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerScheduleWithRunLoop", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerSetDeviceMatching", referenced from:
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDManagerSetDeviceMatchingMultiple", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerUnscheduleFromRunLoop", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDValueGetIntegerValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDValueGetScaledValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_LMGetKbdType", referenced from:
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_NSApp", referenced from:
      -[SFOpenGLView initModifiersState] in libsfml-window-s.a(SFOpenGLView.mm.o)
      +[SFApplication processEvent] in libsfml-window-s.a(SFApplication.m.o)
  "_NSCalibratedRGBColorSpace", referenced from:
      -[SFWindowController setIconTo:by:with:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_NSDefaultRunLoopMode", referenced from:
      +[SFApplication processEvent] in libsfml-window-s.a(SFApplication.m.o)
  "_NSEqualSizes", referenced from:
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSPointInRect", referenced from:
      -[SFOpenGLView isMouseInside] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSViewFrameDidChangeNotification", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSZeroSize", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSApplication", referenced from:
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSArray", referenced from:
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
      objc-class-ref in libsfml-window-s.a(AutoreleasePoolWrapper.mm.o)
  "_OBJC_CLASS_$_NSBitmapImageRep", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSCursor", referenced from:
      objc-class-ref in libsfml-window-s.a(SFViewController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSDate", referenced from:
      objc-class-ref in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSEvent", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSImage", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSMenu", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSNotificationCenter", referenced from:
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSObject", referenced from:
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSOpenGLContext", referenced from:
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSOpenGLPixelFormat", referenced from:
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSOpenGLView", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSResponder", referenced from:
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libsfml-window-s.a(cpp_objc_conversion.mm.o)
  "_OBJC_CLASS_$_NSThread", referenced from:
      objc-class-ref in libsfml-window-s.a(SFViewController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSView", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_OBJC_CLASS_$_NSWindow", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
      _OBJC_CLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_OBJC_METACLASS_$_NSObject", referenced from:
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      _OBJC_METACLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_OBJC_METACLASS_$_NSOpenGLView", referenced from:
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_METACLASS_$_NSResponder", referenced from:
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_METACLASS_$_NSWindow", referenced from:
      _OBJC_METACLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_SetFrontProcess", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_TISCopyCurrentKeyboardLayoutInputSource", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_TISGetInputSourceProperty", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_TransformProcessType", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_UCKeyTranslate", referenced from:
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "___CFConstantStringClassReference", referenced from:
      CFString in libsfml-window-s.a(SFOpenGLView.mm.o)
      CFString in libsfml-window-s.a(SFOpenGLView.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      CFString in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      ...
  "__objc_empty_cache", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      ...
  "__objc_empty_vtable", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      ...
  "_glEnable", referenced from:
      sf::priv::GlContext::globalInit() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::initialize() in libsfml-window-s.a(GlContext.cpp.o)
      (anonymous namespace)::getInternalContext() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, sf::priv::WindowImpl const*, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, unsigned int, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
  "_glGetString", referenced from:
      sf::priv::GlContext::globalInit() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::initialize() in libsfml-window-s.a(GlContext.cpp.o)
      (anonymous namespace)::getInternalContext() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, sf::priv::WindowImpl const*, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, unsigned int, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
  "_kCFAllocatorDefault", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_kCFTypeDictionaryKeyCallBacks", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_kCFTypeDictionaryValueCallBacks", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_kTISPropertyUnicodeKeyLayoutData", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_objc_enumerationMutation", referenced from:
      sf::priv::getSFOpenGLViewFromSFMLWindow(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_objc_msgSend", referenced from:
      sf::priv::getSFOpenGLViewFromSFMLWindow(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::getMousePosition() in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::getMousePosition(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&, sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView frameDidChange:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      ...
  "_objc_msgSendSuper2", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView dealloc] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFViewController initWithView:] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFViewController dealloc] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFWindowController initWithWindow:] in libsfml-window-s.a(SFWindowController.mm.o)
      -[SFWindowController initWithMode:andStyle:] in libsfml-window-s.a(SFWindowController.mm.o)
      -[SFWindowController dealloc] in libsfml-window-s.a(SFWindowController.mm.o)
      ...
  "_objc_msgSend_fixup", referenced from:
      l_objc_msgSend_fixup_class in libsfml-window-s.a(InputImpl.mm.o)
      l_objc_msgSend_fixup_isKindOfClass_ in libsfml-window-s.a(InputImpl.mm.o)
      l_objc_msgSend_fixup_length in libsfml-window-s.a(SFOpenGLView.mm.o)
      l_objc_msgSend_fixup_class in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_isKindOfClass_ in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_alloc in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_release in libsfml-window-s.a(WindowImplCocoa.mm.o)
      ...
  "_objc_msgSend_stret", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView frameDidChange:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView isMouseInside] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFViewController initWithView:] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFViewController size] in libsfml-window-s.a(SFViewController.mm.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcsfml-window.2.0.dylib] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/csfml-window.dir/all] Error 2
make: *** [all] Error 2

Relase csfml 2.2 (or 2.1.1) ?

Hi, csfml 2.1 is incompatible with sfml 2.2 due to changes in blending mode stuff. This commit in masetr fixes the problem: d6849a3

I'm trying to update sfml 2.1 -> sfml 2.2 so it can build on yosemite with homebrew:

Homebrew/legacy-homebrew#35279

However I'm having trouble with the csfml 2.1 <-> sfml 2.2 incompatibility.

I think it would be nice to have compatibility between latest stable csfml and sfml releases. So I suggest making a stable release of csfml(if this is possible)

missing argument in example

In index.htm:

/* Load a sprite to display */
texture = sfTexture_createFromFile("cute_image.jpg");

needs to be:

 texture = sfTexture_createFromFile("cute_image.jpg", NULL);

Inconsistent param positions?

CSFML_GRAPHICS_API void sfMouse_setPositionRenderWindow(sfVector2i position, const sfRenderWindow* relativeTo);

Seems like the window should come first; at least that's how all other functions are specified.

Any suggestions on setting up a Windows compile

The suggestions on the home page notwithstanding, I had a bit of trouble getting beyond the request for the SFML cmake file. Yes, the FindSFML.cmake is in the Modules directory, but it has to be renamed to SFMLconfig.cmake. Furthermore, the cmake file would only be accepted when I cut and pasted the set commands from CMakeLists.txt in the SFML root directory for the version numbers. Now, it finds SFML, but it cannot find the dependencies, which are located in the System32 directory.

So, at this point, I thought it would be good to ask for some help. Do I copy the dlls out of the System32 directory? If so, where? Why aren't they found automatically as they are when using CodeBlocks? Should I load SDKs for all of the dependencies? Has anyone else built this project on a Windows box?

Text.h docs typo

sfText_getString

/// \return String aN a locale-dependant ANSI string
/// \return String aS a locale-dependant ANSI string

Also:

Get the text of a text
Get the string of a text

Error building csfml with msvc 2010

HI I just build and install a git-ed version of sfml with msvc2010 and it was a success. Now, when trying to build csfml, too from github, I got this error

CMake Error at X:/usr/cmake/Modules/FindSFML.cmake:358 (message):
Could NOT find SFML (missing: SFML_SYSTEM_LIBRARY SFML_WINDOW_LIBRARY
SFML_NETWORK_LIBRARY SFML_GRAPHICS_LIBRARY SFML_AUDIO_LIBRARY)
Call Stack (most recent call first):
src/SFML/CMakeLists.txt:26 (find_package)

as you can see cmake it does find the FindSFML.cmake script, but seems that the script doesn't find the development sfml files... any ideas?

CSFML failing to build network component for x86_64 arch on Mac OS X

Hi there,

I'm new to SFML/CSFML, but I'm trying to get them both built so that I might build the gosfml2 bindings.
I'm using Mac OS X (10.8.2) , Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn) to build.

Here is the output upon calling make:

[ 11%] Built target csfml-system
[ 25%] Built target csfml-window 
Linking CXX shared library ../../../lib/libcsfml-network.dylib
Undefined symbols for architecture x86_64:
  "sf::Ftp::ListingResponse::getListing() const", referenced from:
      _sfFtpListingResponse_getCount in Ftp.cpp.o
      _sfFtpListingResponse_getName in Ftp.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcsfml-network.2.0.dylib] Error 1
make[1]: *** [src/SFML/Network/CMakeFiles/csfml-network.dir/all] Error 2
make: *** [all] Error 2

What version of SFML does CSFML 2.3 support?

I downloaded CSFML 2.3 and SFML 2.3. But while compiling I got the following error:

$gcc -Wall -Wextra -Werror -o test main.o -L/opt/csfml-2.3/lib -lcsfml-graphics -lcsfml-window -lcsfml-system -L/opt/sfml-2.3/lib -lsfml-graphics -lsfml-window -lsfml-system
/usr/bin/ld: warning: libsfml-graphics.so.2.2, needed by /opt/csfml-2.3/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-window.so.2.2, needed by /opt/csfml-2.3/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-system.so.2.2, needed by /opt/csfml-2.3/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)

according to the bindings page CSFML 2.3 requires SFML 2.3. I am confused!

Font.h getLineSpacing irrelevant parameter in docs

Parameter codePoint seems to be irrelevant:

////////////////////////////////////////////////////////////
/// \brief Get the line spacing value
///
/// \param font Source font
/// \param codePoint Unicode code point of the character to get
/// \param characterSize Character size, in pixels
///
/// \return Line spacing, in pixels
///
////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API int sfFont_getLineSpacing(sfFont* font, unsigned int characterSize);

Provide FindSFML.cmake

What is the rationale behind not providing FindSFML.cmake?

I talked to someone on #cmake, and he stated that projects should provide the FindXXX.cmake for their CMake-based dependencies. (Unless CMake itself officially provides a FindXXX.cmake for a dependency).

This is especially painful if SFML is installed to a non-standard location, as you have to fiddle around with setting CMAKE_MODULE_PATH to the correct location (and that doesn't work if the project overrides CMAKE_MODULE_PATH, which CSFML 2.1 did, although newer versions don't seem to do that anymore).

Forgot CSFML_GRAPHICS_API in sfImage

Well the title says it all. This definition is not there but as far as I can see everything else has it. And as a result I can't dynamically load sfImage functions and use them.

Event type is duplicate

Event type field is duplicate. For instance:

struct sfSizeEvent
{
sfEventType type;
unsigned int width;
unsigned int height;
};

typedef union
{
sfEventType type; ///< Type of the event
struct sfSizeEvent size;
....
} sfEvent;

So an sfEvent has two types, its own sfEventType and the one inside every struct of the union.

Add example / test

It would be a good thing to have a small example program, that could also be used to check that the library works (this would be useful to detect incompatibilities with newer versions SFML that don't appear when compiling the library itself). Unit tests could probably do that too, I don't know which takes more effort to make.

Event.h struct definitions

struct definitions in SFML/Window/Event.h could be rewritten as

typedef struct
{
} xyz;

instead of

struct xyz
{
};

to introduce xyz into the typedef namespace.

Missing methods on SoundBufferRecorder.

These functions on SoundRecorder are not available on SoundBufferRecorder:

void sfSoundRecorder_setProcessingInterval(sfSoundRecorder* soundRecorder, sfTime interval);
sfBool sfSoundRecorder_setDevice(sfSoundRecorder* soundRecorder, const char* name);
const char* sfSoundRecorder_getDevice(sfSoundRecorder* soundRecorder);

It seems like at least setDevice and getDevice variants should be available.

Can not build on Ubuntu 12.10

I unpack into CSFML-master, cd there, then:

cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE   -D BUILD_SHARED_LIBS=TRUE .

I get back:

CMake Error at src/SFML/CMakeLists.txt:22 (find_package):

Could not find module FindSFML.cmake or a configuration file for package
SFML.

Adjust CMAKE_MODULE_PATH to find FindSFML.cmake or set SFML_DIR to the
directory containing a CMake configuration file for SFML. The file will
have one of the following names:

SFMLConfig.cmake
sfml-config.cmake

But ok, why is that? I have installed SFML from source into /usr/local ...

what should SFML_DIR or CMAKE_MODULE_PATH be set to, to find SFML? I have run ldconfig as root.

The documentation says "set it to the appropriate value". Well, I have tried all paths I could think of. /usr/local/share/SFML and so on. Also there are no files called SFMLConfig.cmake or sfml-config.cmake on my system. At all.

The forum is down or I would post there.

PrimitiveType.h docs typo

////////////////////////////////////////////////////////////
/// \brief Types of primitives that a sf::VertexArray can render
///
/// Points and lines have no area, therefore their thickness
/// will always be 1 pixel, regarldess the current transform
/// and view.
///
////////////////////////////////////////////////////////////

regaRLDess -> regaRDLess of

Broken since el capitan (?) or SFML 2.3.1?

Today I found out that my code does not compile anymore.
`fatal error: 'SFML/Graphics/RenderWindow.h' file not found

include <SFML/Graphics/RenderWindow.h>`

I then tried the brew test formula, that also breaks:

$ brew test csfml
Testing csfml
==> /usr/bin/clang test.c -lcsfml-window -o test
Last 15 lines from /Users/username/Library/Logs/Homebrew/csfml/01.clang:
2015-10-16 08:39:44 +0200

/usr/bin/clang
test.c
-lcsfml-window
-o
test

ld: library not found for -lcsfml-window
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: csfml: failed
Failed executing: /usr/bin/clang test.c -lcsfml-window -o test
/usr/local/Library/Homebrew/formula.rb:1353:in `block in system'
/usr/local/Library/Homebrew/formula.rb:1290:in `open'
/usr/local/Library/Homebrew/formula.rb:1290:in `system'
/usr/local/Library/Formula/csfml.rb:35:in `block in <class:Csfml>'
/usr/local/Library/Homebrew/formula.rb:1199:in `block in run_test'
/usr/local/Library/Homebrew/extend/fileutils.rb:17:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:1195:in `run_test'
/usr/local/Library/Homebrew/test.rb:28:in `block in <main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
/usr/local/Library/Homebrew/test.rb:27:in `<main>'

Any hints?

CSFML API inconsistent with SFML; broken in one place

There's a few things I've found while going through the API; sorry if this should be more than one bug.

  • sf::Transform::translate: In most places, where SFML provides overrides for both float x/y and Vector2 forms, the C API exposes only the Vector variant. This function is the exception; for some reason CSFML's only comes in float x/y form.
  • sf::Texture::CoordinateType isn't exposed and the associated parameter missing from sfTexture_bind(). Granted it's "mostly internal" but the function is available anyway. Why not?
  • sfImage_createMaskFromColor has the wrong prototype in the .h file (missing sfImage* param). The implementation is correct, though.

(This is all against the latest Git revision; 1bfc30e to be precise. There could be more quirks, but I haven't gone through all of Graphics yet, nor any of Network+Audio.)

CMake Macros Missing include?

In Macros.cmake, shouldn't the first line be include(CMakeParseArguments) like in the SFML one? When I tried to build, CMake complained about not being able to find cmake_parse_arguments until I added it in.

Please use C89-style comments in CSFML headers.

Hi,

Please use C-89 style comments ( /* … */ ) in CSFML headers. This modification would ease the use of CSFML in projects using a pedantic version of C89. I volunteer to do it if you are interested.

This had probably been proposed already but I couldn't find a similar proposition on the forums nor on GitHub's issues. Sorry if this has already been discussed and refused.

Fails to build against SFML 2.3 on Mac OS X

I was looking to update the Homebrew formula for SFML (Homebrew/legacy-homebrew#39900) but CSFML is having trouble with the new version. It's failing for me with Clang and GCC:

And the Homebrew CI bot shows failures for older OSs too: http://bot.brew.sh/job/Homebrew%20Pull%20Requests/26400/version=yosemite/testReport/junit/brew-test-bot/yosemite/install_csfml/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.