Re: cannot find -lGL (OpenGLContext application)

2007-11-28 Thread Marc Weustink

Valdas Jankūnas wrote:

[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.


usuallt you will get this symlink if you install the devel package if gl.

Marc

_
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-28 Thread Joao Morais

Bee wrote:

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. ;)


You don't need help, you have Ctrl+Click, Ctrl+Space, fpc docs and Google ;)

The debugger and the maturity of the visual classes of the VCL are the 
big advantages of Delphi, IMHO.


--
Joao Morais

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


Re: [lazarus] Contribution?

2007-11-28 Thread Roberto Padovani
Recently, there has been a discussion on possible copyright
infringement and the need of rewriting clean sorting algorithms...if
you are clean from delphi and/or kylix sources, have a look at those
messages and see.

R#

2007/11/27, Marco Alvarado [EMAIL PROTECTED]:
 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



-- 
--
 Ing. Roberto Padovani

 via Mandrioli, 1
 40061 Minerbio (BO)
 Italy

 mail: [EMAIL PROTECTED]
 cell: 340-3428685
-

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


[lazarus] Actual SVN-Tree compiles, but won't start...

2007-11-28 Thread Lukas Gradl
Tried today installing the latest SVN tree (13063) using a 0.9.25 
snapshot as a base and the latest FPC-SVN as a compiler and using Win2K 
as an OS.


Everything compiled fine, but when starting lazarus the splash-screen 
appears and after some seconds it disappears and lazarus.exe disappears 
from task-list without any errormessage...


Anyone else that problem?
Or anyone with a hint how to proceed?

regards
Lukas
--


software security networks
Lukas Gradl lazarus#ssn.at
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19


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


Re: [lazarus] Actual SVN-Tree compiles, but won't start...

2007-11-28 Thread Wanderlan Santos dos Anjos
See mantis http://www.freepascal.org/mantis/view.php?id=10235.

Options.
Compile Lazarus-SVN using stable FPC 2.2
Update C:\FPC\packages\paszlib\src\zstream.pp to revision 9290.

Wanderlan


On Nov 28, 2007 9:09 AM, Lukas Gradl [EMAIL PROTECTED] wrote:

 Tried today installing the latest SVN tree (13063) using a 0.9.25
 snapshot as a base and the latest FPC-SVN as a compiler and using Win2K
 as an OS.

 Everything compiled fine, but when starting lazarus the splash-screen
 appears and after some seconds it disappears and lazarus.exe disappears
 from task-list without any errormessage...

 Anyone else that problem?
 Or anyone with a hint how to proceed?

 regards
 Lukas
 --

 
 software security networks
 Lukas Gradl lazarus#ssn.at
 Eduard-Bodem-Gasse 9
 A - 6020 Innsbruck
 Tel: +43-720-300168-0
 Fax: +43-512-341033-19
 

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




-- 
Att,

Wanderlan Santos dos Anjos
(061) 3345-5496; 9133-3804


Re: [lazarus] Actual SVN-Tree compiles, but won't start...

2007-11-28 Thread Vincent Snijders

Lukas Gradl schreef:
Tried today installing the latest SVN tree (13063) using a 0.9.25 
snapshot as a base and the latest FPC-SVN as a compiler and using Win2K 
as an OS.


Everything compiled fine, but when starting lazarus the splash-screen 
appears and after some seconds it disappears and lazarus.exe disappears 
from task-list without any errormessage...


Anyone else that problem?
Or anyone with a hint how to proceed?



See http://www.freepascal.org/mantis/view.php?id=10235 and 
http://www.freepascal.org/mantis/view.php?id=10232.


IOW, fpc 2.3.1 is unusable for Lazarus ATM.

Vincent

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


[lazarus] printer4lazarus lazarus rebuild error

2007-11-28 Thread Matthew Rollings
Using the latest svn revision (13063) of lazarus and FPC 2.2.0, trying to 
rebuild lazarus to use the gtk2 interface i get the following error:

/usr/share/lazarus/components/printers/printer4lazarus.pas(1,1) Fatal: Can't 
find unit libc used by uDlgSelectPrinter

and the corresponding error in the console window of:

Compiling printer4lazarus.pas
Fatal: Can't find unit libc used by uDlgSelectPrinter
GetMsgLineFilename Filename printer4lazarus.pas not found.
TExternalToolList.Run 
Exception: /usr/share/lazarus/components/printers/printer4lazarus.pas(1,1) 
Fatal: Can't find unit libc used by uDlgSelectPrinter
TMainIDE.DoLoadLFM there is no LFM file 
for /usr/share/lazarus/components/printers/printer4lazarus.pas
TMainIDE.DoBuildLazarus: Compile AutoInstall Packages failed.

Any ideas how to overcome this problem? much appreciated.

Matthew

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


Re: [lazarus] Actual SVN-Tree compiles, but won't start...

2007-11-28 Thread Lukas Gradl

shame on me - should have searched in bug-tracker myself...

regards
Lukas

Vincent Snijders schrieb:

Lukas Gradl schreef:
Tried today installing the latest SVN tree (13063) using a 0.9.25 
snapshot as a base and the latest FPC-SVN as a compiler and using 
Win2K as an OS.


