rhomobile / rhodes-system-api-samples

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

File not found libRainbow.a #4

Open plsmith91 opened 12 years ago

plsmith91 commented 12 years ago

Try to compile on Mac. Have Rhodes 3.2.0, and i got a "File not found" issue for the libRainbow.a file

Exact error is : ld: File not found: /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libRainbow.a

this happens for 'release' mode, but in default 'debug' is the same issue

Rainbow is a native extension ? but seem haven't got it ? or does someone know the solution/problem ?

Thanks

dmitrys commented 12 years ago

Hi,

Send me complete console output of "rake run:iphone --trace"

Also check the permissions/file attribute of "rhodes-system-api-samples/extensions/rainbow/ext/build" - it must be executable

On Thu, Oct 27, 2011 at 12:59 AM, plsmith91 < reply@reply.github.com>wrote:

Try to compile on Mac. Have Rhodes 3.2.0, and i got a "File not found" issue for the libRainbow.a file

Exact error is : ld: File not found: /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libRainbow.a

this happens for 'release' mode, but in default 'debug' is the same issue

Rainbow is a native extension ? but seem haven't got it ? or does someone know the solution/problem ?

Thanks

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

Best regards, Dmitry A. Soldatenkov E-mail: dmitrys@rhomobile.com Skype: soldatenkoff

plsmith91 commented 12 years ago

Hello dim,

Thanks for your response

Yes ! you get it, it was a file rights issue on the 'build' file ! now the api-sample works compile..

