punto- / godot_modules Goto Github PK
View Code? Open in Web Editor NEWAssorted godot modules
License: MIT License
Assorted godot modules
License: MIT License
I think the libFlurry.a is not included
When I build with scons (scons platform=iphone target=release)
I got this error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o modules/flurry/flurry.iphone.opt.arm.o -c -fno-objc-arc -arch armv7 -fmessage-length=0 -fno-strict-aliasing -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -fpascal-strings -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -fvisibility=hidden -mthumb "-DIBOutlet=attribute((iboutlet))" "-DIBOutletCollection(ClassName)=attribute((iboutletcollection(ClassName)))" "-DIBAction=void)attribute((ibaction)" -miphoneos-version-min=7.0 -MMD -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/ -O3 -DNS_BLOCK_ASSERTIONS=1 -gdwarf-2 -Wall -DNDEBUG -DFREETYPE_ENABLED -DENABLE_DEPRECATED -fblocks -DGAME_CENTER_ENABLED -DSTOREKIT_ENABLED -DICLOUD_ENABLED -DIPHONE_ENABLED -DUNIX_ENABLED -DGLES2_ENABLED -DMPC_FIXED_POINT -fexceptions -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DXML_ENABLED -Icore -Icore/math -Ieditor -Idrivers -I. -Iplatform/iphone -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/OpenGLES.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioUnit.framework/Headers -Ithirdparty/zlib -Ithirdparty/freetype -Ithirdparty/freetype/include -Ithirdparty/libpng modules/flurry/flurry.mm
In file included from modules/flurry/flurry.mm:4:
modules/flurry/ios/Flurry.h:17:9: fatal error: 'FlurrySessionBuilder.h' file not found [1]
#import "FlurrySessionBuilder.h"
^
1 error generated.
scons: *** [modules/flurry/flurry.iphone.opt.arm.o] Error 1
scons: building terminated because of errors.
Since couple days (with some pauses) I'm trying to make flurry module work with Godot 2.0
Basing on http://docs.godotengine.org/en/latest/reference/creating_android_modules.html I made couple changes
GodotFlurry.java
changed package to org.godotengine.godot
src/org/godotengine/godotGodotFlurry.java
) elif env['platform'] == 'android':
env.android_add_java_dir("android")
env.android_add_dependency("compile files('android/FlurryAgent.jar')")
env.disable_module()
# env.android_add_java_dir("android/src/org/godotengine/godot")
# env.android_add_dependency("compile 'com.flurry.android:analytics:6.3.1'")
# env.android_module_file("android/GodotFlurry.java") #before 2.0
Running ./gradlew build always fails because java can't recognize FlurryAgent class
kubeczek@kubeczek-K52JT:~/git/godotBase/platform/android/java$ ./gradlew build
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:compileDebugJava
/home/kubeczek/git/godotBase/modules/flurry/android/src/org/godotengine/godot/GodotFlurry.java:5: error: package com.flurry.android does not exist
import com.flurry.android.FlurryAgent;
^
/home/kubeczek/git/godotBase/modules/flurry/android/src/org/godotengine/godot/GodotFlurry.java:19: error: cannot find symbol
FlurryAgent.logEvent(p_name, null, p_timed);
^
symbol: variable FlurryAgent
location: class GodotFlurry
/home/kubeczek/git/godotBase/modules/flurry/android/src/org/godotengine/godot/GodotFlurry.java:28: error: cannot find symbol
FlurryAgent.logEvent(p_name, params, p_timed);
^
symbol: variable FlurryAgent
location: class GodotFlurry
/home/kubeczek/git/godotBase/modules/flurry/android/src/org/godotengine/godot/GodotFlurry.java:49: error: cannot find symbol
FlurryAgent.endTimedEvent(p_name);
^
symbol: variable FlurryAgent
location: class GodotFlurry
/home/kubeczek/git/godotBase/modules/flurry/android/src/org/godotengine/godot/GodotFlurry.java:66: error: cannot find symbol
FlurryAgent.onStartSession(activity, key);
^
symbol: variable FlurryAgent
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
:compileDebugJava FAILED
In the end I'm clueless was consulting this on irc with person (vaded) that have some experience with android modules and he was unable to find the reason as well.
I'm attaching my version of the module below:
flurry.zip
in the last flurry version you should add another line to java that will init flurry, I wanted to make a pull request but I did not create git repository and all of that for just one line
the line is this:
FlurryAgent.init(activity, key);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.