[Solved] FP - configuration lazarus / 65-FV-Textmode IDE ---------------------------------------------------------------------- jacmoe · 2017-02-28 22:31 I want to use FP and when I use it, it doesn't work that well. Do I really have to enter all the paths into it for each and every project that I want to create / work with? Just copying fpc.cfg to fp.cfg does not work - I've tried that. Lazarus works "out of the box" , FP does not. Any tutorials, tips ? I like Turbo Pascal, that's why I'd like to use FP more. Edit: Does it use binary DSK files instead? Yes, it seems to do that. ---------------------------------------------------------------------- jacmoe · 2017-02-28 23:29 What values are you guys using? ---------------------------------------------------------------------- jacmoe · 2017-03-01 00:30 So, I installed FPC in Windows 2000 (VirtualBox) and the Free Pascal IDE worked out of the box. I can live with that. From what I can gather, no Linux users are using fp ---------------------------------------------------------------------- Leledumbo · 2017-03-01 08:51 Quote from: jacmoe on March 01, 2017, 01:30:32 amFrom what I can gather, no Linux users are using fp I use it. There's no better way for debugging in headless server other than fp ide. ---------------------------------------------------------------------- marcov · 2017-03-01 08:53 How did you install FPC on Linux? Using an official (.tar) distribution, or 3rd party distribution packages? Afaik fpmkcfg has some option to create fp.cfgs, and you can have a global fp.cfg (~/.fp.cfg ?) There is only one path to set  to $PREFIX/lib/fpc/$FPCVERSION/units/FPCTARGET/* where $PREFIX is /usr or /usr/local or some directory in your homedir depending on installation. The other $FPC* you can copy verbatim, they are macros that are filled in by FPC.  I usually install releases system wide and snapshots in ~/builded or ~/builded64 ---------------------------------------------------------------------- jacmoe · 2017-03-01 09:01 Thanks guys I figured it out - or I think I did: The problem was that I am using Fpcupdeluxe, where 'fp' is in 'fpcupdeluxe/fpc/bin/$fpctarget' I also had a global 'fp' which I have uninstalled now. I noticed that when I ran 'fp' from it's directory, it worked, after entering the correct include/lib directories. So, I created a desktop entry for it, so that working directory is set to same. And it works This is what I entered into the "Directories" config screen: Units: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /home/jacmo e/fpcupdeluxe/fpc/units/$fpctarget/home/jacmoe/fpcupdeluxe/fpc/units/$ fpctarget/*/home/jacmoe/fpcupdeluxe/fpc/units/$fpctarget/rtl  Include files: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/lib/gcc/x86_64-linux- gnu/6/home/jacmoe/fpcupdeluxe/fpc/lib/$FPCTARGET  Libraries: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/lib/$FPCTARGET/usr/lib/$FPCTARGET- gnu/lib/$FPCTARGET/lib/$FPCTARGET-gnu/usr/lib/gcc/x86_64-linux- gnu/6.3.0  Edit: If not all of these are necessary, I will probably experiment with removing them, until I get errors. I am wondering: Could I have done this differently ? Right now, I am letting fp have a fp.cfg in it's bin directory. Thanks for the pointers, Marcov. And thanks for the encouragement, Leledumbo. ---------------------------------------------------------------------- jacmoe · 2017-03-01 09:06 I probably should add: It works, so I am happy. And it might well be that it works out of the box on Linux, as long as you don't do any funny business, like using Fpcupdeluxe.  I really like the FP IDE - and I wish that there was similar for C/C++, as I am a big fan of Borland C++ 3.1 / Turbo Pascal 7. Edit: I found out that there is one, actually: RHIDE. It is based on the C++ sources of Turbo Vision that Borland released into the open, before they released the Pascal sources to the FPC (and thus the open). RHIDE was originally a Djgpp only IDE, but support for GCC/DBG has been added. I am going to take that for a spin Edit_Again: And then there is Set's Editor ---------------------------------------------------------------------- marcov · 2017-03-01 09:30 Quote from: jacmoe on March 01, 2017, 10:06:01 amEdit: I found out that there is one, actually: RHIDE. It is based on the C++ sources of Turbo Vision that Borland released into the open, before they released the Pascal sources to the FPC (and thus the open). RHIDE was originally a Djgpp only IDE, but support for GCC/DBG has been added. I am going to take that for a spin For a while RHIDE's debugger worked better, but that is long ago (15 years). Borland /NEVER/ release the pascal source to FPC, Free Vision is a parallel development based on a 3rd party graphical "vision" clone, which might have origins in the C++ code. Over the years incompatibilities have been mended and gaps have been filled. Btw I can see the reason for /usr/lib/gcc/x86_64-linux-gnu/6.3.0 but I don't understand why you would need any of the other directories that you enter under "include files"  nor "Libraries". ---------------------------------------------------------------------- jacmoe · 2017-03-01 09:35 Quote from: marcov on March 01, 2017, 10:30:35 amFor a while RHIDE's debugger worked better, but that is long ago (15 years). Borland /NEVER/ release the pascal source to FPC, Free Vision is a parallel development based on a 3rd party graphical "vision" clone, which might have origins in the C++ code. That's pretty impressive It is really, really close to the real thing. (And by that, I mean that it looks and feels better) (( I am using Turbo Vision right now - both Borland C++ 3.1 and Turbo Pascal 7 - in DosBox for doing retro graphics (Mode13) )) Quote from: marcov on March 01, 2017, 10:30:35 amI don't understand why you would need any of the other directories that you enter under "include files"  nor "Libraries". Neither do I, because I opened 'fpc.cfg' to see what I could add, because I got link errors - but now that I figured out that I need to run fp from the right directory, I will probably remove them. ---------------------------------------------------------------------- jacmoe · 2017-03-03 22:15 Now, after I - again! messed up my Fpcupdeluxe Lazarus/FPC installation, I went ahead and tested the FP IDE from scratch, I managed to make FP work using just these 3 lines in Directories - Unit Directories, and nothing else: Units: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /home/jacmo e/fpcupdeluxe/fpc/units/$fpctarget/home/jacmoe/fpcupdeluxe/fpc/units/$ fpctarget/*/home/jacmoe/fpcupdeluxe/fpc/units/$fpctarget/rtl  That's pretty neat.