Re: [Lazarus] Getting project type

2014-02-16 Thread Mark Morgan Lloyd

leledumbo wrote:

Seems not, I guess you'll have to use your custom defines. Unused units will
be left out automatically if you use smartlinking, with prerequisites that
the unit must not have any initialization/finalization section.


Thanks for that, just wanted to make sure I'd not missed anything.

The problem is that there's quite a lot of circular imports I'm having 
to break. Nothing insurmountable :-)


--
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] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread luiz americo pereira camara
I'm having similar problem.

When trying to rebuild from the IDE, the compilation stops with the
following message:
..\debugger\debugger.pp(41,3) Fatal: Can't find unit DbgIntfBaseTypes used
by Debugger

I added debuggerintf dependency to Lazarus project and no luck
Added debugger.pp to Lazarus project and also no luck

make clean all worked

Luiz


Luiz




2014-02-15 12:59 GMT-03:00 Michael Van Canneyt mich...@freepascal.org:


 Hi,

 I tried to compile a new lazarus version from inside the IDE, using the
 2.6.4 release candidate.

 It failed on the sqldb package. The sources mistakenly assume that the
 MySQL 5.6 connector will be included with 2.6.4.
 I fixed the define that controls this.

 It then failed on the debugger package. I could not immediatly determine
 what the problem was, the unit with types was not found (when the sources
 were in fact there)

 So, I first removed all .ppu and .o files in the lazarus dirs. It didn't
 help.

 I then tried compiling on the command-line, using a make clean all.

 This failed:

 /bin/cp -f Makefile.compiled lib/x86_64-linux/DebuggerIntf.compiled
 /bin/cp: cannot stat `Makefile.compiled': No such file or directory
 make[1]: *** [compiled] Error 1
 make[1]: Leaving directory `/home/michael/projects/lazarus/components/
 debuggerintf'
 make: *** [debuggerintf] Error 2

 I faked the file:

 araminta: cd /home/michael/projects/lazarus/components/debuggerintf
 araminta: touch Makefile.compiled
 araminta: make  PP=ppcx64-2.6.4
 /bin/rm -f lib/x86_64-linux/debuggerintf.ppu
 ppcx64-2.6.4 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
 -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -Fu.
 -Fu/usr/local/lib/fpc/2.6.4/units/x86_64-linux/rtl -FE.
 -FUlib/x86_64-linux -Cg -dx86_64 debuggerintf.pas
 /bin/cp -f Makefile.compiled lib/x86_64-linux/DebuggerIntf.compiled

 All went well, and I could build the IDE, and from then on I could build
 the IDE from inside the IDE.

 Strange problems. So I decided to report here...

 Michael.

 --
 ___
 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] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Maxim Ganetsky

15.02.2014 19:59, Michael Van Canneyt пишет:


Hi,

I tried to compile a new lazarus version from inside the IDE, using the
2.6.4 release candidate.

It failed on the sqldb package. The sources mistakenly assume that the
MySQL 5.6 connector will be included with 2.6.4.


It is included in current 2.6.3, but indeed missing in 2.6.4 RC1. Nobody 
tests compilation with 2.6.4 RC1, so I wouldn't recommend to use it.


--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Sven Barth

On 16.02.2014 14:12, Maxim Ganetsky wrote:

15.02.2014 19:59, Michael Van Canneyt пишет:


Hi,

I tried to compile a new lazarus version from inside the IDE, using the
2.6.4 release candidate.

It failed on the sqldb package. The sources mistakenly assume that the
MySQL 5.6 connector will be included with 2.6.4.


It is included in current 2.6.3, but indeed missing in 2.6.4 RC1. Nobody
tests compilation with 2.6.4 RC1, so I wouldn't recommend to use it.



It's missing in 2.6.4 RC1, because MySQL 5.6 support was added after RC1 
was tagged. 2.6.4 final will contain MySQL 5.6 support.


Regards,
Sven

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


[Lazarus] Need help about CreateWindowEx

2014-02-16 Thread FreeMan

Hello,
I'm trying port components from delphi to lazarus, cross platform and QT 
widgetset
CreateWindowEx On this winAPI I stoped and no info much for convert to 
widgetset. Can anyone has anyidea?

What is aqual CreateWindowEx, DestroyWindow in linux QT widgetset?
My system is Kubuntu x64 and last svn fpc  lazarus
Thank you

procedure CreateToolTip;
begin
  fhToolTip := CreateWindowEx(0, 'Tooltips_Class32', nil, TTS_ALWAYSTIP 
or TTS_BALLOON or TTS_NOPREFIX,

Integer(CW_USEDEFAULT), Integer(CW_USEDEFAULT),Integer(CW_USEDEFAULT),
Integer(CW_USEDEFAULT), Handle, 0, hInstance, nil);

  if fhToolTip  0 then
SetWindowPos(fhToolTip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or 
SWP_NOSIZE or SWP_NOACTIVATE);

end;

procedure DestroyToolTip;
begin
  DestroyWindow(FHToolTip);
end;

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


Re: [Lazarus] Need help about CreateWindowEx

2014-02-16 Thread Kostas Michalopoulos
It looks like the code tries to create a tooltip window. I think Lazarus
provides this functionality by itself in a cross-platform way, so you may
want to look up that and replace the functionality there. An alternative
would be to create the tooltip window yourself.

The code you show isn't just creating any window, but it creates a window
of the class Tooltips_Class32 specifically which AFAIK provides the
tooltip functionality. So what you need to replace isn't the CreateWindow
part (that would be easy), but the tooltip functionality part.



On Sun, Feb 16, 2014 at 5:07 PM, FreeMan freema...@delphiturkiye.comwrote:

 Hello,
 I'm trying port components from delphi to lazarus, cross platform and QT
 widgetset
 CreateWindowEx On this winAPI I stoped and no info much for convert to
 widgetset. Can anyone has anyidea?
 What is aqual CreateWindowEx, DestroyWindow in linux QT widgetset?
 My system is Kubuntu x64 and last svn fpc  lazarus
 Thank you

 procedure CreateToolTip;
 begin
   fhToolTip := CreateWindowEx(0, 'Tooltips_Class32', nil, TTS_ALWAYSTIP or
 TTS_BALLOON or TTS_NOPREFIX,
 Integer(CW_USEDEFAULT), Integer(CW_USEDEFAULT),Integer(CW_USEDEFAULT),
 Integer(CW_USEDEFAULT), Handle, 0, hInstance, nil);

   if fhToolTip  0 then
 SetWindowPos(fhToolTip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or
 SWP_NOSIZE or SWP_NOACTIVATE);
 end;

 procedure DestroyToolTip;
 begin
   DestroyWindow(FHToolTip);
 end;

 --
 ___
 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] Need help about CreateWindowEx

2014-02-16 Thread zeljko

On 02/16/2014 05:07 PM, FreeMan wrote:

Hello,
I'm trying port components from delphi to lazarus, cross platform and QT
widgetset
CreateWindowEx On this winAPI I stoped and no info much for convert to
widgetset. Can anyone has anyidea?
What is aqual CreateWindowEx, DestroyWindow in linux QT widgetset?
My system is Kubuntu x64 and last svn fpc  lazarus
Thank you

procedure CreateToolTip;
begin
   fhToolTip := CreateWindowEx(0, 'Tooltips_Class32', nil, TTS_ALWAYSTIP
or TTS_BALLOON or TTS_NOPREFIX,
 Integer(CW_USEDEFAULT), Integer(CW_USEDEFAULT),Integer(CW_USEDEFAULT),
 Integer(CW_USEDEFAULT), Handle, 0, hInstance, nil);

   if fhToolTip  0 then
 SetWindowPos(fhToolTip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or
SWP_NOSIZE or SWP_NOACTIVATE);
end;

procedure DestroyToolTip;
begin
   DestroyWindow(FHToolTip);
end;


You cannot use that with cross apps, it's windows specific .. 
https://qt-project.org/doc/qt-4.8/qtooltip.html or THintWindow in lazarus.

MyHint := THintWindow.Create() ...etc.

zeljko



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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Mattias Gaertner
On Sun, 16 Feb 2014 14:19:22 +0100
Sven Barth pascaldra...@googlemail.com wrote:

 On 16.02.2014 14:12, Maxim Ganetsky wrote:
[...]
 It's missing in 2.6.4 RC1, because MySQL 5.6 support was added after RC1 
 was tagged. 2.6.4 final will contain MySQL 5.6 support.

Both RC1 and final have 2.6.4 and can not be distinguished via IFDEFs.
So I guess 

{$IF FPC_FULLVERSION= 20603}
{$DEFINE HASMYSQL56CONNECTION}
{$ENDIF}

is correct in future. Right?

Mattias

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Mattias Gaertner
On Sun, 16 Feb 2014 09:30:18 -0300
luiz americo pereira camara luiz...@oi.com.br wrote:

 I'm having similar problem.
 
 When trying to rebuild from the IDE, the compilation stops with the
 following message:
 ..\debugger\debugger.pp(41,3) Fatal: Can't find unit DbgIntfBaseTypes used
 by Debugger
 
 I added debuggerintf dependency to Lazarus project and no luck
 Added debugger.pp to Lazarus project and also no luck

The ide/lazarus.lpi is only for debugging the IDE.

 
 make clean all worked

make clean all should create an IDE that can rebuild itself.

Mattias

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Corpsman

Hi,

i have the same error using the FPC 2.6.2-5 compiler, is there a .deb 
file for the 2.6.3 compiler, i did not find any ?


Regards

Corpsman

On 02/16/2014 02:19 PM, Sven Barth wrote:

On 16.02.2014 14:12, Maxim Ganetsky wrote:

15.02.2014 19:59, Michael Van Canneyt пишет:


Hi,

I tried to compile a new lazarus version from inside the IDE, using the
2.6.4 release candidate.

It failed on the sqldb package. The sources mistakenly assume that the
MySQL 5.6 connector will be included with 2.6.4.


It is included in current 2.6.3, but indeed missing in 2.6.4 RC1. Nobody
tests compilation with 2.6.4 RC1, so I wouldn't recommend to use it.



It's missing in 2.6.4 RC1, because MySQL 5.6 support was added after 
RC1 was tagged. 2.6.4 final will contain MySQL 5.6 support.


Regards,
Sven

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



--

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie 
aktualisiert und erweitert. Da ist für jeden was dabei.


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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Sven Barth

On 16.02.2014 19:35, Mattias Gaertner wrote:

On Sun, 16 Feb 2014 14:19:22 +0100
Sven Barth pascaldra...@googlemail.com wrote:


On 16.02.2014 14:12, Maxim Ganetsky wrote:
[...]
It's missing in 2.6.4 RC1, because MySQL 5.6 support was added after RC1
was tagged. 2.6.4 final will contain MySQL 5.6 support.


Both RC1 and final have 2.6.4 and can not be distinguished via IFDEFs.
So I guess

{$IF FPC_FULLVERSION= 20603}
{$DEFINE HASMYSQL56CONNECTION}
{$ENDIF}

is correct in future. Right?


Yes.

Regards,
Sven


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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Sven Barth

On 16.02.2014 19:12, Corpsman wrote:

Hi,

i have the same error using the FPC 2.6.2-5 compiler, is there a .deb
file for the 2.6.3 compiler, i did not find any ?


FPC 2.6.2 does not come with MySQL 5.6 support so that's clear that 
there is an error. There are AFAIK no .deb-packages for snapshots. 
You'll need to wait until 2.6.4 is released which will be somewhen in 
the near future (though I don't have an exact date :) ).


Regards,
Sven


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


[Lazarus] Where is the maps unit

2014-02-16 Thread Lubos Pintes

Hi list,
I tried to compile Lazarus after a long time, to test and possibly close 
issue I reported. Compilation failed with this message:
dbgintfdebuggerbase.pp(39,3) Fatal: Can't find unit maps used by 
DbgIntfDebuggerBase

Fatal: Compilation aborted

I am on Windows 7 64-bit, FPC 2.6.2 which is the stable one if I 
understood properly.

So what is wrong or missing?
Thanks


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


Re: [Lazarus] Where is the maps unit

2014-02-16 Thread Martin Frb

On 16/02/2014 20:03, Lubos Pintes wrote:

Hi list,
I tried to compile Lazarus after a long time, to test and possibly 
close issue I reported. Compilation failed with this message:
dbgintfdebuggerbase.pp(39,3) Fatal: Can't find unit maps used by 
DbgIntfDebuggerBase

Fatal: Compilation aborted

I am on Windows 7 64-bit, FPC 2.6.2 which is the stable one if I 
understood properly.

So what is wrong or missing?
Thanks

This was fixed a few minutes again,  pleas svn up again

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Bart
On 2/16/14, Maxim Ganetsky gan...@narod.ru wrote:

...  Nobody
 tests compilation with 2.6.4 RC1, so I wouldn't recommend to use it.

We were politely asked to test 2.6.4RC1, so we did.
And we report these errors...
If we wouldn't have, the what?

Bart

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Bart
On 2/16/14, Bart bartjun...@gmail.com wrote:
 We were politely asked to test 2.6.4RC1, so we did.
 And we report these errors...

Just found out that I could not build any program (in Lazarus) with
target win64.
registerfcl.pas(43,3) Fatal: Can not find unit ServiceManager used by
RegisterFCL. Check if package FCL is in the dependencies.
(FCL is in dependencies)

Bart

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


Re: [Lazarus] Lazarus compilation problems with 2.6.4 RC1

2014-02-16 Thread Bart
On 2/16/14, Bart bartjun...@gmail.com wrote:

 Just found out that I could not build any program (in Lazarus) with
 target win64.
 registerfcl.pas(43,3) Fatal: Can not find unit ServiceManager used by
 RegisterFCL. Check if package FCL is in the dependencies.
 (FCL is in dependencies)

Does this look OK to you (compiler options)?

 -MObjFPC -Scghi -Cirot -O1 -Twin64 -Px86_64 -g -gl -gh -vewnhiut
-Filib\x86_64-win64 -FuMijnLib
-FuC:\devel\lazarus\components\printers\lib\x86_64-win64\win32
-FuC:\devel\lazarus\components\synedit\units\x86_64-win64\win32
-FuC:\devel\lazarus\components\lazcontrols\lib\x86_64-win64\win32
-FuC:\devel\lazarus\components\cairocanvas\lib\x86_64-win64\win32
-FuC:\devel\lazarus\lcl\units\x86_64-win64\win32
-FuC:\devel\lazarus\lcl\units\x86_64-win64
-FuC:\devel\lazarus\components\lazutils\lib\x86_64-win64
-FuC:\devel\lazarus\packager\units\x86_64-win64 -Fu.
-FUlib\x86_64-win64 -l -dLCL -dLCLwin32

Somehow it appends win2 to several paths and it defines LCLWin32?

As a comparison the same project with target WinCE

 -MObjFPC -Scghi -Cirot -O1 -Twince -Parm -g -gl -gh -vewnhi
-Filib\arm-wince -FuMijnLib
-FuC:\devel\lazarus\components\printers\lib\arm-wince\wince
-FuC:\devel\lazarus\components\synedit\units\arm-wince\wince
-FuC:\devel\lazarus\components\lazcontrols\lib\arm-wince\wince
-FuC:\devel\lazarus\components\cairocanvas\lib\arm-wince\wince
-FuC:\devel\lazarus\lcl\units\arm-wince\wince
-FuC:\devel\lazarus\lcl\units\arm-wince
-FuC:\devel\lazarus\components\lazutils\lib\arm-wince
-FuC:\devel\lazarus\packager\units\arm-wince -Fu. -FUlib\arm-wince -l
-dLCL -dLCLwince

Bart

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