Re: [lazarus] Trying PascalMagick

2006-04-07 Thread Jean-Noel Avila
Thierry Andriamirado a écrit :
 Hello everybody,
 
 Working on a soft which for the moment uses the command line tools of
 ImageMagick, I just found PascalMagick exists. So I tried to use it,
 following the wiki's instructions, but the linker allways return an ld
 error message:
 
 /usr//bin/ld: cannot find -lWand
 wanddemo.lpr(63,1) Error: Error while linking
 
 
 I use ImageMagick-6.2.6-8 from www.imagemagick.org, the fedora binary
 version... on a Mandrake 10.1.
 I set the environment variables, as they were not set by the rpm
 (MAGICK_HOME, LD_LIBRARY_PATH etc...) nada!
 
 Any tips please? I'd like to make it working without compiling
 ImageMagick, to be as close as user's configs.
 
 Thanks in advance,
 
 

Maybe you need to install ImageMagick-devel

-- 
* Jean-Noel Avila   Tel. : +33 (0)4 79 25 31 32
* ALEPH S.A.Fax  : +33 (0)4 79 25 24 27
* Savoie Technolac BP 264
* F-73375 Le Bourget du Lac

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


[lazarus] FBLib or Zeos?

2006-04-07 Thread Andrea Mauri

Hi to all,
I'm starting the development of an application that will use a Firebird DB.
Using Delphi I've always used the Interbase components to connect to the 
IB DB.

I would like to implement this application in Lazarus using Firebird.
I have to choose between FBlib components and Zeos.
Which one I have to choose? There are some guidelines in order to choose 
FBLib or Zeos?

Thanks a lot,
Andrea

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


Re: [lazarus] FBLib or Zeos?

2006-04-07 Thread Bogusław Brandys

Andrea Mauri wrote:

Hi to all,
I'm starting the development of an application that will use a Firebird DB.
Using Delphi I've always used the Interbase components to connect to the 
IB DB.

I would like to implement this application in Lazarus using Firebird.
I have to choose between FBlib components and Zeos.
Which one I have to choose? There are some guidelines in order to choose 
FBLib or Zeos?

Thanks a lot,
Andrea



Consider also UIB2.


Regards
Boguslaw

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


Re: [lazarus] FBLib or Zeos?

2006-04-07 Thread Michael Van Canneyt



On Fri, 7 Apr 2006, Andrea Mauri wrote:


Hi to all,
I'm starting the development of an application that will use a Firebird DB.
Using Delphi I've always used the Interbase components to connect to the IB 
DB.

I would like to implement this application in Lazarus using Firebird.
I have to choose between FBlib components and Zeos.
Which one I have to choose? There are some guidelines in order to choose 
FBLib or Zeos?


AFAIK:

FBLib is probably more closer to IBX than Zeos is. It will almost certainly
allow more closer transaction control.

For Zeos you need to use some zeos version which is in CVS.

Michael.

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


Re: [lazarus] FBLib or Zeos?

2006-04-07 Thread Alexander Todorov
I have been using the SQLdb package that comes with Lazarus to connect
to Firebird and so far it works fine for me. Using it both for
graphical and console applications. And it is easy if you later decide
to change the underlying database server.

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


Re: [lazarus] Lazarus installation on SuSE

2006-04-07 Thread Mattias Gaertner
On Fri, 07 Apr 2006 00:24:00 -0400
Alain Michaud [EMAIL PROTECTED] wrote:

   I assume that lazarus will find the FPC stuff?
  
 Well, not quite!
 
 in the menu ENVIRONMENT OPTIONS you have manually update  the FPC
 SOURCE DIRECTORY and make sure that it is OK by clicking the action:
 RESCAN SOURCE DIRECTORY
 
 This is a good oportunity for me to ask a developer for a little
 explanation. Why is the source code necessary to build a user
 application?

It's not needed.


 I assume that the compiler will recompile all the code each
 time, not just link to th already conmpiled libraries!

No. It will only recompile, if it spots something new.


 Just a short explanation (two lines max) would put me back on the track.

The sources are needed for some of the IDE's source functions. For example
find declaration.


Mattias

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


Re: [lazarus] How to use CodeTools Defines (Editor)?

2006-04-07 Thread Mattias Gaertner
On Thu, 6 Apr 2006 03:20:10 -0300
Flávio Etrusco [EMAIL PROTECTED] wrote:

 Hi all,
 
 I'm having a hard time trying to get a grasp of CodeTools Defines
 (Editor) and I can't find any documentation about it on the web or in
 Lazarus sources. Is there anyone?