So a 'chmod +x' was the solution (perhaps you have to switch +x on the ./ext/* for the next commit.., because it is not obvious to find the problem)

So, now it's compile but, my goal was to check the 'take_barcode()' function and it's doesn't work on my iphone in this demo-api-sample. When i touche the link [take barcode], it's do nothing... other with [take picture] is ok.

my context : iphone 3gs with ios 4.3

It's seems that you are the boss for this function (right? -have look on github-) so do you have a idea for which reason it's doesn't 'take_barcode' on my phone ?

Regards

On 10/27/2011 12:13 AM, dmitrys wrote:

Hi,

Send me complete console output of "rake run:iphone --trace"

Also check the permissions/file attribute of "rhodes-system-api-samples/extensions/rainbow/ext/build" - it must be executable

On Thu, Oct 27, 2011 at 12:59 AM, plsmith91< reply@reply.github.com>wrote:

Try to compile on Mac. Have Rhodes 3.2.0, and i got a "File not found" issue for the libRainbow.a file

Exact error is : ld: File not found: /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libRainbow.a

this happens for 'release' mode, but in default 'debug' is the same issue

Rainbow is a native extension ? but seem haven't got it ? or does someone know the solution/problem ?

Thanks

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

dmitrys commented 12 years ago

Hi,

take_barcode work on iOS platforms only in Master version now - I was implemented it a few days ago.

On Thu, Oct 27, 2011 at 6:09 PM, plsmith91 < reply@reply.github.com>wrote:

Hello dim,

Thanks for your response

Yes ! you get it, it was a file rights issue on the 'build' file ! now the api-sample works compile..

So a 'chmod +x' was the solution (perhaps you have to switch +x on the ./ext/* for the next commit.., because it is not obvious to find the problem)

So, now it's compile but, my goal was to check the 'take_barcode()' function and it's doesn't work on my iphone in this demo-api-sample. When i touche the link [take barcode], it's do nothing... other with [take picture] is ok.

my context : iphone 3gs with ios 4.3

It's seems that you are the boss for this function (right? -have look on github-) so do you have a idea for which reason it's doesn't 'take_barcode' on my phone ?

Regards

On 10/27/2011 12:13 AM, dmitrys wrote:

Hi,

Send me complete console output of "rake run:iphone --trace"

Also check the permissions/file attribute of "rhodes-system-api-samples/extensions/rainbow/ext/build" - it must be executable

On Thu, Oct 27, 2011 at 12:59 AM, plsmith91< reply@reply.github.com>wrote:

Try to compile on Mac. Have Rhodes 3.2.0, and i got a "File not found" issue for the libRainbow.a file

Exact error is : ld: File not found:

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libRainbow.a

this happens for 'release' mode, but in default 'debug' is the same issue

Rainbow is a native extension ? but seem haven't got it ? or does someone know the solution/problem ?

Thanks

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

Reply to this email directly or view it on GitHub:

https://github.com/rhomobile/rhodes-system-api-samples/issues/4#issuecomment-2543825

Best regards, Dmitry A. Soldatenkov E-mail: dmitrys@rhomobile.com Skype: soldatenkoff

plsmith91 commented 12 years ago

Hi Dim,

What is "the master version" ? i've got the last one with 'gem install' and got '3.2.0' version few days ago, do i have to download the sources from git by hands to get the "master version" ?

Other subject about webView possibilities:

i've modified the "simpleMainView.m" to add 2 options to the WebView to enable autoload/autoplay sound/video medias (False by default on ios)

I think it's could be very useful to integrate this as natif (or parameters) in the future release, because often our applications with Rhodes need this..

Where could i suggest this for the framework ?

About options : webView.allowsInlineMediaPlayback = YES; webView.mediaPlaybackRequiresUserAction = NO;

Regards, Ludo.

On 10/27/2011 05:19 PM, dmitrys wrote:

Hi,

take_barcode work on iOS platforms only in Master version now - I was implemented it a few days ago.

On Thu, Oct 27, 2011 at 6:09 PM, plsmith91< reply@reply.github.com>wrote:

dmitrys commented 12 years ago

Hi,

If you want real-time barcode recognizer on iPhone - currently you need use Master (fresh sources from Git) version of Rhodes. https://github.com/rhomobile/rhodes

Other way : Download Master version from Git and just copy "barcode" extension folder (rhodes/lib/extensions/barcode) into your GEM Rhodes folder.

On Thu, Oct 27, 2011 at 8:10 PM, plsmith91 < reply@reply.github.com>wrote:

Hi Dim,

What is "the master version" ? i've got the last one with 'gem install' and got '3.2.0' version few days ago, do i have to download the sources from git by hands to get the "master version" ?

Other subject about webView possibilities:

i've modified the "simpleMainView.m" to add 2 options to the WebView to enable autoload/autoplay sound/video medias (False by default on ios)

I think it's could be very useful to integrate this as natif (or parameters) in the future release, because often our applications with Rhodes need this..

Where could i suggest this for the framework ?

About options : webView.allowsInlineMediaPlayback = YES; webView.mediaPlaybackRequiresUserAction = NO;

Regards, Ludo.

On 10/27/2011 05:19 PM, dmitrys wrote:

Hi,

take_barcode work on iOS platforms only in Master version now - I was implemented it a few days ago.

On Thu, Oct 27, 2011 at 6:09 PM, plsmith91< reply@reply.github.com>wrote:

Reply to this email directly or view it on GitHub:

https://github.com/rhomobile/rhodes-system-api-samples/issues/4#issuecomment-2545519

Best regards, Dmitry A. Soldatenkov E-mail: dmitrys@rhomobile.com Skype: soldatenkoff

plsmith91 commented 12 years ago

Thank you very well Dim,

Have a good day.

On 10/27/2011 06:29 PM, dmitrys wrote:

Hi,

If you want real-time barcode recognizer on iPhone - currently you need use Master (fresh sources from Git) version of Rhodes. https://github.com/rhomobile/rhodes

Other way : Download Master version from Git and just copy "barcode" extension folder (rhodes/lib/extensions/barcode) into your GEM Rhodes folder.

On Thu, Oct 27, 2011 at 8:10 PM, plsmith91< reply@reply.github.com>wrote:

Hi Dim,

What is "the master version" ? i've got the last one with 'gem install' and got '3.2.0' version few days ago, do i have to download the sources from git by hands to get the "master version" ?

Other subject about webView possibilities:

i've modified the "simpleMainView.m" to add 2 options to the WebView to enable autoload/autoplay sound/video medias (False by default on ios)

I think it's could be very useful to integrate this as natif (or parameters) in the future release, because often our applications with Rhodes need this..

Where could i suggest this for the framework ?

About options : webView.allowsInlineMediaPlayback = YES; webView.mediaPlaybackRequiresUserAction = NO;

plsmith91 commented 12 years ago

Hi Dmitrys,

I've got rhodes from sources and got now a 2 codegen errors for armv6 and armv7 No error for the simulator (but no camera and no barcode too), this arrive only for 'device' compiling

Here the log from xcode (for armv6):


Ld build/rhorunner.build/Release-iphoneos/rhorunner.build/Objects-normal/armv6/rhorunner normal armv6 cd /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone setenv IPHONEOS_DEPLOYMENT_TARGET 3.0 setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs /iPhoneOS4.3.sdk -L/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos -L/Library/Ruby/Gems/1.8/gems/rhodes-3.2. 0/platform/iphone -L/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos -F/Library/Ruby/Gems/1.8/gems/rhodes-3.2 .0/platform/iphone/build/Release-iphoneos -filelist /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-i phoneos/rhorunner.build/Objects-normal/armv6/rhorunner.LinkFileList -dead_strip -ObjC -all_load -filelist /Library/Ruby/Gems/1.8/gems/rhodes -3.2.0/platform/iphone/build/rhorunner.build/Release-iphoneos/rhorunner.build/rhodeslibs.txt -weak_framework EventKit -miphoneos-version-min =3.0 -framework CoreMedia -framework CoreVideo -liconv /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librh orubylib.a /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librholib.a /Library/Ruby/Gems/1.8/gems/rhodes-3. 2.0/platform/iphone/build/Release-iphoneos/libcurl.a /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librhos ynclib.a /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librhoextlib.a -framework Foundation -framework UIK it -framework CoreFoundation -framework CoreLocation -lsqlite3.0 -framework AddressBook -framework SystemConfiguration -framework AudioToolb ox -framework AVFoundation -framework CoreGraphics -lz -framework MapKit -framework CFNetwork -framework GameKit -framework Security -framew ork QuartzCore -framework EventKit -o /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphoneos/rhorun ner.build/Objects-normal/armv6/rhorunner

ld: bad codegen, pointer diff in rho::net::CAsyncHttp::CAsyncHttpResponse::CAsyncHttpResponse(rho::net::CNetResponseWrapper&, std::basic_str ing<char, std::char_traits, std::allocator > const&)to global weak symbol vtable for rho::ICallbackObjectfor architecture armv6 collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1 ---<<

Do you have any idea ?

Regards,

On 10/27/2011 06:29 PM, dmitrys wrote:

Hi,

If you want real-time barcode recognizer on iPhone - currently you need use Master (fresh sources from Git) version of Rhodes. https://github.com/rhomobile/rhodes

Other way : Download Master version from Git and just copy "barcode" extension folder (rhodes/lib/extensions/barcode) into your GEM Rhodes folder.

On Thu, Oct 27, 2011 at 8:10 PM, plsmith91< reply@reply.github.com>wrote:

Hi Dim,

What is "the master version" ? i've got the last one with 'gem install' and got '3.2.0' version few days ago, do i have to download the sources from git by hands to get the "master version" ?

Other subject about webView possibilities:

i've modified the "simpleMainView.m" to add 2 options to the WebView to enable autoload/autoplay sound/video medias (False by default on ios)

I think it's could be very useful to integrate this as natif (or parameters) in the future release, because often our applications with Rhodes need this..

Where could i suggest this for the framework ?

About options : webView.allowsInlineMediaPlayback = YES; webView.mediaPlaybackRequiresUserAction = NO;

Regards, Ludo.

On 10/27/2011 05:19 PM, dmitrys wrote:

Hi,

take_barcode work on iOS platforms only in Master version now - I was implemented it a few days ago.

On Thu, Oct 27, 2011 at 6:09 PM, plsmith91< reply@reply.github.com>wrote:

Reply to this email directly or view it on GitHub:

https://github.com/rhomobile/rhodes-system-api-samples/issues/4#issuecomment-2545519

dmitrys commented 12 years ago

Hi,

Try to use Master version and do not forget make "rake clean:iphone"

Also you can read this: http://stackoverflow.com/questions/5285844/bad-codegen-pointer-diff-linker-error-with-xcode-4

On Fri, Oct 28, 2011 at 5:22 PM, plsmith91 < reply@reply.github.com>wrote:

Hi Dmitrys,

I've got rhodes from sources and got now a 2 codegen errors for armv6 and armv7 No error for the simulator (but no camera and no barcode too), this arrive only for 'device' compiling

Here the log from xcode (for armv6):


Ld

build/rhorunner.build/Release-iphoneos/rhorunner.build/Objects-normal/armv6/rhorunner normal armv6 cd /Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone setenv IPHONEOS_DEPLOYMENT_TARGET 3.0 setenv PATH

"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs /iPhoneOS4.3.sdk

-L/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos -L/Library/Ruby/Gems/1.8/gems/rhodes-3.2. 0/platform/iphone

-L/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos -F/Library/Ruby/Gems/1.8/gems/rhodes-3.2 .0/platform/iphone/build/Release-iphoneos -filelist

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-i phoneos/rhorunner.build/Objects-normal/armv6/rhorunner.LinkFileList -dead_strip -ObjC -all_load -filelist /Library/Ruby/Gems/1.8/gems/rhodes

-3.2.0/platform/iphone/build/rhorunner.build/Release-iphoneos/rhorunner.build/rhodeslibs.txt -weak_framework EventKit -miphoneos-version-min =3.0 -framework CoreMedia -framework CoreVideo -liconv

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librh orubylib.a

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librholib.a /Library/Ruby/Gems/1.8/gems/rhodes-3. 2.0/platform/iphone/build/Release-iphoneos/libcurl.a

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librhos ynclib.a

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/Release-iphoneos/librhoextlib.a -framework Foundation -framework UIK it -framework CoreFoundation -framework CoreLocation -lsqlite3.0 -framework AddressBook -framework SystemConfiguration -framework AudioToolb ox -framework AVFoundation -framework CoreGraphics -lz -framework MapKit -framework CFNetwork -framework GameKit -framework Security -framew ork QuartzCore -framework EventKit -o

/Library/Ruby/Gems/1.8/gems/rhodes-3.2.0/platform/iphone/build/rhorunner.build/Release-iphoneos/rhorun ner.build/Objects-normal/armv6/rhorunner

ld: bad codegen, pointer diff in

rho::net::CAsyncHttp::CAsyncHttpResponse::CAsyncHttpResponse(rho::net::CNetResponseWrapper&, std::basic_str ing<char, std::char_traits, std::allocator > const&)to global weak symbol vtable for rho::ICallbackObjectfor architecture armv6 collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1 ---<<

Do you have any idea ?

Regards,

On 10/27/2011 06:29 PM, dmitrys wrote:

Hi,

If you want real-time barcode recognizer on iPhone - currently you need use Master (fresh sources from Git) version of Rhodes. https://github.com/rhomobile/rhodes

Other way : Download Master version from Git and just copy "barcode" extension folder (rhodes/lib/extensions/barcode) into your GEM Rhodes folder.

On Thu, Oct 27, 2011 at 8:10 PM, plsmith91< reply@reply.github.com>wrote:

Hi Dim,

What is "the master version" ? i've got the last one with 'gem install' and got '3.2.0' version few days ago, do i have to download the sources from git by hands to get the "master version" ?

Other subject about webView possibilities:

i've modified the "simpleMainView.m" to add 2 options to the WebView to enable autoload/autoplay sound/video medias (False by default on ios)

I think it's could be very useful to integrate this as natif (or parameters) in the future release, because often our applications with Rhodes need this..

Where could i suggest this for the framework ?

About options : webView.allowsInlineMediaPlayback = YES; webView.mediaPlaybackRequiresUserAction = NO;

Regards, Ludo.

On 10/27/2011 05:19 PM, dmitrys wrote:

Hi,

take_barcode work on iOS platforms only in Master version now - I was implemented it a few days ago.

On Thu, Oct 27, 2011 at 6:09 PM, plsmith91< reply@reply.github.com>wrote:

Reply to this email directly or view it on GitHub:

https://github.com/rhomobile/rhodes-system-api-samples/issues/4#issuecomment-2545519

Reply to this email directly or view it on GitHub:

https://github.com/rhomobile/rhodes-system-api-samples/issues/4#issuecomment-2556579

Best regards, Dmitry A. Soldatenkov E-mail: dmitrys@rhomobile.com Skype: soldatenkoff