Coder Social home page Coder Social logo

godot_modules's People

Contributors

kubecz3k avatar punto- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

godot_modules's Issues

fatal error: 'FlurrySessionBuilder.h' file not found

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.

Can't compile Flurry module with Godot 2.0

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

  • in GodotFlurry.java changed package to org.godotengine.godot
  • Corrected localisation of GodotFlurry.java to meet the package (src/org/godotengine/godotGodotFlurry.java)
  • changed config.py to meet 2.0 style (tried couple variations, below is android section of my config.py also with different tries commented)
    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

Flurry Android

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.