Re: [Lazarus] Multi-Device Designer

2015-02-24 Thread Marcos Almeida Azevedo
I only use Lazarus for desktop apps.  But I haven't checked most features
it offers

On Wed, Feb 25, 2015 at 3:05 PM, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:

> Hi,
>
> I just found this very interesting video about Delphi XE7 (or AppMethod)
> and how the form designer can design for multiple device targets. Very
> clever usage of Visual Form Inheritance.
>
>   https://www.youtube.com/watch?v=fmA7KLlOR1U
>
> How does Lazarus IDE (or LCL) handle this? Can you develop for multiple
> targets with a single source code base? Or is this beyond the scope of
> LCL (eg: LCL is only meant for desktop apps)?
>
>
> Regards,
>   - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Marcos | I love PHP, Linux, and Java

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


[Lazarus] Multi-Device Designer

2015-02-24 Thread Graeme Geldenhuys
Hi,

I just found this very interesting video about Delphi XE7 (or AppMethod)
and how the form designer can design for multiple device targets. Very
clever usage of Visual Form Inheritance.

  https://www.youtube.com/watch?v=fmA7KLlOR1U

How does Lazarus IDE (or LCL) handle this? Can you develop for multiple
targets with a single source code base? Or is this beyond the scope of
LCL (eg: LCL is only meant for desktop apps)?


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [Lazarus] fpcup x86 and x64

2015-02-24 Thread aradeonas
Am I asking too newbie question that not worth to answer or there is no
one that run fpcub on a 64 bit Linux?

Regards,
Ara

On Mon, Feb 23, 2015, at 07:41 AM, aradeonas wrote:
> Hi,
> I am new with fpcup and I have an newbies question:
> I have an Ubuntu 64bit and get fpcup x64 and it install Lazarus and fpc
> 64 but I need 32bit compiling and accroding to fpcup wiki I cant cross
> compile with it.
> So what can I do?
> Run fpcup x86 on this 64bit machine and then I can have both?
> Get another 32bit Ubuntu and install  fpcup x86 on it?
> Or something else?
> 
> Regards,
> Ara
> 
> -- 
> http://www.fastmail.com - The professional email service
> 
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - A fast, anti-spam email service.


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


Re: [Lazarus] Increased height of edit controls in Lazarus trunk

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 18:54:56 +0100
Werner Pamler  wrote:

> In my updated trunk version of Lazarus (running on Windows 7, 96 ppi) 
> the height of edit controls (and derivatives) has suddenly increased 
> from 23 pixels to 27 pixels. Using 1.4RC1 still has the height at 23 
> pixels. I don't known when the change happened.
> 
> Did I screw up my system/Lazarus? Or has there been a recent 
> modification? I don't see anything in the svn messages, though. If edit 
> height should remain like this, please center the text vertically.

Please create a bug report.

Mattias

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


Re: [Lazarus] ./startlazarus raise exception

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 19:21:21 +0200
FreeMan  wrote:

> what can be problem?
> fpc r29993 lazarus r47980 yosemite qt x64

There was a big change to FPC
http://bugs.freepascal.org/view.php?id=27531

I recommend to use an older revision of fpc until the dust has settled.

Mattias

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


[Lazarus] Increased height of edit controls in Lazarus trunk

2015-02-24 Thread Werner Pamler
In my updated trunk version of Lazarus (running on Windows 7, 96 ppi) 
the height of edit controls (and derivatives) has suddenly increased 
from 23 pixels to 27 pixels. Using 1.4RC1 still has the height at 23 
pixels. I don't known when the change happened.


Did I screw up my system/Lazarus? Or has there been a recent 
modification? I don't see anything in the svn messages, though. If edit 
height should remain like this, please center the text vertically.


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


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-24 Thread Travis Ayres
Is there a link to the source code for that application? I can't seem to
find it - maybe my Google-fu is weak?
On Feb 14, 2015 2:52 AM, "Anthony Walter"  wrote:

> Hello all, in our continuing effort to re-energize the Lazarus community,
> and reach out to new prospective users, I will be creating a series of
> Lazarus case study videos. This first one is posted online here:
>
> http://www.getlazarus.org/videos/reports/
>
> The aim of this initiative is to draw interest back to Free Pascal and
> Lazarus, especially in light of all the hard work you guys have done in
> preparing for Free Pascal version 3 and Lazarus version 1.4.
>
> If anyone wants to add to the case study content, feel free to use the
> edit this page feature to make your additions. The editors at
> getlazarus.org can quickly, and easily find and review your edits, so
> don't hesitate to contribute.
>
> Also, if you want to forward the above case study to a work colleague or a
> technical acquaintance, please do. That's the reason its there.
>
> Thanks everyone for your hard work, and keep an eye out for our next case
> study.
>
> --
> ___
> 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] [Qt] Random issues at startup

