Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Graeme Geldenhuys
On 27/11/2007, Chris Kirkpatrick [EMAIL PROTECTED] wrote:
 FPCDoc. The RTL and FCL descriptor files are not, however, in the SVN
 repository or distributions, as the libraries and their documentation
 are considered to be much more mature and stable. I imagine you could

They *are* in a svn repository of there own. Simply to keep the source
and docs separate.
You can check them out using svn at the following repository url.

http://svn.freepascal.org/svn/fpcdocs/trunk


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Non UTF-8 Encodings

2007-11-27 Thread Marco van de Voort
On Tue, Nov 27, 2007 at 09:42:54AM +0200, Razvan Adrian Bogdan wrote:
 What about the Synapse conversion units ? There is a unit, synachar if
 i remember correctly that dragged a lot of charsets and codepages
 internally and converts wtthout iconv support for most of them and
 uses iconv if the encoding is not supported internally, we could write
 our own such unit using the idea from synapse, i think they borrowed
 some conversion tables from iconv.

See charset unit? Or what else uses rtl/ucmaps ?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Makeopts

2007-11-27 Thread Damien Gerard


When I use the command line : export LCL_PLATFORM=gtk; make clean all  
it compiles well.


But when I use export LCL_PLATFORM=gtk; make -j 2 clean all it does  
not compile at all




Target OS: Darwin for i386
Compiling lazarus.pp
Free Pascal Compiler version 2.2.1 [2007/11/25] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Darwin for i386
Compiling startlazarus.lpr
Fatal: Can't find unit Interfaces used by Lazarus
Fatal: Can't find unit Interfaces used by StartLazarus
Fatal: Compilation aborted
make[2]: *** [startlazarus] Error 1
Fatal: Compilation aborted
make[1]: *** [starter] Error 2
make[2]: *** [lazarus] Error 1
make: *** [starter] Error 2
make: *** Waiting for unfinished jobs
make[1]: *** [ide] Error 2
make: *** [ide] Error 2


Is there another way to do this ?



--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Makeopts

2007-11-27 Thread Marc Weustink

Damien Gerard wrote:


When I use the command line : export LCL_PLATFORM=gtk; make clean all it 
compiles well.


But when I use export LCL_PLATFORM=gtk; make -j 2 clean all it does not 
compile at all


Unlike C where files can compiled simultanious since there is no 
relation between them, for pascal that is not possible. So don't use -j 
option.



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Makeopts

2007-11-27 Thread Mattias Gaertner
On Tue, 27 Nov 2007 10:10:08 +0100
Damien Gerard [EMAIL PROTECTED] wrote:

 
 When I use the command line : export LCL_PLATFORM=gtk; make clean
 all it compiles well.
 
 But when I use export LCL_PLATFORM=gtk; make -j 2 clean all it does  
 not compile at all

Multitasked compilation is not supported yet.

[...]
 
 Is there another way to do this ?

AFAIK: no


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Non UTF-8 Encodings

2007-11-27 Thread Razvan Adrian Bogdan
On Nov 27, 2007 11:04 AM, Marco van de Voort [EMAIL PROTECTED] wrote:
 See charset unit? Or what else uses rtl/ucmaps ?

I think i saw it before, but didn't see any use for it, i can't seem
to find any conversion tables just a strange (ugly naming, case,
types, logic) skeleton to something that isn't implemented.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Mattias Gaertner
On Tue, 27 Nov 2007 09:55:26 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 On 27/11/2007, Chris Kirkpatrick [EMAIL PROTECTED]
 wrote:
  FPCDoc. The RTL and FCL descriptor files are not, however, in the
  SVN repository or distributions, as the libraries and their
  documentation are considered to be much more mature and stable. I
  imagine you could
 
 They *are* in a svn repository of there own. Simply to keep the source
 and docs separate.
 You can check them out using svn at the following repository url.
 
 http://svn.freepascal.org/svn/fpcdocs/trunk

I will improve lazdoc to work with these xml files too.

Already working:
Add the path to the xml files in environment options (lazdoc).
Then move the mouse over an identifier (e.g. DateTimeToFileDate) and
wait for the hint.
This requires lazarus svn rev 13051.

It would be nice if the fpcdoc xml files could be easily installed via
packages.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable

2007-11-27 Thread Joost van der Sluis
Op maandag 26-11-2007 om 23:50 uur [tijdzone +0100], schreef Joost van
der Sluis:
 Op maandag 26-11-2007 om 15:05 uur [tijdzone +0100], schreef Roberto
 Padovani:
  2007/11/26, Daniel Rincón García [EMAIL PROTECTED]:
  To the Great Guys of the lazarus project:
  
  I am finishing a medium size project with lazarus + sqlite3, for which
  I had study and experiment a lot due to the fact that, IMHO, the
  database tutorial was slightly too quick on the sqlite part.
  Would you appreciate it if I wrote a tutorial (= commented example) on
  sqlite3 with basic topics like the one above and the not so trivial
  date management stuff ?
  If you don't really care about it, I won't spend time on it; but if
  you do care, please point me to the instructions for the wiki and/or a
  tutorial page templatethis will be my Christmas present to the
  Lazarus project. :-)
 
 The database-documentation is as good as non-existent. All examples and
 tutorials are usefull. So please do.

For those who are worried now: the documentation and examples of most
other TDataset-based components which can be found all over the net,
books etc. do basically also apply to fcl-db. It could be that you need
some slight adjustions, but the ideas behind it all are the same.

Joost

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] FPC SegV

2007-11-27 Thread Damien Gerard


FPC often produces a SegV during the compilation, whatever the version

I tried to

Compiling ./workspace/workspace.pas
Compiling ./frames/base/frames_base_treeview.pas
Compiling ./splash/loading.pas
Compiling ./workspace/workspace.pas
pixiestypes.pas(109,1) Fatal: Internal error 200306232

Current version :
Shani [milipili] ...i/pixie/client/src/pixie %  
fpc 
   12 
:01 #59

Free Pascal Compiler version 2.2.1 [2007/11/25] for i386



The file is big (5000 lines). May be it is the cause.


But I have another SegV with fpc :

Fatal: Compilation aborted
An unhandled exception occurred at $000F00C8 :
EAccessViolation : Access violation
  $000F00C8
  $000F02C5
  $000F0AED
  $00117F63
  $0011841F
  $000F6B26
  $000DAA33
  $000EAD33
  $000F5D60
  $000F6A58
  $000DAA33
  $000EAD33
  $000EA7FB
  $000EAC00
  $000EA7FB
  $000EAC00
  $000EA7FB

Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you  
did not specify a source file to be compiled)




I suppose I have to recompile FPC with debug support and to use the  
appropriated ml ?  :)




--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Vincent Snijders

Mattias Gaertner schreef:


It would be nice if the fpcdoc xml files could be easily installed via
packages.


What do you mean? What is missing?

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Non UTF-8 Encodings

2007-11-27 Thread Mattias Gaertner
On Tue, 27 Nov 2007 12:40:35 +0200
Razvan Adrian Bogdan [EMAIL PROTECTED] wrote:

 On Nov 27, 2007 11:04 AM, Marco van de Voort [EMAIL PROTECTED] wrote:
  See charset unit? Or what else uses rtl/ucmaps ?
 
 I think i saw it before, but didn't see any use for it, i can't seem
 to find any conversion tables just a strange (ugly naming, case,
 types, logic) skeleton to something that isn't implemented.

I think too, the names should be made more readable.
It is the right direction, because it is in the RTL and does not
use any slow ansistrings/widestrings.
So for a platform independent, pure pascal solution this could be used
(using the tables of synaser).
But I don't know how complete these tables are and how much work it is
to maintain them.
Nevertheless it should given a try.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Mattias Gaertner
On Tue, 27 Nov 2007 12:09:17 +0100
Vincent Snijders [EMAIL PROTECTED] wrote:

 Mattias Gaertner schreef:
  
  It would be nice if the fpcdoc xml files could be easily installed
  via packages.
 
 What do you mean? What is missing?

For example: I don't see any of the xml files in the debian packages.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Vincent Snijders

Mattias Gaertner schreef:

On Tue, 27 Nov 2007 12:09:17 +0100
Vincent Snijders [EMAIL PROTECTED] wrote:


Mattias Gaertner schreef:

It would be nice if the fpcdoc xml files could be easily installed
via packages.

What do you mean? What is missing?


For example: I don't see any of the xml files in the debian packages.



I see. I thought you were talking about lazarus packages with .lpk files.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] update screenshot to latest release

2007-11-27 Thread Bee

Hi all,

