Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 05:38 AM, Paul Ishenin wrote:

23.03.2011 21:01, Paul Ishenin wrote:

23.03.2011 18:54, patspiper wrote:

EInvalidGraphic: Stream is not an icon type

I will do a test tomorow.


Is the code above compatible with both RT_CURSOR and RT_GROUP_CURSOR
resources?

I tested it with icons only. I see from the code that instead of
RT_CURSOR for TCursorImage it will use RT_ICON. Maybe this cause a 
problem.


Where were more problems than I expected. I hope I fixed them all in 
r30006. Please test.
updated to r30007 and while rebuilding Lazarus:Compiling resource 
../units/i386-linux/lazarus.or
/home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while 
compiling resources


Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2

Thanks,
Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Mark Morgan Lloyd

Tobias Giesen wrote:

Hello,

I now have a netbook computer with an ARM processor running Ubuntu.
Ideally I would like to install FPC and Lazarus on it and do native
ARM development. I wonder if it might be possible. Can I cross-compile
FPC to get a native FPC running on ARM?

Or at least can I cross-compile my app?

The target will be ARM-Ubuntu, not ARM-WinCE ;=)


I run both FPC and Lazarus natively on ARM. The major issue is ensuring 
that enough memory is available- a Lazarus build wants about 512Mb 
during link. I've got a couple of issues with the Lazarus IDE that I 
need to get to the stage where I can raise bug reports but lazbuild 
works fine.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 13:55, patspiper wrote:

updated to r30007 and while rebuilding Lazarus:Compiling resource
../units/i386-linux/lazarus.or
/home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while
compiling resources

Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2


I did not add/remove/change any resource.

Please build it from console using make bigideclean bigide. Maybe the 
error when you build from console will be explained better.


Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 09:04:25 Paul Ishenin wrote:
 24.03.2011 13:55, patspiper wrote:
  updated to r30007 and while rebuilding Lazarus:Compiling resource
  ../units/i386-linux/lazarus.or
  /home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while
  compiling resources
  
  Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2
 
 I did not add/remove/change any resource.
 
 Please build it from console using make bigideclean bigide. Maybe the
 error when you build from console will be explained better.

Lazarus 0.9.31 r30007M FPC 2.4.3 i386-linux-gtk 2 builds fine, also qt 
version.
zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Indy compilation problem revisited.

2011-03-24 Thread Marco van de Voort
On Tue, Mar 22, 2011 at 07:15:57PM +0100, Mattias Gaertner wrote:
 
  What do they actually mean, in particular which process is emitting the 
  message Fatal: Can't find unit IdStreamVCL used by IdStream?
 
 Process: fpc
 Meaning: a ppu file is outdated. There is a bug in fpc that can trigger
 this. There are several ways to work around the bug. One is to use -Ur.

Afaik this bug is not caused by that, but due to includefiles with the same
name.

Indy copies their .inc file with $defines and compiler detection in every
dir, and FPC recompiles on (some?) .inc changes, while Delphi does not.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 0.9.30

2011-03-24 Thread ik
Hello all,

I see on soureforge that we have 0.9.30 ready, and my linux distro
(ArchLinux) also have in testing 0.9.30, so what else is required for it to
be officially released ?

Thanks,

Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Indy compilation problem revisited.

2011-03-24 Thread Mattias Gaertner
On Thu, 24 Mar 2011 09:20:49 +0100
Marco van de Voort mar...@stack.nl wrote:

 On Tue, Mar 22, 2011 at 07:15:57PM +0100, Mattias Gaertner wrote:
  
   What do they actually mean, in particular which process is emitting the 
   message Fatal: Can't find unit IdStreamVCL used by IdStream?
  
  Process: fpc
  Meaning: a ppu file is outdated. There is a bug in fpc that can trigger
  this. There are several ways to work around the bug. One is to use -Ur.
 
 Afaik this bug is not caused by that, but due to includefiles with the same
 name.
 
 Indy copies their .inc file with $defines and compiler detection in every
 dir, and FPC recompiles on (some?) .inc changes, while Delphi does not.

