Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-09

Can't find unit INTERFACES

11 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Armando Paz

Hi.

I have downloaded (using cvs) the last version of lazarus for windows. I have downloaded "Free Pascal Compiler version 1.0.10 [2003/06/27] for i386" and the result of the "make command" has been OK.

But when I try to compile the initial "Project1" I get next "Messages":

syswin32.pp(5,1) Hint: Conditional I386 was set at startup in last
compilation of syswin32.pp
project1.lpr(6,13) Fatal: Can't find unit INTERFACES

And I do not get to compile... I have looked for information in list archive but it is offline at this moment, in google neither.

In "Compiler Options for Project: Project1" I have all field in blank except:
"Other Sources: (.pp/.pas
files)==$(LazarusDir)\lcl\;$(LazarusDir)\lcl\interfaces\$(LCLWidgetType)\"

Could someone help me?

Thanks.

--------------------------------------------------------- --- Armando Paz --- --- Debian (testing) GNU/Linux 2.4.20 --- --- Usuario Linux Registrado #189304 --- ---------------------------------------------------------

Reply by email

Mattias Gaertner
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…
Show quoted text 11 lines
Mattias Gaertner wrote: >Either your project didn't use the LCL package, or you found a bug. On >bug: Can you give more details about the project, or even send the lpi >file to me? > > > I was assuming this was related to the package bug that was recently found. Wasn't something said about compiler settings for things saved during that short buggy period might have been lost?

Yes. Probably this is here the case.

Show quoted text 7 lines
The project of course is CheckBook Tracker. Attached is the lpi from before I added the extra paths (I had just released version 1.0 and tarred up the sources for safekeeping, this is from that.) Keep in mind this project compiled just fine a few days ago. After CVS update it suddenly wouldn't until I added all the Lazarus source paths into the project compiler options. I also had to add the paths to all of the packages I use,

The lpi file shows no required packages for this project. If you add the LCL and your package to the dependencies in the project inspector, you can omit the biggest part of the search paths.

and to the packages include directory as well. However I'm not sure if the file broke _after_ the version attached or not... you tell me. The only other version I have is the one that I've already added compiler settings to the project manually.

Mattias

Reply by email

Mattias Gaertner
to Armando Paz: Hi. I have downloaded (using cvs) the last version of lazarus for windows. I have…
Show quoted text 20 lines
Hi. I have downloaded (using cvs) the last version of lazarus for windows. I have downloaded "Free Pascal Compiler version 1.0.10 [2003/06/27] for i386" and the result of the "make command" has been OK. But when I try to compile the initial "Project1" I get next "Messages": syswin32.pp(5,1) Hint: Conditional I386 was set at startup in last compilation of syswin32.pp project1.lpr(6,13) Fatal: Can't find unit INTERFACES And I do not get to compile... I have looked for information in list archive but it is offline at this moment, in google neither. In "Compiler Options for Project: Project1" I have all field in blank except: "Other Sources: (.pp/.pas files)==$(LazarusDir)\lcl\;$(LazarusDir)\lcl\interfaces\$(LCLWidgetType)\"

The "Other Sources" is only for the IDE, and is not given to the compiler. The compiler options dialog has a button "Show Options". This shows the command line parameters for the compiler. What does it show?

Mattias

Show quoted text 17 lines
Could someone help me? Thanks. -- --------------------------------------------------------- --- Armando Paz --- --- Debian (testing) GNU/Linux 2.4.20 --- --- Usuario Linux Registrado #189304 --- --------------------------------------------------------- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…
Mattias Gaertner wrote
The lpi file shows no required packages for this project. If you add the LCL and your package to the dependencies in the project inspector, you can omit the biggest part of the search paths.

Wow! Where'd that come from?!?

Seriously, never noticed that option - that kind of clears up my questions about how all these paths should get set.

Thanks!
-Tony

Reply by email