I found Lazarus screenshot 
(http://wiki.lazarus.freepascal.org/Screenshots) is out-dated. I can 
manage to have latest Lazarus screenshot on Ubuntu gtk2 and WindowsXP. 
How and to whom should I send the screenshot images? Is it okay to send 
them to this list? Or should I have an account on the wiki and edit the 
page?


TIA.

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] update screenshot to latest release

2007-11-27 Thread Vincent Snijders

Bee schreef:

Hi all,

I found Lazarus screenshot 
(http://wiki.lazarus.freepascal.org/Screenshots) is out-dated. I can 
manage to have latest Lazarus screenshot on Ubuntu gtk2 and WindowsXP. 
How and to whom should I send the screenshot images? Is it okay to send 
them to this list? Or should I have an account on the wiki and edit the 
page?


Create an account on the wiki, upload the new screenshots and replace them on 
http://wiki.lazarus.freepascal.org/Screenshots


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Marco van de Voort
On Tue, Nov 27, 2007 at 12:42:28PM +0100, Vincent Snijders wrote:
 It would be nice if the fpcdoc xml files could be easily installed
 via packages.
 What do you mean? What is missing?
 For example: I don't see any of the xml files in the debian packages.
 
 I see. I thought you were talking about lazarus packages with .lpk files.

And I thought fppkg :-)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Primitive classes in fpc/lazarus

2007-11-27 Thread Mattias Gärtner
Zitat von Marco van de Voort [EMAIL PROTECTED]:

 On Tue, Nov 27, 2007 at 12:42:28PM +0100, Vincent Snijders wrote:
  It would be nice if the fpcdoc xml files could be easily installed
  via packages.
  What do you mean? What is missing?
  For example: I don't see any of the xml files in the debian packages.
 
  I see. I thought you were talking about lazarus packages with .lpk files.

 And I thought fppkg :-)

All three should be improved. :)

That reminds me of fppkg+lcl ...

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Contribution?

2007-11-27 Thread Marco Alvarado
The Lazarus project is really cool, and I'd like to contribute. Is
there any area that needs help?

Thanks!
-Marco

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Contribution?

2007-11-27 Thread Lord Satan
On Tue, 27 Nov 2007 08:33:46 -0600
Marco Alvarado [EMAIL PROTECTED] wrote:

 The Lazarus project is really cool, and I'd like to contribute. Is
 there any area that needs help?

The TOpenGLContext for gtk2 needs to be fixed. :)
But I think the lazarus developers will have better ideas.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Serial Comm Support Windows

2007-11-27 Thread Jeff Steinkamp
- Original Message - 
From: Razvan Adrian Bogdan [EMAIL PROTECTED]

To: lazarus@miraclec.com
Sent: Tuesday, November 27, 2007 00:22
Subject: Re: [lazarus] Serial Comm Support Windows



I personally like the synaser project :)

Razvan




Since this particular project is a Windows only project, I just added 
the windows unit and used the normal routines I've used in Delphi. 
Nothing fancy, but works like a champ.


Jeff


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Contribution?

2007-11-27 Thread Marco Alvarado
That's what I was looking for, thanks! :D


2007/11/27, Vincent Snijders [EMAIL PROTECTED]:
 Marco Alvarado schreef:
  The Lazarus project is really cool, and I'd like to contribute. Is
  there any area that needs help?

 There are a lot of areas. Did you read
 http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus ?

 Vincent

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LCL in Dll

2007-11-27 Thread Razvan Adrian Bogdan
On Nov 22, 2007 6:01 PM, Leonardo M. Ramé [EMAIL PROTECTED] wrote:
 That means Zeos uses LCL?, I still don't understand why the dll works
 correctly by compiling in FPC from command line and not by compiling
 from Lazarus.

Maybe some compilation switch, probably stripping is the issue.

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Serial Comm Support Windows

2007-11-27 Thread Alvise Nicoletti

Jeff Steinkamp ha scritto:
I know there is a serial unit for Linux/Unix, but is there similar 
support for serial communications for the Windows Platform?



Jeff Steinkamp - N7YG
Tucson, AZ
SCUD Missile Coordinates
N32-13-55.01 W110-50-51.91
http://n7yg.net
http://home.earthlink.net/~jksteinkamp
Linux User #420428
Skype : jeff_steinkamp
Yahoo Messenger: n7yg
___

STUPIDITY IS NOT A HANDICAP. Park elsewhere!

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




Sorry but... where is the serial unit for linux/unix?

I don't find it... and I'd like to try.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Serial Comm Support Windows

2007-11-27 Thread Sebastian Günther

Alvise Nicoletti schrieb:


Sorry but... where is the serial unit for linux/unix?

I don't find it... and I'd like to try.


It's part of the RTL. You can find the source in rtl/unix/serial.pp


Regards,
Sebastian

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Lazarus 0.9.24 Congrats

2007-11-27 Thread Lee Jenkins


Its obvious that there has been a lot of work on Lazarus between 0.9.24 and 
0.9.22 and I just wanted to say congrats and thanks for your hard work.


Taking into account the advantages of cross platform development, would anyone 
disagree that 0.9.24 is on par with Delphi 6?


--
Warm Regards,

Lee

My wife is better at Guitar Hero than I am and it's really irritating.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LCL in Dll

2007-11-27 Thread Leonardo M. Ramé
The problem was solved by upgrading the compiler to 2.3.1., I was using 
2.2.1 supplied with Lazarus snapshot.


Razvan Adrian Bogdan escribió:

On Nov 22, 2007 6:01 PM, Leonardo M. Ramé [EMAIL PROTECTED] wrote:

That means Zeos uses LCL?, I still don't understand why the dll works
correctly by compiling in FPC from command line and not by compiling
from Lazarus.


Maybe some compilation switch, probably stripping is the issue.

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus 0.9.24 Congrats

2007-11-27 Thread Leonardo M. Ramé

I don't use Delphi 6, but for some projects its in par with Delphi 7.

I miss some features like project groups and dll debugging, but in 
general Lazarus 0.9.25 is really great.


Lee Jenkins escribió:


Its obvious that there has been a lot of work on Lazarus between 0.9.24 
and 0.9.22 and I just wanted to say congrats and thanks for your hard work.


Taking into account the advantages of cross platform development, would 
anyone disagree that 0.9.24 is on par with Delphi 6?




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
I get the error at the bottom of this test in the OpenGLContext component:

unit OpenGLContext;

{$mode objfpc}{$H+}

{$IFDEF LCLGTK}
  {$DEFINE UseGtkGLX}
  {$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFDEF LCLGTK2}
  {$DEFINE UseGtk2GLX}
  {$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFDEF LCLCarbon}
  {$DEFINE UseCarbonAGL}
  {$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFDEF LCLWin32}
  {$DEFINE UseWin32WGL}
  {$DEFINE OpenGLTargetDefined}
{$ENDIF}
{$IFNDEF OpenGLTargetDefined}
  {$ERROR this target is not yet supported}
{$ENDIF}

I'm creating the component dynamically. The example that comes with
this component works for me, but I can't make it compile in my
application.

Do you know where the LCL is defined? Maybe I have to include another unit.

Thanks!

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Mattias Gaertner
On Tue, 27 Nov 2007 11:42:32 -0600
Marco Alvarado [EMAIL PROTECTED] wrote:

 I get the error at the bottom of this test in the OpenGLContext
 component:
 
 unit OpenGLContext;
 
 {$mode objfpc}{$H+}
 
 {$IFDEF LCLGTK}
   {$DEFINE UseGtkGLX}
   {$DEFINE OpenGLTargetDefined}
 {$ENDIF}
 {$IFDEF LCLGTK2}
   {$DEFINE UseGtk2GLX}
   {$DEFINE OpenGLTargetDefined}
 {$ENDIF}
 {$IFDEF LCLCarbon}
   {$DEFINE UseCarbonAGL}
   {$DEFINE OpenGLTargetDefined}
 {$ENDIF}
 {$IFDEF LCLWin32}
   {$DEFINE UseWin32WGL}
   {$DEFINE OpenGLTargetDefined}
 {$ENDIF}
 {$IFNDEF OpenGLTargetDefined}
   {$ERROR this target is not yet supported}
 {$ENDIF}
 
 I'm creating the component dynamically. The example that comes with
 this component works for me, but I can't make it compile in my
 application.
 
 Do you know where the LCL is defined? Maybe I have to include
 another unit.

The define comes from the LCL package.
What target platform do you use?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
Hmm, there doesn't seem to exist an LCL unit, but there are several
LCL units. I'm using win32 at the moment. Thanks :)