Everything compiled fine, but when starting lazarus the splash-screen 
appears and after some seconds it disappears and lazarus.exe 
disappears from task-list without any errormessage...


Anyone else that problem?
Or anyone with a hint how to proceed?



See http://www.freepascal.org/mantis/view.php?id=10235 and 
http://www.freepascal.org/mantis/view.php?id=10232.


IOW, fpc 2.3.1 is unusable for Lazarus ATM.

Vincent

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



--


software security networks
Lukas Gradl lazarus#ssn.at
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19


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


Re: [lazarus] printer4lazarus lazarus rebuild error

2007-11-28 Thread wile64
2007/11/28, Matthew Rollings [EMAIL PROTECTED]:

 Using the latest svn revision (13063) of lazarus and FPC 2.2.0, trying to
 rebuild lazarus to use the gtk2 interface i get the following error:

 /usr/share/lazarus/components/printers/printer4lazarus.pas(1,1) Fatal:
 Can't
 find unit libc used by uDlgSelectPrinter

 and the corresponding error in the console window of:

 Compiling printer4lazarus.pas
 Fatal: Can't find unit libc used by uDlgSelectPrinter
 GetMsgLineFilename Filename printer4lazarus.pas not found.
 TExternalToolList.Run
 Exception: /usr/share/lazarus/components/printers/printer4lazarus.pas(1,1)
 Fatal: Can't find unit libc used by uDlgSelectPrinter
 TMainIDE.DoLoadLFM there is no LFM file
 for /usr/share/lazarus/components/printers/printer4lazarus.pas
 TMainIDE.DoBuildLazarus: Compile AutoInstall Packages failed.

 Any ideas how to overcome this problem? much appreciated.

 Matthew


I just installed on Debian stable and have the same problem

See also bugtracker ID : 0010241


-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] Actual SVN-Tree compiles, but won't start...

2007-11-28 Thread Lukas Gradl

Thanks for your information on how to fix that...

regards
Lukas

Wanderlan Santos dos Anjos schrieb:

See mantis http://www.freepascal.org/mantis/view.php?id=10235.

Options.
Compile Lazarus-SVN using stable FPC 2.2
Update C:\FPC\packages\paszlib\src\zstream.pp to revision 9290.

Wanderlan


On Nov 28, 2007 9:09 AM, Lukas Gradl [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Tried today installing the latest SVN tree (13063) using a 0.9.25
snapshot as a base and the latest FPC-SVN as a compiler and using Win2K
as an OS.

Everything compiled fine, but when starting lazarus the splash-screen
appears and after some seconds it disappears and lazarus.exe disappears
from task-list without any errormessage...

Anyone else that problem?
Or anyone with a hint how to proceed?

regards
Lukas
--


software security networks
Lukas Gradl lazarus#ssn.at
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19


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




--
Att,

Wanderlan Santos dos Anjos
(061) 3345-5496; 9133-3804


--


software security networks
Lukas Gradl lazarus#ssn.at
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19


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


Re: [lazarus] printer4lazarus lazarus rebuild error

2007-11-28 Thread Alvise Nicoletti

Matthew Rollings ha scritto:
Using the latest svn revision (13063) of lazarus and FPC 2.2.0, trying to 
rebuild lazarus to use the gtk2 interface i get the following error:


/usr/share/lazarus/components/printers/printer4lazarus.pas(1,1) Fatal: Can't 
find unit libc used by uDlgSelectPrinter


and the corresponding error in the console window of:

Compiling printer4lazarus.pas
Fatal: Can't find unit libc used by uDlgSelectPrinter
GetMsgLineFilename Filename printer4lazarus.pas not found.
TExternalToolList.Run 
Exception: /usr/share/lazarus/components/printers/printer4lazarus.pas(1,1) 
Fatal: Can't find unit libc used by uDlgSelectPrinter
TMainIDE.DoLoadLFM there is no LFM file 
for /usr/share/lazarus/components/printers/printer4lazarus.pas

TMainIDE.DoBuildLazarus: Compile AutoInstall Packages failed.

Any ideas how to overcome this problem? much appreciated.

Matthew

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



  
Personally I have always had that error from lazarus 0.22 to the current 
version, on both ubuntu and ubuntu-server.
I resolved removing the two printer packages, cause honestly I didn't 
need them ;)


_
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-28 Thread Alvise Nicoletti

Sebastian Günther ha scritto:

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



I saw the unit... thank you and compliments ;)

Due to your experience, may I bother you again asking a demo or 
something similar?
I have a very big project to do with it and I want, before starting, do 
some tests of speed and performance.


Substantially I have to (try) to replace a windows dll with it...
... the bigger work is related to the fact that I should manage to use, 
with the same protocol, tcp/ip and serial devices, that are very similar.


Alvise

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


Re: [lazarus] Contribution?

2007-11-28 Thread Marco Alvarado
I have my implementation of the Introsort, don't know if that helps :S


2007/11/28, Roberto Padovani [EMAIL PROTECTED]:
 Recently, there has been a discussion on possible copyright
 infringement and the need of rewriting clean sorting algorithms...if
 you are clean from delphi and/or kylix sources, have a look at those
 messages and see.

 R#

 2007/11/27, Marco Alvarado [EMAIL PROTECTED]:
  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
 


 --
 --
  Ing. Roberto Padovani

  via Mandrioli, 1
  40061 Minerbio (BO)
  Italy

  mail: [EMAIL PROTECTED]
  cell: 340-3428685
 -

 _
  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


[lazarus] some questions

2007-11-28 Thread el stamatakos

Hi All,
 I would like to start by saying Lazarus seems like the answer I have been 
looking for, for a long time. I love Delphi and have finally found something 
similar for Linux. 
 I have a few questions, first I registered to the forums but never received an 
e-mail back with password so I cannot log in.
 I have two questions that pertain to the Linux version of Lazarus
 
1) I use a form and then I click in the OnCreate Event Handler in the object 
inspector and it returns an error Unable to find method. Plz fix the error 
shown in the message window.. I look at the message window and the error is 
Error:unit not found:Forms. I take the same code into windows and do not have 
this problem. Any ideas.
 
2) I would like to use MySQL with Lazarus. I have no idea where to start. I 
placed a MySQL50conn module. I then tried to connect to the database using the 
HostName, DatabaseName, userName, password. Is there a field for port? Is there 
a simple example to retrieve data from a MySQL. I have a form that essentially 
has some combobox and they are to be filled with info from the MySQL database. 
Please help. Thanks
 
I look forward to joining the forums and receiving help. Thanks in advance.
 
Lefti 

Re: [lazarus] some questions

2007-11-28 Thread Marco Alvarado
Hello!

1) I have solved all of my unit not found problems by adding all the
Path templates. Just go to the main menu  Project  Compiler Options,
and click the right [...] button for Other Unit Files and for Other
Sources. At the bottom of the dialog, you will see the Path templates,
just add all of them.

2) I have never worked with databases, maybe someone else can help you
on this :)

Regards!
-Marco

2007/11/28, el stamatakos [EMAIL PROTECTED]:

  Hi All,
   I would like to start by saying Lazarus seems like the answer I have
 been looking for, for a long time. I love Delphi and have finally found
 something similar for Linux.
   I have a few questions, first I registered to the forums but never
 received an e-mail back with password so I cannot log in.
   I have two questions that pertain to the Linux version of Lazarus

  1) I use a form and then I click in the OnCreate Event Handler in the
 object inspector and it returns an error Unable to find method. Plz fix the
 error shown in the message window.. I look at the message window and the
 error is Error:unit not found:Forms. I take the same code into windows and
 do not have this problem. Any ideas.

  2) I would like to use MySQL with Lazarus. I have no idea where to start. I
 placed a MySQL50conn module. I then tried to connect to the database using
 the HostName, DatabaseName, userName, password. Is there a field for port?
 Is there a simple example to retrieve data from a MySQL. I have a form that
 essentially has some combobox and they are to be filled with info from the
 MySQL database. Please help. Thanks

  I look forward to joining the forums and receiving help. Thanks in advance.

  Lefti


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


Re: [lazarus] some questions

2007-11-28 Thread Roberto Padovani
about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more access violation
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#

2007/11/28, el stamatakos [EMAIL PROTECTED]:

  Hi All,
   I would like to start by saying Lazarus seems like the answer I have
 been looking for, for a long time. I love Delphi and have finally found
 something similar for Linux.
   I have a few questions, first I registered to the forums but never
 received an e-mail back with password so I cannot log in.
   I have two questions that pertain to the Linux version of Lazarus

  1) I use a form and then I click in the OnCreate Event Handler in the
 object inspector and it returns an error Unable to find method. Plz fix the
 error shown in the message window.. I look at the message window and the
 error is Error:unit not found:Forms. I take the same code into windows and
 do not have this problem. Any ideas.

  2) I would like to use MySQL with Lazarus. I have no idea where to start. I
 placed a MySQL50conn module. I then tried to connect to the database using
 the HostName, DatabaseName, userName, password. Is there a field for port?
 Is there a simple example to retrieve data from a MySQL. I have a form that
 essentially has some combobox and they are to be filled with info from the
 MySQL database. Please help. Thanks

  I look forward to joining the forums and receiving help. Thanks in advance.

  Lefti



-- 
--
 Ing. Roberto Padovani

 via Mandrioli, 1
 40061 Minerbio (BO)
 Italy

 mail: [EMAIL PROTECTED]
 cell: 340-3428685
-

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


Re: [lazarus] some questions

2007-11-28 Thread Chris Kirkpatrick
There is also a more advanced tutorial which addresses the use of 
data-sensitive components:

http://wiki.lazarus.freepascal.org/MySQLDatabases
Hope it helps!
Chris

Roberto Padovani wrote:

about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more access violation
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#

  

 2) I would like to use MySQL with Lazarus. I have no idea where to start. I
placed a MySQL50conn module. I then tried to connect to the database using
the HostName, DatabaseName, userName, password. Is there a field for port?
Is there a simple example to retrieve data from a MySQL. I have a form that
essentially has some combobox and they are to be filled with info from the
MySQL database. Please help. Thanks

 Lefti





  


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


