Comments (5)
I presume you're using one of the more recent versions of Kakadu. Take a look at this discussion:
https://sourceforge.net/p/iipimage/discussion/299493/thread/bb8ba9fd/
The solution seems to be to disable SSE3 by adding -DKDU_NO_SSSE3 to the C_OPT flags
from iipsrv.
Your suggestion was not relevant on this stage to our error. It is relevant later once following changes has been applied.
We are using Kakadu v. 7.5 and it looks there must be some changes in their code organisation. We have found that classes are organised in additional namespaces which were not used in KakaduImage.h
file.
Please see changes we have added to this file to successfully compile IIPServer with Kakadu 7.5
[vagrant@iipserver-dev-vm src]$ git diff KakaduImage.h
diff --git a/src/KakaduImage.h b/src/KakaduImage.h
index 6a2d056..366aeda 100644
--- a/src/KakaduImage.h
+++ b/src/KakaduImage.h
@@ -41,6 +41,8 @@
#define TILESIZE 256
+using namespace kdu_core;
+using namespace kdu_supp;
extern std::ofstream logfile;
from iipsrv.
OK, I've added an ifdef to enable these namespaces if using version 7.5. So, iipsrv should now compile without problems.
from iipsrv.
Hi Ruven,
The addition of
+using namespace kdu_core; +using namespace kdu_supp;
helped me get passed the issue mentioned here which I was also having.
Getting the following now:
g++ -DPACKAGE_NAME=\"iipsrv\" -DPACKAGE_TARNAME=\"iipsrv\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"iipsrv\ 1.0\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE=\"iipsrv\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GLOB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_LOG2=1 -DHAVE_SETENV=1 -DHAVE_EXT_POOL_ALLOCATOR_H=1 -DHAVE_STDCXX_0X=/\*\*/ -DHAVE_UNORDERED_MAP=/\*\*/ -DHAVE_TR1_UNORDERED_MAP=/\*\*/ -DHAVE_NAMESPACES=/\*\*/ -DHAVE_EXT_HASH_MAP=/\*\*/ -DHAVE_ISFINITE=1 -DHAVE_JPEG=1 -DHAVE_TIFF=1 -DHAVE_LCMS2_H=1 -DLCMS=1 -DHAVE_KAKADU=1 -DHAVE_PNG_H=1 -DHAVE_STREAMBUF_CHAR_TYPE=1 -DHAVE_FPOS=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FILENO_PROTO=1 -I. -I/home/makerpm/kakadu//managed/all_includes/ -I. -std=gnu++0x -g -O2 -MT KakaduImage.o -MD -MP -MF .deps/KakaduImage.Tpo -c -o KakaduImage.o KakaduImage.cc mv -f .deps/KakaduImage.Tpo .deps/KakaduImage.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -std=gnu++0x -g -O2 -o iipsrv.fcgi IIPImage.o TPTImage.o JPEGCompressor.o TileManager.o IIPResponse.o View.o Transforms.o Task.o OBJ.o FIF.o JTL.o TIL.o ICC.o CVT.o Zoomify.o DeepZoom.o SPECTRA.o PFL.o IIIF.o Watermark.o Main.o KakaduImage.o -llcms2 -lz -lm /home/makerpm/kakadu//apps/make/jpx.o /home/makerpm/kakadu//apps/make/jp2.o /home/makerpm/kakadu//apps/make/kdu_stripe_decompressor.o /home/makerpm/kakadu//apps/make/*.so -lpthread -lfcgi -ljpeg -ltiff -lm libtool: link: g++ -std=gnu++0x -g -O2 -o iipsrv.fcgi IIPImage.o TPTImage.o JPEGCompressor.o TileManager.o IIPResponse.o View.o Transforms.o Task.o OBJ.o FIF.o JTL.o TIL.o ICC.o CVT.o Zoomify.o DeepZoom.o SPECTRA.o PFL.o IIIF.o Watermark.o Main.o KakaduImage.o /home/makerpm/kakadu//apps/make/jpx.o /home/makerpm/kakadu//apps/make/jp2.o /home/makerpm/kakadu//apps/make/kdu_stripe_decompressor.o /home/makerpm/kakadu//apps/make/libkdu_v75R.so -llcms2 -lz -lpthread -lfcgi -ljpeg -ltiff -lm /home/makerpm/kakadu//apps/make/kdu_stripe_decompressor.o: In function `kd_supp_local::kdsd_tile::init(kd_supp_local::kdsd_component_state*, int)': kdu_stripe_decompressor.cpp:(.text+0x210e): undefined reference to `kd_supp_simd::ssse3_int16_to_uint8_rs_ilv1(unsigned char*, short**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x215c): undefined reference to `kd_supp_simd::ssse3_int16_to_uint8_rs_ilv3(unsigned char*, short**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x21b3): undefined reference to `kd_supp_simd::ssse3_int16_to_uint8_rs_ilv4(unsigned char*, short**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x21c1): undefined reference to `kd_supp_simd::ssse3_stripe_transfer_static_init()' kdu_stripe_decompressor.cpp:(.text+0x220b): undefined reference to `kd_supp_simd::ssse3_floats_to_floats_ilv1(float*, float**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x224f): undefined reference to `kd_supp_simd::ssse3_floats_to_uint8_ilv1(unsigned char*, float**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x227a): undefined reference to `kd_supp_simd::ssse3_floats_to_uint8_ilv3(unsigned char*, float**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x22a5): undefined reference to `kd_supp_simd::ssse3_floats_to_uint8_ilv4(unsigned char*, float**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x2333): undefined reference to `kd_supp_simd::ssse3_int16_to_int16_ilv1(short*, short**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x235d): undefined reference to `kd_supp_simd::ssse3_floats_to_int16_ilv1(short*, float**, int, int, int, bool, bool, int)' kdu_stripe_decompressor.cpp:(.text+0x2399): undefined reference to `kd_supp_simd::ssse3_int32_to_int16_rs_ilv1(short*, int**, int, int, int, bool, bool, int)' collect2: ld returned 1 exit status make[1]: *** [iipsrv.fcgi] Error 1 make[1]: Leaving directory `/home/makerpm/iipsrv/src'
Gonna try disabling SSE3 as you suggested
from iipsrv.
Yup, disabling SSE3 makes it compile correctly
from iipsrv.
Related Issues (20)
- Question: Manifest.json HOT 2
- Options build on Alma 9 CentOS HOT 3
- feature suggestion: per user watermark HOT 11
- feature suggestion: per image MAX_LAYERS HOT 11
- IIIF info.json uri of @id change to https HOT 2
- When will the next version be released HOT 4
- Can't disable webp support HOT 1
- is it possible to change dpi? HOT 2
- [question] jpg support HOT 1
- Questions related with memcached, OpenJPEG and Kakadu HOT 7
- suggestion: do not require webservers and firefox in DEB HOT 2
- fails on file processed with vips, but works if png used as intermediary HOT 5
- Full image loading without watermark HOT 41
- CORS header not always present HOT 3
- No DPI in JPEG files generated by IIP HOT 10
- Compiling with Kakadu 8.3 HOT 5
- FastCGI HOT 1
- How to test? HOT 5
- File names with comma no longer work HOT 4
- Deepzoom with non-pyramidal tiled TIFF HOT 4
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 iipsrv.