Yes, that is not a bug in fpc.
But duplicated include file is fixed by -Ur, isn't it?
So, the remaining is something different.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Sabayon Linux

2011-03-24 Thread Michael Schnell

On 03/23/2011 07:31 PM, Reimar Grabowski wrote:

Actually neither KDE nor Gnome nor Enlightenment are window managers. They are 
desktop environments

OK, far Offtopic, but no answer expected:

I just talked to a company manager, who used to be a technical developer 
in his former life and with his statement that window will go away 
withing four years he used Linux and Google as a synonym.


Funny new world 

-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 0.9.30

2011-03-24 Thread Juha (gmail)
ik kirjoitti torstai, 24. maaliskuuta 2011 10:23:44:
 I see on soureforge that we have 0.9.30 ready, and my linux distro
 (ArchLinux) also have in testing 0.9.30, so what else is required for it to
 be officially released ?

I guess only the announcement. Things must be ready when the announcement 
comes and all the millions of people rush to download Lazarus :-)

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 10:04 AM, Paul Ishenin wrote:

24.03.2011 13:55, patspiper wrote:

updated to r30007 and while rebuilding Lazarus:Compiling resource
../units/i386-linux/lazarus.or
/home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while
compiling resources

Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2


I did not add/remove/change any resource.

Please build it from console using make bigideclean bigide. Maybe 
the error when you build from console will be explained better.

Maybe I did not explain my testing well:
Lazarus builds fine with the standard packages. When I installed my 
packages, I got this error.

I finally found that 2 of my packages are causing this error.

How can I build the IDE with all packages from the command line? make xxx?

Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Michael Schnell

On 03/24/2011 08:55 AM, Mark Morgan Lloyd wrote:

I run both FPC and Lazarus natively on ARM.
There is a Wiki page about cross compiling. It would be great to have a 
wiki page on how to set up a native FPC environment on ARM/Linux.


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 15:37, patspiper wrote:

How can I build the IDE with all packages from the command line? make xxx?


lazbuild lazarus.lpi ?

Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 10:54 AM, Paul Ishenin wrote:

24.03.2011 15:37, patspiper wrote:
How can I build the IDE with all packages from the command line? make 
xxx?


lazbuild lazarus.lpi ?

I used make ide OPT=@/path/to/your/config/idemake.cfg to build now:

