Recent

Author Topic: No fpc.cfg  (Read 22929 times)

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« on: May 14, 2005, 02:11:54 am »
I installed fpc, fpcsrcs, and lazarus from the snapshots at "http://www.ca.freepascal.org/Lazarus/". Following the directions in "http://lazarus-ccr.sourceforge.net/kb/index.php/Installing_Lazarus" I did get the IDE to start up. By the way there is a typo in the installation instructions, it should be "sudo fink install gdk-pixbuf ...." instead of "gtk-pixbuf".

Whe I try to test the "compiler options" ppcppc can't find fpc.cfg, in fact, I can't find a fpc.cfg file anywhere on the computer. The installation instructions indicate it should be "/etc" but it isn't there, nor is any of the "/usr/..." directories that I can determine. I haven't been able to find what is supposed to be in that file to re-create it. Who was supposed to create it? What is supposed to be in fpc.cfg?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
No fpc.cfg
« Reply #1 on: May 17, 2005, 09:43:14 am »
The fpc package was supposed to create it. I will check it later this week.

Thanks for testing these packages.

certsoft

  • New Member
  • *
  • Posts: 11
Found a Clue
« Reply #2 on: May 18, 2005, 01:03:03 am »
In the installation log it says it tried to write it to "//etc/fpc.cfg" instead of "/etc/fpc.cfg". Hope that helps.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
No fpc.cfg
« Reply #3 on: May 19, 2005, 04:38:30 pm »
I just uploaded a new snapshots at http://www.ca.freepascal.org/Lazarus/. Can you test, if this fpc installer creates a correct etc.fpc ?

Anonymous

  • Guest
No fpc.cfg
« Reply #4 on: May 19, 2005, 11:25:54 pm »
The new version installed fpc.cfg correctly. Tried to get it to compile a simple test program consisting of a label and button, but it says "unit interfaces not found" even though it comes up with the interfaces.pp file in the editor. When running the compiler test it can't find, among other things, strings.pp even though I put the path to it in the source path list.

I've put some of the files where you can get to them:
http://www.certsoft.com/lazarus/fpc.cfg     - from /etc/
http://www.certsoft.com/lazarus/fpc_install.log   - from the system info installation log after installing fpc
http://www.certsoft.com/lazarus/laz_install.log   - after installing lazarus, I didn't notice the fpcsrc installation writing anything to the log.
http://www.certsoft.com/lazarus/compoptions1.xml  - compiler options

Other files that I didn't write but found had been created:
http://www.certsoft.com/lazarus/environmentoptions.xml
http://www.certsoft.com/lazarus/includelinks.xml
http://www.certsoft.com/lazarus/lazarus.dci
http://www.certsoft.com/lazarus/packageeditorlayouts.xml
http://www.certsoft.com/lazarus/protocol.xml
http://www.certsoft.com/lazarus/inputhistory.xml

I'm not sure how to get the results of the compiler test, is there a file that it writes someplace?

Bob

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
No fpc.cfg
« Reply #5 on: May 20, 2005, 09:52:18 am »
Thanks for the detailed information.

I saw there was a fpc.cfg, but not from the snapshot installer, but from fpc 2.0.0 (maybe you also have the fpc 2.0.0 release installed). They can co-exist, so no need to remove it, only you would have to check which version you are using.

So you were actually using ppcppc from fpc 2.0.0 and since lazarus (and thus the LCL) was compiled with fpc 2.0.1 you could not use that.

In http://www.certsoft.com/lazarus/fpc_install.log, I saw why creating the fpc.cfg failed and fixed the fpc-2.0.1-20050520-macosx.dmg installer. Now it should create an fpc.cfg with paths to the 2.0.1 units.

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #6 on: May 21, 2005, 12:08:09 am »
I put the install log from the 2005-52- version at http://www.certsoft.com/lazarus/fpc_install_50520.log