2015-02-24 Thread Vojtěch Čihák
It is Lazarus 1.5 r47939M FPC 3.1.1 x86_64-linux-qt
__
> Od: 
> Komu: Lazarus mailing list 
> Datum: 24.02.2015 18:00
> Předmět: Re: [Lazarus] [Qt] Random issues at startup
>
On 2015-02-23 16:42, Vojtěch Čihák wrote:
> And I observed (with breakpoints in *.lpr) that the "malloc ..."
> message comes from
> Application.Initialize;


fpc 2.6.4 or 3.XX ?

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


[Lazarus] ./startlazarus raise exception

2015-02-24 Thread FreeMan

what can be problem?
fpc r29993 lazarus r47980 yosemite qt x64

➜  lazarus  ./startlazarus
[FORMS.PP] ExceptionOccurred
  Sender=EResNotFound
  Exception=Resource "2" not found
  Stack trace:
  $000100070E12
  $0001000711EF
  $000100054F8A
TApplication.HandleException Resource "2" not found
  Stack trace:
  $000100070E12
  $0001000711EF
  $000100054F8A
2015-02-24 19:17:36.244 startlazarus[20555:49663] modalSession has been 
exited prematurely - check for a reentrant call to endModalSession:


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


Re: [Lazarus] [Qt] Random issues at startup

2015-02-24 Thread zeljko

On 2015-02-23 16:42, Vojtěch Čihák wrote:

And I observed (with breakpoints in *.lpr) that the "malloc ..."
message comes from
Application.Initialize;



fpc 2.6.4 or 3.XX ?

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


Re: [Lazarus] When All compiler options filtered views be unreadeable

2015-02-24 Thread zeljko

On 2015-02-24 05:41, Juha Manninen wrote:

On Tue, Feb 24, 2015 at 12:36 PM, FreeMan
 wrote:


When enter filter on, project options --> compiler options -->other
--> All option's form, viewing be in screenshot.
Attention to checkbox is focused, under -CD text. After clean
filter, views not change, still unreadable. After close form and re
open, view is normal.


Yes this is a known issue. I don't know how to fix it. If somebody has
ideas, please tell.
Zeljko maybe?


There's no "official" support yet from me for qt 64bit (cocoa) on mac, I 
don't have time to investigate such cases atm. There's 32bit build (qt 
carbon) which is ok. Besides that
Qt 4.8.XX have some ugly bugs on mac which can be found on qt 
bugtracker.


z.

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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread FreeMan


On 24.02.2015 15:00, Mattias Gaertner wrote:

ok, so process.ppu should be in the unit path.
Try to compile this:

uses process;
begin
end.


Yes you right, unit not found. 'cos fpc not make all application for x64???

command line:
make -s distclean all install INSTALL_PREFIX=$prefixVolume$fpc_prefix 
CPU_TARGET=x86_64
fpc bin folder just this binnary files, not check others but many 
application not compiled for x64 too.

fpc, mkarmins, mkx86ins, ppudump, ppufiles, ppumove

ofcourse in my script this line gives error. And error mean fpc.cfg not 
created and lib paths can not find anymore

sudo /usr/lib/fpc/"$svnVer"/samplecfg /usr/lib/fpc/"$svnVer"/ /private/etc

result :
Running on darwin
Write permission in /private/etc.
Writing sample configuration file to /private/etc/fpc.cfg
/usr/lib/fpc/3.1.1/samplecfg: line 77: fpcmkcfg: command not found


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


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-24 Thread Lukasz Sokol
On 24/02/15 12:55, Giuliano Colla wrote:
> Il 14/02/2015 15:51, Anthony Walter ha scritto:
>> As a reminder, if you could please use the wiki to make corrections
>> rather than posting additions or corrections here, my life would be
>> much easier.
>> 
> 
> I didn't find any link to a wiki in getlazarus.org, so I'm forced to
> post just here. Which Wiki did you refer to?

There is a link to 'edit page'... just under 
the Lazarus title, upper left corner. Looks like it is on (almost) every page.
(only looked at the help request and home and about-us so far)

