http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252018-04-05T07:25:45ZRedmineWt - Bug #6325: Can't find OpenSSL on Windowshttp://redmine.emweb.be/issues/6325?journal_id=198012018-04-05T07:25:45ZWim Dumonwim@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Hi,</p>
<p>Wt works with the 1.0 series of openssl, we haven't updated Wt yet to work with the newest openssl versions. It migh very well be that the library naming is the only thing that prevents it from just working.</p>
<p>We've seen openssl installations with a wild variety of library names. Wt allows you to set the library names through a cmake paramter, as you can read in WtFindSsl.txt. Have you tried to set SSL_LIB_NAMES=ssl and SSL_LIB_TOO_NAMES=crypto ?</p>
<p>We'll need to update our defaults to work with openssl 1.1 series.</p>
<p>Best regards,<br><br>
Wim.</p>
Wt - Bug #6325: Can't find OpenSSL on Windowshttp://redmine.emweb.be/issues/6325?journal_id=198022018-04-05T12:28:58ZSmart Networksinfo@smartnet.club
<ul></ul><p>Unfortunately, it doesn't work for release only version.</p>
<p>In block:<br><br>
@ IF (NOT SSL_LIB_NAMES)<br><br>
SET (SSL_LIB_NAMES ssleay32MD ssleay32)<br><br>
ENDIF (NOT SSL_LIB_NAMES)<br><br>
IF (NOT SSL_LIB_TOO_NAMES)<br><br>
SET (SSL_LIB_TOO_NAMES libeay32MD libeay32)<br><br>
ENDIF (NOT SSL_LIB_TOO_NAMES)<br><br>
MESSAGE (\"Looking for ssl: ${SSL_LIB_NAMES}, ${SSL_LIB_TOO_NAMES}\")<br><br>
FOREACH (l ${SSL_LIB_NAMES})<br><br>
LIST (APPEND SSL_LIB_DEBUG_NAMES \"${l}d\")<br><br>
ENDFOREACH()<br><br>
FOREACH (l ${SSL_LIB_TOO_NAMES})<br><br>
LIST (APPEND SSL_LIB_TOO_DEBUG_NAMES \"${l}d\")<br><br>
ENDFOREACH()@</p>
<p>You add 'd' suffix for debug version.</p>
<p>And then check for presence release <strong>AND</strong> debug versions</p>
<p>@ IF (SSL_INCLUDE_DIRS<br>
AND SSL_LIB_RELEASE<br>
AND SSL_LIB_DEBUG<br>
AND SSL_TOO_LIB_RELEASE<br>
AND SSL_TOO_LIB_DEBUG)@</p>
<p>Why don't you use standard FindOpenSSL?</p>
<p><a href="https://cmake.org/cmake/help/v3.11/module/FindOpenSSL.html" class="external">https://cmake.org/cmake/help/v3.11/module/FindOpenSSL.html</a></p>
Wt - Bug #6325: Can't find OpenSSL on Windowshttp://redmine.emweb.be/issues/6325?journal_id=198052018-04-08T02:54:59ZSmart Networksinfo@smartnet.club
<ul></ul><p>The same problem with ZLIB:</p>
<p><code>IF(ZLIB_INCLUDE AND ZLIB_LIB_RELEASE AND ZLIB_LIB_DEBUG)</code></p>
<p>To solve - use standard <a href="https://cmake.org/cmake/help/v3.11/module/FindZLIB.html" class="external">https://cmake.org/cmake/help/v3.11/module/FindZLIB.html</a></p>