[Lazarus] Cross Compile to Arm

2017-06-06 Thread Alfred via Lazarus

For a library, add:
-FLld-linux-armhf.so.3
into the custom options of your project compiler options.-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Anchoring problem with ScrollBox and Panels

2017-06-06 Thread Gabor Boros via Lazarus

2017. 06. 06. 19:54 keltezéssel, Michael W. Vogel via Lazarus írta:
I can tell you here the same as in the related bug report 
https://bugs.freepascal.org/view.php?id=30617, this isn't a bug it is 
not happy design. You want that the scrollbox height is increased, but 
then the Panel2 height is increased too. Simple remove anchored bottom 
of Panel2 and the loop is gone.

You wrote on the tracker:

"You have anchored Panel2.Bottom to no sibling and Panel3.Top to 
Panel2.Bottom. When you now change the height of Panel3, that it doesn't 
fit in the scrollbox anymore, the scrollbox is resized. With resizing of 
the scrollbox, Panel2 is also resized (because its Bottom is anchored). 
Now Panel3.Top is moved too and Panel3 doesn't fit in the scrollbox 
anymore. And repeat."


I understand you(r description) except one thing. "Panel2 is also 
resized (because its Bottom is anchored)" Why you think Panel2 is 
resized? When height of Panel3 increased and the vertical scrollbox 
showed up, height of scrollbox not changed nor top of Panel3.


Attached two pictures. One before resized Panel3 and one after (pressed 
Continue on the loop error message). You see top, bottom and height of 
Panel1 and Panel2 is same as before.


So top, bottom, height of Panel1, Panel2 and ScrollBox1 not changed. Why 
got the loop error? Only height of Panel3 changed. Width of Panel1,2,3 
changed, okay but why this block the work of vertical anchoring?


Gabor
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Cross Compile to Arm

2017-06-06 Thread Steve Gatenby via Lazarus

Having trouble cross compiling an fpc library.

(Linux x86_64 -> Linux Arm using install from fpcupDeluxe)
Lazarus 1.9.0 r55116M FPC 3.1.1 x86_64-linux-gtk2

library Project1;
{$mode objfpc}{$H+}

uses cmem, Classes;
begin
end.

This fails with error code 256 and 'error whilst linking'
Sometimes gives msg of 'add -fPIC' which I have done, but then moves on 
to different errors.


It is the 'cmem' addition causing the problem, but not cmem itself (just 
within a library)


The same system cross compiles standard applications (fpc and lazarus) 
correctly, seems related to libraries only.


Any ideas at all appreciated (probably a compiler/linker switch I need 
to pass - but there I am lost)


ps. kudos to whomever created fpcupDeluxe.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Horz scroll on Mac trackpad

2017-06-06 Thread Alexey via Lazarus

Here

https://bugs.freepascal.org/view.php?id=31897
https://bugs.freepascal.org/view.php?id=31898



Where did you add the patches?


--
Regards,
Alexey

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


Re: [Lazarus] Horz scroll on Mac trackpad

2017-06-06 Thread Mattias Gaertner via Lazarus
On Wed, 7 Jun 2017 00:05:51 +0300
Alexey via Lazarus  wrote:

> Added 2 patches to use %subj for Treeview and Grid. Why not to use em in 
> Lazarus 1.8. They are tiny and ok.

Where did you add the patches?

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Anchoring problem with ScrollBox and Panels

2017-06-06 Thread Gabor Boros via Lazarus

2017. 06. 06. 20:58 keltezéssel, Michael W. Vogel via Lazarus írta:
Please try added example. It is nearly the same as in the bugtracker but 
with aligned scrollbox and a scrollbar to switch the height of Panel3. 
Is it so as you want?


No. Attached (I hope ) a better example. The user can resize Panel2 with 
the Form and can resize Panel3 with the TrackBar. But want higher Panel3 
than the available space. For solve this the whole thing sit in a 
ScrollBox. And the "InvalidatePreferredSize loop detected" problem 
breaks this solution. I completely don't understand why Panel3 not 
resizable to lower than border of the ScrollBox. Panel3 not have a 
bottom anchor. From my POV (and brain) the anchors are correct. Panel2 
anchored to bottom of Panel1, Panel3 anchored to bottom of Panel2 and 
bottom of Panel3 not anchored.


Why got different error message with the TrackBar and OnClick resize of 
Panel3?


Gabor


ScrollBox_position_range_overflow.tar.gz
Description: application/gzip
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Horz scroll on Mac trackpad