As you can see it has our old friend //etc/fpc.cfg so I didn't proceed any further.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
No fpc.cfg
« Reply #7 on: May 21, 2005, 09:41:06 am »
This time I think it went ok, the postflight script actually and the old fpc.cfg was backupped and presumably a new fpc.cfg created. So please, proceed.

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #8 on: May 21, 2005, 07:37:23 pm »
OK, it now compiles the simple test program. However, when I actually try to write code I get into trouble. Some of the punctuation keys don't do what they are supposed to. The ones I have been able to identify are the "*", "=", "+", and "/" keys. For instance '=' moves the cursor down one line and "/" moves the cursor up one line. "+" moves the cursor back one character and highlights as it goes.

Any ideas? These keys work fine in xterm.

I would like to be able to run a program I have running under Delphi 5 that is used to configure model railroad turnout and light signal control boards. Is there a "winsock" unit that provides a berkeley sockets style interface?

What about serial ports? It's been many years since I've done serial port programming on unix (on SunOS) but it looks like you open a file path using a name like "/devs/tty1a" or something. In the case of SunOS procedures like "ioctl" were used to change parameters. I wonder where I would find these types of functions, assuming someone has made a unit that links to the appropriate Mac OSX libraries.

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #9 on: May 21, 2005, 08:36:22 pm »
Found the "Sockets" unit used in one of the FPC example programs. Good old Berkeley Sockets.

Another question. To setup the browser for online help I have absolutely no idea where the executables are located. You can't specify the "Opera.app" or "Firefox.app", that's really a special kind of directory. Anyone know where to find the executable file for installed applications?

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #10 on: May 21, 2005, 09:31:18 pm »
By using the terminal window I was able to determine that in xxxxxx.app/contents/macos/ there is actually an executable. However it does not show up in the file list when browsing for it in Lazarus. If you type in the filename it correctly shows you the attributes of the file, weird.

So much to learn. Still haven't found a solution to the keyboard problem.

A question about fonts. It seems that very few of the fonts claimed to be available actually work when you try to select them for a tlabel. Is this a known problem?

Anonymous

  • Guest
No fpc.cfg
« Reply #11 on: May 21, 2005, 09:47:18 pm »
Quote from: "certsoft"
OK, it now compiles the simple test program. However, when I actually try to write code I get into trouble. Some of the punctuation keys don't do what they are supposed to. The ones I have been able to identify are the "*", "=", "+", and "/" keys. For instance '=' moves the cursor down one line and "/" moves the cursor up one line. "+" moves the cursor back one character and highlights as it goes.

Any ideas? These keys work fine in xterm.


I found it also and fixed it last night. It is in CVS now.

The reason it works in Xterm is that XTerm can use the keys directly. For delphi compatebility (and to be able to use it crossplatform)  a keypress has to be translated to a Virtual Key (VK). On gtk1 we create a lookup table for all possible values for a VK. This is done through X lookup functions.
Unfortunately it looks like OSX has an error in its default keymap. When doing the lookup it reports that Shift-Down is a = and that Shuft-Up is a +
So our translation routines get confused and report on a = a VK_DOWN.
As a fix I've implemented that navigation keys never can have a shifted value.

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #12 on: May 22, 2005, 07:28:16 am »
There appears to be something wrong with lazarus-0.9.7-20050521-macosx.dmg

It is only 29.3MB while lazarus-0.9.7-20050519-macosx.dmg was 42.1MB

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
No fpc.cfg
« Reply #13 on: May 22, 2005, 01:08:03 pm »
It is correct that the size of the file is 30% smaller. I removed the debug info from the lazarus and startlazarus executable. Therefore these files are a lot smaller and this results in a smaller installer package.

certsoft

  • New Member
  • *
  • Posts: 11
No fpc.cfg
« Reply #14 on: May 22, 2005, 06:16:03 pm »
I installed the lazarus snapshot and it didn't fix the keyboard problem. Installation log at http://www.certsoft.com/lazarus/laz_install_50521.log

 

TinyPortal © 2005-2018