divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Core Plot 1.0 Universal Binary does not include armv6 #405

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Link with Core Plot static lib in a project compiled for armv6 armv7
2. Linker error says that the armv6 slice is missing in core plot.

Confirmed on the command line with
$ lipo -info libCorePlot-CocoaTouch.a 
Architectures in the fat file: libCorePlot-CocoaTouch.a are: armv7 i386

What version of the product are you using? On what operating system?
XCode 4.3, Mac OS X Lion

Please provide any additional information below.
Core Plot 0.9 Binary included armv6. Not sure if support for it was 
intentionally dropped. If it has, can you please let me know how to build the 
universal library with armv6 armv7 i386? When i tried building it from source, 
I get a linker error saying BUILD FAILED, No valid arch...

Original issue reported on code.google.com by joelfern...@gmail.com on 22 Feb 2012 at 2:35

GoogleCodeExporter commented 9 years ago
The current project defaults are set for Xcode 4.2 which doesn't include armv6 
in the standard build settings. You should be able to add it to the build 
architectures and rebuild the library. Build the "Universal Library" target.

Original comment by eskr...@mac.com on 22 Feb 2012 at 11:59

GoogleCodeExporter commented 9 years ago
CorePlot-CocoaTouch Project, Scheme is set to Universal Library>iOS Device. 
With the Architecture for the CorePlot-CocoaTouch target set to Standard 
(armv7), the build succeeds as expected.

When I edit the Architectures to armv6 armv7, after waiting a bit while it says 
"Running 1 of 1 custom shell scripts", then:

=== BUILD NATIVE TARGET CorePlot-CocoaTouch OF PROJECT CorePlot-CocoaTouch WITH 
CONFIGURATION Release ===
Check dependencies
No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=i386).

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
Error: xcodebuild failed
Showing first 200 notices only
Command /bin/sh failed with exit code 1

What am I doing wrong?

Original comment by joelfern...@gmail.com on 23 Feb 2012 at 12:23

GoogleCodeExporter commented 9 years ago
You didn't include the simulator build architecture. I tried it set to "armv6 
$(ARCHS_STANDARD_32_BIT)" and got a clean build with the following lipo output:

Architectures in the fat file: libCorePlot-CocoaTouch.a are: armv6 armv7 i386 

Original comment by eskr...@mac.com on 23 Feb 2012 at 1:12

GoogleCodeExporter commented 9 years ago
That did it. Thank you! 

Original comment by joelfern...@gmail.com on 23 Feb 2012 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 23 Feb 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Issue 446 has been merged into this issue.

Original comment by eskr...@mac.com on 21 Jul 2012 at 5:39