Compiling lazarus.pp
Compiling resource ../units/i386-linux/lazarus.or
Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 
lazarus.pp(135,1) Error: Error while compiling resources
lazarus.pp(135,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

So it seems there is some duplicate resource name that the package adds. 
The previous Lazarus revisions maybe ignored this resource. How can we 
get more info as to which resource it is?


Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 15:58, patspiper wrote:

Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 


Somewhere you add another windows manifest.


So it seems there is some duplicate resource name that the package adds.
The previous Lazarus revisions maybe ignored this resource. How can we
get more info as to which resource it is?


The previous Lazarus revisions did not ignore this.

Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 11:05 AM, Paul Ishenin wrote:

24.03.2011 15:58, patspiper wrote:

Error: Duplicate resource: Type = 24, Name = 1, Lang ID = 


Somewhere you add another windows manifest.
Can you pls give details as I have no idea about manifests (aren't they 
Windows specific?)


What should I check?

Thanks
Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Mark Morgan Lloyd

Michael Schnell wrote:

On 03/24/2011 08:55 AM, Mark Morgan Lloyd wrote:

I run both FPC and Lazarus natively on ARM.
There is a Wiki page about cross compiling. It would be great to have a 
wiki page on how to set up a native FPC environment on ARM/Linux.


e.g. an ARM-based development systems page referenced at 
http://wiki.lazarus.freepascal.org/Platform_list#Supported_targets_for_ARM


I'd be happy to contribute what I know, but in short the major issue is 
getting a distro running on the available hardware. And, it must be 
said, keeping it running: I've seen tales of woe from Sheevaplug users 
who've ended up with corrupt or bricked systems.


In my case I'm using NSLU2 Slugs, which are supported by a variant of 
Debian- once running they can use the standard Debian package 
repositories. I've made some recent progress towards getting something 
running on some PC-like ARM development boards I've got, but I won't 
have those up for a few weeks due to other demands on my time.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where is the unit path of the IDE configured?

2011-03-24 Thread Frank Church
On 23 March 2011 21:25, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Wed, 23 Mar 2011 21:11:43 +
 Frank Church vfcli...@gmail.com wrote:

  I am trying to install the Indy package, and I am getting the error that
 to
  copies of the same file exist in the IDE
 
  I have to versions of Lazarus installed and it appears that the path of
 the
  other installation has been set somewhere in the IDE options of the one I
 am
  currently using.

 Ah. Yes, maybe you have added a unit path too much which
 created a ppu file at two places.


  How do I change that?

 You have to check the unit path of every installed package.
 There is no tool yet for this.



Which tab in the Compiler Options or Options is it?

Which section described in this page
http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options , is it, if
that is where it is described?

Is it a combination of them or just one?





  Here is an example:
  
   Ambiguous unit found
  
   The unit dcpbase64 exists twice in the unit path of the IDE:
  
   1. C:\lazarus29240\components\dcpcrypt\lib\i386-win32\dcpbase64.ppu
   2. C:\lazarus28240\components\dcpcrypt\lib\i386-win32\dcpbase64.ppu
  
   Hint: Check if two packages contain a unit with the same name.
  
 
  I am praying that it might be the solution to my Indylaz problem.

 Yes, sounds probable.

 Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 16:17, patspiper wrote:


Can you pls give details as I have no idea about manifests (aren't they
Windows specific?)


They are windows specific but this is not important because FPC includes 
all requested resources (no matter how windows specific they are) into 
the final executable.



What should I check?


Check that all the .res files which are involved into the IDE building 
process (except lazarus.res) does not contain windows manifest resource.


Maybe you include a res file which IDE made for a project (it usually 
has a manifest resource) into a package? If you made your .res files 
from .rc please check them if they contain resources with type RT_MANIFEST.


Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 11:39 AM, Paul Ishenin wrote:

24.03.2011 16:17, patspiper wrote:


Can you pls give details as I have no idea about manifests (aren't they
Windows specific?)


They are windows specific but this is not important because FPC 
includes all requested resources (no matter how windows specific they 
are) into the final executable.



What should I check?


Check that all the .res files which are involved into the IDE building 
process (except lazarus.res) does not contain windows manifest resource.


Maybe you include a res file which IDE made for a project (it usually 
has a manifest resource) into a package? If you made your .res files 
from .rc please check them if they contain resources with type 
RT_MANIFEST.
I deleted the package's files and recopied them fresh. Everything went 
smooth.


Furthermore, Lazarus is now able to load cursors.

Thanks!
Stephano


Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 10:58:48 patspiper wrote:

 Furthermore, Lazarus is now able to load cursors.

Are you sure that it was impossible before ?
zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 12:00 PM, zeljko wrote:

On Thursday 24 of March 2011 10:58:48 patspiper wrote:


Furthermore, Lazarus is now able to load cursors.

Are you sure that it was impossible before ?
I used to get an exception due to the idtype being 32 instead of 1 or 2. 
No idea why.


Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 17:00, zeljko wrote:

On Thursday 24 of March 2011 10:58:48 patspiper wrote:


Furthermore, Lazarus is now able to load cursors.


Are you sure that it was impossible before ?


We are talking about loading them from the FPC resources. From .lrs 
files they worked fine before. Later I implemented loading icons from 
FPC resources and expected that cursors will work too but for unknown 
reason microsoft implemented them less compatible in resources than in 
files.


Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where is the unit path of the IDE configured?

2011-03-24 Thread Mattias Gaertner
On Thu, 24 Mar 2011 09:37:59 +
Frank Church vfcli...@gmail.com wrote:

 On 23 March 2011 21:25, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
  On Wed, 23 Mar 2011 21:11:43 +
  Frank Church vfcli...@gmail.com wrote:
 
   I am trying to install the Indy package, and I am getting the error that
  to
   copies of the same file exist in the IDE
  
   I have to versions of Lazarus installed and it appears that the path of
  the
   other installation has been set somewhere in the IDE options of the one I
  am
   currently using.
 
  Ah. Yes, maybe you have added a unit path too much which
  created a ppu file at two places.
 
 
   How do I change that?
 
  You have to check the unit path of every installed package.
  There is no tool yet for this.
 
 
 
 Which tab in the Compiler Options or Options is it?
 
 Which section described in this page
 http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options , is it, if
 that is where it is described?

Yes. 

 
 Is it a combination of them or just one?

Just Other unit files.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 12:07 PM, Paul Ishenin wrote:

24.03.2011 17:00, zeljko wrote:

On Thursday 24 of March 2011 10:58:48 patspiper wrote:


Furthermore, Lazarus is now able to load cursors.


Are you sure that it was impossible before ?


We are talking about loading them from the FPC resources. From .lrs 
files they worked fine before. Later I implemented loading icons from 
FPC resources and expected that cursors will work too but for unknown 
reason microsoft implemented them less compatible in resources than in 
files.
Since you mentioned FPC resources, can palette components (IDE) have 
their resources as FPC resources instead of using .lrs ones?


Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Can't find unit ComponentEditors used by

2011-03-24 Thread Zaher Dirkey
Hi,
I updated my lazarus from svn, then Make clean all, lazarus was compiled
fine
but when i try to compile my package i got this message

ntvRegCtrls.pas(10,3) Fatal: Can't find unit ComponentEditors used by
ntvRegCtrls

What i can do to fix this propblem?

Thanks in advance.
-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin

24.03.2011 17:16, patspiper wrote:


Since you mentioned FPC resources, can palette components (IDE) have
their resources as FPC resources instead of using .lrs ones?


No at the moment. Although I don't think it will be too difficult to 
implement.


Best regards,
Paul Ishenin


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't find unit ComponentEditors used by

2011-03-24 Thread Mattias Gaertner
On Thu, 24 Mar 2011 12:16:23 +0200
Zaher Dirkey parm...@gmail.com wrote:

 Hi,
 I updated my lazarus from svn, then Make clean all, lazarus was compiled
 fine
 but when i try to compile my package i got this message
 
 ntvRegCtrls.pas(10,3) Fatal: Can't find unit ComponentEditors used by
 ntvRegCtrls
 
 What i can do to fix this propblem?

1. Check that your package depends on the IDEIntf package.
2. Check the paths of your package. Other unit files must only point to
your source directories.
3. Check for duplicate ppu files.

See 
http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_units#Quick_list

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't find unit ComponentEditors used by

2011-03-24 Thread Zaher Dirkey
On Thu, Mar 24, 2011 at 12:16 PM, Zaher Dirkey parm...@gmail.com wrote:

 Hi,
 I updated my lazarus from svn, then Make clean all, lazarus was compiled
 fine
 but when i try to compile my package i got this message

 ntvRegCtrls.pas(10,3) Fatal: Can't find unit ComponentEditors used by
 ntvRegCtrls

 What i can do to fix this propblem?


I fixed it by adding IDEIntf to Required Packages, is that correct?

-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't find unit ComponentEditors used by

2011-03-24 Thread Zaher Dirkey
On Thu, Mar 24, 2011 at 12:32 PM, Mattias Gaertner 
nc-gaert...@netcologne.de wrote:

 On Thu, 24 Mar 2011 12:16:23 +0200
 Zaher Dirkey parm...@gmail.com wrote:

  Hi,
  I updated my lazarus from svn, then Make clean all, lazarus was compiled
  fine
  but when i try to compile my package i got this message
 
  ntvRegCtrls.pas(10,3) Fatal: Can't find unit ComponentEditors used by
  ntvRegCtrls
 
  What i can do to fix this propblem?

 1. Check that your package depends on the IDEIntf package.


Thanks fixed :)