No. See below.

 
 If not, I'll start with a concrete case: all codetools fail (with
 error 'Unit not found', pointing to LCL units) on files not explicitly
 included in the project, but instead accessed by means of Other Unit
 Files configuration in 'Compiler options...' dialog of 'Project' main
 menu.

I guess, you mean something like this:
/path/project/unit1.pas
/path/dir/unit2.pas

- project's unit path points to unit2
- unit2 is not part of the project or any package
- unit2 uses the LCL

= The IDE will not find the LCL units for unit2


 I debugged the IDE and discovered that the LCL units aren't found
 because the 'FindDeclarationTool' restricts the search to the folder
 of the active document because it can't find a '#SrcPath' variable
 defined (it is, for files added to the project or from LCL or fpc).
 
 So, how can I fix this exact situation? And better yet, can anyone
 share some insight on the CodeTools Defines so I/we can make a better
 use of it? ;-)

Fix:
Add unit2 to a package and define, what it needs.

Reason:
Every package and project define their own set of values/search paths. For
example the FPC sources are world of their own and do not use the LCL.
Every directory can contain 'defines'. A 'define' is for example the
definition of the SrcPath. The 'defines' are defined by the 'templates',
seen in the codetools defines editor. When you browse through the tree, you
can see, that most of the values are created from the compiler or the
compiler options of the packages and project. And some, like the FPC and
Lazarus sources are hand made.
You can add your own definitions, like adding the defintions for a Delphi7
Source directory. There is a template for that in the menu.

I had not yet the time to write documentation for this editor. It's needed
only for projects with platform specific settings.


Mattias

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


Re: [lazarus] run-time traslation feature

2006-04-07 Thread Mattias Gaertner
On Fri, 07 Apr 2006 17:35:02 +0200
Giuliano Colla [EMAIL PROTECTED] wrote:

 Mattias Gaertner ha scritto:
 [...]
 Where is Trasl defined?
 
 
In the QTraslate unit which is included in the uses statement of the
custom component modules, and which is created when loaded with
strings. Otherwise it's present but unassigned.
 
 [...]
 I've been forced to override the Repaint method, to force a new 
 translation to become effective.
 
 The Repaint is not needed under LCL.
 
  
Under Delphi/Kilix it was. Good to know.
 
 - It's a little bit too specific. We already have problems with same
 english value and different translations.
That's why my Caption returns the English value and not the translated
one. The Translated caption is only displayed, but programmer deals
only with the original string.
 - All LCL captions have already a special type: TTranslateString. Just go
 through all components with RTTI and translate these properties. Then you
 have not only the value, but the class as well to find the correct
 translation. We don't need to extend the LCL controls with code. Just use
 TTranslateString.
 
 
I'll try, and if it provides the required functionality, I'll gladly
throw away my hack.

If not, then you either found a bug, or I misunderstood you.


Mattias

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


[lazarus] ODBC connectors?

2006-04-07 Thread johnf
Hi,
It appears that the ODBC connector does not have any code for:
GetSchemaInfoSQL.  The other connectors Postgres, MySQL, and Firebird have 
code to retrieve the schema information - like getting the primary key 
information.  So when using the ODBC connector where and how does one set the 
schema information for the Tsqlquery control?  Without setting the 
information in the Tsqlquery the applyupdates will not work.

Thanks
John  

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


Re: [lazarus] ODBC connectors?

2006-04-07 Thread johnf
On Friday 07 April 2006 09:38, johnf wrote:
 Hi,
 It appears that the ODBC connector does not have any code for:
 GetSchemaInfoSQL.  The other connectors Postgres, MySQL, and Firebird
 have code to retrieve the schema information - like getting the primary key
 information.  So when using the ODBC connector where and how does one set
 the schema information for the Tsqlquery control?  Without setting the
 information in the Tsqlquery the applyupdates will not work.

 Thanks
 John
It looks like UpdateIndexDefs is not defined.  Ok, so does that mean I can 
just the add the primary key to IndexDefs.AddIndexDef structure?  And if 
that's right what is the easy way to add the information and when should it 
be added?

John

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


Re: [lazarus] Trying PascalMagick

2006-04-07 Thread Felipe Monteiro de Carvalho
On 4/7/06, Jean-Noel Avila [EMAIL PROTECTED] wrote:
 Maybe you need to install ImageMagick-devel

U ...

I think that what is necessary is only libMagick, which is the library
version of ImageMagick (some .so files instead of command line tools).

I'm not sure, but I don't think the devel package is necessary, at
least I did not install it on my system and it worked, but things tend
to be different in the various distros.

