NO

Author Topic: Pelles-C and CURL  (Read 5453 times)

alderman

  • Guest
Pelles-C and CURL
« on: November 27, 2017, 12:16:31 AM »
Hello, Pelles friends

1- Can CURL be used in Pelles-C
2- Is there a CURL package for Pelles-C
3- How to convert if needed
4- How to add CURL to Pelles-C


Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1966
Re: Pelles-C and CURL
« Reply #1 on: November 27, 2017, 06:01:24 PM »
  • I have not tested, but I don't see any reason that should prevent the use of the MSVC precompiled version
  • Not yet
For points 3 & 4 I'm not sure to have understood what you mean.

alderman

  • Guest
Re: Pelles-C and CURL
« Reply #2 on: November 27, 2017, 09:57:53 PM »
  • I have not tested, but I don't see any reason that should prevent the use of the MSVC precompiled version
  • Not yet
For points 3 & 4 I'm not sure to have understood what you mean.

There are two libs with the same name, I mean this:
https://curl.haxx.se/

I found a curl built for LccWin32:
http://www.q-software-solutions.de/~frido/
(At the bottom) old but it may get well.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1966
Re: Pelles-C and CURL
« Reply #3 on: December 02, 2017, 06:33:49 PM »
This is a sample of use of a precompiled libcurl.
I compiled url2file demo using Stefan Kanthak libraries that you can download from here.
I included the relevant libraries in the example.
Note that the demo execute in the library folder so the executable can find the DLL.

I'll try to create a PellesC port when I'll have time
« Last Edit: December 02, 2017, 06:47:37 PM by frankie »

alderman

  • Guest
Re: Pelles-C and CURL
« Reply #4 on: December 02, 2017, 10:40:39 PM »
This is a sample of use of a precompiled libcurl.
I compiled url2file demo using Stefan Kanthak libraries that you can download from here.
I included the relevant libraries in the example.
Note that the demo execute in the library folder so the executable can find the DLL.

I'll try to create a PellesC port when I'll have time
I'll look at it. Thanks!
Interesting that you are thinking of port it to PellesC, I look forward to it.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1966
Re: Pelles-C and CURL
« Reply #5 on: February 18, 2019, 12:03:57 AM »
I wasn't aware that Curl was already tuned for PellesC!  :o
Anyway I produced a port, 32/64bits, availabe on github.
The sample is compiled with Windows Security Support Provider Interface (SSPI).
« Last Edit: February 18, 2019, 12:06:49 AM by frankie »

alderman

  • Guest
Re: Pelles-C and CURL
« Reply #6 on: February 18, 2019, 12:27:46 AM »
I wasn't aware that Curl was already tuned for PellesC!  :o
Anyway I produced a port, 32/64bits, availabe on github.
The sample is compiled with Windows Security Support Provider Interface (SSPI).
Awesome!
How do I install it in Pelles C?

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1966
Re: Pelles-C and CURL
« Reply #7 on: February 18, 2019, 11:59:24 AM »
How do I install it in Pelles C?
Go on github clicking this link.
There you can download a zip of the project, or clone it on your computer.
To install it on your system you have to copy lib, dll and header files in the correct directories:
  • Header files:
    Headers are in the directory 'include\Curl'.
    Copy the whole subdirectory 'Curl' under '$(PellesCDir)\Include'
  • 32bits development:
    All 32 bits binaries are under the directory 'X86'.
    • 32 bits libraries:
      Copy all library files '*.lib' from 'X86' to '$(PellesCDir)\Lib\Win'
    • 32bits DLL:
      Copy Dll's from 'X86' to '$(SystemRoot)\SysWOW64' (that normally is "C:\Windows\SysWOW64").
  • 64bits development:
    All 64 bits binaries are under the directory 'X64'.
    • 64 bits libraries:
      Copy all library files '*.lib' from 'X64' to '$(PellesCDir)\Lib\Win64'
    • 64bits DLL:
      Copy Dll's from 'X64' to '$(SystemRoot)\System32' (that normally is "C:\Windows\System32").
  • Executables:
    Depending on your OS/preferences, copy the 32bits executables from 'X86' directory, or the 64bits executables from 'X64' directory.
    Copy them to a directory listed in the system '$(PATH)' if you want have them available from command line.
« Last Edit: February 18, 2019, 12:07:34 PM by frankie »

alderman

  • Guest
Re: Pelles-C and CURL
« Reply #8 on: February 18, 2019, 12:21:20 PM »
How do I install it in Pelles C?
Go on github clicking this link.
There you can download a zip of the project, or clone it on your computer.
To install it on your system you have to copy lib, dll and header files in the correct directories:
  • Header files:
    Headers are in the directory 'include\Curl'.
    Copy the whole subdirectory 'Curl' under '$(PellesCDir)\Include'
  • 32bits development:
    All 32 bits binaries are under the directory 'X86'.
    • 32 bits libraries:
      Copy all library files '*.lib' from 'X86' to '$(PellesCDir)\Lib\Win'
    • 32bits DLL:
      Copy Dll's from 'X86' to '$(SystemRoot)\SysWOW64' (that normally is "C:\Windows\SysWOW64").
  • 64bits development:
    All 64 bits binaries are under the directory 'X64'.
    • 64 bits libraries:
      Copy all library files '*.lib' from 'X64' to '$(PellesCDir)\Lib\Win64'
    • 64bits DLL:
      Copy Dll's from 'X64' to '$(SystemRoot)\System32' (that normally is "C:\Windows\System32").
  • Executables:
    Depending on your OS/preferences, copy the 32bits executables from 'X86' directory, or the 64bits executables from 'X64' directory.
    Copy them to a directory listed in the system '$(PATH)' if you want have them available from command line.
THANKS!!
You saved hours of my time!