rhomobile / rhodes-system-api-samples

Samples of rhodes features
http://docs.rhomobile.com/rhodes/device-caps
118 stars 60 forks source link

Unable to rake run:android with Rhodes 3 #1

Closed jamesw closed 13 years ago

jamesw commented 13 years ago

I get various errors with rake run:android

platform/android/Rhodes/jni/src/menu.cpp: In function '_jstring* Java_com_rhomobile_rhodes_RhoMenugetMenuItemType(JNIEnv, jobject, jlong, jint)': platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtNone' not handled in switch platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtSeparator' not handled in switch platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtFullscreen' not handled in switch platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setMapView(rho::common::map::IMapView_)': platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rectheight' platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setPinCalloutImage(JNIEnv, jobject)': platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rectheight' platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setPinCalloutLinkImage(JNIEnv, jobject)': platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_height' platform/android/Rhodes/jni/src/mapview.cpp: In function 'void mapview_create(rhoparam)': platform/android/Rhodes/jni/src/mapview.cpp:735: warning: deprecated conversion from string constant to 'char*' /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/extensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java:7: cannot find symbol symbol : class Utils location: package com.rhomobile.rhodes.util import com.rhomobile.rhodes.util.Utils; ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/extensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java:104: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() START"); ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/extensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java:107: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() view or command is null !!!"); ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/extensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java:127: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() FINISH"); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors

lexis-t commented 13 years ago

It's latest Rhodes version from master branch needed. We keep this project in sync with the Rhodes master branch not released gem.

-alexey

genywind commented 13 years ago

Looks like to build system-api-sample with rainbow extension you have to use rhodes master branch: http://docs.rhomobile.com/rhodes/build#setup-rhodes-source-code

-----Original Message----- From: jamesw [mailto:reply+i-1234544-8a42ad55799b0beed30e580717c4b9f32ce6e676@reply.githu b.com] Sent: Saturday, July 16, 2011 11:59 AM To: evgeny@rhomobile.com Subject: [rhodes-system-api-samples] Unable to rake run:android with Rhodes 3 (#1)

I get various errors with rake run:android

platform/android/Rhodes/jni/src/menu.cpp: In function '_jstring Java_com_rhomobile_rhodes_RhoMenugetMenuItemType(JNIEnv, jobject, jlong, jint)': platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtNone' not handled in switch platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtSeparator' not handled in switch platform/android/Rhodes/jni/src/menu.cpp:50: warning: enumeration value 'emtFullscreen' not handled in switch platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setMapView(rho::common::map::IMapView_)' : platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:269: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rectheight' platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setPinCalloutImage(JNIEnv, jobject)': platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:307: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rectheight' platform/android/Rhodes/jni/src/mapview.cpp: In member function 'void rho::common::map::AndroidMapDevice::setPinCalloutLinkImage(JNIEnv, jobject)': platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::y_offset' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_x' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_y' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_width' platform/android/Rhodes/jni/src/mapview.cpp:322: warning: missing initializer for member 'rho::common::map::PIN_INFO::click_rect_height' platform/android/Rhodes/jni/src/mapview.cpp: In function 'void mapview_create(rhoparam)': platform/android/Rhodes/jni/src/mapview.cpp:735: warning: deprecated conversion from string constant to 'char' /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/e xtensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java: 7: cannot find symbol symbol : class Utils location: package com.rhomobile.rhodes.util import com.rhomobile.rhodes.util.Utils; ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/e xtensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java: 104: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() START"); ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/e xtensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java: 107: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() view or command is null !!!"); ^ /home/jamie/Development/mobile/rhomobile-rhodes-system-api-samples-67f9e22/e xtensions/rainbow/ext/rainbow/platform/android/src/com/rainbow/Rainbow.java: 127: cannot find symbol symbol : variable Utils location: class com.rainbow.Rainbow if (logging_enable) Utils.platformLog("Rainbow", "navigateInNativeView() FINISH"); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors

Reply to this email directly or view it on GitHub: https://github.com/rhomobile/rhodes-system-api-samples/issues/1