Recent

Author Topic: can't find interfaces  (Read 20446 times)

mbohn

  • Full Member
  • ***
  • Posts: 120
can't find interfaces
« on: August 26, 2009, 02:26:59 am »
I think I've got everything installed as required but when I compile the default project I get the following:

Quote
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by project1




skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #1 on: August 26, 2009, 11:50:28 am »
What Mac (intel or powerpc) do you use? and what .dmg file have you used for installation?

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: can't find interfaces
« Reply #2 on: August 26, 2009, 03:23:52 pm »
Intel.  It's a new MBP.

To be honest, I had to redo a lot of the installs due to confusion over Mac installs and the complications of Lazarus.

I've attached a list of what I've got in my Download folder which is sort of a "smoking gun":




skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #3 on: August 26, 2009, 03:53:23 pm »
let's try to reinstall lazarus and fpc

open Terminal and do the following commands:
Code: [Select]
cd /etc
sudo rm fpc.cfg

please download and install the following .dmg files:
ftp://ftp.hu.freepascal.org/pub/lazarus/fpc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/fpcsrc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/lazarus-0.9.27.21448-20090826-i386-macosx.dmg

let me know about results.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: can't find interfaces
« Reply #4 on: August 26, 2009, 08:19:47 pm »
let's try to reinstall lazarus and fpc

open Terminal and do the following commands:
Code: [Select]
cd /etc
sudo rm fpc.cfg

please download and install the following .dmg files:
ftp://ftp.hu.freepascal.org/pub/lazarus/fpc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/fpcsrc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/lazarus-0.9.27.21448-20090826-i386-macosx.dmg

let me know about results.
That went well until I tried to install fpc-2.2.4 where I get an error message that I need to install the Mac OSX developer tools first.  But I did that a couple of days ago, from the OSX disk that came with the Mac.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #5 on: August 26, 2009, 09:09:23 pm »
that's strange, can the error be ignored?

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: can't find interfaces
« Reply #6 on: August 26, 2009, 09:18:35 pm »
that's strange, can the error be ignored?
Don't think so.  I tried.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #7 on: August 26, 2009, 11:18:10 pm »
can you try to re-install XCode first?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: can't find interfaces
« Reply #8 on: August 26, 2009, 11:50:59 pm »
let's try to reinstall lazarus and fpc

open Terminal and do the following commands:
Code: [Select]
cd /etc
sudo rm fpc.cfg

please download and install the following .dmg files:
ftp://ftp.hu.freepascal.org/pub/lazarus/fpc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/fpcsrc-2.2.4-20090826-i386-macosx.dmg
ftp://ftp.hu.freepascal.org/pub/lazarus/lazarus-0.9.27.21448-20090826-i386-macosx.dmg

let me know about results.
That went well until I tried to install fpc-2.2.4 where I get an error message that I need to install the Mac OSX developer tools first.  But I did that a couple of days ago, from the OSX disk that came with the Mac.

Did you uncheck the option to install support for unix development? Please reinstall them and do not uncheck any of the default options.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: can't find interfaces
« Reply #9 on: August 27, 2009, 12:10:14 am »
can you try to re-install XCode first?
Do you mean to first delete the fpc.cfg file, then install Xcode, then install the 3 dmgs you listed?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: can't find interfaces
« Reply #10 on: August 27, 2009, 09:56:36 am »
can you try to re-install XCode first?
Do you mean to first delete the fpc.cfg file, then install Xcode, then install the 3 dmgs you listed?
You don't have to delete fpc.cfg. You only have to install Xcode, and then FPC 2.2.4. And I would suggest to use the official release from http://www.freepascal.org/download.var , because in previous threads I've read that the one packaged by the lazarus team misses some symbolic links in some cases.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #11 on: August 27, 2009, 10:10:26 am »
And I would suggest to use the official release from http://www.freepascal.org/download.var
how FPC installation script defines if XCode is installed?

Lazarus FPC packages doesn't miss any symbolic links. The problem described in another thread is about manual update to higher fpc version.
« Last Edit: August 27, 2009, 10:15:05 am by skalogryyz »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: can't find interfaces
« Reply #12 on: August 27, 2009, 12:49:42 pm »
And I would suggest to use the official release from http://www.freepascal.org/download.var
how FPC installation script defines if XCode is installed?
It checks for /usr/bin/gcc

Quote
Lazarus FPC packages doesn't miss any symbolic links. The problem described in another thread is about manual update to higher fpc version.
I don't think so, it was about 2.2.4: http://forum.lazarus.freepascal.org/index.php/topic,7209.15.html

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find interfaces
« Reply #13 on: August 27, 2009, 01:13:24 pm »
I don't think so, it was about 2.2.4: http://forum.lazarus.freepascal.org/index.php/topic,7209.15.html
it's only about cross-compiling. will be fixed.

native compiler should install without problems.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: can't find interfaces
« Reply #14 on: August 27, 2009, 04:10:52 pm »
Quote
Did you uncheck the option to install support for unix development? Please reinstall them and do not uncheck any of the default options.

That may have been it.  I reinstalled Xcode with the default selections then fpc and now Laz seems to work correctly now.

Thanks, guys!



Mark

 

TinyPortal © 2005-2018