Re: [Lazarus] Can't compile Lazarus on Raspberry Pi3 using fpc 3.3.1 and Larzarus r>57100

2018-11-01 Thread Valdas Jankūnas via Lazarus

2018-11-01 23:47, Maxim Ganetsky via Lazarus rašė:

02.11.2018 0:42, Valdas Jankūnas via Lazarus пишет:

gtk2proc.inc(4631,15) Fatal: Internal error 200108231


This line indicates FPC bug.



Reported: https://bugs.freepascal.org/view.php?id=34495

--
  Valdas Jankūnas
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Can't compile Lazarus on Raspberry Pi3 using fpc 3.3.1 and Larzarus r>57100

2018-11-01 Thread Maxim Ganetsky via Lazarus

02.11.2018 0:42, Valdas Jankūnas via Lazarus пишет:

gtk2proc.inc(4631,15) Fatal: Internal error 200108231


This line indicates FPC bug.

--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Can't compile Lazarus on Raspberry Pi3 using fpc 3.3.1 and Larzarus r>57100

2018-11-01 Thread Valdas Jankūnas via Lazarus

Hello,

I have Raspberry Pi3 B with fresh Raspbian Stretch (image 2018-10-09) on it.

I need FPC trunk because a Bug (https://bugs.freepascal.org/view.php?id=32005) so I 
followed these instructions and successfully compiled FPC from trunk r40152 (using 
'OPT="-dFPC_ARMHF"'): 
https://bigdanzblog.wordpress.com/2015/06/13/compiling-the-latest-lazarusfree-pascal-for-raspberry-pi/
I used same instructions to download and compile Lazarus 2.1.0 from trunk from 
SVN, but I cant compile it because compilation aborts with lines:

gtk2proc.inc(4631,15) Fatal: Internal error 200108231
Fatal: Compilation aborted
Makefile:2956: recipe for target '../lcl.ppu' failed
make[3]: *** [../lcl.ppu] Error 1
make[3]: Leaving directory '/usr/local/lazarus/source/lcl/interfaces/gtk2'
Makefile:3293: recipe for target 'gtk2_all' failed
make[2]: *** [gtk2_all] Error 2
make[2]: Leaving directory '/usr/local/lazarus/source/lcl/interfaces'
Makefile:4460: recipe for target 'interfaces' failed
make[1]: *** [interfaces] Error 2
make[1]: Leaving directory '/usr/local/lazarus/source/lcl'
Makefile:3243: recipe for target 'lcl' failed
make: *** [lcl] Error 2

For info compilation starts with lines:

# make all OPT="-dFPC_ARMHF"
make -C packager/registration
make[1]: Entering directory '/usr/local/lazarus/source/packager/registration'
/bin/rm -f ../units/arm-linux/fcllaz.ppu
/usr/local/bin/ppcarm -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. 
-Fu/usr/local/lib/fpc/3.3.1/units/arm-linux/rtl -FE. -FU../units/arm-linux 
-dFPC_ARMHF -darm fcllaz.pas
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.3.1 [2018/11/01] for arm
Copyright (c) 1993-2018 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMHF
(3104) Compiling fcllaz.pas
.


I tried various revisions (erase previous revision completely -> checkout to 
different revision):
 - cannot compile: latest, 59000, 58500, 58000, 57500, 57200
 - compiles without errors: 57100 (and I can start it: main window header shows 
v1.9.0), 57000 (checked two times)

How resolve this problem and have latest Lazarus from trunk?

--
  Valdas Jankūnas
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Loading an image to a mysql blob

2018-11-01 Thread Terry A. Haimann via Lazarus
I had already tried that.  I clicked on edit from the dbnavigator,
uploaded the image and clicked post.  That is when the program would
crash.

I have taken the program a different route, gotten rid of the blob and
replaced it with a varchar.  The varchar now has the filename of the
jpeg.  It's not fast, but it works.

Terry

On Thu, 2018-11-01 at 11:17 +0100, John Landmesser via Lazarus wrote:
> Am 31.10.18 um 13:05 schrieb Terry A. Haimann via Lazarus:
> > 
> > I tried loading an image into a Medium Blob.  The image uploads and
> > shows up on my form, but when I click post on my DbNavigator the
> > program gives me an access violation.
> > 
> > Here is the source code:
> > 
> > procedure TPropertyForm.ImgButClick(Sender: TObject);
> > Var
> >    MyImageFile, MyDir:  String;
> > begin
> >   MyImageFile := '/';
> >   if OpenDialog1.Execute then
> >   begin
> >    MyImageFile := OpenDialog1.Filename;
> >   end;
> >   DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);
> > 
> > End;
> > 
> > Am I missing something I have to do?  The blob should be large
> > enough,
> > they are supposed to be able to hold 16 Meg and the jpegs are
> > running
> > about 2 - 3 meg.  I am running Mint 18.3, using Mysql 5.7.22 and
> > using
> > ZeosDBO.
> > 
> > Terry Haimann
> .. perhaps a Dataset.edit before
> 
> DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);
> 
> 
> 
> DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);
> 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] App UI scaling idea

2018-11-01 Thread AlexeyT via Lazarus

I saw in some apps an option: scale UI - 100%..300%. Eg in Telegram.

Can it be idea for LCL? Can u add global variable, 
GlobalScalingPercents, which is affected by OS PixelPerInch, but also 
can be affected by app? App can give option like in Telegram.


--
Regards,
Alexey

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


Re: [Lazarus] Loading an image to a mysql blob

2018-11-01 Thread John Landmesser via Lazarus

Am 31.10.18 um 13:05 schrieb Terry A. Haimann via Lazarus:

I tried loading an image into a Medium Blob.  The image uploads and
shows up on my form, but when I click post on my DbNavigator the
program gives me an access violation.

Here is the source code:

procedure TPropertyForm.ImgButClick(Sender: TObject);
Var
   MyImageFile, MyDir:  String;
begin
  MyImageFile := '/';
  if OpenDialog1.Execute then
  begin
   MyImageFile := OpenDialog1.Filename;
  end;
  DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);

End;

Am I missing something I have to do?  The blob should be large enough,
they are supposed to be able to hold 16 Meg and the jpegs are running
about 2 - 3 meg.  I am running Mint 18.3, using Mysql 5.7.22 and using
ZeosDBO.

Terry Haimann


.. perhaps a Dataset.edit before

DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);



DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);

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


[Lazarus] Lazarus Release Candidate 2 of 2.0

2018-11-01 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the second release candidate of
Lazarus 2.0.

This release was built with FPC 3.0.4.
The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. 

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

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

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

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

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; Carbon (32bit), Cocoa (64bit, beta), qt and
  qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_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 2.0 fixes branch.
The resulting 2.0RC2 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.8 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 2.0.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 2.0 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.8.x), and use "Publish2
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
https://lists.lazarus-ide.org/listinfo/lazarus