--
Felipe Monteiro de Carvalho

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


[lazarus] Temperary FTP Speace

2006-04-07 Thread Matt Henley
Quick question for everyone. As some might know, I am working on a program in Lazarus with a group of people fairly spread out. The project manager is in northern Brazil. He has developed the beginings of an interface and it is working fine on WinXP, but it is not working under Linux. Unfortunately, he does not know how to quickly set up a Linux box so he can debug.
In response, I have
created a vmware system image of a linux machine with lazarus and
zeoslib/firebird and svn version of OpSim which builds OpSim quite nicely. It is runable with the
free version of vmware player ( http://www.vmware.com/products/player/
). Here is my problem, the zip'd image file is a little over a GB (I
did not strip everything out of a Ubuntu installation for fear of not
having a stable system). Samuel has given me access to a ftp site to
put it on. However, so far I have not been able to upload it ... the
file gets to 600 mb and the server stops responding... Does anyone have a location (ftp or web based ) that I can
place this image for a couple of weeks? Anyone is free to use it.. it is a fully usuable pre
set up linux installation.. it just needs the svn synced to the
current version. I need to get this done fairly quickly as I have a
flight to Singapore set for Monday and hotel links tend to have slow
uploads...Matt Henley 


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread Timothy Ha

Have you tried www.rapidshare.de ?
You can break the image into some 6-7 files under 100 MB and upload them 
there.


Timothy.

Matt Henley пишет:
Quick question for everyone.  As some might know, I am working on a 
program in Lazarus with a group of people fairly spread out.  The 
project manager is in northern Brazil.  He has developed the beginings 
of an interface and it is working fine on WinXP, but it is not working 
under Linux.  Unfortunately, he does not know how to quickly set up a 
Linux box so he can debug.


In response, I have created a vmware system image of a linux machine 
with lazarus and zeoslib/firebird and svn version of OpSim which 
builds OpSim quite nicely.  It is runable with the free version of 
vmware player ( http://www.vmware.com/products/player/ ).  Here is my 
problem, the zip'd image file is a little over a GB (I did not strip 
everything out of a Ubuntu installation for fear of not having a 
stable system).  Samuel has given me access to a ftp site to put it 
on.  However, so far I have not been able to upload it ... the file 
gets to 600 mb and the server stops responding... 

Does anyone have a location (ftp or web based ) that I can place this 
image for a couple of weeks?  Anyone is free to use it.. it is a fully 
usuable pre set up linux installation..  it just needs the svn synced 
to the current version.  I need to get this done fairly quickly as I 
have a flight to Singapore set for Monday and hotel links tend to have 
slow uploads...


Matt Henley



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


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread L505



You could split the file into pieces and rejoin it 
together later.
I'd do it in 100MB splits, or 50MB 
splits.


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread Flávio Etrusco
On 4/7/06, L505 [EMAIL PROTECTED] wrote:

 You could split the file into pieces and rejoin it together later.
 I'd do it in 100MB splits, or 50MB splits.

Or you could just pay $10 for avoiding the trouble ;-)

There also MegaUpload (http://www.megaupload.com), which allows 250MB.

-Flávio

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


Re: [lazarus] Qt Custom Control Patch

2006-04-07 Thread Felipe Monteiro de Carvalho
Just a reminder.

thanks,
--
Felipe Monteiro de Carvalho

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


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread L505

  You could split the file into pieces and rejoin it together later.
  I'd do it in 100MB splits, or 50MB splits.

 Or you could just pay $10 for avoiding the trouble ;-)

In other news, Flavio bought a copy of delphi for $500 to avoid the trouble of
freepascal.

It's a common dilemma:
 1. give in and buy software/service or shareware that does what you want
 2. code a program up for free yourself, like a real man
 3. turn off computer and get some excersize outside and stop worrying about
binary.

Actually I recently started a split utility project (compiles in both FPC and
Delphi) that let's me resume the split later. Problem is a 10GB file won't fit
on a CD, so you have to pause the splitting process and resume it later, after
entering the second CD in the drive. (my hard drive was too full to have the
file split on it first before going on to the CD). Not done the joining utility
yet though.

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


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread Flávio Etrusco
On 4/7/06, L505 [EMAIL PROTECTED] wrote:

   You could split the file into pieces and rejoin it together later.
   I'd do it in 100MB splits, or 50MB splits.

  Or you could just pay $10 for avoiding the trouble ;-)

 In other news, Flavio bought a copy of delphi for $500 to avoid the trouble of
 freepascal.

