ruven / iipsrv

iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images.
https://iipimage.sourceforge.io
GNU General Public License v3.0
292 stars 115 forks source link

Question: How to add Kakadu support in Visual Studio 2022? #268

Open manmeetsingh-sdm opened 6 months ago

manmeetsingh-sdm commented 6 months ago

Hi

We are using IIPsrv 0.9.9 and planning to upgrade to latest version. We have kakadu license but facing issue in adding kakadu support in latest version of IIPsrv source code using visual studio 2022 IDE.

Can you please tell me how to do the same or provide any reference specific to Windows env & Visual Studio 2022?

Regards Manmeet

ruven commented 5 months ago

I haven't actually tried this myself, so this may not work 100%, but it should be quite straightforward:

Define HAVE_KAKADU and HAVE_KAKADUMETANODE (if using Kakadu 7A or later) in Visual Studio. Then make sure you add a number of object files generated by the Kakadu build process to the iipsrv build:

jpx.o jp2.o kdu_stripe_decompressor.o

plus a number of others which will depend on your config and version: ssse3_stripe_transfer.o (if SSE3 enabled) avx2_stripe_transfer.o (if AVX2 enabled) kdu_client_window.o (if this exists) supp_local.o (if this exists)

Then to run iipsrv, make you copy across the Kakadu library dll to the iipsrv runtime folder