[fpc-pascal] fpGUI documentation

2013-10-02 Thread Patrick

Hi Graeme

I am really impressed with fpGUI. Judging from the examples and the 
comments of others, this is exactly what I need.


The examples will go a long way in helping me understand it but I seem 
to be hitting a number of roadblocks with the documentation.


The class index on the site appears to be a dead link:
http://fpgui.sourceforge.net/apidocs/index.html

In the documentation folder this file is German only:
layouting_de.html
(I can try Google translate or Learn German!)

I don't seem to be able to figure out how to generate the documentation 
in the folder, I tried running all three build scripts:




:bash build_html.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.



bash build_ipf.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.


bash build_rtf.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.


I found this PDF online:
http://geldenhuys.co.uk/articles/fpgui.pdf

It's from 2008 and it sound like you have done a lot of work since then, 
is this document still valid?


Once I know what I am doing maybe I can help with the documentation a bit?

Have a great day-Patrick




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Patrick

Hi Fred

Yes ! I am evaluating both Lazarus and fpGUI.

At the moment I am steering towards fpGUI.

I like FLTK but I don't like C++ and the FLTK bindings are not so great.

Understanding GTK or QT under the hood is a massive undertaking. So 
far fpGUI reminds me of FLTK(but it prettier) I can imagine, without 
heroic effort, that people would be able to look inside it and see 
what's going on.


It looks to be 173K lines, while FLTK is about 100K(I forgot the exact 
number). However I am betting it will be much easier to read then C++ 
and of course I don't even have to read the source to understand it! 
It's just nice to know that it is possible for me.


Being able to fix bugs yourself is important to me. A small readable 
codebase means autonomy, projects do get abandoned and/or people can get 
sick and are unable to maintain them. fpGUI seems like a really good 
project.


Nice work Graeme.

-Patrick




On 09/30/2013 03:33 PM, Fred van Stappen wrote:



Have you try fpGUI ?

https://github.com/graemeg/fpGUI/tree/develop


Date: Mon, 30 Sep 2013 01:07:56 -0500
Subject: Re: [fpc-pascal] GUI confusion
From: michal.wall...@gmail.com
To: fpc-pascal@lists.freepascal.org


On Sep 29, 2013 8:24 AM, Patrick patr...@spellingbeewinnars.org 
mailto:patr...@spellingbeewinnars.org wrote:


 I don't really like IDEs. I used gvim and I suppose it could almost 
be called an IDE as well but I mean I would rather use the shellr then 
clicking on a build button.


For what its worth, I use free pascal practically every day, but 
rarely open Lazarus.


I write most of my code in emacs, running inside a tmux session: 
http://tangentstorm.imgur.com/all/


But if I were going to make a GUI app, it would be crazy of me to 
ignore Lazarus. :)


I also use it when I want to browse and navigate through other 
people's source code. You can ctrl-click on identifiers as id they 
were hyperlinks.


Also if part of what bothers you is all the floating panels, you can 
enable the anchor docking extension and put everything into one 
window. That made a tremendous difference for me.



___ fpc-pascal maillist - 
fpc-pascal@lists.freepascal.org 
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpGUI documentation

2013-10-01 Thread Patrick
Apologies if this is a double post, I sent this, this morning but it 
does not seem to have made it to the list:




Hi Graeme

I am really impressed with fpGUI. Judging from the examples and the 
comments of others, this is exactly what I need.


The examples will go a long way in helping me understand it but I seem 
to be hitting a number of roadblocks with the documentation.


The class index on the site appears to be a dead link:
http://fpgui.sourceforge.net/apidocs/index.html

In the documentation folder this file is German only:
layouting_de.html
(I can try Google translate or Learn German!)

I don't seem to be able to figure out how to generate the documentation 
in the folder, I tried running all three build scripts:




:bash build_html.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.



bash build_ipf.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.


bash build_rtf.sh
FPDoc - Free Pascal Documentation Tool
Version 2.6.2 [2013/03/17]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

exception at 00483246:
Unable to open file xml/corelib/fpg_cmdlineparams.xml.


I found this PDF online:
http://geldenhuys.co.uk/articles/fpgui.pdf

