Robert Osfield ha scritto:
Hi Csaba,
On Sun, Nov 2, 2008 at 6:19 PM, Csaba Halász <[EMAIL PROTECTED]> wrote:
Hi for the last time today,
TIFF library optionally depends on JPEG and ZLIB, but the build system
doesn't handle that.
Could you explain this, as it sounds like your TIFF library is rather
at odds with the rest of the world - I can't see a reason why a TIFF
library would ever like to JPEG and ZLIB libraries.
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
I have the same problem,
I use to build my own depemdencies win32 package from source using a
CMake (I use MSVC 7.1, so weiblen pre packaged are not suitable)
I am using tiff 3.7.4
I have resolved my problem in a different way, just adding the zip and
jpeg libraries to the link lines.
As thyey are statically linked, they should not harm too much if not needed.
In case, we could subject it to an advanced option disabled by default
I did not test Csaba patch, in case you prefer that way, I can test to
see if it solves the problem also in my case.
I am usising this pathch for building osg with my deps since 2.4
I attach the tiff plugin modified Cmakelists and the patch (extracted
with svn tortoise)
Luigi
INCLUDE_DIRECTORIES( ${TIFF_INCLUDE_DIR} )
SET(TARGET_SRC ReaderWriterTIFF.cpp )
#SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY)
SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY ZLIB_LIBRARY JPEG_LIBRARY)
#### end var setup ###
SETUP_PLUGIN(tiff)
Index: src/osgPlugins/tiff/CMakeLists.txt
===================================================================
--- src/osgPlugins/tiff/CMakeLists.txt (revision 8423)
+++ src/osgPlugins/tiff/CMakeLists.txt (working copy)
@@ -2,7 +2,8 @@
SET(TARGET_SRC ReaderWriterTIFF.cpp )
-SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY)
+#SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY)
+SET(TARGET_LIBRARIES_VARS TIFF_LIBRARY ZLIB_LIBRARY JPEG_LIBRARY)
#### end var setup ###
SETUP_PLUGIN(tiff)
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org