ShiVa Developer Forum • View topic - Android build with 2 plugins fails?
 

Android build with 2 plugins fails?

ShiVa Plugin Development

Android build with 2 plugins fails?

Postby giggsy » 2018-03-20 09:02

Hi,

I got the plugins to compile.
My problem now: If I use more than one plugin, the build fails:

Code: Select all
---------------- Log 2018-03-20 07:54:13 ----------------
Closed Scene 'TestScene'
Creating runtime data for file 3/20: 'TestGameHUD'
Creating runtime data for file 4/20: 'MarkerMat'
Creating runtime data for file 5/20: 'TestBox'
Creating runtime data for file 6/20: 'fi_font'
Creating runtime data for file 7/20: 'PrivateData_Test'
Creating runtime data for file 8/20: 'TestGameAI'
Creating runtime data for file 9/20: 'TestGameAI_State_Encoding_onLoop'
Creating runtime data for file 10/20: 'TestGameAI_State_Encoding_onLeave'
Creating runtime data for file 11/20: 'TestGameAI_Handler_onKeyboardKeyDown'
Creating runtime data for file 12/20: 'TestGameAI_State_Init_onEnter'
Creating runtime data for file 13/20: 'TestGameAI_State_Init_onLeave'
Creating runtime data for file 14/20: 'PrivateData_Test_Handler_onInit'
Creating runtime data for file 15/20: 'TestGameAI_State_Init_onLoop'
Creating runtime data for file 16/20: 'TestGameAI_State_Encoding_onEnter'
Creating runtime data for file 17/20: 'DefaultChecker'
Creating runtime data for file 18/20: 'fi_font'
Creating runtime data for file 19/20: 'com.starkapps.text'
Loading 'screen' into random state - done
Generating RSA private key, 1024 bit long modulus
................++++++
.....++++++
e is 65537 (0x10001)

Loading 'screen' into random state - done
No value provided for Subject Attribute O, skipped

Loading 'screen' into random state - done

Creating runtime data for file 20/20: 'com.starkapps.utility'
Loading 'screen' into random state - done
Generating RSA private key, 1024 bit long modulus
.................++++++
............++++++
e is 65537 (0x10001)

Loading 'screen' into random state - done
No value provided for Subject Attribute O, skipped

Loading 'screen' into random state - done