It's from 2008 and it sound like you have done a lot of work since then, 
is this document still valid?


Once I know what I am doing maybe I can help with the documentation a bit?

Have a great day-Patrick



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Patrick

I am new.

I use multiple monitors so, all of the panels could stay on one screen 
and the form widget on another, docking might be handy to move all the 
panels at once.


On 09/30/2013 09:57 AM, m...@rpzdesign.com wrote:

But how do you enable the anchor docking extension for Lazarus 1.0.12
and get some control of all the floating panels.

I personally would want all the panels to come to the front when I 
click on any panel
instead of having to click a couple of times to bring console or 
messages panel to the fore.


md


On 9/30/2013 2:07 AM, Michal Wallace wrote:



On Sep 29, 2013 8:24 AM, Patrick patr...@spellingbeewinnars.org 
mailto:patr...@spellingbeewinnars.org wrote:


 I don't really like IDEs. I used gvim and I suppose it could almost 
be called an IDE as well but I mean I would rather use the shellr 
then clicking on a build button.


For what its worth, I use free pascal practically every day, but 
rarely open Lazarus.


I write most of my code in emacs, running inside a tmux session: 
http://tangentstorm.imgur.com/all/


But if I were going to make a GUI app, it would be crazy of me to 
ignore Lazarus. :)


I also use it when I want to browse and navigate through other 
people's source code. You can ctrl-click on identifiers as id they 
were hyperlinks.


Also if part of what bothers you is all the floating panels, you can 
enable the anchor docking extension and put everything into one 
window. That made a tremendous difference for me.




___
fpc-pascal maillist  -fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] GUI confusion

2013-09-29 Thread Patrick

Hi Everyone

I really like the pascal code I have looked at and I am very excited 
about FPC. I hope this email won't upset anyone, it is a bit negative.


I don't really like IDEs. I used gvim and I suppose it could almost be 
called an IDE as well but I mean I would rather use the shellr then 
clicking on a build button.


I am trying to learn what Lazarus is all about but I am still clueless.

There are screen shots of it being used to develop GTK and QT 
applications but I have also read that GTK 2 is new and buggy and then 
there is this line:


The FPC Qt4 Binding is not meant to create Qt applications in FPC. But 
it should allow the Lazarus LCL developers to create a Qt Widget set for 
Lazarus


Can I build GTK 2 (or 3) and QT applications in this? Could anyone point 
me to resources on how to build GUI applications without Lazarus?


Please don't RTFM me, I am trying, there just seems to be a lot of 
conflicting information and I am confused-Patrick

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick

Thanks again to Reinier and Sven

I just bought Getting Started with Lazarus IDE.

I actually tried to get started with FPC back In January. I felt that 
the language was too tied to Lazarus and that I didn't want to use an 
IDE so I gave up.


I will report back when I am a little further along this time. It is 
possible that the language is not being presented exactly as is intended 
or that there is too much room for people to misinterpret how the 
programming environment works.


-Patrick




On 09/29/2013 12:50 PM, Sven Barth wrote:

On 29.09.2013 15:24, Patrick wrote:

Hi Everyone

I really like the pascal code I have looked at and I am very excited
about FPC. I hope this email won't upset anyone, it is a bit negative.

I don't really like IDEs. I used gvim and I suppose it could almost be
called an IDE as well but I mean I would rather use the shellr then
clicking on a build button.


IDEs are less about build buttons, but about the additional features 
they provide:

- integrated debugging
- error location highlighting
- code completion
- code refactoring tools



I am trying to learn what Lazarus is all about but I am still clueless.

There are screen shots of it being used to develop GTK and QT
applications but I have also read that GTK 2 is new and buggy and then
there is this line:


It seems that this wasn't updated for quite some time...GTK2 is no 
problem today and is the standard GUI interface for Lazarus on Linux




The FPC Qt4 Binding is not meant to create Qt applications in FPC. But
it should allow the Lazarus LCL developers to create a Qt Widget set for
Lazarus


I would say scratch that sentence. The first part can be more or less 
considered nonsense...




Can I build GTK 2 (or 3) and QT applications in this?


