Can't find unit LCLType and LCLProc lazarus / 13-General ---------------------------------------------------------------------- DanNineOne · 2009-08-23 09:48 I am using lazarus 0.9.29 on ubuntu, whenever I try to rebuild the IDE I get errors like: Can't find unit LCLProc used by OpenGLContext, Can't find unit Graphics used by TASeries and Can't find unit LCLType used by ??? Whenever I try to compile a project I get messages like: Can't find unit LResources used by test. Please help ---------------------------------------------------------------------- Vincent Snijders · 2009-08-23 17:08 Some debugging suggestions: * Is your lazarus directory correct? * Is the LCL compiled with the same version of fpc as you are currently using? ---------------------------------------------------------------------- DanNineOne · 2009-08-26 09:07 Quote from: Vincent Snijders on August 23, 2009, 07:08:24 pmSome debugging suggestions: * Is your lazarus directory correct? * Is the LCL compiled with the same version of fpc as you are currently using? Sorry, I don't know how to check any of the two above, could you please tell me? ---------------------------------------------------------------------- Vincent Snijders · 2009-08-26 09:21 Lazarus directory: Directory with source files with ide and lcl sub directory. You can change the directory where Lazarus is looking for in the Environment -> Options -> Path. How did you install Lazarus? What is the compiler path in the same options window as above? Can you compile a simple LCL application without errors? ---------------------------------------------------------------------- DanNineOne · 2009-08-26 11:08 Quote from: Vincent Snijders on August 26, 2009, 11:21:30 amLazarus directory: Directory with source files with ide and lcl sub directory. You can change the directory where Lazarus is looking for in the Environment -> Options -> Path. How did you install Lazarus? What is the compiler path in the same options window as above? Can you compile a simple LCL application without errors? Here are all the paths: Lazarus directory: /usr/lib/lazarus/ Compiler path: /usr/bin/fpc FPC Source directory : /usr/share/fpcsrc/2.2.4/ Make path: /usr/bin/make Test project directory: /tmp/ Attempted to compile a simple test application and got this error: test1.lpr(8,7) Fatal: Can't find unit Interfaces used by test1 I installed lazarus (and FPC) from the DEB snapshots (version 0.9.29-0 beta) ---------------------------------------------------------------------- Vincent Snijders · 2009-08-26 11:43 Good that you can reproduce the error with a test app too. What does /usr/bin/fpc -iV (in a terminal) say? If it gives 2.2.4-3, then add more verbosity in the compiler options (-va). Then compile and compile all (including hidden) messages to a text file and upload that. ---------------------------------------------------------------------- DanNineOne · 2009-08-26 16:47 Quote from: Vincent Snijders on August 26, 2009, 01:43:53 pmGood that you can reproduce the error with a test app too. What does /usr/bin/fpc -iV (in a terminal) say? If it gives 2.2.4-3, then add more verbosity in the compiler options (-va). Then compile and compile all (including hidden) messages to a text file and upload that. /usr/bin/fpc -iV just gives you: 2.2.4 ---------------------------------------------------------------------- DanNineOne · 2009-08-28 10:10 I have also now noticed that if I try to get to "Project > Compiler options" I get an error saying: Class "TCompOptBuildModesFrame" not found. Press OK to ignore and risk data corruption. Press cancel to kill the program. When I click the OK button I still don't see the compiler options Quote from: Vincent Snijders on August 26, 2009, 01:43:53 pmGood that you can reproduce the error with a test app too. What does /usr/bin/fpc -iV (in a terminal) say? If it gives 2.2.4-3, then add more verbosity in the compiler options (-va). Then compile and compile all (including hidden) messages to a text file and upload that. /usr/bin/fpc -iV      will give you: 2.2.4 /usr/bin/fpc -iW      will give you: 2.2.4-3 I don't know how to add -va (but if it is in the compiler options box then it's impossible) ---------------------------------------------------------------------- Vincent Snijders · 2009-08-28 10:17 I think the "error Class "TCompOptBuildModesFrame" not found." has been fixed in current snapshots. ---------------------------------------------------------------------- DanNineOne · 2009-08-28 11:19 I have now completely reinstalled Ubuntu (downgrading from 9.4 to 8.10) to leave no trace of any previous installation of Lazarus or FPC and I plan to reinstall from today's snapshots. If this doesn't solve the problem then I am very likely to give up