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

Pages: [1]
1
General discussions / Re: Android and iOS ports available for testing
« on: October 29, 2014, 01:07:22 pm »
Thanks for your answer ! :)

I tested the example like Sonkun explained, and the program works ! I will try now to develop my own game, and I hope that I will have no bugs.

2
General discussions / Re: Android and iOS ports available for testing
« on: October 29, 2014, 11:25:31 am »
I tested without Qt. I used Eclipse and ndk-build. But, I always had the segfault :
(click to show/hide)

How can I resolve this error ? Thanks in advance for your answer ! :)

AndroidManifest.xml :
(click to show/hide)

MainActivity.java :
(click to show/hide)

sfmlexample.cpp :
(click to show/hide)

Android.mk :
(click to show/hide)

I tried to use ndk-gdb-py, but I had an error :
(click to show/hide)

3
General discussions / Re: Android and iOS ports available for testing
« on: October 28, 2014, 09:04:50 am »
Thanks for your answer ! :)

So I will continue to use wchar_t*.

Now, I will try debugging without Qt. I keep you informed.

4
General discussions / Re: Android and iOS ports available for testing
« on: October 27, 2014, 09:50:00 pm »
Without "#include <QCoreApplication>", I had the same error.

5
General discussions / Re: Android and iOS ports available for testing
« on: October 27, 2014, 07:56:16 pm »
Thanks for your response ! :)

Unfortunately, it doesn't work :
main.obj:main.cpp:function main: error: undefined reference to 'sf::String::String(char const*, std::locale const&)'
collect2.exe: error: ld returned 1 exit status

The new code :
(click to show/hide)

6
General discussions / Re: Android and iOS ports available for testing
« on: October 27, 2014, 07:37:13 pm »
Thanks ! :)

When I replace my old sf::String(wchar_t*) by sf::String(std::string("test")), I had an error : undefined reference to 'sf::String::String(std::string const&, std::locale const&)'. Why had I this error ? I tried sf::String(std::string("test"), std::locale("C")), but it doesn't work. How can I resolve it ?

How can I do not use wide character string ? Thanks in advance for your response.

I use Qt to get its classes which can be useful. Likewise Qt supports Android easily. But I think I will try without Qt stuff. And I will try debugging like you say ("ndk-gdb-py") when this problems will be resolved.

In any case, thanks for your response !

7
General discussions / Re: Android and iOS ports available for testing
« on: October 27, 2014, 06:26:10 pm »
Hello,

I am trying to compile an SFML example on Android.

I use the android-ndk-r10b, the adt-bundle-windows-x86_64-20140702 with Qt 5.3.1 and I'm on Windows 7 Pro 64 bits.

I had no problems to compile SFML for Android.

However, when I want to run the SFML example on an AVD, I had a segfault :
(click to show/hide)

Why have I this error ? How can I resolve it ? Thanks in advance.

The SFML example :
(click to show/hide)


The .PRO file (I use qmake with QtCreator) :
(click to show/hide)


The Android Manifest File :
(click to show/hide)


P. S. : Why can't I create sf::String(const char*) ? I have read the cause is the std::locale, but how resolve it ?


If I forgot something, I can specify.


Best regards,


jd6.


P. S. 2 : I'm not english, so perhaps I made some mistakes. Do not hesitate to report me these. Thanks !


Pages: [1]