-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 12:24 PM, Paul Ishenin wrote:

24.03.2011 17:16, patspiper wrote:


Since you mentioned FPC resources, can palette components (IDE) have
their resources as FPC resources instead of using .lrs ones?


No at the moment. Although I don't think it will be too difficult to 
implement.

Feature request added on the bug tracker (#18980)?
;-)

Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
On Thu, Mar 24, 2011 at 12:24 PM, Paul Ishenin i...@kmiac.ru wrote:

 24.03.2011 17:16, patspiper wrote:

  Since you mentioned FPC resources, can palette components (IDE) have
 their resources as FPC resources instead of using .lrs ones?


 No at the moment. Although I don't think it will be too difficult to
 implement.

 Best regards,
 Paul Ishenin


 Is it possible to add the image inside the unit without to convert it to
laz/fpc resource? (i mean in the feature)

Thanks

-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 12:49 PM, Zaher Dirkey wrote:



On Thu, Mar 24, 2011 at 12:24 PM, Paul Ishenin i...@kmiac.ru 
mailto:i...@kmiac.ru wrote:


24.03.2011 17:16, patspiper wrote:

Since you mentioned FPC resources, can palette components
(IDE) have
their resources as FPC resources instead of using .lrs ones?


No at the moment. Although I don't think it will be too difficult
to implement.

Best regards,
Paul Ishenin


Is it possible to add the image inside the unit without to convert it 
to laz/fpc resource? (i mean in the feature
You can add the contents of a lrs file in the initialization section of 
a unit. After all, {$I *.lrs} just includes the lrs file.


Stephano
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
2011/3/24 patspiper patspi...@gmail.com

 You can add the contents of a lrs file


How without using a converter (image - lrs)
I like to have this, in unit that register my controls

{$r 'myimage.png'}

Thanks
-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't find unit ComponentEditors used by

2011-03-24 Thread Mattias Gaertner
On Thu, 24 Mar 2011 12:34:02 +0200
Zaher Dirkey parm...@gmail.com wrote:

 On Thu, Mar 24, 2011 at 12:16 PM, Zaher Dirkey parm...@gmail.com wrote:
 
  Hi,
  I updated my lazarus from svn, then Make clean all, lazarus was compiled
  fine
  but when i try to compile my package i got this message
 
  ntvRegCtrls.pas(10,3) Fatal: Can't find unit ComponentEditors used by
  ntvRegCtrls
 
  What i can do to fix this propblem?
 
 
 I fixed it by adding IDEIntf to Required Packages, is that correct?

Yes. And don't forget to clean up the Other Unit files of your
package. It must only contain your directories. Not directories of
other packages.

Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper

On 03/24/2011 01:05 PM, Zaher Dirkey wrote:

2011/3/24 patspiper patspi...@gmail.com mailto:patspi...@gmail.com

You can add the contents of a lrs file


How without using a converter (image - lrs)
I like to have this, in unit that register my controls

{$r 'myimage.png'}
$R needs res files whereas Lazarus understands lrs files. In your case, 
you can just load the image at runtime:

Image1.Picture.Bitmap.LoadFromFile(myimage.png)

Stephano
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Michael Schnell

On 03/24/2011 10:37 AM, Mark Morgan Lloyd wrote:


e.g. an ARM-based development systems page referenced at 
http://wiki.lazarus.freepascal.org/Platform_list#Supported_targets_for_ARM

leading to http://wiki.lazarus.freepascal.org/Linux_for_ARM
which in fact leads to 
http://wiki.lazarus.freepascal.org/Compile_and_Develop_on_Maemo_device


which really shows how to get Lazarus working on an Arm-Linux device.

I have no idea what is special about Maemo that might not apply to other 
Arm-Linux environments, so a more general  description could help in 
many cases.




In my case I'm using NSLU2 Slugs, which are supported by a variant 
of Debian- once running they can use the standard Debian package 
repositories. I've made some recent progress towards getting something 
running on some PC-like ARM development boards I've got, but I won't 
have those up for a few weeks due to other demands on my time.


:-) :-) I, too have an old slug at home and did load debian on same. I 
fear it is quite low on memory for complex userland stuff.


