Sign in Join

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

Mailing lists / lazarus / 2011-11

Can't find unit LCLProc

9 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

David Emerson

I have a unit (sarala_text.pas) which is part of a package (sarala_tools) that uses the LCLProc unit.

My package file lists LCLBase as a requirement

I am able to compile the package from the package viewer

I can ctrl+click on the unit name LCLProc and it takes me there

I can ctrl+click on procedures defined in LCLProc and it takes me there

But when I try to compile my project which uses lists sarala_tools (and LCLBase) as requirements, then Lazarus says it can't find unit LCLProc. Why? >sob<

I recompiled fpc, with make clean all

Then I recompiled lazarus, with make clean all

Still nothing. What do I have to do? Why is this so bloody difficult? I've spent 2 hours and I'm completely stuck, cannot proceed with work.

Thanks for your guidance

~David.

Reply by email

Mattias Gaertner
to David Emerson
Show quoted text 20 lines
I have a unit (sarala_text.pas) which is part of a package (sarala_tools) that uses the LCLProc unit. My package file lists LCLBase as a requirement I am able to compile the package from the package viewer I can ctrl+click on the unit name LCLProc and it takes me there I can ctrl+click on procedures defined in LCLProc and it takes me there But when I try to compile my project which uses lists sarala_tools (and LCLBase) as requirements, then Lazarus says it can't find unit LCLProc. Why? >sob< I recompiled fpc, with make clean all Then I recompiled lazarus, with make clean all Still nothing. What do I have to do? Why is this so bloody difficult? I've spent 2 hours and I'm completely stuck, cannot proceed with work.

What Lazarus version?
Have you tried Run / Clean up build files?

Mattias

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 6 lines
2011/11/5 David Emerson > My package file lists LCLBase as a requirement I think the requirement should be LCL, not LCLBase.

If he uses only LCLProc then LCLBase is the right choice.

Mattias

Reply by email

David Emerson
to Mattias Gaertner: On Fri, 4 Nov 2011 22:22:53 -0700 What Lazarus version? Have you tried Run / Clean up…
Mattias Gaertner wrote 15 lines
On Fri, 4 Nov 2011 22:22:53 -0700 David Emerson wrote: > I have a unit (sarala_text.pas) which is part of a package (sarala_tools) > that uses the LCLProc unit. > My package file lists LCLBase as a requirement > I am able to compile the package from the package viewer > I can ctrl+click on the unit name LCLProc and it takes me there > I can ctrl+click on procedures defined in LCLProc and it takes me there > But when I try to compile my project which uses lists sarala_tools (and > LCLBase) as requirements, then Lazarus says it can't find unit LCLProc. Why? > I recompiled fpc, with make clean all > Then I recompiled lazarus, with make clean all What Lazarus version?

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 32710 4005530d-fff6-0310-9dd1-cebe43e6787f

Have you tried Run / Clean up build files?

I tried that, and I can compile/run my project.

However, even when that is possible, I still cannot "Build File" -- then it gives me the error again. So maybe the problem is with "Build File".

~David.

Reply by email

Mattias Gaertner
to David Emerson
[...] git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 32710 4005530d-fff6-0310-9dd1-cebe43e6787f

Maybe you should update.
Recently a better clean up was implemented.

> Have you tried Run / Clean up build files? I tried that, and I can compile/run my project.

Ok, so you probably had some bad ppu files lying around.

However, even when that is possible, I still cannot "Build File" -- then it gives me the error again. So maybe the problem is with "Build File".

What file do you want to compile and what are the parameters in "Configure build+run file"?

Mattias

Reply by email

David Emerson
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Sat, 5 Nov 2011 10:50:04 -0700 David Emerson wrote: >[...] > git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 32710 > 4005530d-fff6-0310-9dd1-cebe43e6787f Maybe you should update. Recently a better clean up was implemented.

I did so (to 33355) and the bug persists.

Show quoted text 5 lines
> > Have you tried Run / Clean up build files? > > I tried that, and I can compile/run my project. Ok, so you probably had some bad ppu files lying around.

I guess, although I hadn't actually tried to build the whole project previously, and even after that "build file" is still not working, which was the original source of trouble.

Show quoted text 5 lines
> However, even when that is possible, I still cannot "Build File" -- then it > gives me the error again. So maybe the problem is with "Build File". What file do you want to compile and what are the parameters in "Configure build+run file"?

I want to compile the file called sarala_text.pas which uses LCLProc (for utf8 string procs)

Even directly after building and running the project, which uses sarala_text.pas, I still cannot "build file" for sarala_text.pas.

One strange thing I am noticing is that the message window shows: /Docs/fpc/saralatools/sarala_text.pas(1,1) Fatal: Can't find unit LCLProc used by sarala_text

Although the LCLProc uses statement is not until line 12.

Configure build+run file...

tab Options: neither is checked.

tab Build:
- working directory is blank
- build command: $(CompPath) $(EdFile)
- scan for FPC messages and Make messages are both checked
- Macros: lots of stuff.....

tab Run:
- always build before run is checked
- working directory is blank
- run command: $MakeExe($(EdFile))
- Macros: lots of stuff.....

I believe all of these are the defaults, I don't believe I've ever made any changes here.

Thanks so much for your help, by the way!

~David.

Reply by email

Mattias Gaertner
to David Emerson
Show quoted text 59 lines
On Sat 5 Nov 2011, Mattias Gaertner wrote: > On Sat, 5 Nov 2011 10:50:04 -0700 > David Emerson wrote: > > >[...] > > git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 32710 > > 4005530d-fff6-0310-9dd1-cebe43e6787f > > Maybe you should update. > Recently a better clean up was implemented. I did so (to 33355) and the bug persists. > > > Have you tried Run / Clean up build files? > > > > I tried that, and I can compile/run my project. > > Ok, so you probably had some bad ppu files lying around. I guess, although I hadn't actually tried to build the whole project previously, and even after that "build file" is still not working, which was the original source of trouble. > > However, even when that is possible, I still cannot "Build File" -- then it > > gives me the error again. So maybe the problem is with "Build File". > > What file do you want to compile and what are the parameters in > "Configure build+run file"? I want to compile the file called sarala_text.pas which uses LCLProc (for utf8 string procs) Even directly after building and running the project, which uses sarala_text.pas, I still cannot "build file" for sarala_text.pas. One strange thing I am noticing is that the message window shows: /Docs/fpc/saralatools/sarala_text.pas(1,1) Fatal: Can't find unit LCLProc used by sarala_text Although the LCLProc uses statement is not until line 12. Configure build+run file... tab Options: neither is checked. tab Build: - working directory is blank - build command: $(CompPath) $(EdFile) - scan for FPC messages and Make messages are both checked - Macros: lots of stuff..... tab Run: - always build before run is checked - working directory is blank - run command: $MakeExe($(EdFile)) - Macros: lots of stuff..... I believe all of these are the defaults, I don't believe I've ever made any changes here.

The defaults include only the fpc default ppu files.

Try this:

build command: $(CompPath) "-Fu$(ProjUnitPath)" $(EdFile)

Thanks so much for your help, by the way!

You are welcome.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to David Emerson: I did so (to 33355) and the bug persists. I guess, although I hadn't actually tried to…
David Emerson wrote
I want to compile the file called sarala_text.pas which uses LCLProc (for utf8 string procs)

All utf-8 functionality from LCLProc is now in the package LazUtils in the unit lazutf8. The LCLProc routines now are kept only for backwards compatibility and they are all 1-liners which call LazUtils to do the real work. Just thought you might want to know.

Felipe Monteiro de Carvalho

Reply by email