Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found libRainbow.a #4

Open
plsmith91 opened this issue Oct 26, 2011 · 8 comments
Open

File not found libRainbow.a #4

plsmith91 opened this issue Oct 26, 2011 · 8 comments

Comments

@plsmith91
Copy link

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
Copy link
Contributor

dmitrys commented Oct 26, 2011

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 <
[email protected]>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:
#4

Best regards,
Dmitry A. Soldatenkov
E-mail: [email protected]
Skype: soldatenkoff

@plsmith91
Copy link
Author

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<
[email protected]>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:
#4

@dmitrys
Copy link
Contributor

dmitrys commented Oct 27, 2011

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 <
[email protected]>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<
[email protected]>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:
#4

Reply to this email directly or view it on GitHub:

#4 (comment)

Best regards,
Dmitry A. Soldatenkov
E-mail: [email protected]
Skype: soldatenkoff

@plsmith91
Copy link
Author

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<
[email protected]>wrote:

@dmitrys
Copy link
Contributor

dmitrys commented Oct 27, 2011

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 <
[email protected]>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<
[email protected]>wrote:

Reply to this email directly or view it on GitHub:

#4 (comment)

Best regards,
Dmitry A. Soldatenkov
E-mail: [email protected]
Skype: soldatenkoff

@plsmith91
Copy link
Author

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<
[email protected]>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
Copy link
Author

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<
[email protected]>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<
[email protected]>wrote:

Reply to this email directly or view it on GitHub:

#4 (comment)

@dmitrys
Copy link
Contributor

dmitrys commented Oct 31, 2011

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 <
[email protected]>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<
[email protected]>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<
[email protected]>wrote:

Reply to this email directly or view it on GitHub:

#4 (comment)

Reply to this email directly or view it on GitHub:

#4 (comment)

Best regards,
Dmitry A. Soldatenkov
E-mail: [email protected]
Skype: soldatenkoff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants