On Mon, Oct 16, 2017 at 1:50 AM, Zac Medico <zmed...@gmail.com> wrote: > On Mon, Oct 16, 2017 at 1:18 AM, zyx <z...@gmx.us> wrote: >> On Mon, 2017-10-16 at 00:19 -0700, Zac Medico wrote: >>> This patch has been tested on Linux with openssl-1.0.2l and >>> openssl-1.1.0f. >> >> Hi, >> why the change in the CMakeLists.txt? It doesn't seem to be necessary, >> except of the fancy message about where the OpenSSL had been found, >> which might not be as that important, though nice to have for >> consistency with other library look ups. >> Bye, >> zyx > > Hi, > > Apparently there's some difference(s) between the ways that the > LIBCRYPTO_LIBRARIES and OPENSSL_LIBRARIES variables are set, because > without my CMakeLists.txt changes it fails to build as follows: > > cd build/tools/podofosign && /usr/bin/cmake -E cmake_link_script > CMakeFiles/podofosign.dir/link.txt --verbose=1 > /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -frecord-gcc-switches > -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual -Wwrite-strings > -Wredundant-decls -Wreorder -Wno-deprecated-declarations > -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic > CMakeFiles/podofosign.dir/podofosign.cpp.o -o podofosign -Lbuild/src > -Wl,-rpath,build/src: -lpodofo -lfontconfig -lfreetype -lz -lidn > -lcrypto -lcrypto -ljpeg -lpthread -lfreetype -lpng -lz -ltiff -lidn > -lcrypto -lcrypto -ljpeg -lpthread -lfreetype -lpng -ltiff > CMakeFiles/podofosign.dir/podofosign.cpp.o: In function `main': > podofosign.cpp:(.text.startup+0x8e8): undefined reference to > `OPENSSL_init_ssl' > collect2: error: ld returned 1 exit status > make[2]: *** [tools/podofosign/CMakeFiles/podofosign.dir/build.make:109: > tools/podofosign/podofosign] Error 1 > make[2]: Leaving directory 'build' > make[1]: *** [CMakeFiles/Makefile2:1851: > tools/podofosign/CMakeFiles/podofosign.dir/all] Error 2
In fact, this is all that I really needed to change in CMakeLists.txt: --- CMakeLists.txt (revision 1859) +++ CMakeLists.txt (working copy) @@ -499,6 +506,7 @@ ${LIBCRYPTO_LDFLAGS} ${LIBCRYPTO_LIBRARIES} ${LIBJPEG_LIBRARIES} + ${OPENSSL_LIBRARIES} ${PLATFORM_SYSTEM_LIBRARIES} ${stlport_libraries_if_use_stlport} ${FREETYPE_LIBRARIES} -- Thanks, Zac ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users