Tony
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…
Vincent Snijders wrote 15 lines
Hi, Check if the LCL Widget type is set to win32 in the first tab of the compiler options. Mattias, could this be added to the FAQ. Some question from me: - Why don't I have to set the path to the compiled LCL units in the compiler options dialog? Is it because the LCL is installed as package? - What is the purpose of the other sources paths? Vincent Snijders

This wasn't the problem for me - last night after a CVS update, I had the same problem. My problem was caused by my project having no paths set in the specific project options, and it wasn't pulling the default settings from the IDE.

I had to add:
$(LazarusDir)/lcl/units/;$(LazarusDir)/packager/units/;$(LazarusDir)/lcl/units/$(LCLWidgetType)/ to the "Other Unit Files"

and $(LazarusDir)/lcl/ to the "Other Sources" in the "Run + Compiler Options" after loading the project. I also had to manually give it paths in there for each of the custom packages my project uses.

-Tony

Reply by email

Tony
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…
Mattias Gaertner wrote 6 lines
Either your project didn't use the LCL package, or you found a bug. On bug: Can you give more details about the project, or even send the lpi file to me?

I was assuming this was related to the package bug that was recently found. Wasn't something said about compiler settings for things saved during that short buggy period might have been lost?

The project of course is CheckBook Tracker. Attached is the lpi from before I added the extra paths (I had just released version 1.0 and tarred up the sources for safekeeping, this is from that.) Keep in mind this project compiled just fine a few days ago. After CVS update it suddenly wouldn't until I added all the Lazarus source paths into the project compiler options. I also had to add the paths to all of the packages I use, and to the packages include directory as well. However I'm not sure if the file broke _after_ the version attached or not... you tell me. The only other version I have is the one that I've already added compiler settings to the project manually.

Thanks,

-Tony