Thank you, but I appreciate the freedom and the power of open source ;-)
Also, I can't see anything wrong in spending US$10 on something
minimally important, why is it?

 It's a common dilemma:
  1. give in and buy software/service or shareware that does what you want
  2. code a program up for free yourself, like a real man
  3. turn off computer and get some excersize outside and stop worrying about
 binary.

LOL.
Remember: free software is about freedom, not price.
Of course monetary cost can be and usually is a form of restricting
freedom, but nothing if absolutely free.

 Actually I recently started a split utility project (compiles in both FPC 
 and
 Delphi) that let's me resume the split later. Problem is a 10GB file won't fit
 on a CD, so you have to pause the splitting process and resume it later, after
 entering the second CD in the drive. (my hard drive was too full to have the
 file split on it first before going on to the CD). Not done the joining 
 utility
 yet though.

There're tons of such utilities already. This is not the problem.
The problem is having to upload several separate files, and then
everyone will have to download the several separate files, and be
subject to the service limits, and then rejoin the files which can be
time-consuming on old systems, and will require the additional hd
space, etc...

-Flávio

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


Re: [lazarus] How to use CodeTools Defines (Editor)?

2006-04-07 Thread Flávio Etrusco
(...)
 I guess, you mean something like this:
 /path/project/unit1.pas
 /path/dir/unit2.pas

 - project's unit path points to unit2
 - unit2 is not part of the project or any package
 - unit2 uses the LCL

 = The IDE will not find the LCL units for unit2

(...)


 Fix:
 Add unit2 to a package and define, what it needs.

But shouldn't the CodeTools use a fallback and search the default
project or Lazarus settings when no defines are found for a file?

I am converting the current SynEdit code to Lazarus and was a bit lazy
to add all the files to project. In the end it's nothing that a bit of
CLI magic didn't resolve in a blink, but I find the behaviour odd
anyway...

 Reason:
 Every package and project define their own set of values/search paths. For
 example the FPC sources are world of their own and do not use the LCL.
 Every directory can contain 'defines'. A 'define' is for example the
 definition of the SrcPath. The 'defines' are defined by the 'templates',
 seen in the codetools defines editor. When you browse through the tree, you
 can see, that most of the values are created from the compiler or the
 compiler options of the packages and project. And some, like the FPC and
 Lazarus sources are hand made.
 You can add your own definitions, like adding the defintions for a Delphi7
 Source directory. There is a template for that in the menu.


Hmm ok. So the only use for it is defining - say - the paths dependencies?
I'll try to add something about it in the wiki to compensate for your
time and explanation :-)

Regards,
Flávio

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


Re: [lazarus] Temperary FTP Speace

2006-04-07 Thread L505

 Thank you, but I appreciate the freedom and the power of open source ;-)
 Also, I can't see anything wrong in spending US$10 on something
 minimally important, why is it?

No problem at all - I would spend $10-$20 on a I Love Freepascal t-shirt, for
example.

 Remember: free software is about freedom, not price.
 Of course monetary cost can be and usually is a form of restricting
 freedom, but nothing if absolutely free.

Oh I wrote about these issues before.. I know what you are saying.
http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Open-Source-Service-Scared-Him
Warning: don't read paswiki if you have a busy day. Takes a long time to wade
through all the rants on that site.

 Actually I recently started a split utility project (compiles in both FPC
and
 Delphi) that let's me resume the split later. Problem is a 10GB file won't fit
 on a CD, so you have to pause the splitting process and resume it later, after
 entering the second CD in the drive. (my hard drive was too full to have the
 file split on it first before going on to the CD). Not done the joining
utility
 yet though.

  There're tons of such utilities already.

I spent a few minutes on google trying to find one that had resume capabilities
or stop and let me insert next CD-ROM capabilities but couldn't find one.. I
don't know what this feature is called?
If you know of a utility let me know.
The ones I tried just split the files into one directory without pausing
inbetween.

Anyway it was fun to build the program.. the real problem was my google skills
weren't good enough. Some times I don't know what a certain feature is called.
Resume splitting? I don't know. I needed to learn a bit about splitting files in
Pascal, so I wrote a util to gain some pascal knowledge. Unfortunately I didn't
come from the TurboPascal days where it was very common to split a file onto
several floppies. I don't have that experience. :-)


p.s. just buy EditPlus and skip Synedit. It's faster than most Synedit based
editors. Just pay the $30 for EditPlus already and quit the Synedit nonsense.
But of course, synedit is fun to learn about and can always do more then
editplus will ever be able to do, due to extensibility.  Actually that's why I
wrote the file splitting utility - it is inhouse software that I need to extend
later on in a few months anyway. Gotta love inhouse software.

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