My current goal is to have the .Net binding (that uses CSFML) working on iOS.You'll never be able to do that. iOS only accepts static libraries, and CSFML / SFML.Net is full of shared libraries, and nothing can be done about it.
You'll never be able to do that. iOS only accepts static libraries, and CSFML / SFML.Net is full of shared libraries, and nothing can be done about it.
Xamarin.iOS supports linking with both native C libraries and Objective-C libraries.(from http://docs.xamarin.com/guides/ios/advanced_topics/native_interop/)
Maybe it is possible, with some hacks. I don't know. I've never done it, actually. So... go ahead and try ;)
I also tried setting SFML_ROOT to the path of my freshly built SFML for iOS libs.And what was the exact error message after you did it?
The error is related to a recent modification in SFML that has not yet been ported to CSFML.
It's not a minor issue, blending won't work without that. I suggest you use an older SFML revision (b7c536c (https://github.com/SFML/SFML/commit/b7c536c7103cadcb89f7987d236b45010475c724)) until this is implemented.
It's not a minor issue, blending won't work without that. I suggest you use an older SFML revision (b7c536c (https://github.com/SFML/SFML/commit/b7c536c7103cadcb89f7987d236b45010475c724)) until this is implemented.
Since CSFML is a static library, it doesn't link anything. So you have to link CSFML and SFML in the final binary (SFML.Net).
I thought CSFML was self-containing SFML?Not if it is compiled statically. A static library is simply an archive of compiled files, it can't link to any external library; linking must be done when building a binary (a shared library or an executable).
i get a GL related error.I wouldn't call "sf::ThreadLocal::setValue" a GL function ;)
I'm not sure, but I don't think -U is the same as -u. And why is it used in your project?Hah, I was wondering the same, but haven't found a better match yet :) The compile options for clang++ are generated by mtouch, which is the xamarin mono compiler/linker.
This forum discussion (http://forums.xamarin.com/discussion/16619/native-linking-failed-undefined-symbol) seems like it could be helpful.
SFML found but version too low (requested: 2, found: 1.x.x)
/usr/bin/ld: warning: libsfml-window.so.2, needed by /usr/local/lib/libcsfml-window.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-system.so.2, needed by /usr/local/lib/libcsfml-window.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-graphics.so.2, needed by /usr/local/lib/libcsfml-graphics.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libsfml-audio.so.2, needed by /usr/local/lib/libcsfml-audio.so, not found (try using -rpath or -rpath-link)
SFML found but version too low (requested: 2, found: 1.x.x)it should be
"... , found 2.1"or alike.