Closed GoogleCodeExporter closed 9 years ago
This seems to be a long-standing deficiency in cmake: libtool automatically
sets the install_name correctly based on the prefix defined at compile-time,
but instead authors have to manually insert some boilerplate/magic for
INSTALL_NAME_DIR in some CMakeLists.txt or .cmake file
Original comment by dma...@gmail.com
on 29 Aug 2014 at 3:56
2.1.0 is the same (though it's libopenjp2.7.dylib not 2.6), and it's also the
same problematic result in the prebuilt binary download
(openjpeg-2.1.0-Darwin-i386.tar.gz)
Original comment by dma...@gmail.com
on 29 Aug 2014 at 4:05
Reproduced on my side.
I will provide a patch for this.
BTW, you shouldn't see /Users/mb312/tmp/junk/usr/local/lib/libopenjp2.6.dylib
but
/usr/local/lib/libopenjp2.6.dylib.
DESTDIR is only used as a staging directory. if you want to change the prefix,
you shall set CMAKE_INSTALL_PREFIX when configuring your build.
Original comment by m.darb...@gmail.com
on 18 Sep 2014 at 9:24
Original comment by m.darb...@gmail.com
on 18 Sep 2014 at 9:24
Provided patch shows the following output :
make
otool -D ./bin/libopenjp2.dylib
./bin/libopenjp2.dylib:
/Users/Matt/Dev/OpenJpeg/issue367/build/bin/libopenjp2.7.dylib
otool -L ./bin/opj_compress
./bin/opj_compress:
/Users/Matt/Dev/OpenJpeg/issue367/build/bin/libopenjp2.7.dylib (compatibility version 7.0.0, current version 2.1.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
DESTDIR=/Users/Matt/Dev/OpenJpeg/issue367/build/bin/install make install
otool -D ./bin/install/usr/local/lib/libopenjp2.dylib
./bin/install/usr/local/lib/libopenjp2.dylib:
/usr/local/lib/libopenjp2.7.dylib
otool -L ./bin/install/usr/local/bin/opj_compress
./bin/install/usr/local/bin/opj_compress:
/usr/local/lib/libopenjp2.7.dylib (compatibility version 7.0.0, current version 2.1.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
The patch only affects APPLE builds
Tested against test suite & report in CDash
Original comment by m.darb...@gmail.com
on 18 Sep 2014 at 9:02
Attachments:
This issue was closed by revision r2882.
Original comment by antonin
on 19 Sep 2014 at 9:30
Original issue reported on code.google.com by
matthew....@gmail.com
on 30 Jun 2014 at 10:53