Completely Off-Topic: (please answer in a private mail):
As I have your attention: I want do use the slug either as a ISCSI 
server or as an NFS server to provide a remote (backup)  USB-disks to my 
(Suse) Linux File server. In case of NFS it would need to support 
device mapper, as the disks are managed in volume groups.


What do you think ?

Thanks,
-Michael


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
2011/3/24 patspiper patspi...@gmail.com

  On 03/24/2011 01:05 PM, Zaher Dirkey wrote:

  2011/3/24 patspiper patspi...@gmail.com

 You can add the contents of a lrs file


 How without using a converter (image - lrs)
 I like to have this, in unit that register my controls

 {$r 'myimage.png'}

 $R needs res files whereas Lazarus understands lrs files. In your case, you
 can just load the image at runtime:
 Image1.Picture.Bitmap.LoadFromFile(myimage.png)


look at {$R *.lfm} it is text file loaded as FPC resouce, i do not know how
it is happened, BTW loading in runtime not good idea for Component Packages
icons.

Best Regards
-- 
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Kjow
2011/3/24 Michael Schnell mschn...@lumino.de:
 http://wiki.lazarus.freepascal.org/Compile_and_Develop_on_Maemo_device

 which really shows how to get Lazarus working on an Arm-Linux device.

 I have no idea what is special about Maemo that might not apply to other
 Arm-Linux environments, so a more general  description could help in many
 cases.

Maemo/MeeGo are arm-linux distro, maemo is based on debian meego on
fedora. So I think that the wiki could be used to installa fpc/lazarus
on any arm-linux platform. :)

Kjow

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Michael Schnell



  So I think that the wiki could be used to installa fpc/lazarus
on any arm-linux platform. :)
Sounds great. So maybe Mark could do  some testing and enhance the text 
to be more general.


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Mark Morgan Lloyd

Michael Schnell wrote:

On 03/24/2011 10:37 AM, Mark Morgan Lloyd wrote:


e.g. an ARM-based development systems page referenced at 
http://wiki.lazarus.freepascal.org/Platform_list#Supported_targets_for_ARM 


leading to http://wiki.lazarus.freepascal.org/Linux_for_ARM
which in fact leads to 
http://wiki.lazarus.freepascal.org/Compile_and_Develop_on_Maemo_device


which really shows how to get Lazarus working on an Arm-Linux device.

I have no idea what is special about Maemo that might not apply to other 
Arm-Linux environments, so a more general  description could help in 
many cases.


I'll try and read through that but I was thinking of something at the 
top level which emphasised that it was running on something behaving as 
a computer rather than an appliance or something requiring 
cross-development.


In my case I'm using NSLU2 Slugs, which are supported by a variant 
of Debian- once running they can use the standard Debian package 
repositories. I've made some recent progress towards getting something 
running on some PC-like ARM development boards I've got, but I won't 
have those up for a few weeks due to other demands on my time.


:-) :-) I, too have an old slug at home and did load debian on same. I 
fear it is quite low on memory for complex userland stuff.


Completely Off-Topic: (please answer in a private mail):
As I have your attention: I want do use the slug either as a ISCSI 
server or as an NFS server to provide a remote (backup)  USB-disks to my 
(Suse) Linux File server. In case of NFS it would need to support 
device mapper, as the disks are managed in volume groups.


