Recent

Author Topic: Mojave - {$ERROR wrong interfaces source}  (Read 2429 times)

alex_step

  • Newbie
  • Posts: 5
Mojave - {$ERROR wrong interfaces source}
« on: February 23, 2020, 01:18:13 am »
How to fix this?
Quote
Compile package LCL 2.0.6: Exit code 1, Errors: 1
interfaces.pas(23,2) Error: User defined: wrong interfaces source

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #1 on: February 23, 2020, 01:56:56 pm »
What were you doing to cause the error? You haven't provided any details to help diagnose your issue.

I'll assume, in the absence of any information, that you were trying to build Lazarus in which case try:

Code: [Select]
make LCL_PLATFORM=cocoa CPU_TARGET=x86_64 bigide

If you're building Lazarus from within the IDE:

* In Project > Project Options: "Config and Target" section set the "Target CPU family" to be "x86_64"
* In Project > Project Options: "Additions and Overrides" section click on the "Set LCLWidgetType" pulldown and set the value to "Cocoa".

If that's not your problem, then you're going to have to tell us what you were doing to cause the error, although it is probably related to the settings outlined above.

alex_step

  • Newbie
  • Posts: 5
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #2 on: February 23, 2020, 05:27:02 pm »
Sure, I getting this error while build in Lazarus IDE  ::)
Screenshot ->http://piccy.info/view3/13671697/c73b64e953167d7a1180f9c0d1beb470/
Quote
* In Project > Project Options: "Config and Target" section set the "Target CPU family" to be "x86_64"
=> changing from "Default" to "x86_64"
Quote
* In Project > Project Options: "Additions and Overrides" section click on the "Set LCLWidgetType" pulldown and set the value to "Cocoa"
=>this option was set already

Nothing changes, still getting error
The Messages listing in attachment

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #3 on: February 23, 2020, 05:37:06 pm »
user defined means user defined. It is a convenience switch for sourcecode in one of your own libraries or third party code. NOT FPC, unless someone was naughty and forgot to remove it.
Specialize a type, not a var.

alex_step

  • Newbie
  • Posts: 5
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #4 on: February 23, 2020, 05:50:52 pm »
Thaddy, do You know the way how to fix it? (may be third party but not my own library(es))

But it looks like this string is in the Interfaces LCL (see on screenshot)

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #5 on: February 23, 2020, 06:05:03 pm »
{$error user defined xxx} comes with a unit name and a line number, so you can fix that yourself....
Specialize a type, not a var.

alex_step

  • Newbie
  • Posts: 5
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #6 on: February 23, 2020, 06:23:38 pm »
So, how to fix it?
ps I'm not programmer at all, I just need to build the project from GitHub... :(
« Last Edit: February 23, 2020, 06:25:42 pm by alex_step »

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #7 on: February 23, 2020, 06:37:39 pm »
That project is specifically for the Cocoa  widgetset. Any other platform or widgetset is incompatible
Specialize a type, not a var.

alex_step

  • Newbie
  • Posts: 5
Re: Mojave - {$ERROR wrong interfaces source}
« Reply #8 on: February 23, 2020, 06:46:09 pm »
I don't understand. The "Cocoa" was chosen in project' properties...

upd. The compilation success if I choose the "Carbon" but not "Cocoa" => is it acceptable OR I need to find the way to use Cocoa?..
« Last Edit: February 23, 2020, 07:09:44 pm by alex_step »

 

TinyPortal © 2005-2018