dhoerl / libjpeg-turbo-builder Goto Github PK
View Code? Open in Web Editor NEWXcode project and script files to help build a fat library with multiple architectures including the Simulator
Xcode project and script files to help build a fat library with multiple architectures including the Simulator
Hi there,
I have compiled and tried to replace the libjpeg I was using in project. I had the following problem,
Undefined symbols for architecture armv7:
"_jpeg_mem_src", referenced from:
_Jpeg2Raw in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can you suggest something?
Dear dhoerl,
Thank you for build this project. I'm not familiar with build scripting. This is very useful for me.
Since libjpeg-turbo already has the iOS binary library, it seems enough for me.
However, I have the problem of using official release lib.
It seems official lib can't support 5/8 scaling factor while decoding.
When I look at the source code on svn , it shows more support for scaling factor.
It seems unmached for svn source and official lib.
That's why I need to use your project to build.
But, I encounter problem while building it. Here's my log.
Could you share me some tips ? or share me the lib binary from svn code ?
Binary lib is easier for me. Thank you.
I found Error validating server certificate for 'https://libjpeg-turbo.svn.sourceforge.net:443':
So, I manually check out and copy & paste to the project.
But the script still failed in
/Users/ethan/Documents/ProjectX/PhotoPrint/libjpeg/libjpeg-turbo-builder-master/gas-preprocessor/gas-preprocessor.pl
DOING ARCH armv7
make: *** No rule to make target `clean'. Stop.
Configure armv7
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: error: C compiler cannot create executables
Here's the full log. Thank you very much!
Hello World
Error validating server certificate for 'https://libjpeg-turbo.svn.sourceforge.net:443':
The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
Hostname: *.svn.sourceforge.net
Valid: from Sat, 25 Feb 2012 23:58:41 GMT until Sun, 31 Mar 2013 19:51:44 GMT
Issuer: GeoTrust, Inc., US
Fingerprint: 0b:11:76:de:db:4c:74:72:cb:01:49:7d:13:70:c2:f1:13:7b:cb:bf
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of 'https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/tags/1.2.0': Server certificate verification failed: issuer is not trusted (https://libjpeg-turbo.svn.sourceforge.net)
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: glibtoolize --copy --force autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory
.'
whence
/Users/ethan/Documents/ProjectX/PhotoPrint/libjpeg/libjpeg-turbo-builder-master/gas-preprocessor/gas-preprocessor.pl
DOING ARCH armv7
make: *** No rule to make target clean'. Stop. Configure armv7 configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: error: C compiler cannot create executables See
config.log' for more details.
Config failed!
I called funciton
DLLEXPORT tjscalingfactor* DLLCALL tjGetScalingFactors(int *numscalingfactors);
but I only get 1/1,1/2,1/4,1/8
static const tjscalingfactor sf[NUMSF]={
{2, 1},
{15, 8},
{7, 4},
{13, 8},
{3, 2},
{11, 8},
{5, 4},
{9, 8},
{1, 1},
{7, 8},
{3, 4},
{5, 8},
{1, 2},
{3, 8},
{1, 4},
{1, 8}
};
Hi dhoerl,
What's your solution for iOS 9 and the bitcode for app thinning?
Cheers
Philippe
Hi,
I got problems trying to use the Xcode project with Xcode 4.6-DP2:
1- The file "config.log" is missing (it shows in red in the Xcode project). Since it is used in the "Copy Bundle Resources" phase, the build phase and the script never gets a chance to run. I removed that missing file from that phase to try to proceed
2- The Run Script phase tries to run "scriptRunner", which fails with File Not Found, because the actual name of the script is "ScriptRunner" (with a capital "S"). I fixed it in the Run Script phase pane.
3- Script failure to "make clean":
+ make clean
+ 1> /dev/null
make: *** No rule to make target `clean'. Stop.
However, the script doesn't stop, so maybe this is OK
4- Script failure to "configure"
+ echo 'Configure armv7'
Configure armv7
+ ./configure --host arm-apple-darwin --with-gas-preprocessor --enable-static --disable-shared CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 LD=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 CFLAGS='-mfloat-abi=softfp -isysroot /Applications/Xcode46-DP2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -O3 -march=armv7 -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon' LDFLAGS='-mfloat-abi=softfp -isysroot /Applications/Xcode46-DP2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -march=armv7 -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon'
+ 1>> ../Log.configure
./ScriptRunner: line 128: ./configure: not found
+ [ 127 '!=' 0 ]
+ echo 'Config failed!'
Config failed!
+ exit 1
And here the script fails.
Please note that my intent was to try and build an armv7s slice for libjpeg-turbo. The current "official" 1.2.80 build only contains an armv7 slice.
Even if I manage to fix the issues reported above, I am not sure I can manage to generate a bona fide armv7s slice. Any help welcome.
The Project should be updated to Xcode7. Filter can't be compiled because of outdated Swift code .
Good day! Is there an example of using this library (Would you give it)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.