Re: [lazarus] some questions

2007-11-28 Thread Arí Ricardo Ody

Talking about databases:

Was the bug of Lazarus with date, time and timestamp types when 
accessing DB2 tables fixed?


No offense but I would like to know...

[ ]

Ricardo

At 13:48 28/11/2007, you wrote:
There is also a more advanced tutorial which addresses the use of 
data-sensitive components:

http://wiki.lazarus.freepascal.org/MySQLDatabases
Hope it helps!
Chris

Roberto Padovani wrote:

about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more access violation
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#


 2) I would like to use MySQL with Lazarus. I have no idea where 
to start. I

placed a MySQL50conn module. I then tried to connect to the database using
the HostName, DatabaseName, userName, password. Is there a field for port?
Is there a simple example to retrieve data from a MySQL. I have a form that
essentially has some combobox and they are to be filled with info from the
MySQL database. Please help. Thanks

 Lefti








_
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] some questions

2007-11-28 Thread Leonardo M. Ramé

Take a look at this:

http://wiki.lazarus.freepascal.org/SQLdb_Package

and this

http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=fcldbnotes

Leonardo.

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


Re: [lazarus] some questions

2007-11-28 Thread Mattias Gaertner
On Wed, 28 Nov 2007 09:25:41 -0600
Marco Alvarado [EMAIL PROTECTED] wrote:

 Hello!
 
 1) I have solved all of my unit not found problems by adding all the
 Path templates. Just go to the main menu  Project  Compiler Options,
 and click the right [...] button for Other Unit Files and for Other
 Sources. At the bottom of the dialog, you will see the Path templates,
 just add all of them.

No. Please add instead the LCL to the requirements in the project
inspector.

 
 2) I have never worked with databases, maybe someone else can help you
 on this :)
 
 Regards!
 -Marco
 
 2007/11/28, el stamatakos [EMAIL PROTECTED]:
 
   Hi All,
I would like to start by saying Lazarus seems like the answer I
  have been looking for, for a long time. I love Delphi and have
  finally found something similar for Linux.
I have a few questions, first I registered to the forums but never
  received an e-mail back with password so I cannot log in.
I have two questions that pertain to the Linux version of Lazarus
 
   1) I use a form and then I click in the OnCreate Event Handler in
  the object inspector and it returns an error Unable to find
  method. Plz fix the error shown in the message window.. I look at
  the message window and the error is Error:unit not found:Forms. I
  take the same code into windows and do not have this problem. Any
  ideas.

Is the unit part of your project and the LCL in the list of
requirements (see Project / Project Inspector)?


Mattias

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


Re: [lazarus] win32 snapshot

2007-11-28 Thread Vincent Snijders

Hess, Philip J schreef:
Today's win32 snapshot is about 25 MB smaller than yesterday's. Did 
something get left out?




I noticed I got a network disconnect at 9:30, which is most likely at 
the time of the upload. Good chance, the snapshot is just a partial upload.


Vincent

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


[lazarus] can't open old projects in 0.9.24

2007-11-28 Thread spasic

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add some features, but I can't 
open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details from me to backtrace the 
source of the problem?


Can it be because I have used the same source files on both Windows and 
Linux, and that the new 0.9.24 for Win32 have problems with opening 
files with Linux' line endings?


regards
Boban Spasic aka bobby

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


Re: [lazarus] can't open old projects in 0.9.24

2007-11-28 Thread spasic

spasic wrote:

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add some features, but I 
can't open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details from me to backtrace 
the source of the problem?


Can it be because I have used the same source files on both Windows 
and Linux, and that the new 0.9.24 for Win32 have problems with 
opening files with Linux' line endings?


regards
Boban Spasic aka bobby

Responding to myself.
The problem was in LFM file.
The following properties of TStringGrid caused the problem:
VisibleColCount
VisibleRowCount

In old lfm file I have assigned values to these properties, and it seems 
that the newer Lazarus expect them to be read only.


regards
Boban Spasic aka bobby

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


[lazarus] TDateEdit Format?

2007-11-28 Thread Lee Jenkins


Is this set automatically?  I can't seem to find a property to set the 
formatting for this control, but there is a DateFormatChanged procedure which 
seems to update the text in the control based on system settings...



--
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] some questions

2007-11-28 Thread el stamatakos

Hi All,
 I am still not able to get the OnCreate Event Handler for a form to work. It 
keeps complaining about missing units. I checked the Project Inspector and the 
LCL package is under the required packages. Should there be others there. When 
I go to Add and the Tab New Requirement there are many packages under Package 
Name: Do I need to install more. I appreciate all the help since I am a 
beginner and have no idea what is wrong. Thanks
 
Best,
Lefti Date: Wed, 28 Nov 2007 19:38:04 +0100 From: [EMAIL PROTECTED] To: 
lazarus@miraclec.com Subject: Re: [lazarus] some questions  On Wed, 28 Nov 
2007 09:25:41 -0600 Marco Alvarado [EMAIL PROTECTED] wrote:   Hello!  
  1) I have solved all of my unit not found problems by adding all the  
