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 - cookie

Pages: [1]
1
DotNet / SFML.Net on Xamarin.Android
« on: November 02, 2017, 11:55:38 am »
Hello there,

I've recently tried a little bit arround with using SFML.Net on Android using Xamarin. For that I've created an Xamarin.Andorid OpenGl-App and just randomly opened a RenderWindow.

I can't ensure that this will work yet since the instantiation of the RenderWindow fails due to a missing dll (DllNotFoundException on loading csfml-window-2). I have included the linux binaries (.so) in the apk and i can confirm that they actually are included in the apk. Also, the logs while debugging say that the library actually wanna get loaded using the correct path.

But regardless of that, has anyone done anything similar yet? And do you think this will be the right approach even if the native library gets loaded? Or does anyone already has running SFML.Net on Android?

Thanks

2
General / Re: Android undefined reference VS 2013 and Nvidia Nsight
« on: December 29, 2015, 02:13:16 am »
THANK YOU man! It finally works  ;D

With your sfml folder does it compile and run on android  :)
Of course with the modification you have to change the main.cpp slightly:
#include <android/native_activity.h>
int myCustomEntryPoint( int argc , char* argv[] , ANativeActivity* activity )
{
    // ...
}
 

My own compiled and installed sfml package looks a bit different, but I will investigate and still try to build my own sfml :) But for now I use yours :)

thank you!

cookie

3
General / Re: Android undefined reference VS 2013 and Nvidia Nsight
« on: December 29, 2015, 12:05:37 am »
Hey DarkRoku,
thank you so much! You helped me skipping weeks of struggle already  ;D
But unfortunately there is another problem  :-\

I got it to load the sfml module from $NDK/sources. For that I had to modify the NDK_MODULE_PATH enviroment variable to %ANDROID_NDK%/sources where %ANDROID_NDK% is the NDK root path. Without this variable it doesn't work and outputs the same error.

So, with make && make install I have successfuly build sfml and it copied all over to $NDK/sources.

Next step was ndk-build. You said in the $NDK/sources/sfml directiry should be a Android.mk makefile? Well, after make install ther is no makefile. So building with ndk-build fails with the same import error as before. When I create an empty Android.mk makefile in there it will start compiling the main.cpp but it fails in the first line (#include <SFML/System.hpp>) as there is no such file. Seems ok because we haven't included the sfml sources with the empty makefile.
But where can we get the original makefile to include the sfml module?

And yeah, shaders would be nice :O

cookie

4
General / Re: Android undefined reference VS 2013 and Nvidia Nsight
« on: December 28, 2015, 09:41:43 pm »
Hey DarkRoku,
thank you very much! Updating the android project worked for me now!
Except that I have used a slightly different command:
android update project --path <absolute/path/to/sfml/android/example> --target 5
where '--target 5' stands for android-19.
The currently available targets can be seen with the following command:
android list targets

But when it cames to build the project I struggle a bit.
In the directory of the android example I type 'ndk-build' and it print's this:
Android NDK: jni/Android.mk: Cannot find module with tag 'sfml' in import path
It seems to me that the error's source is this line in the Android.mk:
$(call import-module,sfml)

So I googled and found out that I have to set NDK_MODULE_PATH enviroment variable to the parent path of the module.
Great, but what is the sfml module? It seems logical to me that it should be the path to the generated files with MSYS (or maybe the library files generated with make?)
But everytime I try another path it just prints the same error :(
I used forward slashes in the path.

And in all the makefiles is written sth. about shared librarys, does it mean I have to build sfml as shared library and not as static?

thx for your help :)
cookie

5
General / Re: Android undefined reference VS 2013 and Nvidia Nsight
« on: December 28, 2015, 04:13:45 am »
Hey DarkRoku,
great that you solved the problem! I'm heading to the same problem right now, I've ben able to build the makefiles with MinGW and the MSYS generator. I also want to use Visual Studio. (but 2015 version, I don't think it makes a huge difference).

And in the next step I got stuck. :(

I run 'make' in the folder created by MinGW and it builds all the SFML library files to the 'lib' subfolder. Great, but what I have to do next? You said sth. about 'android update project --path <path/to/project>' but what exactly is the path to the project? Or what is here the project at all? :O I only can see the makefiles and stuff...

(btw. how do you managed to pass the '--android-14' parameter throug the update command? Isn't it this command: http://developer.android.com/tools/projects/projects-cmdline.html#UpdatingAProject)

And all the 'ndk-build' commands have to run in the created android project, right?

Look forwad to hear from you  :)
gr8 work

cookie

Pages: [1]