<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<Version Value="2"/>
<General>
<ProjectType Value="Application"/>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
</Flags>
<MainUnit Value="0"/>
<ActiveEditorIndexAtStart Value="2"/>
<IconPath Value="./"/>
<TargetFileExt Value=""/>
<Title Value="CheckBook Tracker"/>
</General>
<Units Count="17">
<Unit0>
<CursorPos X="40" Y="27"/>
<EditorIndex Value="2"/>
<Filename Value="cbtracker.lpr"/>
<IsPartOfProject Value="True"/>
<Loaded Value="True"/>
<TopLine Value="20"/>
<UnitName Value="cbtracker"/>
<UsageCount Value="200"/>
</Unit0>
<Unit1>
<CursorPos X="31" Y="11"/>
<EditorIndex Value="0"/>
<Filename Value="unitmain.pas"/>
<ComponentName Value="FrmMain"/>
<IsPartOfProject Value="True"/>
<Loaded Value="True"/>
<ResourceFilename Value="unitmain.lrs"/>
<TopLine Value="1"/>
<UnitName Value="unitmain"/>
<UsageCount Value="200"/>
<Bookmarks Count="2">
<Item0 X="28" Y="4960" ID="0"/>
<Item1 X="52" Y="6465" ID="1"/>
</Bookmarks>
</Unit1>
<Unit2>
<CursorPos X="69" Y="78"/>
<Filename Value="unitbalance.pas"/>
<ComponentName Value="FrmBalance"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitbalance.lrs"/>
<TopLine Value="76"/>
<UnitName Value="unitbalance"/>
<UsageCount Value="200"/>
</Unit2>
<Unit3>
<CursorPos X="16" Y="314"/>
<Filename Value="unitsettings.pas"/>
<ComponentName Value="FrmSettings"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitsettings.lrs"/>
<TopLine Value="311"/>
<UnitName Value="unitsettings"/>
<UsageCount Value="200"/>
</Unit3>
<Unit4>
<CursorPos X="61" Y="15"/>
<Filename Value="unitstarting.pas"/>
<ComponentName Value="FrmStarting"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitstarting.lrs"/>
<TopLine Value="13"/>
<UnitName Value="unitstarting"/>
<UsageCount Value="200"/>
</Unit4>
<Unit5>
<CursorPos X="27" Y="1125"/>
<Filename Value="chkschedule.pas"/>
<IsPartOfProject Value="True"/>
<TopLine Value="1120"/>
<UnitName Value="chkschedule"/>
<UsageCount Value="200"/>
</Unit5>
<Unit6>
<CursorPos X="3" Y="1"/>
<Filename Value="license.txt"/>
<IsPartOfProject Value="True"/>
<SyntaxHighlighter Value="None"/>
<TopLine Value="1"/>
<UnitName Value="License"/>
<UsageCount Value="200"/>
</Unit6>
<Unit7>
<CursorPos X="31" Y="33"/>
<Filename Value="unitabout.pas"/>
<ComponentName Value="FrmAbout"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitabout.lrs"/>
<TopLine Value="18"/>
<UnitName Value="unitAbout"/>
<UsageCount Value="200"/>
</Unit7>
<Unit8>
<CursorPos X="92" Y="82"/>
<Filename Value="unitenterdep.pas"/>
<ComponentName Value="FrmEnterDep"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitenterdep.lrs"/>
<TopLine Value="74"/>
<UnitName Value="unitenterdep"/>
<UsageCount Value="200"/>
</Unit8>
<Unit9>
<CursorPos X="79" Y="147"/>
<EditorIndex Value="1"/>
<Filename Value="unitfrmenterwithdrawal.pas"/>
<ComponentName Value="FrmEnterWithdrawal"/>
<IsPartOfProject Value="True"/>
<Loaded Value="True"/>
<ResourceFilename Value="unitfrmenterwithdrawal.lrs"/> <TopLine Value="132"/>
<UnitName Value="unitfrmenterwithdrawal"/>
<UsageCount Value="200"/>
</Unit9>
<Unit10>
<CursorPos X="109" Y="54"/>
<Filename Value="unitsplash.pas"/>
<ComponentName Value="FrmSplash"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitsplash.lrs"/>
<TopLine Value="45"/>
<UnitName Value="unitsplash"/>
<UsageCount Value="200"/>
</Unit10>
<Unit11>
<CursorPos X="116" Y="9"/>
<Filename Value="constants.pas"/>
<IsPartOfProject Value="True"/>
<TopLine Value="1"/>
<UnitName Value="constants"/>
<UsageCount Value="200"/>
</Unit11>
<Unit12>
<CursorPos X="28" Y="33"/>
<Filename Value="unitbalancehist.pas"/>
<ComponentName Value="FrmBalanceHistory"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitbalancehist.lrs"/>
<TopLine Value="20"/>
<UnitName Value="unitbalancehist"/>
<UsageCount Value="200"/>
</Unit12>
<Unit13>
<CursorPos X="24" Y="56"/>
<Filename Value="unitcatreport.pas"/>
<ComponentName Value="FrmCatReport"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitcatreport.lrs"/>
<TopLine Value="39"/>
<UnitName Value="unitcatreport"/>
<UsageCount Value="200"/>
</Unit13>
<Unit14>
<CursorPos X="22" Y="28"/>
<Filename Value="unitdaterange.pas"/>
<ComponentName Value="FrmDateRange"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitdaterange.lrs"/>
<TopLine Value="25"/>
<UnitName Value="unitDateRange"/>
<UsageCount Value="200"/>
</Unit14>
<Unit15>
<CursorPos X="28" Y="38"/>
<Filename Value="ofx.pas"/>
<IsPartOfProject Value="True"/>
<TopLine Value="26"/>
<UnitName Value="ofx"/>
<UsageCount Value="200"/>
</Unit15>
<Unit16>
<CursorPos X="31" Y="33"/>
<Filename Value="unitconfirm.pas"/>
<ComponentName Value="FrmConfirm"/>
<IsPartOfProject Value="True"/>
<ResourceFilename Value="unitconfirm.lrs"/>
<TopLine Value="18"/>
<UnitName Value="UnitConfirm"/>
<UsageCount Value="186"/>
</Unit16>
</Units>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e bash -i -c '$(TargetCmdLine)'"/> </local>
</RunParams>
</ProjectOptions>
<CompilerOptions>
<Target>
<Filename Value="cbtracker"/>
</Target>
<SearchPaths>
<IncludeFiles Value="cbtpack/include/"/>
<OtherUnitFiles Value="$(LazarusDir)/lcl/units/;$(LazarusDir)/lcl/units/$(LCLWidgetType)/;$(LazarusDir)/components/units/;$(LazarusDir)/components/custom/;cbtpack/;/home/tony/Projects/tmpack/"/> <LCLWidgetType Value="gtk"/>
<SrcPath Value="$(LazarusDir)/lcl/;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)/"/> </SearchPaths>
<Parsing>
<SymantecChecking>
<DelphiCompat Value="True"/>
</SymantecChecking>
</Parsing>
<CodeGeneration>
<Generate Value="2"/>
<TargetProcessor Value="2"/>
<Optimizations>
<OptimizationLevel Value="2"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<UseLineInfoUnit Value="False"/>
<StripSymbols Value="True"/>
</Debugging>
</Linking>
<Other>
<Verbosity>
<ShowNotes Value="False"/>
<ShowHints Value="False"/>
<ShowGenInfo Value="False"/>
</Verbosity>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
</CONFIG>

