Comments (3)
Your compiler wants libraries for Java compiled with -fPIC
flag.
Try:
make clean
make distclean
./configure --extra-cflags="-fPIC"
make java
from libimagequant.
os:Mac os 10.14.6
commond:
make clean
make distclean
./configure --extra-cflags="-fPIC"
make java
result:
javac org/pngquant/LiqObject.java
javah -o org/pngquant/LiqObject.h org.pngquant.LiqObject && touch org/pngquant/LiqObject.h
javac org/pngquant/PngQuant.java
javah -o org/pngquant/PngQuant.h org.pngquant.PngQuant && touch org/pngquant/PngQuant.h
javah -o org/pngquant/Image.h org.pngquant.Image && touch org/pngquant/Image.h
javah -o org/pngquant/Result.h org.pngquant.Result && touch org/pngquant/Result.h
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o pam.o pam.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o mediancut.o mediancut.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o blur.o blur.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o mempool.o mempool.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o kmeans.o kmeans.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o nearest.o nearest.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -c -o libimagequant.o libimagequant.c
ar rv libimagequant.a pam.o mediancut.o blur.o mempool.o kmeans.o nearest.o libimagequant.o
ar: creating archive libimagequant.a
a - pam.o
a - mediancut.o
a - blur.o
a - mempool.o
a - kmeans.o
a - nearest.o
a - libimagequant.o
gcc -g -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -mmacosx-version-min=10.7 -fPIC -mmacosx-version-min=10.7 -lm -I'/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/include/jni.h
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [libimagequant.jnilib] Error 2
from libimagequant.
The entire build has changed. Please file new bugs if the latest version has issues.
from libimagequant.
Related Issues (20)
- smarter color reducer? (considering visual similarity) HOT 2
- Duplicate transparency palette entry generated since v4.0.0 with some inputs HOT 1
- 2.18.0: build fails on linking HOT 5
- faster in c++ than in rust? HOT 1
- Could libimagequant be extended to more than 256 colours? HOT 1
- Please don't hide Cargo.lock HOT 2
- imagequant-sys: Makefile problem HOT 3
- keep alpha channel HOT 1
- libimagequant_sys: missing shared library HOT 5
- Generate c static library problem HOT 5
- Problems from Java developers
- Different results on ppc64le HOT 7
- Latest version doesn't appear to be compiled HOT 3
- Test failure on big-endian HOT 2
- Process images with premultiplied alpha HOT 2
- Some question about LISENCE. HOT 1
- The color channel of the palette, red and blue reverse,Only the following code is the correct color result HOT 4
- can not get the target .a file by use cargo build HOT 6
- Big resolution images crash the library
- latest version of libimagequant seems not be compiled on Windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libimagequant.