Recent

Author Topic: Lazarus cannot find IdMessageBuilder unit  (Read 1459 times)

Wai-kit

  • New Member
  • *
  • Posts: 12
Lazarus cannot find IdMessageBuilder unit
« on: January 04, 2021, 02:33:14 pm »
I have found this excellent article https://www.indyproject.org/2008/01/16/new-html-message-builder-class/ on how to send an email in HTML.

I have added IdMessageBuilder unit to my uses clause.
Although I have indylaz.lpk package (v 10.6.2) installed, I get this error: 'Cannot find IdMessageBuilder used by...' when I try to compile.
Does somebody know what the problem is and how do I fix this?

Cheers,
Wai
Latest setup: Lazarus 2.0.10/FPC 3.2.0 installed using Fpcupdeluxe
on Windows 10 professional

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: Lazarus cannot find IdMessageBuilder unit
« Reply #1 on: January 04, 2021, 04:57:09 pm »
Are you installing Indy manually by compiling indylaz directly? Or are you installing Indy by using Lazarus' OPM?  If you are not installing by OPM, I suggest you try that instead.  Otherwise, you probably just don't have your search paths configured properly so the compiler can find Indy's source files.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

Wai-kit

  • New Member
  • *
  • Posts: 12
Re: Lazarus cannot find IdMessageBuilder unit
« Reply #2 on: January 04, 2021, 05:36:28 pm »
I have installed these 3 ways:
1. fpcupdeluxe
2. manual
3. OPM

None of them fixed the problem.

Since indylaz.lpk installed without errors, I think that my search paths are configured correctly. All the design-time components
are available in the component palette.

Latest setup: Lazarus 2.0.10/FPC 3.2.0 installed using Fpcupdeluxe
on Windows 10 professional

balazsszekely

  • Guest
Re: Lazarus cannot find IdMessageBuilder unit
« Reply #3 on: January 04, 2021, 06:26:17 pm »
I believe this is a bug in the lazarus package system. It happened before, unfortunately nobody knows why.
As a quick fix, just add IdMessageBuilder to indylaz.lpk, rebuild the package, then your project.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Lazarus cannot find IdMessageBuilder unit
« Reply #4 on: January 05, 2021, 09:00:10 am »
Does somebody know what the problem is and how do I fix this?

Did you add the IndyLaz package as a dependency to your project?

Wai-kit

  • New Member
  • *
  • Posts: 12
Re: Lazarus cannot find IdMessageBuilder unit
« Reply #5 on: January 05, 2021, 11:13:05 am »
I believe this is a bug in the lazarus package system. It happened before, unfortunately nobody knows why.
As a quick fix, just add IdMessageBuilder to indylaz.lpk, rebuild the package, then your project.

That solved the issue. Thanks.
Latest setup: Lazarus 2.0.10/FPC 3.2.0 installed using Fpcupdeluxe
on Windows 10 professional

 

TinyPortal © 2005-2018