Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Mac > Re: ANN: (free)...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 71 of 149
Post > Topic >>

Re: ANN: (free) FreePascal for Xcode Integration Kit

by Richard Saam <rdsaam@[EMAIL PROTECTED] > Sep 22, 2004 at 12:50 PM

This is a multi-part message in MIME format.
--------------050503040605080607080107
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Dr. Rolf Jansen:

Along with Ann, could you help me on this problem?

I have enstalled the free pascal (FPC 1.9.5) with xcode and Xcode 
Integration Kit with OS 10.3. 

The following program compiles nicely, but my purpose is to compile a 
pascal program written under IDE 3.1 Metrowerks.  The Pascal program 
uses many units which themselves refer to other units necessitating the 
"User Propagates" function in IDE 3.1 Metrowerks.  In the following 
program, I inserted a typical unit "quickdraw"  under uses in addition 
to Carbon, TestUnit.  An error occurred.  It did not compile.  No 
particular message was given.

What additional thing am I supposed to do to bring units into a program 
for subsequent compilation.

Thanks,

Richard Saam

****************************
program Example;
    uses
        Carbon, TestUnit;

    label
        CantCreateWindow,
        CantSetMenuBar,
        CantGetNibRef;

    var
        err     : OSStatus;
        nibRef  : IBNibRef;
        window  : WindowRef;


begin
..............................
..............................
..............................
end.


Dr. Rolf Jansen wrote:

>I updated my web site with an installer package which contains the 
>missing pieces for integration of Free Pascal into Xcode. Besides that, 
>you will find also a little tutorial on how to produce specifications 
>and project templates for Xcode.
>
>   http://InstantWare.bei.t-online.de/Xcode-FreePascal/
>
>New in this update is a Pascal Carbon Application Project template, and 
>the Pascal Tool and Pascal CGI templates were polished up.
>
>The installer will place all templates and specifications to the correct 
>locations and will automatically patch a copy of Apples Universal 
>PInterfaces (which must be downloaded separately from Apple) for use 
>with Free Pascal.
>
>In addition, most GDB problems were sorted out and appropriate .gdbinit 
>files are placed into the templates. However, one GDB issue is left. 
>There is a limitation of fpc caused by its design for case sensitive 
>file systems. Because of this, source level debugging in Xcode is only 
>possible if the Pascal source file names are all lower case.
>
>In order to build Carbon applications you will need the latest FPC 1.9.5 
>from CVS. The installer package produced with the snapshot of FPC 1.9.5 
>from 15th August 2004 contains a bug which prevents linking against 
>Apples Carbon Framework. Anyway, you will need this snapshot, at least 
>for bootstrapping newer versions of Free Pascal from CVS:
>
>   http://www.freepascal.org/fpcmac.html
>
>[2004-8-15 snapshot]:
>   http://www.elis.ugent.be/~jmaebe/nobackup/fpc/fpc-macosx-1.9.5.dmg
>
>
>There is much development going on for Free Pascal for Mac OS X. 
>Therefore, it might be a good idea to get FreePascal from CVS anyway.
>
>   http://www.freepascal.org/develop.html#cvs
>
>Once you checked out fpc from CVS and installed the FPC 1.9.5 [2004-8-15 
>snapshot], bootstrapping of the latest CVS version is simply done with 
>the following commands in Terminal:
>
>   cd fpc
>   make all
>   sudo make install
>
>CVS updates for Free Pascal can then be obtained by issuing following 
>commands in Terminal:
>
>   cd fpc
>   make clean
>   cvs -z 3 update -Pd
>   make all
>   sudo make install
>
>Enjoy!
>
>Rolf
>  
>

--------------050503040605080607080107
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="New York">Dr. Rolf Jansen:<br>
<br>
Along with Ann, could you help me on this problem?<br>
<br>
I have enstalled the free pascal (FPC 1.9.5) </font><font
 face="New York">with xcode and Xcode Integration Kit with OS 10.3.&nbsp;