At least, it is in my MBOFF under Debian.

[...]

To Anthony: please, from a perspective of a casual user, can you explain,
what is /your/ motivation for splitting and developing this away from the main 
lazarus-ide.org site?

I'm /NOT/ saying it's anywhere near bad, (as I haven't used it yet).
Just unsure... and just having had a look at getlazarus.org and lazarus-ide.org,
side by side,  /I/ seem to like the original better... but, it's just 'my 
view', YYMV.

If you have explained these somewhere, please point / link / PAK (Push A 
[google] Keyword).

(I just re-read the message about New Get Lazarus Initiative, 
on this m/l, of 4/2/15... it doesn't say anything about /motives/ there either)

> 
> Just my 2 cents,
> 
> Giuliano
> 

Kind Regards,

Lukasz


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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 14:37:35 +0200
FreeMan  wrote:

>[...]
> I don't like copy file every where,

That was not my point.
My point was that you should not install FPC into itself.


>[...]
> and this lines in created fpc.cfg,
> # searchpath for units and other system dependent things
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl

ok, so process.ppu should be in the unit path.
Try to compile this:

uses process;
begin
end.

 
> sometime I run make command 10 times in day, maybe more. remove all 
> files and rerun make command. I love my ssd :) so I add to my script 
> "$prefixVolume" variable. This is  for ram drive path, so all make job 
> read write in ramdrive, so my ssd live not decrease.

If your ssd does not support writing 20GB per day, you should buy
another one.

Mattias

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


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-24 Thread Giuliano Colla

Il 14/02/2015 15:51, Anthony Walter ha scritto:
As a reminder, if you could please use the wiki to make corrections 
rather than posting additions or corrections here, my life would be 
much easier.




I didn't find any link to a wiki in getlazarus.org, so I'm forced to 
post just here.

Which Wiki did you refer to?

The video in your HTML5 page doesn't appear to be multiplatform accessible.

To play it under CentOs 6, which is quite popular in 
enterprise/corporation environment a user is forced to install 
proprietary codecs, which don't come with the distribution and may give 
rise to licensing/patent issues, and a Firefox version directly 
downloaded from mozilla website, and not subject to RedHat security 
scrutiny.


I'd suggest a look to 
http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5 , 
where you can find an example of appropriate handling of multiple video 
formats (by using multiple  tags).


Then there's a lot of tools for converting video formats, to provide 
viable alternatives.

Under Linux, for example, a simple old fashioned

ffmpeg -i myfile.mp4 -f ogg myfile.ogv

does the trick of converting from patented mp4 format to free ogg format.

Under Windows the Handbrake converter is free and open source: 
http://www.handbrake.fr/


Just my 2 cents,

Giuliano


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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread FreeMan

Yes you right but
make -s clean all PREFIX=$prefixVolume$laz_prefix CPU_TARGET=x86_64 
OS_TARGET=darwin LCL_PLATFORM=qt OPT="-k'-framework' 
-k'ApplicationServices' -dUSE_QT_45 -g -gl"


*CPU_TARGET=x86_64*
one more time I remove all fpc and lazarus files, re download from svn 
and maked fpc first. Than check one more time.

type in terminal
➜  fpc
Free Pascal Compiler version 3.1.1 [2015/02/24] for x86_64
➜  ppcx64
Free Pascal Compiler version 3.1.1 [2015/02/24] for x86_64
➜ ppc386
zsh: command not found: ppc386

yes ppc386 not found 'cos I'm not use it with lazarus

and result:
Free Pascal Compiler version 3.1.1 [2015/02/24] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling fcllaz.pas
(3104) Compiling registerfcl.pas
(3104) Compiling lazaruspackageintf.pas
(9009) Assembling lazaruspackageintf
/Volumes/ram_disk/opt/lazarus/packager/registration/registerfcl.pas(45,22) 
Fatal: (10022) Can't find unit process used by RegisterFCL

Fatal: (1018) Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make: *** [registration] Error 2

On 24.02.2015 13:14, Mattias Gaertner wrote:

remove a few same lines)
>make: -iVSPTPSOTO: Command not found

This typically means fpc is not in PATH.

Mattias


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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread FreeMan