GTK 3 is not yet supported, but GTK 2 and QT are.


Could anyone point
me to resources on how to build GUI applications without Lazarus?


You could take a look at the packages/gtk2/examples directory of a FPC 
source distribution.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick



There are alternatives, but first a distinction needs to me made. When
you say Lazarus, do you mean simply the IDE, or do you mean the LCL
(Lazarus Component Library)?

From your earlier remard about IDE's I assume you simply don't like IDE,
but you might not mind building LCL-based applications.

Obviously you can create LCL-based GUI applications without using
Lazarus IDE. It is a bit more work though. Just in case you didn't know,
LCL uses other underlying widgetset's. So LCL can target GTK1, GTK2,
Win32, fpGUI and Carbon toolkits.

Another alternatives is to use fpGUI, which is a 100% custom drawn GUI
toolkit, that doesn't rely on any other underlying toolkits. fpGUI talks
directly to X11 or GDI. fpGUI isn't tied to any specific editor or IDE,
so you are free to code with Notepad or VI if you wanted to. fpGUI does
come with its own tools to help you with some tasks, but in is still not
a requirement to use them. For example, fpGUI includes a stand-alone GUI
Designer for visually designing forms. All that the GUI Designer does,
is generated Object Pascal source code, just like you would have done by
had. It doesn't use external files like the *.lfm files which Lazarus
IDE produces - which ain't Object Pascal source files.

Yet another alternative is MSEide+MSEgui, but as the name says, it is
recommended to use the MSEide to write code.

Regards,
   Graeme




Thanks again Sven.

Hi Graeme

This was a very helpful post. I will definitely give fpGUI a try, along 
with Lazarus.


I don't really know anything about using LCL outside of Lazarus yet.

Your point about LCL is super helpful. I hope no one minds the 
constructive criticism but my lack of understanding of this was the 
tipping point that sent me away last time. I tried Lazarus but it did 
not seem to be creating GTK code or QT, it was just some sort of weirdo 
Lazarus only stuff and then in tandem with the QT binding statement I 
mentioned earlier, it wasn't even obvious whether or not it could 
generate GUI code outside of the IDE.  The FUD circling around Pascal is 
that it is for teaching only. It would be painful to learn an IDE to 
only find out later that it is for teaching purposes.


I have family members with urgent care needs and I don't have too much 
time. However I would really like to start posting on the net about my 
experiences, maybe I can help to clear away the FUD.


BTW, Would it be correct to compare LCL to WxWidgets ? In the sense that 
it is a meta-widget toolkit?


Thanks ! -Patrick


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Favourite Pascal books

2013-01-22 Thread Patrick

Hi Everyone

I am just putting together an order for abebooks. They have a million 
and one Pascal books. I can't decide on which ones to buy.


Could you let me know what your favourite Pascal books are? -Patrick


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Favourite Pascal books

2013-01-22 Thread Patrick

Thanks to Leonardo, Ewald and Graeme

I am off to a great start-Patrick



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-30 Thread Patrick

On 12-12-29 12:10 PM, Leonardo M. Ramé wrote:


From: Patrick patr...@spellingbeewinnars.org
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Cc: Sven Barth pascaldra...@googlemail.com
Sent: Saturday, December 29, 2012 1:18 PM
Subject: Re: [fpc-pascal] Basically on the right track?


I was able to compile helloworld2 and run it without errors.

Sorry for the long email ! thanks for reading it-Patrick




