Recent

Author Topic: 1.2 RC1 can't find FPC files  (Read 4228 times)

JimKueneman

  • Full Member
  • ***
  • Posts: 220
1.2 RC1 can't find FPC files
« on: November 25, 2013, 04:36:02 pm »
When I try to create an event or try to browse to a FPC file Lazarus says

Quote
Developer/lazarus/lcl/lclclasses.pp(26,10) Error: unit not found: Classes

In Options the FPC source directory = '/usr/local/share/fpcsrc'

and the Free Pascal Compiler source is installed in that directory.

Why can't it find it?  I have tried running the install packages for FPC, FPC Source, Lazarus again as well.

Jim

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: 1.2 RC1 can't find FPC files
« Reply #1 on: November 25, 2013, 04:42:18 pm »
Linux or Mac?

Do you have more than one fpc version? Or did have an older once?

During compilation, fpc will only look for the ppu (at least with regards to rtl). The ppu must be created by the same compiler version, as the one that is attempting to use it. (including same revision (same ppu version), if it is a svn build)

try compiling with -va (large amount of output). ANd see which files are searched, and why they are rejected. (also which fpc.cfg is used)

JimKueneman

  • Full Member
  • ***
  • Posts: 220
Re: 1.2 RC1 can't find FPC files
« Reply #2 on: November 26, 2013, 03:45:53 am »
Mac.  I am not sure what I am looking at here:

www.mustangpeak.net/CompileAll.txt.zip

Jim

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: 1.2 RC1 can't find FPC files
« Reply #3 on: November 26, 2013, 12:59:58 pm »
Quote
Project "project1" successfully built

So maybe I mistook your initial statement? I I thought you get an error when you compile, but this compilation was successful.

When do you get the error? When you use codetools?Try the menu entry "Rescan fpc sources"

JimKueneman

  • Full Member
  • ***
  • Posts: 220
Re: 1.2 RC1 can't find FPC files
« Reply #4 on: November 26, 2013, 02:04:29 pm »


Sorry I was not clear.  The project compiles and runs just fine.  What I can't do is "Find Declaration" if I try to find any unit that is in FPC.  Also if you double click on an event it needs some of the FPC source files and fails.  It is like the FPC source files are not there.

Jim

PS

 The "FPC Source Directory" is set to "/usr/local/share/fpcsrc/" and if I look there under unix I see the files I can't hyperlink to, say "classes".   "classes.pp" is right here: "/usr/local/share/fpcsrc/rtl/unix/classes.pp"

This all looks just like the install on my MacAir which is working with RC1.

Yup, rescan FPC Sources was the answer.  Can you tell me why/what that does?
« Last Edit: November 26, 2013, 02:14:29 pm by JimKueneman »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: 1.2 RC1 can't find FPC files
« Reply #5 on: November 26, 2013, 02:32:33 pm »
Yup, rescan FPC Sources was the answer.  Can you tell me why/what that does?
Presumably rescan the fpc source directory for identifiers etc and put them in some lookup cache for Lazarus? You probably had a cache file for another FPC version.
See eg
http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_units#Case_2:_Compiler_finds_a_unit.2C_but_IDE_does_not

Use the wiki, Luke ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: 1.2 RC1 can't find FPC files
« Reply #6 on: November 26, 2013, 02:46:21 pm »
Yup, rescan FPC Sources was the answer.  Can you tell me why/what that does?

Not exactly. Codetool has some cache.

Mattias would know, but you may need to ask on the mail list.

 

TinyPortal © 2005-2018