Adding file 1/28 to package: 'Games/Test.gam' (0.183 KB)
Adding file 2/28 to package: 'Scenes/TestScene.scn' (0.436 KB)
Adding file 3/28 to package: 'Resources/HUD/TestGameHUD.hud' (0.346 KB)
Adding file 4/28 to package: 'Resources/Materials/MarkerMat.mat' (0.067 KB)
Adding file 5/28 to package: 'Resources/Meshes/TestBox.msh' (0.196 KB)
Adding file 6/28 to package: 'Resources/Fonts/fi_font.fnt' (0.275 KB)
Adding file 7/28 to package: 'Resources/AIModels/PrivateData_Test.aim' (0.039 KB)
Adding file 8/28 to package: 'Resources/AIModels/TestGameAI.aim' (0.073 KB)
Adding file 9/28 to package: 'Resources/Scripts/TestGameAI_State_Encoding_onLoop.lub' (0.304 KB)
Adding file 10/28 to package: 'Resources/Scripts/TestGameAI_State_Encoding_onLeave.lub' (0.226 KB)
Adding file 11/28 to package: 'Resources/Scripts/TestGameAI_Handler_onKeyboardKeyDown.lub' (0.167 KB)
Adding file 12/28 to package: 'Resources/Scripts/TestGameAI_State_Init_onEnter.lub' (0.503 KB)
Adding file 13/28 to package: 'Resources/Scripts/TestGameAI_State_Init_onLeave.lub' (0.107 KB)
Adding file 14/28 to package: 'Resources/Scripts/PrivateData_Test_Handler_onInit.lub' (0.106 KB)
Adding file 15/28 to package: 'Resources/Scripts/TestGameAI_State_Init_onLoop.lub' (0.128 KB)
Adding file 16/28 to package: 'Resources/Scripts/TestGameAI_State_Encoding_onEnter.lub' (0.461 KB)
Adding file 17/28 to package: 'Resources/Textures/DefaultChecker.etc' (0.271 KB)
Adding file 18/28 to package: 'Resources/Textures/fi_font.pvr' (112.602 KB)
Adding file 19/28 to package: 'Resources/Textures/fi_font.atc' (110.309 KB)
Adding file 20/28 to package: 'Resources/Textures/fi_font.dds' (113.309 KB)
Adding file 21/28 to package: 'Plugins/com.starkapps.text/Manifest.xml' (1.224 KB)
Adding file 22/28 to package: 'Plugins/com.starkapps.text/Contents/Android/arm_v5te/StarkApps_Text.a' (139.775 KB)
Adding file 23/28 to package: 'Plugins/com.starkapps.text/Contents/Android/arm_v7a/StarkApps_Text.a' (132.737 KB)
Adding file 24/28 to package: 'Plugins/com.starkapps.text/Contents/Android/x86_32/StarkApps_Text.a' (184.637 KB)
Adding file 25/28 to package: 'Plugins/com.starkapps.utility/Manifest.xml' (1.216 KB)
Adding file 26/28 to package: 'Plugins/com.starkapps.utility/Contents/Android/arm_v5te/StarkApps_Utility.a' (253.522 KB)
Adding file 27/28 to package: 'Plugins/com.starkapps.utility/Contents/Android/arm_v7a/StarkApps_Utility.a' (248.953 KB)
Adding file 28/28 to package: 'Plugins/com.starkapps.utility/Contents/Android/x86_32/StarkApps_Utility.a' (331.688 KB)
Runtime package generated Test.stk : 1635 KB, 28 files
Retrieving icons...
Retrieving splash images...
Retrieving additional files...
Retrieving native source files...
Checking application name...
Checking post build scripts...
Checking required settings...
Retrieving authoring settings...
Retrieving build settings...
Authoring type: Application
Build type: Development
AIModels type: Script
Architecture type: armv7a
Android API level: 25
Checking third party applications and SDKs...
Checking build folder...
Retrieving engine files...
Retrieving engine template files...
Checking pack file...
Closed PAK 'D:/SocialGamesOld/android-new/Test.stk'
Checking icons...
Checking splash images...
Checking bundle identifier...
Checking version number...
Checking version code...
Creating project...
:wrapper



BUILD SUCCESSFUL in 4s

1 actionable task: 1 executed

Creating project folders...
Copying pack file...
Copying icons...
Copying splash images...
Copying layout file...
Copying additional files...
Copying JAR files...
Copying engine files...
Extracting static plug-ins...
Extracted 'Plugins/com.starkapps.text/Contents/Android/x86_32/StarkApps_Text.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.text/Contents/Android/x86_32/StarkApps_Text.a'
Extracted 'Plugins/com.starkapps.text/Contents/Android/arm_v5te/StarkApps_Text.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.text/Contents/Android/arm_v5te/StarkApps_Text.a'
Extracted 'Plugins/com.starkapps.utility/Contents/Android/arm_v7a/StarkApps_Utility.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.utility/Contents/Android/arm_v7a/StarkApps_Utility.a'
Extracted 'Plugins/com.starkapps.text/Contents/Android/arm_v7a/StarkApps_Text.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.text/Contents/Android/arm_v7a/StarkApps_Text.a'
Extracted 'Plugins/com.starkapps.utility/Contents/Android/x86_32/StarkApps_Utility.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.utility/Contents/Android/x86_32/StarkApps_Utility.a'
Extracted 'Plugins/com.starkapps.utility/Contents/Android/arm_v5te/StarkApps_Utility.a' to 'C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6//Test_Android.s3dxproj/Plugins/com.starkapps.utility/Contents/Android/arm_v5te/StarkApps_Utility.a'
Closed PAK 'D:/SocialGamesOld/android-new/Test.stk'
Copying S3DX files...
Modifying strings file...
Modifying Android manifest...
Creating JNI glue...
Creating App build.gradle file...
Creating App CMakeLists.txt file...
Creating settings.gradle file...
Modifying Java view file...
Modifying Java main file...
Modifying Java activity file...
Creating local.properties file...
Launching pre-build scripts...
Building Android application package...
Incremental java compilation is an incubating feature.