Path templates. Just go to the main menu  Project  Compiler Options,  and 
click the right [...] button for Other Unit Files and for Other  Sources. At 
the bottom of the dialog, you will see the Path templates,  just add all of 
them.  No. Please add instead the LCL to the requirements in the project 
inspector.2) I have never worked with databases, maybe someone else can 
help you  on this :)Regards!  -Marco2007/11/28, el 
stamatakos [EMAIL PROTECTED]: Hi All,   I would like to start by 
saying Lazarus seems like the answer I   have been looking for, for a long 
time. I love Delphi and have   finally found something similar for Linux.  
 I have a few questions, first I registered to the forums but never   
received an e-mail back with password so I cannot log in.   I have two 
questions that pertain to the Linux version of Lazarus 1) I use a 
form and then I click in the OnCreate Event Handler in   the object 
inspector and it returns an error Unable to find   method. Plz fix the 
error shown in the message window.. I look at   the message window and the 
error is Error:unit not found:Forms. I   take the same code into windows 
and do not have this problem. Any   ideas.  Is the unit part of your 
project and the LCL in the list of requirements (see Project / Project 
Inspector)?   Mattias  
_ To 
unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject 
archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] cannot find -lGL (OpenGLContext application)

2007-11-28 Thread Christian U.
libGL is mostly included in the mesa library so install mesa and mesa 
devel and it should be ok.


Marco Alvarado schrieb:

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

  


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


Re: [lazarus] can't open old projects in 0.9.24

2007-11-28 Thread Arí Ricardo Ody

I receive this messages too... With a recent project developed using 0.9.22.

[ ]

Ricardo

At 15:51 28/11/2007, you wrote:

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add some features, but I 
can't open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details from me to backtrace 
the source of the problem?


Can it be because I have used the same source files on both Windows 
and Linux, and that the new 0.9.24 for Win32 have problems with 
opening files with Linux' line endings?


regards
Boban Spasic aka bobby

_
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] can't open old projects in 0.9.24

2007-11-28 Thread bobby

I found what was the problem in my case, and I have reported to Bugzilla:
http://www.freepascal.org/mantis/view.php?id=10293

regards
Boban Spasic aka bobby

Arí Ricardo Ody wrote:
I receive this messages too... With a recent project developed using 
0.9.22.


[ ]

Ricardo

At 15:51 28/11/2007, you wrote:

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add some features, but I 
can't open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details from me to backtrace 
the source of the problem?


Can it be because I have used the same source files on both Windows 
and Linux, and that the new 0.9.24 for Win32 have problems with 
opening files with Linux' line endings?


regards
Boban Spasic aka bobby



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


Re: [lazarus] some questions

2007-11-28 Thread Jeff Steinkamp
You are not missing a unit, you have a conflict between the definition of an 
event in the form file and the actual. event handler in the unit file.  I've 
run across this on a couple of occasions and the only what I have found to 
resolve the issue was to open the form file and determine which assigned event 
in the form file does not have a corresponding handler in the unit file.

Jeff



  - Original Message - 
  From: el stamatakos 
  To: lazarus@miraclec.com 
  Sent: Wednesday, November 28, 2007 12:21
  Subject: RE: [lazarus] some questions


  Hi All,
   I am still not able to get the OnCreate Event Handler for a form to work. It 
keeps complaining about missing units. I checked the Project Inspector and the 
LCL package is under the required packages. Should there be others there. When 
I go to Add and the Tab New Requirement there are many packages under Package 
Name: Do I need to install more. I appreciate all the help since I am a 
beginner and have no idea what is wrong. Thanks
   
  Best,
  Lefti

   Date: Wed, 28 Nov 2007 19:38:04 +0100
   From: [EMAIL PROTECTED]
   To: lazarus@miraclec.com
   Subject: Re: [lazarus] some questions
   
   On Wed, 28 Nov 2007 09:25:41 -0600
   Marco Alvarado [EMAIL PROTECTED] wrote:
   
Hello!

1) I have solved all of my unit not found problems by adding all the
Path templates. Just go to the main menu  Project  Compiler Options,
and click the right [...] button for Other Unit Files and for Other
Sources. At the bottom of the dialog, you will see the Path templates,
just add all of them.
   
   No. Please add instead the LCL to the requirements in the project
   inspector.
   
   
2) I have never worked with databases, maybe someone else can help you
on this :)

Regards!
-Marco

2007/11/28, el stamatakos [EMAIL PROTECTED]:

 Hi All,
 I would like to start by saying Lazarus seems like the answer I
 have been looking for, for a long time. I love Delphi and have
 finally found something similar for Linux.
 I have a few questions, first I registered to the forums but never
 received an e-mail back with password so I cannot log in.
 I have two questions that pertain to the Linux version of Lazarus

 1) I use a form and then I click in the OnCreate Event Handler in
 the object inspector and it returns an error Unable to find
 method. Plz fix the error shown in the message window.. I look at
 the message window and the error is Error:unit not found:Forms. I
 take the same code into windows and do not have this problem. Any
 ideas.
   
   Is the unit part of your project and the LCL in the list of
   requirements (see Project / Project Inspector)?
   
   
   Mattias
   
   _
   To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