2017-06-06 Thread Alexey via Lazarus
Added 2 patches to use %subj for Treeview and Grid. Why not to use em in 
Lazarus 1.8. They are tiny and ok.


--
Regards,
Alexey

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


[Lazarus] Lazarus Release Candidate 2 of 1.8.0

2017-06-06 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the second release candidate of
Lazarus 1.8.

This release was built with FPC 3.0.2.
The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too.
The Linux releases are built with FPC 3.0.3 r36408 due to bug 
https://bugs.freepascal.org/view.php?id=31629

Here is the list of fixes for Lazarus 1.8.x:
http://wiki.freepascal.org/Lazarus_1.8_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.2

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.8 RC2" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#1_8_0

Minimum requirements:

Windows:   
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  10.5 to 10.12, LCL only 32bit, non LCL apps can be 64bit.

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC2

For people who are blocked by SF, the Lazarus releases from SourceForge are 
mirrored at:
ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization)
http://mirrors.iwi.me/lazarus/

== Why should everybody (including you) test the release candidate? ==

In the past weeks the Lazarus team has stabilized the 1.8 fixes branch. The 
resulting 1.8RC2 is now stable enough to be used by any one for test purposes.

However many of the fixes and new features that where committed since the 
release of 1.6 required changes to the code of existing features too. While we 
have tested those ourself, there may still be problems that only occur with 
very specific configurations or one project in a million.

Yes, it may be that you are the only person with a project, that will not work 
in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be too late. 
Once the release is out we will have to be more selective about which fixes can 
be merged for further 1.8.x releases. So it may be, that we can not merge the 
fix you require. And then you will miss out on all the new features.

== How to test ==

Download and install the 1.8 RC2.
- On Windows you can install as a 2ndary install, that will not affect your 
current install:
  
http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use 
--primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.6.x), and use "Publish Project" 
from the project menu. This creates a clean copy of your project.

You can then open that copy in the RC2. Please test:
- If you can edit forms in the designer
   - rename components / change properties in Object inspector / Add new events
   - Add components to form / Move components on form
   - Frames, if you use them
- If you can navigate the source code (e.g. jump to implementation)
- Auto completion in source code
- Compile, debug and run
- Anything else you use in your daily work


Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] (Local) variable value hints

2017-06-06 Thread Ondrej Pokorny via Lazarus

On 06.06.2017 21:54, Mark Morgan Lloyd via Lazarus wrote:
Bearing in mind things like the %H hint that Lazarus uses to suppress 
warning messages, is there anything comparable that can be applied to 
a variable so that when the IDE pops up a value during debugging it 
will always be shown in a certain format?


..
end else begin
  euCount := cardEsu;
  euVector := sysEuVector <=== THIS ONLY MEANINGFUL AS HEX OR BINARY


You can define your own value formatter with 
TBaseDebugManagerIntf.RegisterValueFormatter


But: it works on a type-basis and not variable name basis. So define a 
specific type euVector:


  TeuVector = type Integer; // or type whatever

and then register it with RegisterValueFormatter(skSimple, 'TeuVector', 
@MyFormatFunction);


See how TDateTime is handled in ide/debugmanager.pas

Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] (Local) variable value hints

2017-06-06 Thread Mark Morgan Lloyd via Lazarus
Bearing in mind things like the %H hint that Lazarus uses to suppress 
warning messages, is there anything comparable that can be applied to a 
variable so that when the IDE pops up a value during debugging it will 
always be shown in a certain format?


..
end else begin
  euCount := cardEsu;
  euVector := sysEuVector <=== THIS ONLY MEANINGFUL AS HEX OR BINARY
end;
Assert(euCount * euVector > 0, 'Bad EU count or vector');

--
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-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Anchoring problem with ScrollBox and Panels

2017-06-06 Thread Gabor Boros via Lazarus

2017. 06. 06. 19:54 keltezéssel, Michael W. Vogel via Lazarus írta:

Simple remove anchored bottom of Panel2 and the loop is gone.


Yes, but Panel2 not follow the size of form/scrollbox.

As you wrote in bug report: "Thank you for the example but do not do 
what I want.", please explain better, what you exactly want (step by 
step, when a user change the height of Panel3, what should happen).


Just "remove anchored bottom of Panel2" then start the example and click 
on Panel3 and will see what I want. The vertical scrollbox showed up and 
the user can scroll the panels. It's good but the Panel2 not resized 
with the form/scrollbox without the bottom anchor. So if bottom anchor 
of Panel2 exists the resizing of Panel2 work as expected, if removed the 
anchor resizing (by the user) of Panel3 work as expected. But I need the 
two features coexist.


Gabor
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Anchoring problem with ScrollBox and Panels

2017-06-06 Thread Michael W. Vogel via Lazarus

Am 06.06.2017 um 19:39 schrieb Gabor Boros via Lazarus:
The attached example contains a form with a ScrollBox on it with three 
Panels in it. Height of Panel1 is static, height of Panel2 depend on 
the size of Form/ScrollBox, height of Panel3 can be modifiable by the 
user.
In the example a simple OnClick emulate the variable height feature of 
Panel3. So, start the example, modify (or not) size of the form, then 
click on Panel3. I got a "Position range overflow..." error. What I 
doing wrong or is this a bug?


I can tell you here the same as in the related bug report 
https://bugs.freepascal.org/view.php?id=30617, this isn't a bug it is 
not happy design. You want that the scrollbox height is increased, but 
then the Panel2 height is increased too. Simple remove anchored bottom 
of Panel2 and the loop is gone.


As you wrote in bug report: "Thank you for the example but do not do 
what I want.", please explain better, what you exactly want (step by 
step, when a user change the height of Panel3, what should happen).


Kind regards

Michl
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Anchoring problem with ScrollBox and Panels

2017-06-06 Thread Gabor Boros via Lazarus

Hi All,

The attached example contains a form with a ScrollBox on it with three 
Panels in it. Height of Panel1 is static, height of Panel2 depend on the 
size of Form/ScrollBox, height of Panel3 can be modifiable by the user.
In the example a simple OnClick emulate the variable height feature of 
Panel3. So, start the example, modify (or not) size of the form, then 
click on Panel3. I got a "Position range overflow..." error. What I 
doing wrong or is this a bug?


Gabor


ScrollBox_position_range_overflow.tar.gz
Description: application/gzip
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] bluetoothlaz package cannot detect Bluetooth LE (version > 4.0) devices on raspberry pi

2017-06-06 Thread Dennis via Lazarus

I am using Raspberry Pi 3 (with wifi+bluetooth).
When using the command tool, bluetoothctl, it can detect old and new 
bluetooth devices (version > 4.0).


However, using the bluetoothlaz inside my lazarus app, it can only 
detect old bluetooth devices (not the BLE new devices).


I am guessing the bluetoothctl uses the new version and features in 
bluez (ver 5.41) but bluetoothlaz uses the

{$linklib bluetooth}

which probably is the file
/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3
which is a symbolic link to 
/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.18.13


which might probably be compiled with old versions of bluez (or turn off 
the BLE feature).


Do you think my guess is correct?

If yes, can anyone point me to how to update the libbluetooth.so ?
Should I compile a new .so?  How (I am bad in linux).

Thanks a lot in advance.

Dennis
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-06-06 Thread Joe via Lazarus

Am 06.06.2017 um 11:08 schrieb Mark Morgan Lloyd via Lazarus:

On 06/06/17 06:30, Joe via Lazarus wrote:

Am 30.05.2017 um 00:36 schrieb Bo Berglund via Lazarus:> The corrected
script is found here:>
http://blog.boberglund.com/install_lazfpc_local_pi.sh.On Pi Zero W,
using the ARMv6 option and De-de locale, i get this error message:
"make: -iVSPTPSOTO Kommando nicht gefunden"
What does this say? How to fix?


It says it can't find the compiler binary. Hopefully Bo will be able 
to give you some direct help, but the classical way of fixing it would 
be by something like


make clean all PP=ppcXXX


.
Went to /home/pi/dev/fpc/3.02 and did make clean all PP=ppcarm.
Got "An unhandled exception occurred at $000678A0".
Maybe the ARMv6 CPU got some ARMv7 code?

-- Joe
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-06-06 Thread Mark Morgan Lloyd via Lazarus

On 06/06/17 06:30, Joe via Lazarus wrote:

Am 30.05.2017 um 00:36 schrieb Bo Berglund via Lazarus:> The corrected
script is found here:>
http://blog.boberglund.com/install_lazfpc_local_pi.sh.On Pi Zero W,
using the ARMv6 option and De-de locale, i get this error message:
"make: -iVSPTPSOTO Kommando nicht gefunden"
What does this say? How to fix?


It says it can't find the compiler binary. Hopefully Bo will be able to 
give you some direct help, but the classical way of fixing it would be 
by something like


make clean all PP=ppcXXX

--
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-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus