Help: cannot open input file 'libssl.lib'

10 views
Skip to first unread message

Budyanto Dj.

unread,
Mar 21, 2026, 12:46:46 PM (11 hours ago) Mar 21
to Harbour Users
Hello Harbour Users,

1) I downloaded the latest source of Harbour and build it using MSVC 2017.

2) For the most part, the build process was good. However in contrib/hbssl there is these errors: (shown in red below)

...
X:\software\harbour202603\bin\win\msvc\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbssl/hbssl.hbp @hbpost
hbmk2: Target up to date: ..\lib\win\msvc\hbssls.lib
   Creating library ..\lib\win\msvc\libeay32.lib and object ..\lib\win\msvc\libeay32.exp
hbmk2: Created import library: ..\lib\win\msvc\libeay32.lib <= X:\Software\OpenSSL\libeay32.dll
   Creating library ..\lib\win\msvc\ssleay32.lib and object ..\lib\win\msvc\ssleay32.exp
hbmk2: Created import library: ..\lib\win\msvc\ssleay32.lib <= X:\Software\OpenSSL\ssleay32.dll
hbmk2: Target up to date: ..\lib\win\msvc\hbssl.lib
X:\software\harbour202603\bin\win\msvc\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbssl/hbssl.hbp @hbpost ../contrib/hbssl/hbssl.hbc
LINK : fatal error LNK1181: cannot open input file 'libssl.lib'
hbmk2[hbssl]: Error: Running dynamic lib link command. 1181
hbmk2[hbssl]: Exit status: 7: failed in final assembly (linker or library manager)

3) Attempting to solve the error by downloading OpenSSL ver 3_6_1.
Some more *.lib created, but the error persists:

...
X:\software\harbour202603\bin\win\msvc\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbssl/hbssl.hbp @hbpost
hbmk2: Target up to date: ..\lib\win\msvc\hbssls.lib
   Creating library ..\lib\win\msvc\libcrypto-3.lib and object ..\lib\win\msvc\libcrypto-3.exp
hbmk2: Created import library: ..\lib\win\msvc\libcrypto-3.lib <= X:\Software\OpenSSL_3_6_1\bin\libcrypto-3.dll
   Creating library ..\lib\win\msvc\libssl-3.lib and object ..\lib\win\msvc\libssl-3.exp
hbmk2: Created import library: ..\lib\win\msvc\libssl-3.lib <= X:\Software\OpenSSL_3_6_1\bin\libssl-3.dll
hbmk2: Target up to date: ..\lib\win\msvc\hbssl.lib
X:\software\harbour202603\bin\win\msvc\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbssl/hbssl.hbp @hbpost ../contrib/hbssl/hbssl.hbc
LINK : fatal error LNK1181: cannot open input file 'libssl.lib'
hbmk2[hbssl]: Error: Running dynamic lib link command. 1181
hbmk2[hbssl]: Exit status: 7: failed in final assembly (linker or library manager)

Please advise how to solve this problem.
(I tried to search this group, but failed to find one.)

regards,
budyanto

Budyanto Dj.

unread,
Mar 21, 2026, 12:57:46 PM (11 hours ago) Mar 21
to harbou...@googlegroups.com
Additional info:
Environment vars used are as follows:
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_BUILD_CONTRIBS=
REM 20260321 was set HB_WITH_OPENSSL=X:\Software\OpenSSL\include
set HB_WITH_OPENSSL=X:\Software\OpenSSL_3_6_1\include
set HB_WITH_CURL=X:\Software\curl\include
set HB_STATIC_OPENSSL=yes
set HB_STATIC_CURL=yes
set HB_COMPILER=msvc
--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/caf58ccd-b7f9-4099-a021-11ce73ab07a8%40csacomputer.com.

Reply all
Reply to author
Forward
0 new messages