Re: [lazarus] can't open old projects in 0.9.24

2007-11-28 Thread Arí Ricardo Ody

I don't understand what I must do... Go back to 0.9.22?

Cheers

Ricardo

At 16:47 28/11/2007, you wrote:

I found what was the problem in my case, and I have reported to Bugzilla:
http://www.freepascal.org/mantis/view.php?id=10293

regards
Boban Spasic aka bobby

Arí Ricardo Ody wrote:

I receive this messages too... With a recent project developed using 0.9.22.

[ ]

Ricardo

At 15:51 28/11/2007, you wrote:

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add 
some features, but I can't open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details 
from me to backtrace the source of the problem?


Can it be because I have used the same source 
files on both Windows and Linux, and that the 
new 0.9.24 for Win32 have problems with opening files with Linux' line endings?


regards
Boban Spasic aka bobby


_
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] can't open old projects in 0.9.24

2007-11-28 Thread bobby

Arí Ricardo Ody wrote:

I don't understand what I must do... Go back to 0.9.22?

Cheers

Ricardo


No, no. Open the problematic LFM file in text editor or in Lazarus, and 
find the lines which throws this error.

If you find them - delete them.
In Bugzilla I have reported two properties of TStringGrid which need to 
be deleted from LFM file.


regards
Boban



At 16:47 28/11/2007, you wrote:
I found what was the problem in my case, and I have reported to 
Bugzilla:

http://www.freepascal.org/mantis/view.php?id=10293

regards
Boban Spasic aka bobby

Arí Ricardo Ody wrote:
I receive this messages too... With a recent project developed using 
0.9.22.


[ ]

Ricardo

At 15:51 28/11/2007, you wrote:

I have some pretty old apps made with Lazarus maybe one year ago.
Now I'm back to those apps, as I would to add some features, but I 
can't open them in 0.9.24

I get TJITForm errors.

Is this a known issue or you need more details from me to backtrace 
the source of the problem?


Can it be because I have used the same source files on both Windows 
and Linux, and that the new 0.9.24 for Win32 have problems with 
opening files with Linux' line endings?


regards
Boban Spasic aka bobby


_
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



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


[lazarus] Back to 0.9.22

2007-11-28 Thread Arí Ricardo Ody

I gave up.

Back to Lazarus 0.9.22

[ ]

Ricardo

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


Re: [lazarus] can't open old projects in 0.9.24

2007-11-28 Thread Jesus Reyes

--- Arí Ricardo Ody [EMAIL PROTECTED] escribió:

 I don't understand what I must do... Go back to 0.9.22?
 
 Cheers
 
 Ricardo
 
 At 16:47 28/11/2007, you wrote:
 I found what was the problem in my case, and I have reported to
 Bugzilla:
 http://www.freepascal.org/mantis/view.php?id=10293

I updated the bug report, note that it is a duplicate of another one,
follow the link to duplicate bug.

Jesus Reyes A.


  

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:  

http://correo.yahoo.com.mx/

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


Re: [lazarus] can't open old projects in 0.9.24

2007-11-28 Thread bobby




Thanks Jesus,

I have received your comments from Bugzilla.

Is there any chance to make Lazarus fixing this automatically?
Not all the people read bugzilla and this mailing list.

regards
Boban Spasic

Jesus Reyes wrote:

  --- Ar Ricardo Ody [EMAIL PROTECTED] escribi:

  
  
I don't understand what I must do... Go back to 0.9.22?

Cheers

Ricardo

At 16:47 28/11/2007, you wrote:


  I found what was the problem in my case, and I have reported to
  

Bugzilla:


  http://www.freepascal.org/mantis/view.php?id=10293
  

  
  
I updated the bug report, note that it is a duplicate of another one,
follow the link to duplicate bug.

Jesus Reyes A.


  
Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes ms por el espacio de tu cuenta con Correo Yahoo!:  
http://correo.yahoo.com.mx/

_
 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] Back to 0.9.22

2007-11-28 Thread Graeme Geldenhuys
On 28/11/2007, Arí Ricardo Ody [EMAIL PROTECTED] wrote:
 I gave up.

 Back to Lazarus 0.9.22


I also feel like going back to 0.9.23.  :-)  I'm currently running
0.9.25 (a few revisions after the release of 0.9.24).  Opening
different Packages or Projects causes Lazarus to randomly crash. No
error messages, it just dies and disappears.  This is driving me nuts.
 I'm using Linux (Ubuntu) with FVWM2.

I would have reported this on Mantis, but still can't reproduce the
error on demand or with a specific project. So with to little
information, I don't see the point in submitting a bug report yet.
:-(


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] Back to 0.9.22

2007-11-28 Thread Steven Graham

Graeme Geldenhuys wrote:


I also feel like going back to 0.9.23.  :-)  I'm currently running
0.9.25 (a few revisions after the release of 0.9.24).  Opening
different Packages or Projects causes Lazarus to randomly crash. No
error messages, it just dies and disappears.  This is driving me nuts.
 I'm using Linux (Ubuntu) with FVWM2.