Thank you your suggestions Mattias.
If I'm not wrong, our result is same just way is little bit different.
I don't like copy file every where, Examp.
my fpc and lazarus folders, under /opt/.  fpc use this 
"/usr/lib/fpc/$fpcversion/units/$fpctarget/*" folder so copy files 
there. Same way, for binnary ppcxxx files copy to for /bin/  I prefer, 
make symbolic link, 'cos for remove or some time upgrade application 
(not just fpc & laz) need copy where to copied before, have to remember, 
but if its link can find easy, never mind this is how to use to.


in my script like this:
make -s clean all install INSTALL_PREFIX=$prefixVolume$fpc_prefix 
CPU_TARGET=$CPU_TARGET

after maked and add link to system
sudo ln -sf $prefixVolume$fpc_prefix"/share/doc/fpc-"$svnVer 
/usr/share/doc/fpc-"$svnVer"

sudo ln -sf $prefixVolume$fpc_prefix"/lib/fpc/" /usr/lib/
sudo ln -sf $prefixVolume$fpc_prefix"/bin/bin2obj"  /bin  --> here add 
other all files, I wrote one for example.


after then run this command:
sudo /usr/lib/fpc/"$svnVer"/samplecfg /usr/lib/fpc/"$svnVer"/ /private/etc

and this lines in created fpc.cfg,
# searchpath for units and other system dependent things
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl

sometime I run make command 10 times in day, maybe more. remove all 
files and rerun make command. I love my ssd :) so I add to my script 
"$prefixVolume" variable. This is  for ram drive path, so all make job 
read write in ramdrive, so my ssd live not decrease.



On 24.02.2015 13:14, Mattias Gaertner wrote:

You combined FPC sources (/Volumes/ram_disk/opt/freepascal/3.1.1)
with the FPC installation (/Volumes/ram_disk/opt/freepascal/3.1.1).
Although this is possible, it makes it harder to spot
misconfigurations, so it is not recommended.
If you are not an expert, do what all others do: Use different
directories. For example

make distclean all install INSTALL_PREFIX=/Volumes/ram_disk/
CPU_TARGET=x86_64

This creates the files under
/Volumes/ram_disk/lib/fpc/3.1.1/units/x86_64-darwin

Don't forget to remove /Volumes/ram_disk/opt/freepascal/3.1.1/lib.

And then add to your /etc/fpc.cfg
-Fu/Volumes/ram_disk/lib/fpc/$fpcversion/units/$fpctarget/*.

After that click in the IDE menu Tools / Rescan FPC source directory.
  
Mattias


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


Re: [Lazarus] raised exception class 'External: SIGFPE'.

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 12:58:54 +0200
FreeMan  wrote:

> fpc r29988 lazarus r47975 svn build on osx qt x64
> today Just upgrade fpc & lazarus svn and start this error,
> 
> my code line:
> FRM_App := TFRM_App.Create(Self);
> 
> Project myproject raised exception class 'External: SIGFPE'.
> 
> 
> In file 'lclproc.pas' at line 857:
> 
> if (length(Msg) div (length(Msg) div 1))=0 then ;

Look at the callstack to find out what leads to this error.

Mattias

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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 12:11:32 +0200
FreeMan  wrote:

> 
> On 24.02.2015 10:29, FreeMan wrote:
> >
> > I'll lookin for i386-darwin and found this folders
> > /freepascal/3.1.1/compiler/i386/units/i386-darwin
> > /freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
> > /freepascal/3.1.1/rtl/units/i386-darwin
> > /freepascal/3.1.1/utils/fpcm/units/i386-darwin
> > and this file
> > /freepascal/3.1.1/rtl/darwin/fpcmade.i386-darwin
> when I remove this folders then make lazarus and get this result (I 
> remove a few same lines)
> make: -iVSPTPSOTO: Command not found

This typically means fpc is not in PATH.

Mattias

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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 10:29:28 +0200
FreeMan  wrote:

> Sorry I been late :(
> *-) /freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
> this folder has many ppu and o files. is there process.ppu too.

Building FPC yourself normally contains two steps: "make all" and "make
install". The "all" compiles all ppu files, putting them across the
source directories. The "install" copies the files nicely to one
directory with one level of sub directories. Typically this
is /usr/lib/fpc/$fpcversion/units/$fpctarget/*.

The later structure is used by the paths in /etc/fpc.cfg.

 
> *-)/freepascal/3.1.1/packages/fcl-process/units/x86_64-darwin/process.ppu
> *-)/Volumes/ram_disk/opt/freepascal/3.1.1/lib/fpc/3.1.1/units/x86_64-darwin/fcl-process/process.ppu

You combined FPC sources (/Volumes/ram_disk/opt/freepascal/3.1.1)
with the FPC installation (/Volumes/ram_disk/opt/freepascal/3.1.1).
Although this is possible, it makes it harder to spot
misconfigurations, so it is not recommended.
If you are not an expert, do what all others do: Use different
directories. For example

make distclean all install INSTALL_PREFIX=/Volumes/ram_disk/
CPU_TARGET=x86_64

This creates the files under
/Volumes/ram_disk/lib/fpc/3.1.1/units/x86_64-darwin

Don't forget to remove /Volumes/ram_disk/opt/freepascal/3.1.1/lib.

And then add to your /etc/fpc.cfg
-Fu/Volumes/ram_disk/lib/fpc/$fpcversion/units/$fpctarget/*.

After that click in the IDE menu Tools / Rescan FPC source directory.
 
Mattias

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


[Lazarus] raised exception class 'External: SIGFPE'.

2015-02-24 Thread FreeMan

fpc r29988 lazarus r47975 svn build on osx qt x64
today Just upgrade fpc & lazarus svn and start this error,

my code line:
FRM_App := TFRM_App.Create(Self);

Project myproject raised exception class 'External: SIGFPE'.


In file 'lclproc.pas' at line 857:

if (length(Msg) div (length(Msg) div 1))=0 then ;

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


Re: [Lazarus] When All compiler options filtered views be unreadeable

2015-02-24 Thread Juha Manninen
On Tue, Feb 24, 2015 at 12:36 PM, FreeMan 
wrote:

> When enter filter on, project options --> compiler options -->other -->
> All option's form, viewing be in screenshot.
> Attention to checkbox is focused, under -CD text. After clean filter,
> views not change, still unreadable. After close form and re open, view is
> normal.
>

Yes this is a known issue. I don't know how to fix it. If somebody has
ideas, please tell.
Zeljko maybe?

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


[Lazarus] When All compiler options filtered views be unreadeable

2015-02-24 Thread FreeMan

fpc r29988 lazarus r47975 svn build on osx qt x64

When enter filter on, project options --> compiler options -->other --> 
All option's form, viewing be in screenshot.
Attention to checkbox is focused, under -CD text. After clean filter, 
views not change, still unreadable. After close form and re open, view 
is normal.



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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread FreeMan


On 24.02.2015 10:29, FreeMan wrote:


I'll lookin for i386-darwin and found this folders
/freepascal/3.1.1/compiler/i386/units/i386-darwin
/freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
/freepascal/3.1.1/rtl/units/i386-darwin
/freepascal/3.1.1/utils/fpcm/units/i386-darwin
and this file
/freepascal/3.1.1/rtl/darwin/fpcmade.i386-darwin
when I remove this folders then make lazarus and get this result (I 
remove a few same lines)

make: -iVSPTPSOTO: Command not found
make[1]: -iVSPTPSOTO: Command not found
make[1]: -iVSPTPSOTO: Command not found
make[1]: -iVSPTPSOTO: Command not found
make[2]: -iVSPTPSOTO: Command not found
make[3]: -iVSPTPSOTO: Command not found
make[2]: -iVSPTPSOTO: Command not found
make[3]: -iVSPTPSOTO: Command not found
..
make[1]: -iVSPTPSOTO: Command not found
Makefile:2332: warning: overriding commands for target `.'
Makefile:2330: warning: ignoring old commands for target `.'
make[1]: -iVSPTPSOTO: Command not found
make[1]: -iVSPTPSOTO: Command not found
make[1]: Tdarwin: No such file or directory
make[1]: -iVSPTPSOTO: Command not found
make[1]: Tdarwin: No such file or directory
.
make[1]: -iVSPTPSOTO: Command not found
make[2]: -iVSPTPSOTO: Command not found
make[2]: *** No rule to make target `svn2revisioninc'.  Stop.
make[1]: *** [revisioninc] Error 2
make: *** [ide] Error 2

I have to compile fpc i386 and x64 then make x64 lazarus
lazarus IDE is i386 or x64 ?

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


Re: [Lazarus] -FcUTF8,-dEnableUTF8 create problem

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 10:35:37 +0200
FreeMan  wrote:

> On 22.02.2015 20:37, Mattias Gaertner wrote:
> > Post a complete example and someone can find out.
> >
> code block is not mine, I was find in this link.

Several people tried to find out what is wrong with your code snippet
and failed.
Please post a complete example - one that compiles.

Mattias

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


Re: [Lazarus] -FcUTF8,-dEnableUTF8 create problem

2015-02-24 Thread FreeMan

On 22.02.2015 20:37, Mattias Gaertner wrote:

Post a complete example and someone can find out.

Mattias

code block is not mine, I was find in this link.
http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-November/084198.html

function AnyProgramVersion(const sProgram: string; Out vv: PTVersion) :Boolean;
const
  WIN_EXE: String = 'MZ';
  LINUX_EXE: String = #127 + 'ELF';
var
  wFileStr: TFileStream;
  RS : TResources;
  E : TWinPEImageResourceReader=nil;
  EL : TElfResourceReader=nil;
  VR : TVersionResource;
  I : Integer;
  {$IFDEF WINCE}
  wProgram: WideString;
  {$ELSE}
  wProgram: String;
  {$ENDIF}
  ar: array[0..4] of byte;
  ExecType: char;
begin
  Result := False;
  vv := New(PTVersion);
  with vv^ do begin
Major:= -1;
Minor := 0;
Release := 0;
Build := 0;
  end;
  if sProgram = EmptyStr then
wProgram := ParamStr(0)
  else
wProgram := sProgram;
  if not FileExists(wProgram) then begin
// program name without path, assume directory of executing program
if Pos(DirectorySeparator, wProgram) = 0 then begin
  wProgram := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + 
sProgram;
  if not FileExists(wProgram) then
Exit;
end else
  // no path delimiter, get out
  Exit;
  end else
wProgram := sProgram;
  wFileStr := TFileStream.Create(sProgram, fmOpenRead);
  try
// check what kind of executable an get resources accordingly
wFileStr.Read(ar, 4);
  Finally
wFileStr.Free;
  end;
  if CompareMem(@(ar), Pchar(WIN_EXE), 2) then
ExecType := 'W'
  else
  if CompareMem(@(ar), Pchar(LINUX_EXE), 4) then
ExecType := 'L'
  else
Exit;
  RS:=TResources.Create;
  try
try
  if ExecType = 'W' then begin
E := TWinPEImageResourceReader.Create;
Rs.LoadFromFile(wProgram, E);
  end else begin
EL := TElfResourceReader.Create;
Rs.LoadFromFile(wProgram, EL);
  end;
finally
  if Assigned(E) then
E.Free;
  if Assigned(EL) then
EL.Free;
end;
VR:=Nil;
I:=0;
While (VR=Nil) and (I < RS.Count) do begin
  if RS.Items[i] is TVersionResource then
VR := TVersionResource(RS.Items[i]);
  Inc(I);
end;
if VR <> Nil then begin
  with vv^ do begin
Major:= VR.FixedInfo.FileVersion[0];
Minor := VR.FixedInfo.FileVersion[1];
Release := VR.FixedInfo.FileVersion[2];
Build := VR.FixedInfo.FileVersion[3];
  end;
  Result := True
End ;
  Finally
RS.FRee;
  end;
end;

{$IFDE


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


Re: [Lazarus] while make lazarus x64, get i386 error

2015-02-24 Thread FreeMan

Sorry I been late :(
*-) /freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
this folder has many ppu and o files. is there process.ppu too.

*-)/freepascal/3.1.1/packages/fcl-process/units/x86_64-darwin/process.ppu
*-)/Volumes/ram_disk/opt/freepascal/3.1.1/lib/fpc/3.1.1/units/x86_64-darwin/fcl-process/process.ppu


I'll lookin for i386-darwin and found this folders
/freepascal/3.1.1/compiler/i386/units/i386-darwin
/freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
/freepascal/3.1.1/rtl/units/i386-darwin
/freepascal/3.1.1/utils/fpcm/units/i386-darwin
and this file
/freepascal/3.1.1/rtl/darwin/fpcmade.i386-darwin

this my command line
make -s clean all install 
INSTALL_PREFIX=/Volumes/ram_disk/opt/freepascal/3.1.1 CPU_TARGET=x86_64

definitelyI'm sure that folder not there before run make.

On 23.02.2015 12:18, Mattias Gaertner wrote:

If there is a process.ppu, then the IDE should have changed the message
and added the path to the ppu.
The above is the raw output from "make".

FreeMan, in the Messages window, you should see a different line "Can't
find unit process used". Do you see the path to the process.ppu?


Mattias


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