Reply by email

Vincent Snijders

Hi,

Check if the LCL Widget type is set to win32 in the first tab of the compiler options.

Mattias,
could this be added to the FAQ.

Some question from me:
- Why don't I have to set the path to the compiled LCL units in the compiler options dialog? Is it because the LCL is installed as package?
- What is the purpose of the other sources paths?

Vincent Snijders

Show quoted text 6 lines
-----Oorspronkelijk bericht----- Van: Armando Paz Verzonden: dinsdag 16 september 2003 8:26 Hi. I have downloaded (using cvs) the last version of lazarus for windows.

I

have downloaded "Free Pascal Compiler version 1.0.10 [2003/06/27] for i386" and the result of the "make command" has been OK. But when I try to compile the initial "Project1" I get next

"Messages":

Show quoted text 13 lines
syswin32.pp(5,1) Hint: Conditional I386 was set at startup in last compilation of syswin32.pp project1.lpr(6,13) Fatal: Can't find unit INTERFACES And I do not get to compile... I have looked for information in list archive but it is offline at this moment, in google neither. In "Compiler Options for Project: Project1" I have all field in blank except: "Other Sources: (.pp/.pas

files)==$(LazarusDir)\lcl\;$(LazarusDir)\lcl\interfaces\$(LCLWidgetType) \"

Could someone help me? Thanks.

Reply by email

Mattias Gaertner
to Vincent Snijders
Show quoted text 7 lines
Hi, Check if the LCL Widget type is set to win32 in the first tab of the compiler options. Mattias, could this be added to the FAQ.

Yes, but what is the right answer?

Some question from me: - Why don't I have to set the path to the compiled LCL units in the compiler options dialog? Is it because the LCL is installed as package?

Yes. See Compiler options -> Inherited. The LCL package adds the neccessary paths.

- What is the purpose of the other sources paths?

It's an addition to "Other unit files". "other sources paths" is not given to the compiler.
Giving the compiler the path to sources and the compiled units can result in recompilation. That's why you often only exclude the path to the sources (.pp,.pas). But for find declaration you need the source path. Since we got packages, most source/unit paths are handled automatically. You can see them in the "inherited" tab of the compiler options.

Mattias