I would have reported this on Mantis, but still can't reproduce the
error on demand or with a specific project. So with to little
information, I don't see the point in submitting a bug report yet.
:-(
  


I'm also finding the 0.9.24 to be very unstable, my current project that 
I'm working on, it also just crashes as soon as I try to load the 
project, I'm running the win32 version. I may go back to 0.9.23


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


Re: [lazarus] Back to 0.9.22

2007-11-28 Thread Jesus Reyes

--- Steven Graham [EMAIL PROTECTED] escribió:

 Graeme Geldenhuys wrote:
 
  I also feel like going back to 0.9.23.  :-)  I'm currently
 running
  0.9.25 (a few revisions after the release of 0.9.24).  Opening
  different Packages or Projects causes Lazarus to randomly crash.
 No
  error messages, it just dies and disappears.  This is driving me
 nuts.
   I'm using Linux (Ubuntu) with FVWM2.
 
  I would have reported this on Mantis, but still can't reproduce
 the
  error on demand or with a specific project. So with to little
  information, I don't see the point in submitting a bug report
 yet.
  :-(

 
 I'm also finding the 0.9.24 to be very unstable, my current project
 that 
 I'm working on, it also just crashes as soon as I try to load the 
 project, I'm running the win32 version. I may go back to 0.9.23

Before you go back to previous version, would do you mind to help us
to find  what is the cause?, how? by doing a backtrace so we at least
know what/where is not working.

see http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB

in summary:

1. Open a command prompt window and cd to lazarus dir
2. if gdb program is not in your path, type the fullpath to gdb
3. gdb lazarus.exe
4. run [Return], then wait lazarus crashes.
5. backtrace [Return], copy the output of backtrace

Thanks.

Jesus Reyes A.


  

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:  

http://correo.yahoo.com.mx/

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


Re: [lazarus] Back to 0.9.22

2007-11-28 Thread Michael Van Canneyt


On Wed, 28 Nov 2007, Arí Ricardo Ody wrote:

 We have lots of Lazarus projects here. It would be almost impossible to debug
 each one and report error(s).


I must say I am surprised by all the bug reports of an 'unstable' lazarus:
I'm running Lazarus 0.9.25, revision 12870, and it's running very stable.
I would definitely say it is the most stable version I've had yet.

As for not being able to open older projects' form files: this can be 
expected, and should normally be a 1-time issue if you correct the .lfm 
files. It can happen too if you switch between Delphi versions. (although
usually in the other direction: opening newer form files with older delphi
versions)

I agree that ideally, in the interest of backwards compatibility,
it should not happen. Maybe the LFM loader can implement some list of
'known cases' and handle those transparantly or gracefully. A simple
textfile in the lazarus directory could list the 'known' cases.

Michael.

Re: [lazarus] Back to 0.9.22

2007-11-28 Thread Marc Weustink

Arí Ricardo Ody wrote:
We have lots of Lazarus projects here. It would be almost impossible to 
debug each one and report error(s).


Keep in mind that we might not find them ourselves. So when no cause if 
found they wont get fixed.


Marc


PS. technically the difference between .24 and .23 is only one commit: 
the increase of version number.


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


Re: [lazarus] Back to 0.9.22

2007-11-28 Thread Michael Van Canneyt


On Thu, 29 Nov 2007, Graeme Geldenhuys wrote:

 On 28/11/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote:
 
  As for not being able to open older projects' form files: this can be
  expected, and should normally be a 1-time issue if you correct the .lfm
  files. It can happen too if you switch between Delphi versions. (although
  usually in the other direction: opening newer form files with older delphi
  versions)
 
 
 Ok, so what's my excuse then?  :-) I don't use LCL in my applications,
 so don't have .lfm files, yet if I open different projects (console,
 fpGUI etc..) it randomly kills Lazarus.  And no, the projects aren't
 old, they are all currently being developed.  I'll try and find more
 information, but as I stated, it is random.  I'll run Lazarus via GDB
 all day tomorrow to see if I can get some useful information out of
 the crashes.

That would be helpful for the Lazarus team, I think.
As Marc said: they cannot fix it if they cannot reproduce it.

 
 Another issue is Window Focusing.  Sometimes clicking on a window
 doesn't focus the window. Well, it does, but the Title bar of the
 window shows Inactive state and I can't see a text cursor in the
 editor window, yet I can type. It's quite tricky that way! :)

Do you have this with all window managers ?  
(I remember some fvwm-related questions from you, hence the question)
Because I don't seem to have it with KDE ?

 Restarting Lazarus sort that issue out for a while, that's if the
 crash does happen first.
 
 The rest of Lazarus IDE looks very nice though.  And I like the new
 setting dialogs.

I on the other hand, did not like this particular aspect... :-)

Seems that, as usual, Your Mileage May Vary :-)

Michael.

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


RE: [lazarus] MySql 4.1 Database Questions

2007-11-28 Thread el stamatakos

Hi,
 I finally got passed the 
 