2007/11/27, Mattias Gaertner [EMAIL PROTECTED]:
 On Tue, 27 Nov 2007 11:42:32 -0600
 Marco Alvarado [EMAIL PROTECTED] wrote:

  I get the error at the bottom of this test in the OpenGLContext
  component:
 
  unit OpenGLContext;
 
  {$mode objfpc}{$H+}
 
  {$IFDEF LCLGTK}
{$DEFINE UseGtkGLX}
{$DEFINE OpenGLTargetDefined}
  {$ENDIF}
  {$IFDEF LCLGTK2}
{$DEFINE UseGtk2GLX}
{$DEFINE OpenGLTargetDefined}
  {$ENDIF}
  {$IFDEF LCLCarbon}
{$DEFINE UseCarbonAGL}
{$DEFINE OpenGLTargetDefined}
  {$ENDIF}
  {$IFDEF LCLWin32}
{$DEFINE UseWin32WGL}
{$DEFINE OpenGLTargetDefined}
  {$ENDIF}
  {$IFNDEF OpenGLTargetDefined}
{$ERROR this target is not yet supported}
  {$ENDIF}
 
  I'm creating the component dynamically. The example that comes with
  this component works for me, but I can't make it compile in my
  application.
 
  Do you know where the LCL is defined? Maybe I have to include
  another unit.

 The define comes from the LCL package.
 What target platform do you use?


 Mattias

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Vincent Snijders

Marco Alvarado schreef:

Hmm, there doesn't seem to exist an LCL unit, but there are several
LCL units. I'm using win32 at the moment. Thanks :)

2007/11/27, Mattias Gaertner [EMAIL PROTECTED]:

On Tue, 27 Nov 2007 11:42:32 -0600
Marco Alvarado [EMAIL PROTECTED] wrote:

I'm creating the component dynamically. The example that comes with

this component works for me, but I can't make it compile in my
application.

Do you know where the LCL is defined? Maybe I have to include
another unit.

The define comes from the LCL package.
What target platform do you use?


I can compile the package on win32 and I can add the package as a 
requirement to an application and compile that.


Does your application has the LCL as requirement? Do you compile in the 
Lazarus IDE or from the command line?


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
I just added all the template paths in the Compiler Options, and now
it works :D Thanks!


2007/11/27, Vincent Snijders [EMAIL PROTECTED]:
 Marco Alvarado schreef:
  Hmm, there doesn't seem to exist an LCL unit, but there are several
  LCL units. I'm using win32 at the moment. Thanks :)
 
  2007/11/27, Mattias Gaertner [EMAIL PROTECTED]:
  On Tue, 27 Nov 2007 11:42:32 -0600
  Marco Alvarado [EMAIL PROTECTED] wrote:
 
  I'm creating the component dynamically. The example that comes with
  this component works for me, but I can't make it compile in my
  application.
 
  Do you know where the LCL is defined? Maybe I have to include
  another unit.
  The define comes from the LCL package.
  What target platform do you use?

 I can compile the package on win32 and I can add the package as a
 requirement to an application and compile that.

 Does your application has the LCL as requirement? Do you compile in the
 Lazarus IDE or from the command line?

 Vincent

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Non UTF-8 Encodings

2007-11-27 Thread Jesus Reyes

--- Mattias Gaertner [EMAIL PROTECTED] escribió:

 On Tue, 27 Nov 2007 12:40:35 +0200
 Razvan Adrian Bogdan [EMAIL PROTECTED] wrote:
 
  On Nov 27, 2007 11:04 AM, Marco van de Voort [EMAIL PROTECTED]
 wrote:
   See charset unit? Or what else uses rtl/ucmaps ?
  
  I think i saw it before, but didn't see any use for it, i can't
 seem
  to find any conversion tables just a strange (ugly naming, case,
  types, logic) skeleton to something that isn't implemented.
 
 I think too, the names should be made more readable.
 It is the right direction, because it is in the RTL and does not
 use any slow ansistrings/widestrings.
 So for a platform independent, pure pascal solution this could be
 used
 (using the tables of synaser).
 But I don't know how complete these tables are and how much work it
 is
 to maintain them.
 Nevertheless it should given a try.
 
 Mattias

The other day I built a tool that takes the txt tables and convert
them to pascal constant arrays attached is the resulting inc file if
needed for something. If I knew something like this ucmaps/charset
exists I probably wouldn't do it (It never occured to me to look into
fpc TBH). 

Jesus Reyes A.



  Comparte video en la ventana de tus mensajes (y también tus fotos de 
Flickr). 
Usa el nuevo Yahoo! Messenger versión Beta.
http://mx.beta.messenger.yahoo.com/

encodings.inc.gz
Description: 689895700-encodings.inc.gz


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Marco Alvarado
Go to Project  Compiler Options  Paths

