Announcements
The Scaleform forum is now read-only. Please head to the Gamedev site for product support.

Black screen on Android & Android make error

Black screen on Android & Android make error

Anonymous
Not applicable
1,010 Views
4 Replies
Message 1 of 5

Black screen on Android & Android make error

Anonymous
Not applicable

Hi,

I have tried to follow this tutorial but I haven't been able to do either of the two things shown in it:
1. Getting the FXPlayerMobile app to load an SWF (I tried with 3DGenerator_AS3.swf and ScaleformLogo.swf both of which I named (not at the same time of course) "flash.swf" and put in the root of the internal memory of my phone).

      - When I run FXPlayerMobile on my phone I only get a black screen. Interestingly the menu of the app works (but only takes up half of the screen, I don't know if that's the normal behaviour)

     - I use a Galaxy S3 I9300
2. Making an apk out of the StarforceTD.swf. I followed the tutorial closely but when I run "make P=Android C=Release+NoRTTI" I get this error:
make error scaleform.png
      - I have installed all the cygwin packages that were said to be necessary (binutils, g++, perl, make). I have also checked the checkbox that asks me to install the packages that these 4 need to function properly.

 

Reply
Reply
0 Likes
Accepted solutions (1)
1,011 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Seems like you don't have your compiler configured properly. The command line shows that the compiler used by the cc command is Android-g++ which I guess it should be g++.

 

Take a look at your .bashrc or bash_profile (in your cygwin HOME path) see if you have something like this CXX=-g++ or just try to compile something with cc. If you can, maybe it's Makefile's fault (it's using a hyphen instead a blank space) take a look at it.

 

If after that, you can't solve the problem you can always type

 

$make P=Android C=Release+NoRTTI P_CXX=g++ P_CC=gcc

 

it should compile.

Reply
Reply
0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi Dani,

 

I think you are right about it being makefile's fault. Look at this:

I can type in anything as a platform and it will appear in the error where "Android" used to:

first.png

Then I went into the makefile and this line looked suspicious to me:

second.png

I inserted a random string in there to see if it would appear in the error and it did:

third.png

fourth.png

 

I don't think that "$(PP)" (which is the platform name plus a dash) is there by mistake because it's there for all compilers as you can see in on of the pictures. Can you check your makefile and see if it's different there?

 

I didn't try any of your other suggestions yet, but I will.

Reply
Reply
0 Likes
Message 4 of 5

Anonymous
Not applicable

I have also tried entering "make P=Android C=Release+NoRTTI P_CXX=g++ P_CC=gcc" as you suggested and the message was a lot longer (as you can see here), but the last error was similar: "Android-ar: Command not found".

I have also checked the two files that you told me to check and neither of them contained the string "CXX" at all.

Reply
Reply
0 Likes
Message 5 of 5

adjm
Alumni
Alumni
Accepted solution

Hi Guys,

 

The Scaleform 4.4 Mobile SDK was released which adds a lot of great fixes, moves everybody to the latest Scaleform 4.4 codebase, and adds 64-bit Support for iOS:

 

http://forums.autodesk.com/t5/scaleform-mobile-development/scaleform-4-4-mobile-sdk-has-been-release...

 

Please try updating to this version if you haven't already and let us know if you continue to have issues.

 

Thanks,

 

Jeremy

Scaleform Support

Reply
Reply
0 Likes