Show quoted text 39 lines
Vincent Snijders > -----Oorspronkelijk bericht----- > Van: Armando Paz > Verzonden: dinsdag 16 september 2003 8:26 > Hi. > > I have downloaded (using cvs) the last version of lazarus for windows. I > have downloaded "Free Pascal Compiler version 1.0.10 [2003/06/27] for > i386" and the result of the "make command" has been OK. > > But when I try to compile the initial "Project1" I get next "Messages": > > syswin32.pp(5,1) Hint: Conditional I386 was set at startup in last > compilation of syswin32.pp > > project1.lpr(6,13) Fatal: Can't find unit INTERFACES > > And I do not get to compile... I have looked for information in list > archive but it is offline at this moment, in google neither. > > In "Compiler Options for Project: Project1" I have all field in blank > except: > "Other Sources: (.pp/.pas > files)==$(LazarusDir)\lcl\;$(LazarusDir)\lcl\interfaces\$(LCLWidgetType) \" > > Could someone help me? > > Thanks. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…
Show quoted text 29 lines
Vincent Snijders wrote: >Hi, > >Check if the LCL Widget type is set to win32 in the first tab of the >compiler options. > >Mattias, >could this be added to the FAQ. > >Some question from me: >- Why don't I have to set the path to the compiled LCL units in the >compiler options dialog? Is it because the LCL is installed as package? >- What is the purpose of the other sources paths? > >Vincent Snijders > This wasn't the problem for me - last night after a CVS update, I had the same problem. My problem was caused by my project having no paths set in the specific project options, and it wasn't pulling the default settings from the IDE. I had to add: $(LazarusDir)/lcl/units/;$(LazarusDir)/packager/units/;$(LazarusDir)/lcl/ units/$(LCLWidgetType)/ to the "Other Unit Files" and $(LazarusDir)/lcl/ to the "Other Sources" in the "Run + Compiler Options" after loading the project. I also had to manually give it paths in there for each of the custom packages my project uses.

Either your project didn't use the LCL package, or you found a bug. On bug: Can you give more details about the project, or even send the lpi file to me?

Mattias

Reply by email

Armando Paz
to Vincent Snijders: Check if the LCL Widget type is set to win32 in the first tab of the compiler options.…

Hi.

Of course, The problem has been solved with your solution, I check the LCL widget and I set it to win32.

Thanks.

P.D.: My email server has been fallen two days... I am sorry

Vincent Snijders dijo lo siguiente el 16/09/2003 9:47:

Show quoted text 59 lines
Hi, Check if the LCL Widget type is set to win32 in the first tab of the compiler options. Mattias, could this be added to the FAQ. Some question from me: - Why don't I have to set the path to the compiled LCL units in the compiler options dialog? Is it because the LCL is installed as package? - What is the purpose of the other sources paths? Vincent Snijders >-----Oorspronkelijk bericht----- >Van: Armando Paz >Verzonden: dinsdag 16 september 2003 8:26 >Hi. > >I have downloaded (using cvs) the last version of lazarus for windows. I >have downloaded "Free Pascal Compiler version 1.0.10 [2003/06/27] for >i386" and the result of the "make command" has been OK. > >But when I try to compile the initial "Project1" I get next "Messages": >syswin32.pp(5,1) Hint: Conditional I386 was set at startup in last >compilation of syswin32.pp > >project1.lpr(6,13) Fatal: Can't find unit INTERFACES > >And I do not get to compile... I have looked for information in list >archive but it is offline at this moment, in google neither. > >In "Compiler Options for Project: Project1" I have all field in blank >except: >"Other Sources: (.pp/.pas > files)==$(LazarusDir)\lcl\;$(LazarusDir)\lcl\interfaces\$(LCLWidgetType) \" >Could someone help me? > >Thanks. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
--------------------------------------------------------- --- Armando Paz --- --- Debian (testing) GNU/Linux 2.4.20 --- --- Usuario Linux Registrado #189304 --- ---------------------------------------------------------

Reply by email