<br>
<br>
The following program compiles nicely, but my purpose is to compile a
pascal program written under IDE 3.1 Metrowerks.&nbsp; The Pascal program
uses many units which themselves refer to other units necessitating the
"User Propagates" function in </font><font face="New York">IDE 3.1
Metrowerks.&nbsp; In the following program, I inserted a typical unit
"quickdraw"&nbsp; under uses in addition to </font><font face="New
York">Carbon,
TestUnit.&nbsp; An error occurred.&nbsp; It did not compile.&nbsp; No
particular
message was given. <br>
<br>
What additional thing am I supposed to do to bring units into a program
for subsequent compilation.<br>
<br>
Thanks,<br>
<br>
Richard Saam<br>
</font>
<pre wrap="">
</pre>
<font face="New York">****************************<br>
program Example;<br>
&nbsp;&nbsp;&nbsp; uses<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Carbon, TestUnit;<br>
<br>
&nbsp;&nbsp;&nbsp; label<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CantCreateWindow,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CantSetMenuBar,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CantGetNibRef;<br>
<br>
&nbsp;&nbsp;&nbsp; var<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err&nbsp;&nbsp;&nbsp;&nbsp; :
OSStatus;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nibRef&nbsp; : IBNibRef;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window&nbsp; : WindowRef;<br>
<br>
<br>
begin<br>
..............................</font><font face="New York"><br>
..............................</font><font face="New York"><br>
..............................</font><font face="New York"><br>
end.<br>
<br>
</font><br>
Dr. Rolf Jansen wrote:
<blockquote cite="mid20040827100417405+0200@[EMAIL PROTECTED]
"
 type="cite">
  <pre wrap="">I updated my web site with an installer package which
contains the 
missing pieces for integration of Free Pascal into Xcode. Besides that, 
you will find also a little tutorial on how to produce specifications 
and project templates for Xcode.

   <a class="moz-txt-link-freetext"
href="http://InstantWare.bei.t-online.de/Xcode-FreePascal/">http://InstantWare.bei.t-online.de/Xcode-FreePascal/</a>

New in this update is a Pascal Carbon Application Project template, and 
the Pascal Tool and Pascal CGI templates were polished up.

The installer will place all templates and specifications to the correct 
locations and will automatically patch a copy of Apples Universal 
PInterfaces (which must be downloaded separately from Apple) for use 
with Free Pascal.

In addition, most GDB problems were sorted out and appropriate .gdbinit 
files are placed into the templates. However, one GDB issue is left. 
There is a limitation of fpc caused by its design for case sensitive 
file systems. Because of this, source level debugging in Xcode is only 
possible if the Pascal source file names are all lower case.

In order to build Carbon applications you will need the latest FPC 1.9.5 
from CVS. The installer package produced with the snapshot of FPC 1.9.5 
from 15th August 2004 contains a bug which prevents linking against 
Apples Carbon Framework. Anyway, you will need this snapshot, at least 
for bootstrapping newer versions of Free Pascal from CVS:

   <a class="moz-txt-link-freetext"
href="http://www.freepascal.org/fpcmac.html">http://www.freepascal.org/fpcmac.html</a>

[2004-8-15 snapshot]:
   <a class="moz-txt-link-freetext"
href="http://www.elis.ugent.be/~jmaebe/nobackup/fpc/fpc-macosx-1.9.5.dmg">http://www.elis.ugent.be/~jmaebe/nobackup/fpc/fpc-macosx-1.9.5.dmg</a>


There is much development going on for Free Pascal for Mac OS X. 
Therefore, it might be a good idea to get FreePascal from CVS anyway.

   <a class="moz-txt-link-freetext"
href="http://www.freepascal.org/develop.html#cvs">http://www.freepascal.org/develop.html#cvs</a>

Once you checked out fpc from CVS and installed the FPC 1.9.5 [2004-8-15 
snapshot], bootstrapping of the latest CVS version is simply done with 
the following commands in Terminal:

   cd fpc
   make all
   sudo make install

CVS updates for Free Pascal can then be obtained by issuing following 
commands in Terminal:

   cd fpc
   make clean
   cvs -z 3 update -Pd
   make all
   sudo make install

Enjoy!

Rolf
  </pre>
</blockquote>
</body>
</html>

--------------050503040605080607080107--
 




 5 Posts in Topic:
ANN: (free) FreePascal for Xcode Integration Kit
Dr. Rolf Jansen <Insta  2004-08-27 10:04:18 
Re: ANN: (free) FreePascal for Xcode Integration Kit
Richard Saam <rdsaam@[  2004-09-22 12:50:19 
Re: ANN: (free) FreePascal for Xcode Integration Kit
InstantWare@[EMAIL PROTEC  2004-09-25 14:23:34 
FreePascal for Xcode Integration Kit next question
Volker Benedikt <volke  2004-10-19 16:09:14 
Re: FreePascal for Xcode Integration Kit next question
Jonas Maebe <Jonas.Mae  2004-10-19 17:02:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 9:26:21 CDT 2008.