Click on any [...] button (right hand of the path fields). There is a
Path templates list, you can select the ones you need, it's really
helpful.

In the future I'll remember to add all of them :D

Lazarus rocks!


2007/11/27, Vincent Snijders [EMAIL PROTECTED]:
 Marco Alvarado schreef:
  I just added all the template paths in the Compiler Options, and now
  it works :D Thanks!
 
 

 Huh, template paths? What are those?

 I opened the project inspector to edit the required packages.

 Vincent

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OpenGLContext doesn't recognize the widgetset

2007-11-27 Thread Vincent Snijders

Marco Alvarado schreef:

I just added all the template paths in the Compiler Options, and now
it works :D Thanks!




Huh, template paths? What are those?

I opened the project inspector to edit the required packages.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] cannot find -lGL (OpenGLContext application)

2007-11-27 Thread Marco Alvarado
The application is running correctly in Windows, now I want to compile
it in Linux. I get just one error while linking:

/usr/bin/ld: cannot find -lGL
pruebabasicalinux.lpr(97,1) Error: Error while linking
pruebabasicalinux.lpr(97,1) Fatal: There were 1 errors compiling
module, stopping

I created this test from the new Application wizard, and added all the
paths. The application uses GL, GLU and OpenGLContext. What could be
missing?

Thanks a lot for all your help, I have got very far on this project.

-Marco

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: cannot find -lGL (OpenGLContext application)

2007-11-27 Thread Marco Alvarado
Oh look, I got the same error when compiling the TOpenGLContext example:

Compiling package LazOpenGLContext 0.0 completed
/usr/bin/ld: cannot find -lGL
testopenglcontext1.lpr(14,1) Error: Error while linking
testopenglcontext1.lpr(14,1) Fatal: There were 1 errors compiling
module, stopping

What needs to be configured in order to get these applications running?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: cannot find -lGL (OpenGLContext application)

2007-11-27 Thread david . lyon

Quoting Marco Alvarado [EMAIL PROTECTED]:


Oh look, I got the same error when compiling the TOpenGLContext example:

Compiling package LazOpenGLContext 0.0 completed
/usr/bin/ld: cannot find -lGL
testopenglcontext1.lpr(14,1) Error: Error while linking
testopenglcontext1.lpr(14,1) Fatal: There were 1 errors compiling
module, stopping

What needs to be configured in order to get these applications running?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



I am just guessing; but it is not linking in the GL library.

is it -LGL instead of -lGL?, also just try -L GL?

I think that you are very close..

the next error should be; cannot find library GL

The linux linker is very pedantic - keep trying

Regards

David

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: cannot find -lGL (OpenGLContext application)

2007-11-27 Thread Valdas Jankūnas

[EMAIL PROTECTED] rašė:

Quoting Marco Alvarado [EMAIL PROTECTED]:


Oh look, I got the same error when compiling the TOpenGLContext example:

Compiling package LazOpenGLContext 0.0 completed
/usr/bin/ld: cannot find -lGL
testopenglcontext1.lpr(14,1) Error: Error while linking
testopenglcontext1.lpr(14,1) Fatal: There were 1 errors compiling
module, stopping

What needs to be configured in order to get these applications running?



I am just guessing; but it is not linking in the GL library.

is it -LGL instead of -lGL?, also just try -L GL?

I think that you are very close..

the next error should be; cannot find library GL

The linux linker is very pedantic - keep trying


 First check if library libGL is installed: open console, execute cd 
/usr/lib to goto in that dir then execute ls libGL*. If in output you 
see words like libGL.so.1.0.9639 - library is installed, otherwise you 
need install this library.
 If library is installed but you not see libGL.so in ls output then 
you need make symlink from libGL.so.some_numbers (in my example 
libGL.so.1.0.9639) to libGL.so: execute in that dir command sudo ln 
-s libGL.so.some_numbers libGL.so.



--
  Valdas Jankūnas

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus 0.9.24 Congrats

2007-11-27 Thread Bee

I don't use Delphi 6, but for some projects its in par with Delphi 7.


I'm using Lazarus 9.25 (SVN). For some features, Lazarus is better than 
Delphi 7, even par with Turbo Delphi. But for some other features, 
Delphi 7 is better, for example: integrated help. ;)


I miss some features like project groups and dll debugging, but in 
general Lazarus 0.9.25 is really great.


The most feature I miss is: dynamic package aka BPL on Delphi. ;)

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives