Recent

Author Topic: Issue running my compiled simpleserver  (Read 1060 times)

dennis_uniwin

  • New Member
  • *
  • Posts: 10
Issue running my compiled simpleserver
« on: June 23, 2023, 10:53:05 am »
Hello,

I am trying to use the example simpleserver for the package fcl-web found in \lazarus\fpcsrc\packages\fcl-web\examples\simpleserver.
I can compile the example just fine, but when I try to run this I am getting the error that libmicrohttpd-10.dll can't be found. How do I solve this issue?
What have I missed  or not done?

Dennis

Чебурашка

  • Hero Member
  • *****
  • Posts: 593
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
Re: Issue running my compiled simpleserver
« Reply #1 on: June 23, 2023, 11:03:16 am »
Hello,

I am trying to use the example simpleserver for the package fcl-web found in \lazarus\fpcsrc\packages\fcl-web\examples\simpleserver.
I can compile the example just fine, but when I try to run this I am getting the error that libmicrohttpd-10.dll can't be found. How do I solve this issue?
What have I missed  or not done?

Dennis

Try copying the requested windows dll in the directory where is the executable you compiled. In this way the executable should find the requested dll when you run it.
Maybe the requested dll needs downloaded from the internet if is not available on your computer.
« Last Edit: June 23, 2023, 11:14:23 am by Чебурашка »
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Issue running my compiled simpleserver
« Reply #2 on: June 23, 2023, 11:25:50 am »
Did you enable:
Code: Pascal  [Select][+][-]
  1. { $DEFINE USEMICROHTTP}
  2.  
? i.e.: you remove the space between { and $? If yes, then you do need the libmicrohttpd library. Otherwise, it will use the default fphttpserver which doesn't depend on any external library.

dennis_uniwin

  • New Member
  • *
  • Posts: 10
Re: Issue running my compiled simpleserver
« Reply #3 on: June 27, 2023, 09:57:59 am »
I do not have the libmicrohttpd-10.dll on my pc. And I have been unable to find this in my source for the packages.
Disabling the USEMICROHTTP line did the trick I can now compile this.

 

TinyPortal © 2005-2018