Project Raised exception class 'EInOutError with message:Can not load MySQL 
library libmysqlclient.so. Please check yourinstallation. Indeed I had to 
create a symbolik link.
 
***I have another problem
 
1) I have an MDI application and when I clicked on a menu it would open another 
form. Now it does not any idea how I can fix this.
 
2) I want to be able to do something like
 
SQLQuery1.SQLSelect('SELECT * from process ORDER BY processDisplayOrder');
 
Any ideas.
 
Thanks to all.
 
Best
 
Lefti
 
 Date: Wed, 28 Nov 2007 22:18:09 -0500 From: [EMAIL PROTECTED] To: 
 lazarus@miraclec.com Subject: Re: [lazarus] MySql 4.1 Database Questions  
 el stamatakos wrote:Hi All,  I am making some progress with 
 Lazarus. It is a great tool and hope  to learn it well. I have a problem 
 when trying to connect to MySQL  4.1. I used some of the code from the 
 tutorial essentially and I  have the following code
 MySQLConnection1.HostName := HostEdit.Text;  MySQLConnection1.UserName := 
 UserEdit.Text;  MySQLConnection1.Password := PasswdEdit.Text;  
 MySQLConnection1.DatabaseName :='mysql';  MySQLConnection1.Open;I 
 stepped through each of the MySQL commands from HostName to Open  to find 
 out the problem. I encountered a problem when I tried to do  
 MySQLConnection1.Open; and got the following errorProject Raised 
 exception class 'EInOutError with message:  Can not load MySQL library 
 libmysqlclient.so. Please check your  installation.I added the 
 MYSQL41Connection, TSQLQuery, TSQLTransaction from the  SQLdb tab in 
 Lazarus. If I look at the Project Inspector, I see  SQLDBLaz (=1.0) as a 
 Required Package.I haven't worked with MySQL in years and then only 
 little, but the client  library for mysql obviously can't be found/loaded. 
 I've only worked in linux a  bit, but I remember having a similar problem 
 with a firebirdsql client app.  Someone walked me through creating a symlink 
 to the actual .so file from the  application's directory if I remember 
 correctly.  Someone with more experience than I will pipe in I'm sure, but 
 just a thought in  the meantime.  --  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] MySql 4.1 Database Questions

2007-11-28 Thread John




el stamatakos wrote:

   
1) I have an MDI application and when I clicked on a menu it would open
another form. Now it does not any idea how I can fix this.

Can you give a little more information ?

2) I want to be able to do something like

SQLQuery1.SQLSelect('SELECT * from process ORDER BY
processDisplayOrder');

  

Very roughly, at run time, you add the query text to SQLQuery1.SQL

SQLQuery1.SQL.clear;
SQLQuery1.SQL.add('SELECT * from process ORDER BY processDisplayOrder');

and set it active

SQLQuery1.active = true;

OR you can do this at design time in the object inspector, if the
query does not change.

WARNING:

I've been trying to work out how to use SVN, and all my up to date
lazaruses are broken (!), so I cannot check that this is exactly right
- hope it points you in the right direction.

cheers,
John Sunderland



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


[lazarus] Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-28 Thread Igor Zakhrebetkov
I've installed Lazarus-0.9.24-fpc-2.2.0-20071114-win32.exe on Windows XP SP2 with some 
components like TDBF .


Simple demo application with TOpenDialog component:
===
  TForm1 = class(TForm)
Button1: TButton;
OpenDialog1: TOpenDialog;
procedure Button1Click(Sender: TObject);
  private
{ private declarations }
  public
{ public declarations }
  end;

var
  Form1: TForm1;

implementation

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
  if OpenDialog1.Execute then
   ShowMessage(OpenDialog1.FileName);
end;
===
After trying to pick up any file I've got an error with message:

Project project1 raised exception class 'External: SIGSEGV'.

Sometimes it simply hangs.
There were no such problems with previous version.

--
Igor Zakhrebetkov

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


Re: [lazarus] Lazarus-0.9.24: SIGSEGV in TOpenDialog

2007-11-28 Thread Vincent Snijders

Igor Zakhrebetkov schreef:
I've installed Lazarus-0.9.24-fpc-2.2.0-20071114-win32.exe on Windows XP 
SP2 with some components like TDBF .


After trying to pick up any file I've got an error with message:

Project project1 raised exception class 'External: SIGSEGV'.

Sometimes it simply hangs.
There were no such problems with previous version.


Is this when you run the application in the 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] Back to 0.9.22

2007-11-28 Thread Graeme Geldenhuys
On 29/11/2007, Michael Van Canneyt [EMAIL PROTECTED] wrote:

 That would be helpful for the Lazarus team, I think.
 As Marc said: they cannot fix it if they cannot reproduce it.

I know that too well, and it doesn't help that 90% of the bugs I
report I can't reproduce 'on demand' either.  Lucky me! :)

 Do you have this with all window managers ?
 (I remember some fvwm-related questions from you, hence the question)
 Because I don't seem to have it with KDE ?

None of the other apps in fvwm has shown this behaviour, so I don't
think it's related to the fvwm window manager.  I'll keep testing to
get a possible pattern.


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