:init
The build file 'build.gradle' already exists. Skipping build initialization.

:init SKIPPED


BUILD SUCCESSFUL

Total time: 7.376 secs

Incremental java compilation is an incubating feature.

:Test:preBuild UP-TO-DATE

:Test:preDebugBuild UP-TO-DATE
:Test:checkDebugManifest

:Test:prepareDebugDependencies

:Test:compileDebugAidl


:Test:compileDebugRenderscript

:Test:generateDebugBuildConfig

:Test:generateDebugResValues


:Test:generateDebugResources
:Test:mergeDebugResources

:Test:processDebugManifest

:Test:processDebugResources

:Test:generateDebugSources
:Test:incrementalDebugJavaCompilationSafeguard

:Test:javaPreCompileDebug

:Test:compileDebugJavaWithJavac

:Test:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

:Test:generateJsonModelDebug
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\hrzog\AppData\Local\Temp\0xb94c52e6\Test_Android.s3dxproj\Test\src\main\java\com\modernstark\aquariumisland\S3DSurfaceView.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


CMake Warning at C:/Users/hrzog/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message):
  Using custom NDK path (ANDROID_NDK is set):
  C:\Users\hrzog\AppData\Local\Android\Sdk\ndk-bundle
Call Stack (most recent call first):
  C:/Users/hrzog/AppData/Local/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
  CMakeLists.txt:8 (project)

-- The C compiler identification is GNU 4.9.0

-- The CXX compiler identification is GNU 4.9.0

-- Check for working C compiler: C:/Users/hrzog/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe

-- Check for working C compiler: C:/Users/hrzog/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler: C:/Users/hrzog/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe

-- Check for working CXX compiler: C:/Users/hrzog/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Configuring done

-- Generating done

CMake Warning:
  Manually-specified variables were not used by the project:
    ANDROID_DEPRECATED_HEADERS

-- Build files have been written to: C:/Users/hrzog/AppData/Local/Temp/0xb94c52e6/Test_Android.s3dxproj/Test/.externalNativeBuild/cmake/debug/armeabi-v7a

:Test:externalNativeBuildDebug

Build S3DClient armeabi-v7a

ninja: error: '../../../../src/main/jni/prebuilt/plugins/armeabi-v7a/libStarkApps_Utility.a -Wl,--no-whole-archive', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libS3DClient.so', missing and no known rule to make it

:Test:externalNativeBuildDebug FAILED


BUILD FAILED

Total time: 16.105 secs


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':Test:externalNativeBuildDebug'.
> Build command failed.
Error while executing process C:\Users\hrzog\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\hrzog\AppData\Local\Temp\0xb94c52e6\Test_Android.s3dxproj\Test\.externalNativeBuild\cmake\debug\armeabi-v7a --target S3DClient}
ninja: error: '../../../../src/main/jni/prebuilt/plugins/armeabi-v7a/libStarkApps_Utility.a -Wl,--no-whole-archive', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libS3DClient.so', missing and no known rule to make it


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Could not build application
Authoring failed.
Finalizing job: Android Authoring


I uploaded a test project here:
http://slegg.net/shiva/Plugin-Test-20180319.ste

You can try:
* Remove either one of the two plugins, the build will succeed.
* As soon as two are added, the build fails.

Googling the error indicated, that some (relative) paths could be wrong in the build file?

Any clue?
Have you tested multiple plugins?
Do I have any more paths set wrong? =)
Or is it a plugin issue?

Side note: I am not using a CER file to sign the plugins. Shiva generates that right? Even though there's something red in the console (see log).
I remember this was so in 1.9.2 aswell. Or does this not work with multiple plugins?

Big thanks!
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1153
Joined: 2010-06-27 21:17
Location: Austria

Re: Android build with 2 plugins fails?

Postby giggsy » 2018-03-20 15:14

In case anybody runs into the problem, contact shiva support! They got a fix and it'll probably be in the next release.
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1153
Joined: 2010-06-27 21:17
Location: Austria


Return to C++ Plugins and Frameworks

Who is online

Users browsing this forum: No registered users and 2 guests

cron