Patrick, btw, do you know you can create GTK2 (and QT, Win32, etc) apps with 
FreePascal without bothering with low level GTK2 libraries?, please take a look 
at the Lazarus Project (http://lazarus.freepascal.org), it'll make your life 
much, much easier.

Regards,
--
Leonardo M. Ramé
http://leonardorame.blogspot.com

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Hi Leonardo

Thanks for your post. Actually I want to do some wacky stuff mixing 
Pascal, Ada and Lua. I think I will need to learn the lower level stuff.


Happy new year :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-29 Thread Patrick

Hi Again Sven

I don't know how I could have compiled the wrong file, I will stick to 
the Makefiles from now on to keep this simpler.


I switched over to Mint (I almost lost 2.5 TBs of data! but all is well 
now). I installed 2.6 from the repository. I have not installed a source 
based fpc.



I am still getting gtk related errors. If you could help me just a 
little more that would be great.


I wanted to see how far the problem spreads so I took the package folder 
from the source folder I downloaded and made a shell script that looks 
like this:



make   ./aspell
make   ./bfd
make   ./bzip2
and so on...

the results from calling make on each individual folder in the packages 
folder was not so bad:




:bash Pat_Make.sh  aaa_results
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?

make[1]: *** [all] Error 1
make: *** [fastcgi] Error 2
make[1]: *** [all] Error 1
make: *** [fcl-web] Error 2
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?



fastcgi and fcl-web seemed to give errors but that was all.


when I called make from inside gtk2 I got this:
:make
/usr/bin/ppcx64 -Fusrc -Fusrc/glib -Fusrc/atk -Fusrc/pango 
-Fusrc/pangocairo -Fusrc/gtk+/gdk-pixbuf -Fusrc/gtk+/gdk -Fusrc/gtk+/gtk 
-Fusrc/libglade -Fusrc/gtkglext -Fusrc/gtkext -Fusrc/gtk2x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/hash 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/paszlib 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-base 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-image 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/cairo -Fisrc/gtk2x11/include 
-FE. -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.7 
-Flinclude -Fl/etc/ld.so.conf.d/*.conf -dx86_64 src/buildgtk2.pp

Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/buildgtk2.pp
Compiling ./src/gtk+/gtk/gtk2.pas
Compiling ./src/glib/glib2.pas
goption.inc(67,1) Warning: Possible library conflict: symbol 
g_cclosure_marshal_BOOLEAN__FLAGS from library libglib-2.0.so also 
found in library libgobject-2.0.so
glib2.pas(1692,54) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
glib2.pas(1719,17) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.

Compiling ./src/atk/atk.pas
Compiling ./src/pango/pango.pas
Compiling ./src/gtk+/gdk-pixbuf/gdk2pixbuf.pas
Compiling ./src/gtk+/gdk/gdk2.pas
gdktypes.inc(156,33) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
gdktypes.inc(161,28) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.

Compiling ./src/libglade/libglade2.pas
Compiling ./src/gtkglext/gdkglext.pas
Compiling ./src/gtkglext/gtkglext.pas
Compiling ./src/gtkext/gtk2ext.pp
Compiling ./src/gtk2x11/gdk2x.pas
Compiling ./src/pangocairo/pangocairo.pas
180750 lines compiled, 0.7 sec
5 warning(s) issued



when I called make from inside the gtk2 examples I got:

:make
make -C helloworld all
make[1]: Entering directory 
`/home/patrick/modified_since_dec29_2012/programming/pascal_small_folder/packages2.6/gtk2/examples/helloworld'
/usr/bin/ppcx64 -Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/hash 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/paszlib 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-base 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-image 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/cairo 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/gtk2 -FE. -FUunits/x86_64-linux 
-Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.7 -Flinclude 
-Fl/etc/ld.so.conf.d/*.conf -dx86_64 helloworld.pas

Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling helloworld.pas
helloworld.pas(28,11) Error: Incompatible types: got Boolean32 
expected LongInt

helloworld.pas(96) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [helloworld] Error 1
make[1]: Leaving directory 
`/home/patrick/modified_since_dec29_2012/programming/pascal_small_folder/packages2.6/gtk2/examples/helloworld'

make: *** [helloworld_all] Error 2
:

I also had similar errors inside the scribblin example:
/bin/mkdir -p units/x86_64-linux
/usr/bin/ppcx64 -Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr

Re: [fpc-pascal] Basically on the right track?

2012-12-28 Thread Patrick

On 12/28/2012 08:39 AM, Juha Manninen wrote:

On Fri, Dec 28, 2012 at 6:47 AM, Patrickpatr...@spellingbeewinnars.org  wrote:
   

I am also finding the site confusing. If I click on AMD64/x86_64  on the
binary download page and then choose  sourceforge, I end up being offered a
package that says fpc-2.6.0.i386-linux.tar.

I did find another link and installed the compiler.
 

The AMD64/x86_64 link is for a crosscompiler of some sort. It does not
work when you install it to your 64-bit computer. I have tested that
many times because I always forget it.
It is so extremely misleading! Could someone from the FPC team please fix it.
Also the FPC sources can be found only behind many clicks. It could be
more straightforward.
... and the Debian packages are divided to 44 (or some) pieces which
should be downloaded one by one.
Fortunately Mattias Gärtner has made easy Debian packages for FPC.
They can be found in Lazarus downloads page. (!)

This is bad. The first impression is always important and installation
should be as simple as possible.
It bothers me even though I am not a newbie any more.
Lazarus pages are a bit messy, too, but not as bad.


Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

   

Hi Juha

Thanks for your post :)

Could you send me the link for the right 64 bit binary ?

Thanks Marco and Sven for your posts too, let me make sure my set up is 
correct first though before I trouble you more with helloworld.pas


-Patrick


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-28 Thread Patrick

Hope I am not wearing out the warm welcome I have received

I installed the 64 bit .deb package from the website. I am still getting 
a lot of errors. I am starting to wonder if I have borked my install. I 
am on Debian stable right now. I can move to Mint Mate desktop...


At the end of the email are the errors when compiling a simple gtk2 app

However I am delighted to see a lua package in there. I have more 
experience with lua. Make is running without errors but I expected to 
see a liblua.a archive file after and did not see it, there were more 
warnings. (I have them at the end of the email)


Any advice or do you think I should start with a fresh install?

Thanks!


helloworld2.pas(99,1) Error: Error while linking
helloworld2.pas(99,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make: *** [helloworld2] Error



:make
/usr/bin/ppcx64 -Fu../../rtl/units/x86_64-linux -Fisrc -FE. 
-FUunits/x86_64-linux -Cg -dx86_64 src/lua.pas

Free Pascal Compiler version 2.6.0 [2012/08/24] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/lua.pas
575 lines compiled, 0.0 sec
/usr/bin/ppcx64 -Fu../../rtl/units/x86_64-linux -Fisrc -FE. 
-FUunits/x86_64-linux -Cg -dx86_64 src/lualib.pas

Free Pascal Compiler version 2.6.0 [2012/08/24] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/lualib.pas
104 lines compiled, 0.0 sec
/usr/bin/ppcx64 -Fu../../rtl/units/x86_64-linux -Fisrc -FE. 
-FUunits/x86_64-linux -Cg -dx86_64 src/lauxlib.pas

Free Pascal Compiler version 2.6.0 [2012/08/24] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/lauxlib.pas
lauxlib.pas(292,6) Warning: Conversion between ordinals and pointers is 
not portable
lauxlib.pas(292,27) Warning: Conversion between ordinals and pointers is 
not portable

380 lines compiled, 0.0 sec
2 warning(s) issued

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-28 Thread Patrick


Could you try to compile the example using -st and then run the 
generated ppas.sh script and report it's output here? I hope to get 
more error information from the linker this way...


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Hi again Sven

I am going to switch over to Mint right now. If I don't respond it's 
because I screwed my email !


Ah ! the liblua.a file was there at the start and then after make clean, 
make it was not. Thanks !


I tried the  -st switch but a script was not generated. I have the 
results below but don't worry too much about it, I am going to start 
fresh again


Thanks-Patrick



:fpc -st helloworld.pas
Free Pascal Compiler version 2.6.0 [2012/08/24] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling helloworld.pas
helloworld.pas(28,11) Error: Incompatible types: got Boolean32 
expected LongInt

helloworld.pas(96) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not 
specify a source file to be compiled)


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Basically on the right track?

2012-12-27 Thread Patrick

Hi Everyone

This is my first post here.

I have NOT read all the documentation, please forgive this but I was 
hoping to ask a couple of questions to make sure I am on the right track 
before diving into Pascal.


I fell in love with Ada about 14 months ago. Including the cardboard 
box, i now have 53lbs of Ada books(A few still to read), I am planning 
on diving into Pascal in this way too and  I want to mix Ada and Pascal. 
I found an example on the web last night and it looks easy. The only 
thing is the example used the gnu pascal compiler,


Question 1:
Can fpc create gcc compatible object code ?

or

Question 2:
alternatively can gpc be used to compile the gtk binding?


I am having some trouble compiling gtk pascal examples, the linker can't 
find -lgtk etc. It looks like it is a naming issue and I can create 
links to get myself out of trouble however,


Question 3:
Is it possible to specify the libraries to use to fpc ? In Ada we have 
.gpr files that can list where things are to be found.


Thanks for reading

Merry Christmas to the list members celebrating the holiday-Patrick





___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-27 Thread Patrick
Wow ! I was really surprised to see all these emails when I woke up 
today! Thanks everyone.


So my message was held in the moderator queue for a while and I have 
been reading more.


Sorry for not reading through the man pages of fpc. I found the -Fu switch.

I have also read more about gpc and it seems abandoned, sorry for 
mentioning it here.


At the end of the email I have the hello world gtk program I tried to 
compile, the compiler error and an apt-get message from debian stable 
showing gtk dev installed.


I have been able to compile gtk c examples and other languages.



Is it possible to specify the libraries to use to fpc ? In Ada we have 
.gpr files that can list where things are to be found. 


What do you mean with this question ? 

This was an odd question to ask, sorry. With Ada we have .gpr files that 
can be used in place of Makefiles(for the most part). With fpc switches 
I will be fine now, sorry for the noise.


I am enjoying my holidays, I hope you guys are too !

-Patrick





:fpc hello_gtk.pas
Free Pascal Compiler version 2.4.0-2 [2010/02/20] for x86_64
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling hello_gtk.pas
Linking hello_gtk
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lgtk
hello_gtk.pas(70,1) Error: Error while linking
hello_gtk.pas(70,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not 
specify a source file to be compiled)



root@foo:/# apt-get install libgtk2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgtk2.0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
N: Ignoring file 'squeeze-backports.list.save' in directory 
'/etc/apt/sources.list.d/' as it has an invalid filename extension

root@foo:/#


PROGRAM hello_world;

USES gtk, gdk, glib;

{ -hello }

PROCEDURE hello( widget : pGtkWidget ; data : gpointer ); cdecl;
{ This is a callback function. The data arguments are ignored in this 
example. More on callbacks later }

BEGIN
writeln('Hello World!');
END; { --hello-- }

{ delete_event }
FUNCTION delete_event( widget : pGtkWidget ; event : pGdkEvent ; data : 
gpointer ) :

gint; cdecl;
{ If you return FALSE from the --delete_event-- signal handler, GTK will 
emit the --destroy-- signal. Returning TRUE means you don't want
the window to be destroyed. This is useful for popping up 'are you sure 
you want to quit?' type dialogs. }

BEGIN
writeln('delete event occurred');
{ Returning FALSE from the function, as we do here, causes the 
--destroy-- signal to be emitted. }

delete_event := 0; { i.e. FALSE }
END; { -delete_event-- }

{ -destroy }
PROCEDURE destroy( widget : pGtkWidget ; data : gpointer ); cdecl;
{ Another callback - this one will kill the app }
BEGIN
gtk_main_quit();
END; { 
---destroy--- }


{ ---Global Variables }
VAR
window, button : pGtkWidget; { GtkWidget is the storage type for widgets }
{ --Main Program-- }
BEGIN
{ This is called in all GTK applications. Arguments are parsed from the 
command line and are returned to the application. }

gtk_init(@argc, @argv);

window := gtk_window_new(GTK_WINDOW_TOPLEVEL); { Create a new window }

{ When the window is given the --delete_event-- signal (this is given by 
the window manager, usually by the --close-- option,
or on the titlebar), we ask it to call the delete_event() function as 
defined above. The data passed to the callback function

is NIL and is ignored in the callback function. }
gtk_signal_connect(GTK_OBJECT(window), 'delete_event',
GTK_SIGNAL_FUNC(@delete_event), NIL);

{ Here we connect the --destroy-- event to a signal handler. This event 
occurs when we call gtk_widget_destroy() on the window,

or if we return FALSE in the --delete_event-- callback. }
gtk_signal_connect(GTK_OBJECT(window), 'destroy',
GTK_SIGNAL_FUNC(@destroy), NIL);

{ Creates a new button with the label 'Hello World'. }
button := gtk_button_new_with_label('Hello World');

{ When the button receives the --clicked-- signal, it will call the 
procedure hello() -defined above- passing it NIL as its argument. }

gtk_signal_connect(GTK_OBJECT(button), 'clicked',
GTK_SIGNAL_FUNC(@hello), NIL);

{ This packs the button into the window (a gtk container). }
gtk_container_add(GTK_CONTAINER(window), button);

{ The final step is to display this newly created widget. }
gtk_widget_show(button);

{ and the window

Re: [fpc-pascal] Basically on the right track?

2012-12-27 Thread Patrick


This is exactly what I thought. You are trying to use the GTK1 unit. 
The unit for GTK+ is called gtk2. Take a look into packages/gtk 
and packages/gtk2 of a Free Pascal source folder to see the 
differences in the units (just look at the *.pas/*.pp files and ignore 
the *.inc files for now).


Also you could try whether you can compile the examples listed in 
packages/gtk2/examples.


Regards,
Sven


Thanks Sven

I am sure you are right about this.

Do you happen to know if there is a way to specify the install 
directory? I don't blame you guys for not using autotools but I often 
use a flag --prefex=/pat with configure to install into a directory not 
in my PATH. I then call my source built programs using their full path 
names instead. I installed 2.4 by mistake from source(in /usr) and seem 
to be having trouble removing it.


Thanks again for all your time-Patrick


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basically on the right track?

2012-12-27 Thread Patrick
Sorry to bug everyone again. I am still mixed up. I was having trouble 
with both source compiled builds and Debian stable packages on a 64 bit 
machine so I switched computers and used an atom based netbook. I still 
ended up with errors related to number types. I switched back to the 64 
bit computer and installed a binary from the site. I am still getting 
errors I have included one at the end of this email.


I am also finding the site confusing. If I click on AMD64/x86_64  on the 
binary download page and then choose  sourceforge, I end up being 
offered a package that says fpc-2.6.0.i386-linux.tar.


I did find another link and installed the compiler.

I appreciate all the time everyone has already put in-Patrick



Free Pascal Compiler version 2.6.0 [2011/12/23] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling helloworld.pas
helloworld.pas(28,11) Error: Incompatible types: got Boolean32 
expected LongInt

helloworld.pas(97) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not 
specify a source file to be compiled)


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Cross compiling: from linux to Darwin or Mac OS X

2010-03-26 Thread Patrick Chevalley
I try and give up.

What I use now is a Mac virtual machine running on my Linux x64.
It's too bad you have to turn to the dark side of the Internet for
instruction on how to do that.

Patrick
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-09 Thread Patrick Chevalley
I use Ubuntu 9.10 64bit and I can confirm this link are present with
this release.

To search for the package that contain a file I find apt-file handy:
sudo apt-get install apt-file
sudo apt-file update
and then
apt-file search libX11
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Cross-compiling from 64-bit Linux to 32-bit Linux

2010-02-08 Thread Patrick Chevalley
Install the ia32-libs package.

also check if your fpc.cfg contain the following lines, I not remember
if I add them:
#ifdef cpui386
-Fl/usr/lib32
-Xd
#endif

Patrick
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread patrick feillant

Hello,
You can do that with ?

MilliSecondsBetweenhttp://lazarus-ccr.sourceforge.net/fpcdoc/rtl/dateutils/millisecondsbetween.html



Calculate the number of whole milliseconds between two DateTime values.

between  encodedatetime(1970,1,1,0,0,0,0) and  Present

I don't test, but it's probably ok.

bye

2007/6/4, TOUZEAU DAVID [EMAIL PROTECTED]:


Dear

Is there a function that help me to calculate seconds since 1970 year ?

exactly the same of this command :

/bin/date +%s -d 20070103

best regards


--
David Touzeau -- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Windows CE emulator and console

2007-05-27 Thread patrick feillant

Hello,
When you run your emulateur, you give the repertorie witch is shared between
lazarus (compile exe) and the emulator.
ex : C:\Program Files\Microsoft Device Emulator\1.0\DeviceEmulator.exe
pocketpc.nb0 /skin Pocket_PC.xml /memsize 128 /sharedfolder C:\LzProjet\man\

Here i lunch the emulator with
image Os Wince : pocketpc.nb0 (same directorie as exe of emulator)
Picture of the pocket Pc model : /skin pocket_pc.xml  (one in the emulator
install)
size of Ram : /memsize 128 (for exemple 128 meg)
directorie share : /sharefolder C:\LzProjet\man\  ( my lazarus project is,
and for exemple with an test.exe

You compile under lazarus to have a test.exe

Under the emulator, you lunch file explorator (programs), and you go to
Sd card, your Sd Card is the shared directorie.
You click on test.exe.

You had to stop the run each time before recompile, or the file will be
busy (test.exe used by emulator). The (X) on the rigth of the windows don't
stop the run on pocket pc, you must stop the run by a button witch close the
main window. (or you stop the process under system / memory / stop process.

I also access to the web under the emulator, test that in a first time.
bye.
Patrick from France, excuse me for my english..

2007/5/26, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:


On 5/25/07, patrick feillant [EMAIL PROTECTED] wrote:
 I use  Microsoft Device emulator standalone, which emule pocket Pc , it
is
 very easy.

How do you run your apps on the emulator?

 But is not a new emulator ?

Yes, it' s the same emulator as before, but what I ment is that they
updated the operating system, and on the new one the consoles don' t
work.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Windows CE emulator and console

2007-05-26 Thread patrick feillant

Hello,
I use  Microsoft Device emulator standalone, which emule pocket Pc , it is
very easy. But is not a new emulator ?
I test with this one on windows xp.
But all the controls don't work correctly on Wince.



2007/5/25, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:


Hi,

Is anyone using the new emulator? And if so, how do you test your apps?

thanks,
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal](no subject)

2003-03-15 Thread Patrick Zerafa















From: "Lee, John" <[EMAIL PROTECTED]>

To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 

CC: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

Subject: RE: [fpc-pascal](no subject) 

Date: Fri, 14 Mar 2003 19:21:36 - 

 

This question isn't very easy to answer - there is no information in it. 

Please try to be more precise! 

 

We can help you if you give us some information eg what operating system are 

you using, what are you trying to do compile run, or debug? What did you 

download? What were the error messages? What did you use before? 

 

Regards John 

 

-Original Message- 

From: Patrick Zerafa [mailto:] 

Sent: Friday, March 14, 2003 16:38 

To: [EMAIL PROTECTED] 

Subject: [fpc-pascal](no subject) 

 

 

 

Dear sir, 

 

Hi, I installed Pascal but the Interface is not the right one and it is not 

as fast as it was once downloaded. Please can you tell me how to get the 

right Pascal Interface and working properly? 

 

your sincerely 

 

Patrick Zerafa. 

 

 

 

 

 

 _ 

 

MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 

months FREE*. ___ fpc-pascal 

maillist - [EMAIL PROTECTED] 

http://lists.freepascal.org/mailman/listinfo/fpc-pascal 

 

 



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. 

Dear Sir,

This computer is Pantium 3, Windows 98, I am trying to make use of Pascal fora school project and to have the program to try some programs like calculator(addition, subtraction...), 

I downloaded Pascal from the site www.freepascal.org and choosed theWin32 -thedownload which consisted of the biggest size (18KB) or something like that, thenIdownloaded it and installed it and got this program.

I may be asked more questionsabout my computer system and program downloaded in this e-mail address [EMAIL PROTECTED]

I hope to recieving backfrom you.

Patrick Zerafa


The new MSN 8: smart spam protection and 2 months FREE* 
___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal](no subject)

2003-03-14 Thread Patrick Zerafa


Dear sir,
Hi, I installed Pascal but the Interface is not the right one and it is not as fast as it was once downloaded. Please can you tell me how to get the right Pascal Interface and working properly?
your sincerely
Patrick Zerafa.

MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.
___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal