Recent

Author Topic: advice on FPC or lazarus  (Read 3435 times)

Kees Bleijenberg

  • New Member
  • *
  • Posts: 14
advice on FPC or lazarus
« on: November 19, 2011, 10:35:03 am »
I’ve written a CGI program in the FPC ide on a debian computer. I use putty (telnet) on a windows machine to remotely type in the code in the FPC ide. The debian computer has no graphical interface (everything commandline). The connection to the debian computer is very slow. But it works.
Now the CGI program has to post a message to another computer. I tried the synapse package  but the compiler complains about missing syncobjs. Syncobjs is probably a part of Lazarus – Linux.  What to do:
a. Copy syncobjs to the debian machine. Find out what units are referenced in syncobjs install these files etc… (btw I’ve found *.ff files. Can I rename them to *.pas)
b. install lazarus on the debian computer and compile and link from the commandline.
c. or…..

Any ideas?
Kees

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: advice on FPC or lazarus
« Reply #1 on: November 19, 2011, 10:57:45 am »
syncobjs is part of the fcl (fpc) and can be found in packages/fcl-base/src/syncobjs.pp.
Or your fpc installation is incomplete or fpc.cfg isn't correctly configured to include units/$fpctarget/*

Kees Bleijenberg

  • New Member
  • *
  • Posts: 14
Re: advice on FPC or lazarus
« Reply #2 on: November 19, 2011, 04:39:43 pm »
I am not sure if I was clear enough. I'am using the text-based tool that looks almost identical to the old Turbo Pascal on Linux. To my knowledge it doesn't understand packages, *.ff files.

Kees

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: advice on FPC or lazarus
« Reply #3 on: November 19, 2011, 04:53:23 pm »
Hi Kees,

Ludo means FPC source code, which is organised in packages. He doesn't refer to Lazarus components.

It doesn't matter if you use Lazarus as an IDE, the FPC IDE, nano, vim or notepad and the fpc command to compile :D

You can use e.g. fpc -vut <thenameofyourcgisource.pas> to see where the compiler is searching for required units... You might want to look at http://wiki.lazarus.freepascal.org/FPC_message:_Can_not_find_unit for an approach to identifying and fixing the problem.
« Last Edit: November 19, 2011, 04:58:23 pm by BigChimp »
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

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12712
  • FPC developer.
Re: advice on FPC or lazarus
« Reply #4 on: November 19, 2011, 05:04:22 pm »
It does matter.

Contrary to Lazarus, the textmode IDE is fully integrated with the compiler and does not use the commandline compiler, and thus not fpc.cfg

The corresponding setting in the textmode IDE is the "units" path (first tab of "tools"->"directories") and should read something like

c:\fpc\$FPCVERSION\units/$fpctarget/*

if you installed FPC in c:\fpc

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: advice on FPC or lazarus
« Reply #5 on: November 19, 2011, 05:24:30 pm »
Whoops. Sorry, haven't run the text mode IDE in years, and made assumptions... we all know how these end  :-[

I'll leave the offending post for reference.
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

 

TinyPortal © 2005-2018