What do you think ?


Well, provided that we don't get into distro wars I'm sure limited 
comment here is acceptable to the list owners since such a thing could 
also be used for local SVN and so on. I can't speak for the device 
mapper but I've had no problem at all with NFS on a Slug running Debian 
Lenny- just install nfs-kernel-server and set up /etc/export.


I think that the one thing I'd caution is that NFS is poor at handling 
symlinks, and I'm not sure where it stands on locking. If you have a 
server setup that uses symlinks or a client app that requires locking 
then it might be safer to consider other options [waves hands in air] 
should they exist.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Mark Morgan Lloyd

Michael Schnell wrote:

  So I think that the wiki could be used to installa fpc/lazarus
on any arm-linux platform. :)
Sounds great. So maybe Mark could do  some testing and enhance the text 
to be more general.


I'll see what I can do, but it might be better if I started off by 
transcribing my notes into a new page which could then be reconciled.


I had a lot of difficulty at the time that Debian was forcing a 
transition from ABI to EABI. I think it was Jonas who pointed me at a 
binary that got me out of some of the problems, but I'm very quick to 
admit that I don't really know my way around the various non-production 
versions.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Michael Schnell

On 03/24/2011 02:22 PM, Mark Morgan Lloyd wrote:


I think that the one thing I'd caution is that NFS is poor at handling 
symlinks, and I'm not sure where it stands on locking. If you have a 
server setup that uses symlinks or a client app that requires locking 
then it might be safer to consider other options [waves hands in air] 
should they exist.
My intention is to install it as a remote backup device using Dirvish, 
just moving the now local USB disk box to a remote location on the 
Ethernet. So my first preference used to be ISCSI, as the Server PC now 
still just sees some local disks below the device manager layer. But 
NFS should work as well (providing a single disk above the device 
manager layer), as I _thought_ NFS would easily support hard links (this 
is what Dirvish heavily relies on) and symlinks (Dirvish backups the 
symlinks as they are, not following them).


In fact I have no experience at all with any of ISCSI, NFS and Debian, 
so I did not dare to start the migration yet.


Thanks,
-Michael


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Animals game - exception: Failed to create win32 control, error: 1407 : Cannot find window class.

2011-03-24 Thread Peter Williams

Hi All,
I have a Lazarus project which is a legacy game project from Delphi 7. It works 
fine in D7 and I used the tools menus to convert it to Lazarus. It compiles 
fine and when I run it it immediately gives this exception:
Debugger Exception Notification
Project ANIMALS.exe raised exception class 'Exception' with message:Failed to 
create win32 control, error: 1407 : Cannot find window class.
I did a search on this error and only found a few C language references to it.
Here is the project download link: 
http://hotfile.com/dl/111641603/97e0137/animals_001.zip.html

The game is a simple single form application with 5 x tButtons, each with their 
own modal codes, a tEdit and a tMemo... and that's about it. The form is called 
from it's own unit with a form1.showmodal command (e.g. showing it's own form).
I am hoping that someone can look at this and tell me what I am doing wrong. I 
think possibly I may need to separate out Animals.pas as a unit and make it's 
form a separate form and create it from my Animals.pas unit. Would this fix 
this problem?
Best Regards,Peter / pew  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC and Lazarus on ARM

2011-03-24 Thread Den Jean
On Thursday 24 March 2011 12:58:40 Kjow wrote:
 Maemo/MeeGo are arm-linux distro, maemo is based on debian meego on
 fedora. So I think that the wiki could be used to installa fpc/lazarus
 on any arm-linux platform. :)

This one also contains arm platform instructions
http://wiki.freepascal.org/Qt4_Maemo_Binding
|

I did not try the following, but perhaps interesting
http://vserver.rosseaux.net/tutorials/fpcn900.php
http://wiki.maemo.org/Compile_FreePascal_on_device
http://wiki.freepascal.org/Compile_and_Develop_on_Maemo_device


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus