Recent

Author Topic: Fatal: Can't find unit Interfaces  (Read 21326 times)

Tobi

  • Guest
Fatal: Can't find unit Interfaces
« on: February 18, 2006, 06:11:52 pm »
Hi

My Dad had spent at least 10 hours in installing Lazarus, because I need Delphi for school, and I can start Lazarus, but I can't compile my project, always the Error Message
(http://www.roggnet.de/ittendorf/downloads/b.png)
and if I want to define the path he says the file would not exist.
Even though I can select it in the Options Menu file browser!

Please help,
Tobi

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Fatal: Can
« Reply #1 on: February 18, 2006, 08:51:10 pm »
First: I cannot open see the image. Is the server down?

Seconds: How did you install lazarus? What files (exact names please) did you install? Did you install multiple versions of fpc?

There should be a symlink in /usr/local/bin to /usr/local/lib/fpc/2.0.2/ppcppc. Is it there?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Fatal: Can
« Reply #2 on: February 18, 2006, 11:32:04 pm »
Image is visible now.

Anonymous

  • Guest
RE: Fatal: Can
« Reply #3 on: February 21, 2006, 10:39:19 pm »
Find the file interfaces.pp
inlcude the directory in your search path.

My opinion that Lazarus is very weak in finding packages. Good luck!

--Joris

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 211
    • http://www.lazarus.freepascal.org
RE: Fatal: Can
« Reply #4 on: February 22, 2006, 12:04:56 am »
First of all: NEVER add the path to interfaces.pp.
Doing that will give you a lot more difficult errors.

The error message is probably misleading.
Not interfaces.pp is missing, but interfaces.ppu.

See http://wiki.lazarus.freepascal.org/index.php/Lazarus_Faq#.22Cannot_find_Unit_interfaces.22._How_can_I_solve_this.3F

Tobi

  • Guest
Fatal: Can't find unit Interfaces
« Reply #5 on: April 01, 2006, 11:19:18 am »
The interesting thing is that when I create a new application and want to compile it it shows me the error shown above in my first entry. But when I put something onto my form and want to compile it then it shows me this error:
(http://www.roggnet.de/ittendorf/downloads/fehler.png)
He opens the interfaces.pp unit, finds an error in the comment (how is that possible ?????) and the output says he can't find the unit interfaces...  :cry:

Please help,
Tobi

kalle_19

  • New Member
  • *
  • Posts: 15
Fatal: Can't find unit Interfaces
« Reply #6 on: January 06, 2007, 05:19:17 pm »
I have the exact same problem, but i get the error in 11, 34 :( :(

Phil

  • Hero Member
  • *****
  • Posts: 2737
Fatal: Can't find unit Interfaces
« Reply #7 on: January 07, 2007, 12:22:32 am »
Quote from: "kalle_19"
I have the exact same problem, but i get the error in 11, 34 :( :(


If you get the "Can't find unit Interfaces" error when compiling a project with Lazarus, this usually means that the widgetset hasn't been compiled yet. Are you working with a snapshot of Lazarus? If so, it comes with the GTK widgetset already built since this is what Lazarus itself was built with on OS X and the default widgetset for a new project is GTK.

If you selected a different widgetset for your project (for example, Carbon) in Project | Compiler Options, then you need to build the widgetset. Use Tools | Configure, set everything except "Build LCL" to None, select the widgetset to build, then click Build. (When done, it's a good idea to set the widgetset back to GTK, then click Save settings.)

I often get this error if I forget to build the Carbon and Qt widgetsets after installing a new snapshot of Lazarus and then try to compile with one of those widgetsets.

kalle_19

  • New Member
  • *
  • Posts: 15
Fatal: Can't find unit Interfaces
« Reply #8 on: January 07, 2007, 12:35:02 pm »
No, i havet changed the widgetset. And when I try to recomplie lazarus I get error GNU make 18...

Edit: When i tryed rebuilding lcl:
Code: [Select]

[TExternalToolList.Run] CmdLine="/usr/bin/make clean all -w" WorkDir="/usr/local/share/lazarus/lcl"
make: Entering directory `/usr/local/share/lazarus/lcl'
Makefile:28: *** You need the GNU utils package to use this Makefile.  Stop.
make: Leaving directory `/usr/local/share/lazarus/lcl'
TExternalToolList.Run Exception: there was an error
TMainIDE.DoBuildLazarus: Build Lazarus without linking failed.



And this is what I get when i try to complie an emptty form:
Code: [Select]

[TMainIDE.DoRunProject] A
TMainIDE.DoInitProjectRun A True 0
TMainIDE.DoInitProjectRun B
TMainIDE.DoSaveProject End
TCompiler.Compile WorkingDir="/tes/" CompilerFilename="/usr/local/bin/ppc386" CompilerParams=" -S2cgi -OG1 -gl -WG -vewnhi -l -Fl/usr/X11R6/lib/ -Fl/sw/lib/ -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/gtk/ -Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu. -dLCL -dLCLgtk /tes/project1.lpr"
[TCompiler.Compile] CmdLine="/usr/local/bin/ppc386  -S2cgi -OG1 -gl -WG -vewnhi -l -Fl/usr/X11R6/lib/ -Fl/sw/lib/ -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/gtk/ -Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu. -dLCL -dLCLgtk /tes/project1.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.1.1 [2007/01/03] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Darwin for i386
Compiling /tes/project1.lpr
Compiling unit1.pas
Assembling unit1
interfaces.pp(11,34) Error: Assembler as not found, switching to external assembling
interfaces.pp(11,34) Fatal: There were 1 errors compiling module, stopping



 :(

Phil

  • Hero Member
  • *****
  • Posts: 2737
Fatal: Can't find unit Interfaces
« Reply #9 on: January 07, 2007, 07:34:47 pm »
Quote from: "kalle_19"

Makefile:28: *** You need the GNU utils package to use this Makefile.  

Assembling unit1
interfaces.pp(11,34) Error: Assembler as not found, switching to external assembling



Looks like you don't have the Apple Developer Tools installed.

Did you follow these instructions on the Lazarus wiki?

http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips

If you install the FPC and Lazarus snapshots, you shouldn't have to rebuild anything to get started.

kalle_19

  • New Member
  • *
  • Posts: 15
Fatal: Can't find unit Interfaces
« Reply #10 on: February 13, 2007, 08:48:33 pm »
I had the same problem for a time, and my solution was:
1. Switch to tcsh in X11 (couldn't use sudo in bash)
2. Start lazarus with sudo
3. Create project map inside /lazarus-folder

Hope that helps!
:)

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
Fatal: Can't find unit Interfaces
« Reply #11 on: June 15, 2008, 06:04:02 pm »
I'm experiencing this problem too, but ... when creating a New project; all is well and works great.
I only ran into this with a (simple) Delphi project that I converted and tried to compile with Lazarus ... (still reading up and hoping to find an answer)
Oh I'm using a daily build and Carbon as Interface.

[Edit]

As far as I can see, the path for the units for that particular converted Delphi project is somehow not (properly) included.

If I make a new project and duplicate all the compiler options from that to the converted Delphi project and then compare the "Show Options", then I still see two totally different compiler options ... not sure where this is stored on disk or in what file ... :(

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
Fatal: Can't find unit Interfaces
« Reply #12 on: June 15, 2008, 06:57:36 pm »
OK, somehow the "real" compiler options are not [always] displayed properly in the compiler options window.

For example, if I start a new project in Lazarus, the Compiler Options (FI, FU) are right away set right. However the Compiler Options window is not showing any of it. When you click the "Show Options" button, you will see the FU and FI paths though. Jot them down (or copy them to a text editor).

Next thing I had to do was to close the new project, and open the converted Delphi project and manually add FU and FI and now the project compiles.

Is this to be considered a bug?

(Daily build 0.9.25 beta, Date 6/10/08, fpc 2.2.3, svn 15373, i386-darwin-carbon (alpha))

 

TinyPortal © 2005-2018