Recent

Author Topic: Can't install Indy9  (Read 3735 times)

Mfbrowne

  • New member
  • *
  • Posts: 7
Can't install Indy9
« on: July 18, 2016, 05:58:21 pm »
Hello, I am brand new to Lazarus and to these forums, so if I have posted in the wrong place or have not posted correctly, please let me know.

I have downloaded Indy9, and I am not sure if it is the current version or not as I have seen indy10 mentioned. Anyway I am having trouble installing indy9 as I get the following error when I try and install it.

registerindycomponents.pp(17,2) Fatal: Cannot open include file "idcompilerdefines.inc"

So could someone assist me in getting this installed or assist me in the proper way to install it.

Thank you for any information you may provide.

Mike

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Can't install Indy9
« Reply #1 on: July 18, 2016, 06:44:56 pm »
Do you need Indy specifically, or do you just need some HTTP client, for example?

If the latter, FPC includes HTTP client units that can be used instead of Indy. No additional installation required.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Can't install Indy9
« Reply #2 on: July 18, 2016, 07:51:50 pm »
Forget about Indy9.

Download Indy10 from https://indy.fulgan.com/ZIP/

From inside the Lazarus IDE, in the 'Package' menu, open indylaz.lpk in the Lib directory

Compile it twice!

Then install it.

That's all you need to do

« Last Edit: July 18, 2016, 07:53:28 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Mfbrowne

  • New member
  • *
  • Posts: 7
Re: Can't install Indy9
« Reply #3 on: July 18, 2016, 09:38:16 pm »
No I don't need Indy Specifically, but thought it would be a good choice. Are there any demo or sample programs around to demonstrate the FPC Http methods.

I did finally get indy10 installed, but had a few problems getting rid of the indy9 install I tried.

Thank you for the prompt and informative responses. I am coming from a c++ environment so things are new to me here in Lazarus. Any thoughts on the best way to learn this new ide and pascal.

I would also like to run lazarus on a mac so does anyone have any pointers on how to install it and the best way to learn it on a mac. This will be my first time attempting a mac.

mike

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Can't install Indy9
« Reply #4 on: July 18, 2016, 09:53:26 pm »
I assume you're using Windows, where Laz includes FPC compiler and source. Look in this dir if so:

Lazarus\fpc\3.0.0\source\packages\fcl-web

FPC's http client can be used with Web Service Toolkit too. I use these in combination on Win, Mac and Ubuntu.

http://wiki.freepascal.org/Web_Service_Toolkit

Example apps that use WST and with an emphasis on Mac:

https://dl.dropboxusercontent.com/u/28343282/MacXPlatform/PascalDynLibs.html

For Mac, download fpc-3.0.0.intel-macosx.dmg and install it. The one thing that sometimes trips people up is that you have to install Apple's command line tools. That generally means installing Xcode, but you'll want that anyway. Free from Apple Mac App Store. Once you have Xcode, then follow FPC instructions on installing the command line tools. Or download installer for command line tools from Apple's dev site.

Then install Lazarus: lazarus-1.6-i686-macosx.dmg.

A critical bug in 1.6 needs a patch so Laz runs properly on Mac. See this simple patch:

http://mantis.freepascal.org/view.php?id=29694

Basically just comment out 5 lines of code and rebuild Laz.

-Phil

 

TinyPortal © 2005-2018