Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Kjow
Il 10/gen/2014 02:22 Martin Frb laza...@mfriebe.de ha scritto:

 For your info, if you like to add:
 To be able to have more than one Lazarus (needs 1.2 or up) at the same
 time.

 In the lazarus folder (same where lazarus.exe is) put a file
  lazarus.cfg

 the content just one line (path is NOT allowed to be in quotes / no
 trailing spaces)
 --primary-config-path=C:\laz_dir\conf_inside_main_dir

 Of course the path can point anywhere else as well. But it should not be
 the same as the laz install dir (it can be a new subdir)


Hi, I forgot to write that you can install all, any times you want, in
different directories.

The manager install a shortcut that already have the -pcp  parameter (and
if the checkbox in first tab is flagged it will copied also on desktop).

Interesting the point about lazarus.cfg, it is the same thing, but more
professional... I didn't know that feature,  I will implement it.

An other thing I forgot to write is that there are included also gdb for
x86 and x64 in the specified path... I'm going to update the wiki.

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


[Lazarus] Lazarus.cfg was [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 02:21, Martin Frb wrote:
 On 10/01/2014 00:17, Kjow wrote:
 In the lazarus folder (same where lazarus.exe is) put a file
  lazarus.cfg
 
 the content just one line (path is NOT allowed to be in quotes / no
 trailing spaces)
 --primary-config-path=C:\laz_dir\conf_inside_main_dir
Doesn't seem to work for me on Laz trunk with lazbuild:.
I have this lazarus.cfg (ASCII encoded):
--primary-config-path=c:\development\lazarussettings

but running lazbuild gives
D:\Cop\tc:\Development\lazarus\lazbuild.exe simple.lpr
using config file c:\Development\lazarus\lazarus.cfg
primary config path: C:\Users\Reinier\AppData\Local\lazarus
... which is the wrong primary config path

Running
c:\Development\lazarus\lazarus.exe does give the correct primary config
path..

Do you want me to file a bug report?

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 01:17, Kjow wrote:
 I'm glad to announce the release of Lazarus Manager 0.8
 
 Some users asked me about old scripts (Lazarus Manager v0.3), but due
 some changes in Windows and/or Lazarus/FPC source (I don't know well
 what happened, but they stopped to work) I taken the decision to realize
 a my old goal about this project.
 
 So, there is available to download a program for Windows that will
 install, build and configure Lazarus/FPC (both branch/trunk) to compile
 (and cross-compile) for these targets:

Thanks a lot!

snip
 PS Please, take it as an hobby... I know that it can be improved a lot
 and there are surely mistakes/faults, so please tell me which issues you
 will find and I'll try to fix in my free time :)

Very, very interesting - would have hoped to have something like this as
a front-end to fpcup (I'm currently working on ARM cross compilers and
I'm sure your tool would help getting that done)... so we can merge our
hobbies/strengths - as you may have found out, GUI design is not one of
mine ;)


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


Re: [Lazarus] Lazarus.cfg was [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 11:15, Reinier Olislagers wrote:
 but running lazbuild gives
 D:\Cop\tc:\Development\lazarus\lazbuild.exe simple.lpr
 using config file c:\Development\lazarus\lazarus.cfg
 primary config path: C:\Users\Reinier\AppData\Local\lazarus
 ... which is the wrong primary config path

Took the liberty of creating
http://bugs.freepascal.org/view.php?id=25510
and assigning it to Martin...


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


[Lazarus] Hungarian translation - anybody interested?

2014-01-10 Thread Kovács László

Hi,

I'm in an early stage of my first project in Lazarus, and I want to use 
my native language in my application, wherever possible.


I did not not find a hungarian translation, so I created a 
lclstrconsts.hu.po, and translated some of the captions, including 
different dialogs captions and Yes/No/Cancel/Ignore/Retry/Abort/ etc...  
buttons which seem to be frequent.
I didn't translate all of the strings at all, so surely there are other 
strings worth to translate later, but for me it's enough at the moment, 
as the captions I really need now appear in hungarian :)
I did not translate the colors names (for example: #: 
lclstrconsts.rslimecolorcaption msgid Lime), but I may do it later. 
However, on windows I read hungarian color names on a fontdialog, so not 
sure where these names appear...


There are tons of messages of which I have no idea how and when get 
displayed.
Those I can't tranlate now. (For example: msgid No widgetset object. 
Please check if the unit \interfaces\ was added to the programs uses 
clause.).
However, I don't think these messages would appear during a normal 
operation of a program.


Should I upload or share this .po file or should I keep it for myself as 
it's incomplete?


TIA

Regards

Laszlo Kovacs



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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Hans-Peter Diettrich

Kjow schrieb:


More detail and download link here:

http://wiki.lazarus.freepascal.org/Lazarus_Manager

PS Please, take it as an hobby... I know that it can be improved a lot 
and there are surely mistakes/faults, so please tell me which issues you 
will find and I'll try to fix in my free time :)


On Win8-64
--
First problem: the edit box for the root directory shows strange 
behaviour. Inserting characters *into* text can make the cursor jump to 
the end of the text.


I'm missing an button for executing the Pre-Installation. Start 
Necessaries Download doesn't react, the FirstInstall button is far away.


SVN is not found, even if TortoiseSVN\bin is in the path, and I don't 
remember SVM problems with fpcup.

- what exactly should be in the path?
- does it harm when another SVN is installed by the manager?
- Clicking Cancel makes the program unresponsive, Windows kills it.
- The same when clicking OK. The last log entry is
[10:47:25]: Start gdb.exe download.

fpcup had other problems, couldn't make it work either.


Second try in WinXP-32 VM
-
SVN can be started in a console, seems to be installed already.
Downloads seem to succeed.
Error: Binutils directory is empty.
Maybe .lzma and .tar are not supported? -- installed 7zip and zlib.
Now a couple of consoles seem to checkout the repositories.
All done - what now?

Try close a console: Windows cannot cannot close this program

Try Update, more consoles open *and* close (rapidly, empty?)!
These seem to be the make consoles?
Error: Failed to execute: 2.
Huh? config: Drive=2 ?

At least the log continues, starting make's
*and* finally states Update completed :-)

Ending the program - the consoles still are open. Kill them now brutally :-]

But where are the binaries? Looking at the log, the INSTALL_PREFIX 
directories do not exist :-(


Log doesn't mention any missing paths, only:

Temporary EnvironmentVariable (PATH):
C:\LazMgr\fpc\Bootstrap;C:\LazMgr\fpc\Binutils;C:\LazMgr\fpc\Utils\bin\i386-win32;C:\Program 
Files\CollabNet\Subversion Client\



Fix the shortcut file (root changed!).
Error: problems with android NDK...
Of course no such directories exist, I didn't select Android support!?
Ignore -- program starts, with all targets checked! :-(
Uncheck except win32.
QuickBuild -- not yet implemented
Close, remove Android directories from config.ini - oops, bad idea?
Remove all from the shortcut.
Start again, consoles open and close quickly - still no target 
directories created.


fpctrunk source missing compiler directory!

Creating batch file for start with above directories appended.
No difference :-(
Add CD... and make... for testing


C:/LazMgr/fpc/Bootstrap/ppc386.exe -Fui386 -Fusystems 
-Fuc:/pp/units/i386-win32/
rtl -Fii386 -FE. -FUi386/units/i386-win32  -di386 -dGDB -dBROWSERLOG 
-Fux86 pp.pas

PPU Loading C:\pp\units\i386-win32\rtl\system.ppu
PPU Invalid Version 100
Fatal: Can't find unit system used by pp
Fatal: Compilation aborted
make: *** [ppc386.exe] Error 1


Cleaning \pp\units...
Invalid Version disappears, rest same error :-(

What's wrong?

DoDi


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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 13:40, Hans-Peter Diettrich wrote:
 fpcup had other problems, couldn't make it work either.
Please feel free to post bug reports on the forum  I'll have a look.
Thanks.



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


Re: [Lazarus] New NumbersOnly property for TCustomEdit (r43678)

2014-01-10 Thread Mailing Lists




On Thursday 09/01/2014 at 1:51 pm, Bart  wrote:

I have implemented a NumbersOnly property for TCustomEdit in r43678.


Confused... Why not just use a MaskEdit widget?  Or doesn't LCL have a 
TMaskedEdit component?

Regards,
 Graeme




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


Re: [Lazarus] New NumbersOnly property for TCustomEdit (r43678)

2014-01-10 Thread Michael Van Canneyt



On Fri, 10 Jan 2014, Mailing Lists wrote:





On Thursday 09/01/2014 at 1:51 pm, Bart  wrote:

I have implemented a NumbersOnly property for TCustomEdit in r43678.


Confused... Why not just use a MaskEdit widget?  Or doesn't LCL have a 
TMaskedEdit component?


Because Maskedit always does a lot more than just limiting your entry to 
numbers.
Alignment, adding spaces whatnot. Usually in totally unnatural ways

I never liked a maskedit.

Michael.

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


Re: [Lazarus] Hungarian translation - anybody interested?

2014-01-10 Thread Bart
On 1/10/14, Kovács László i...@kovacsoltvideo.hu wrote:

 I did not not find a hungarian translation, so I created a
 lclstrconsts.hu.po,

Anything wrong with the current one in trunk?

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/languages/lclstrconsts.hu.po?root=lazarusview=log

Bart

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


[Lazarus] TDateEdit.Clear and DefaultToday: bug or expected behaviour?

2014-01-10 Thread Alexsander Rosa
With DefaultToday = false, TDateEdit.Clear clears the edit and sets Date to
1899-12-30.
With DefaultToday = true, TDateEdit.Clear clears the edit and sets Date to
TODAY.
IMHO, the edit on screen should display the content of the Date property
all times.
Thus, with DefaultToday = true, the TDateEdit.Clear shoud display TODAY
instead of blank.
Or maybe TDateEdit.Clear should set 1899-12-30 regardless of DefaultToday
property?

-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Hungarian translation - anybody interested?

2014-01-10 Thread Juha Manninen
On Fri, Jan 10, 2014 at 2:23 PM, Kovács László i...@kovacsoltvideo.hu wrote:
 I did not not find a hungarian translation ...

When you contribute something, or even plan to contribute something,
always remember to use the latest development version (trunk). This
has happened before and again it happens. There is a big change in
trunk and right after it somebody makes a similar change for an old
version.

I sent you a personal mail where you can find the e-mail address of
Hungarian translation maintainer Péter Gábor.
Please co-operate with him to make sure you are not working on the
same translations at the same time. Then you are very welcome to
improve the translations.

Regards,
Juha

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Kjow
I updated Lazarus Manager to v0.8.1:

Changelog:
Fixed: shortcut generation issue. Now config stuff will be generate in
./Lazarus/config - .\lazarus\lazarus.exe --pcp=C:\Develop\lazarus\config



2014/1/10 Reinier Olislagers reinierolislag...@gmail.com

 Very, very interesting - would have hoped to have something like this as
 a front-end to fpcup (I'm currently working on ARM cross compilers and
 I'm sure your tool would help getting that done)... so we can merge our
 hobbies/strengths - as you may have found out, GUI design is not one of
 mine ;)


I was not aware of fpcup, Lazarus Manager is a stand-alone program that
uses just bootstrap, svn and utils/binutils to make all. I used TTHread and
TProcess to call commands like anyone can do in command prompt manually.

Anyway, I'm glad that I am not the only to want this kind of tool and I'll
follow fpcup with interest... maybe a day I'll try to make a shell for
fpcup, but I need to study it :)


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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Kjow
wow, a lot of stuff!

2014/1/10 Hans-Peter Diettrich drdiettri...@aol.com

 On Win8-64
 --
 First problem: the edit box for the root directory shows strange
 behaviour. Inserting characters *into* text can make the cursor jump to the
 end of the text.


This is a bug... in path can't be used spaces or special char and it
doesn't reposition the cursor at the right place :)


 I'm missing an button for executing the Pre-Installation. Start
 Necessaries Download doesn't react, the FirstInstall button is far away.


If One Click Installation is selected, they aren't needed (and they are
disabled). I updated the wiki.


 SVN is not found, even if TortoiseSVN\bin is in the path, and I don't
 remember SVM problems with fpcup.
 - what exactly should be in the path?
 - does it harm when another SVN is installed by the manager?
 - Clicking Cancel makes the program unresponsive, Windows kills it.
 - The same when clicking OK. The last log entry is
 [10:47:25]: Start gdb.exe download.


mmhh... it use generic svn command line program, so if you type svn in a
new command prompt window it should work also on Lazarus Manager...

fpcup had other problems, couldn't make it work either.


I don't know how fpcup works, but if both aren't working it should be a
system problem... I don't know... I'll try with an other PC (win8.1 x64).


 Second try in WinXP-32 VM
 -
 SVN can be started in a console, seems to be installed already.
 Downloads seem to succeed.
 Error: Binutils directory is empty.
 Maybe .lzma and .tar are not supported? -- installed 7zip and zlib.


Lazarus Manager can't manage lzma (or tar), I show a pop-up when required
(and I add an advice on log) that this step should be done manually. Anyway
Lazarus Manager will stay in standby until files aren't copied. This is a
my log:

...
[16:18:21]: 
[16:18:21]: Please, extract
C:\Develop\Tools\Downloads\binutils-2.23.2-1-mingw32-bin.tar.lzma\mingw32\bin\
to:
C:\Develop\fpc\Binutils

Here, you need ar.exe, as.exe, ld.exe, zlib1.dll, etc

[16:18:21]: 
...


 Now a couple of consoles seem to checkout the repositories.
 All done - what now?

 Try close a console: Windows cannot cannot close this program


Well, the procedure should follow a defined path. If there isn't binutils
into the directory everything after the check doesn't work. Of course,
there are controls about not proceeding if binutils aren't found, I don't
know why in your system this doesn't work... strange.


 Try Update, more consoles open *and* close (rapidly, empty?)!
 These seem to be the make consoles?
 Error: Failed to execute: 2.
 Huh? config: Drive=2 ?


Update works only if first installation was ok, so something not defined is
happened (and binutils are absolutely required).



 At least the log continues, starting make's
 *and* finally states Update completed :-)

 Ending the program - the consoles still are open. Kill them now brutally
 :-]

[cut]

 But where are the binaries? Looking at the log, the INSTALL_PREFIX
 directories do not exist :-(


This log is not so smart :-p
It just writes what is processing and when it ends, but it doesn't tell
(yet?) if all is gone right. Anyway, if in Lazarus (branch/trunk) there are
exe files all is gone right :)


 fpctrunk source missing compiler directory

[cut]

 What's wrong?


I don't really know... it seems like there is some interference with other
installation/something else, but Lazarus Manager should not care...


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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Hans-Peter Diettrich

Reinier Olislagers schrieb:

On 10/01/2014 13:40, Hans-Peter Diettrich wrote:

fpcup had other problems, couldn't make it work either.

Please feel free to post bug reports on the forum  I'll have a look.


I don't remember the exact details. According to the docs, I deleted 
ppcx64.exe, and now it is *not* recreated automatically.


What should I do to restart in a usable state?

DoDi


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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Hans-Peter Diettrich

Kjow schrieb:

wow, a lot of stuff!

2014/1/10 Hans-Peter Diettrich drdiettri...@aol.com 
mailto:drdiettri...@aol.com


On Win8-64
--
First problem: the edit box for the root directory shows strange
behaviour. Inserting characters *into* text can make the cursor jump
to the end of the text.


This is a bug... in path can't be used spaces or special char and it 
doesn't reposition the cursor at the right place :)


No special characters, I only tried to insert 'LazMgr\' in front of the 
suggested directory. It may be a timing problem, the 'a' or 'z' caused 
the jump to the end of the text.




I'm missing an button for executing the Pre-Installation. Start
Necessaries Download doesn't react, the FirstInstall button is
far away.



mmhh... it use generic svn command line program, so if you type svn in 
a new command prompt window it should work also on Lazarus Manager...


So it seems to me that TortoiseSVN doesn't install the standard svn.exe. 
Dunno how they make svn known to their bash shell.




fpcup had other problems, couldn't make it work either.


I don't know how fpcup works, but if both aren't working it should be a 
system problem... I don't know... I'll try with an other PC (win8.1 x64).


I use Win8 (NOT 8.1!) only if necessary or simple, otherwise XP (VM) is 
more tansparent and usable for me. Had to disable automatic updates on 
Win8 a long time ago, because it broke several apps; this may be the 
reason why I couldn't (and don't want any more) to upgrade to 8.1. Never 
change a working Windows ;-)



Second try in WinXP-32 VM
-
SVN can be started in a console, seems to be installed already.
Downloads seem to succeed.
Error: Binutils directory is empty.
Maybe .lzma and .tar are not supported? -- installed 7zip and zlib.


Lazarus Manager can't manage lzma (or tar), I show a pop-up when 
required (and I add an advice on log) that this step should be done 
manually.


*Manually* here means using some tool - which one?



Now a couple of consoles seem to checkout the repositories.
All done - what now?

Try close a console: Windows cannot cannot close this program


Well, the procedure should follow a defined path. If there isn't 
binutils into the directory everything after the check doesn't work. Of 
course, there are controls about not proceeding if binutils aren't 
found, I don't know why in your system this doesn't work... strange.


Would it be simpler to disable single click installation in case of 
trouble, and proceed step by step? (should be documented as well)




Try Update, more consoles open *and* close (rapidly, empty?)!
These seem to be the make consoles?
Error: Failed to execute: 2.
Huh? config: Drive=2 ?


Update works only if first installation was ok, so something not defined 
is happened (and binutils are absolutely required).


When I found the target directories missing, I tried to repeat 
FirstInstall (no improvment). How do I a clean restart?




This log is not so smart :-p
It just writes what is processing and when it ends, but it doesn't tell 
(yet?) if all is gone right. Anyway, if in Lazarus (branch/trunk) there 
are exe files all is gone right :)


Can the make consoles be kept open in case of errors (ErrorLevel?), 
for inspection of eventual error messages? Then close after prompting 
the user...



I don't really know... it seems like there is some interference with 
other installation/something else, but Lazarus Manager should not care...


Please clarify: is the temporary path (shown in the log) the full path 
used during the build process? Which other standard directories are 
involved?


How is the \pp directory involved? It was created by another Lazarus 
(older, stable) installation, obviously incompatible with the 
current/trunk projects.



A general note on FPC/Lazarus installation:
I had several installations on my old (Win7) system, but don't remember 
how I made make work there, and which one was the most recent one. Is 
there something simpler than the BuildFAQ, telling how to make things 
work without killing other existing installations?


As a normal user I'm happy with a single installation, but when I now 
want to explore the new AnsiStrings, I need multiple independent 
installations of FPC (and Lazarus?).


E.g. on Win7 I had an \fpc directory, containing various FPC 
installations, so that I know where to install and find some specific 
compiler. A single (unversioned) \pp directory is not so useful. In 
detail I don't remember which config files/directories belong to which 
version...


I also considered to have different users for each branch, but AFAIR 
this also didn't allow to isolate the installations sufficiently. Would 
this be easier on Linux? [I doubt that, when \lib and other shared 
directories or links are used] Also my Ubuntu VM recently stopped 
working, after an update, with an irrecoverably broken package 

[Lazarus] Fwd: newbie

2014-01-10 Thread duilio foschi
I would like to play with library graphics32 (graphics32.org).

The version of Lazarus I use is: 1.0.12

The instructions to follow are simple enough:


Unzip the files;
Select Package | Open Package File... on the menu bar. Set Files of
type to Lazarus package (*.lpk), locate and open GR32_DSGN_L.dpk
A package editor window will appear. Click Compile, then click Install;
Lazarus will ask to compile itself in order to make use of the
library. Choose Yes to be able to use the library from the IDE. It
will take several minutes until the IDE is compiled completely.
After an automatic restart you are able to use GR32 in Lazarus.


Ev goes as above.

Only at the last step, when Lazarus compiles itself, I get the
following error message:
..\ideintf\objectinspector.pp(47,3) Fatal: Can't find unit
ComponentTreeView used by ObjectInspector

A screenshot with the error message was uploaded at
http://it.tinypic.com/r/v4s76w/5

I searched for file
ComponentTreeView.pas

The file is located at the following path:
C:\lazarus\ideintf

(see the screenshot uploaded at
http://it.tinypic.com/r/2962ljl/5
)

I tried to add the path to the LIBRARY section of the package (see
the screenshot uploaded at
http://it.tinypic.com/r/2q8od9x/5
)
but had nop better luck.

How can I fix the problem ?

Thank you

Peppe

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Kjow
2014/1/10 Hans-Peter Diettrich drdiettri...@aol.com

 No special characters, I only tried to insert 'LazMgr\' in front of the
 suggested directory. It may be a timing problem, the 'a' or 'z' caused the
 jump to the end of the text.


Just a bug of epuration system I made. :)
I think I have in mind how to solve.


 So it seems to me that TortoiseSVN doesn't install the standard svn.exe.
 Dunno how they make svn known to their bash shell.


Well, if Lazarus Manager can't use svn nothing will work.

There aren't restriction on which svn client to use, it just need a fully
working svn command line (command prompt). If no svn client if found (it
check the existence of svn command on system path (I use this code:
FindDefaultExecutablePath('svn'): Boolean;) it will download and ask to
install the client that has his url on first tab.


 I use Win8 (NOT 8.1!) only if necessary or simple, otherwise XP (VM) is
 more tansparent and usable for me. Had to disable automatic updates on Win8
 a long time ago, because it broke several apps; this may be the reason why
 I couldn't (and don't want any more) to upgrade to 8.1. Never change a
 working Windows ;-)


I need Win8.1 because I need to test my game with latest version... so much
so that Windows 8.1 corrupt my shaders (GLSL) and I need to do a big
debug... yes, damn M$!



 Lazarus Manager can't manage lzma (or tar), I show a pop-up when required
 (and I add an advice on log) that this step should be done manually.


 *Manually* here means using some tool - which one?


e.g. if installation root is C:\Develop\

Go to: C:\Develop\Tools\Downloads you will find
binutils-2.23.2-1-mingw32-bin.tar.lzma
Right click on this file. then:

7-zip - Open

Double click on binutils-2.23.2-1-mingw32-bin.tar - mingw32 - bin

Select all file and extract them on C:\Develop\fpc\Binutils

I don't remember for what, but zlib1.dll is needed also into
C:\Develop\fpc\Binutils

Without binutils nothing will work.


 Would it be simpler to disable single click installation in case of
 trouble, and proceed step by step? (should be documented as well)


Actually only automatized procedure is fully working (with the
pre-requisites like svn working and binutils extracted).

Generate Directory Structure AND Start Necessaries Download are just
the first step. Other manual steps are not implemented yet.


 When I found the target directories missing, I tried to repeat
 FirstInstall (no improvment). How do I a clean restart?


Lazarus Manager is not working for you, because it doesn't recognize svn
and you don't have extracted binutils.

Anyway, to restart, just delete the root installation directory you choose
for Lazarus Manager (e.g. C:\Develop ).
If you have manipulated config.ini (it should not be done), you can
overwrite with the original one in the zip of LazarusManager you downloaded.

Can the make consoles be kept open in case of errors (ErrorLevel?), for
 inspection of eventual error messages? Then close after prompting the
 user...


It closes when process is ended... I need to investigate how to let it
open.



 Please clarify: is the temporary path (shown in the log) the full path
 used during the build process? Which other standard directories are
 involved?


The path reported in the log is the path that Lazarus Manager use during
its processes. I can't set system environment path (
http://www.computerhope.com/issues/pictures/winpath.jpg ) from Lazarus
Manager itself, so I ask to the users to do this themselves.
It is necessary to Lazarus/FPC to work, but you can try without. I don't
know if in Lazarus - Tools - IDE Option - Paths, are enough to make
Lazarus works well.


 How is the \pp directory involved? It was created by another Lazarus
 (older, stable) installation, obviously incompatible with the current/trunk
 projects.


This is the strange part... teorically there are not interactions with
Lazarus Manager processes... but what you reported has put me on alert.

For the moment, just resolve svn client and binutils issues on your
system. Maybe this is enough to make Lazarus Manager to work. :)


 A general note on FPC/Lazarus installation:
 I had several installations on my old (Win7) system, but don't remember
 how I made make work there, and which one was the most recent one. Is
 there something simpler than the BuildFAQ, telling how to make things work
 without killing other existing installations?


Tecnically, with Lazarus Manager you can install as many times you want
different and indipendent installations. At the moment, I have FIVE roots
within any of them two Lazarus and two FPC installations (branch/trunk) and
I have no problems:

C:\Develop\...
C:\Develop2\...
C:\Develop3\...
C:\Develop4\...
C:\Develop5\...

Of course is for test... but I have no problems.

I also just used Lazarus Manager on my Notebook (core i3 + 128Gb ssd) and
in 15/20 min I had two working Lazarus (branch and trunk) with all
cross-compiling feature installed.

Kjow
--

Re: [Lazarus] Fwd: newbie

2014-01-10 Thread Mattias Gaertner
On Fri, 10 Jan 2014 22:49:53 +0100
duilio foschi octopush...@gmail.com wrote:

[...]
 type to Lazarus package (*.lpk), locate and open GR32_DSGN_L.dpk
[...]
 Only at the last step, when Lazarus compiles itself, I get the
 following error message:
 ..\ideintf\objectinspector.pp(47,3) Fatal: Can't find unit
 ComponentTreeView used by ObjectInspector
 
 A screenshot with the error message was uploaded at
 http://it.tinypic.com/r/v4s76w/5

The screenshot shows that componenttreeview.ppu was found, but the
compiler thinks it needs to be recompiled.

 
 I searched for file
 ComponentTreeView.pas

Wrong track. The compiler has already compiled this source to a ppu
file. The problem is that it wants to compile it again, which it
should not.

Please compile the IDE with the compiler verbosity options -vut, which
you can add to the IDE build options (Tools / Configure build Lazarus
options).
This gives lot of output, so you better start the IDE with command
line parameter --debug-log=log.txt.

Mattias

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread waldo kitty

On 1/10/2014 5:04 PM, Kjow wrote:

Well, if Lazarus Manager can't use svn nothing will work.

There aren't restriction on which svn client to use, it just need a fully
working svn command line (command prompt). If no svn client if found (it check
the existence of svn command on system path (I use this code:
FindDefaultExecutablePath('svn'): Boolean;) it will download and ask to
install the client that has his url on first tab.


AFAIK, TortiseSVN has never had a svn.exe... i've always had to use their 
executable's filename in my scripts...


eg:
  for FPC - TortoiseProc /command:update /path:%myFPCdir%
  for LAZ - TortoiseProc /command:update /path:%myLAZdir%

then there's that the version i used on w98 and w2k was able to have the 
revision number pulled out and included in lazarus' about screen but when i 
screwed up and let my vista box update to a newer version of TortiseSVN, this 
didn't happen any more... apparently because they changed their .svn data 
storage format and so svn2revision.inc isn't able to gather that data any more :(


i don't know anything about 'their' (TortiseSVN) having any sort of 'bash 
shell'... AFAIK, there isn't such a beast on winwhatever...



in any case, here's the contents of my vista's TortiseSVN installation...


dir C:\Program Files\TortoiseSVN\bin

 Directory of C:\Program Files\TortoiseSVN\bin

06/22/2012  08:35 AMDIR  .
06/22/2012  08:35 AMDIR  ..
10/10/2009  12:33 PM 1,308 autolist.txt
05/15/2012  11:54 AM14,728 ConnectVPN.exe
05/15/2012  11:54 AM 1,610,120 crshhndl.dll
05/15/2012  11:54 AM45,960 intl3_tsvn32.dll
05/15/2012  11:54 AM   210,312 libaprutil_tsvn32.dll
05/15/2012  11:54 AM   134,024 libapr_tsvn32.dll
05/15/2012  11:54 AM70,536 libsasl32.dll
05/15/2012  11:54 AM 3,059,080 libsvn_tsvn32.dll
05/15/2012  11:54 AM15,752 saslANONYMOUS.dll
05/15/2012  11:54 AM18,824 saslCRAMMD5.dll
05/15/2012  11:54 AM54,152 saslDIGESTMD5.dll
05/15/2012  11:54 AM24,968 saslGSSAPI.dll
05/15/2012  11:54 AM16,264 saslLOGIN.dll
05/15/2012  11:54 AM   528,776 saslNTLM.dll
05/15/2012  11:54 AM16,776 saslPLAIN.dll
05/15/2012  11:54 AM   590,728 SciLexer.dll
05/15/2012  11:54 AM 1,521,544 SendRpt.exe
05/15/2012  11:54 AM   111,496 SubWCRev.exe
05/15/2012  11:54 AM   105,864 SubWCRevCOM.exe
05/15/2012  11:54 AM   263,560 TortoiseBlame.exe
05/15/2012  11:54 AM   199,048 TortoiseIDiff.exe
05/15/2012  11:54 AM 1,980,296 TortoiseMerge.exe
05/13/2012  05:26 PM   230,131 TortoiseMerge_en.chm
05/15/2012  11:54 AM   327,048 TortoisePlink.exe
05/15/2012  11:54 AM 6,986,632 TortoiseProc.exe
05/15/2012  11:54 AM40,328 TortoiseStub32.dll
05/15/2012  11:54 AM   428,936 TortoiseSVN32.dll
05/13/2012  05:25 PM 1,698,989 TortoiseSVN_en.chm
03/11/2007  12:18 PM39,002 TortoiseSVN_error.wav
03/11/2007  12:18 PM49,242 TortoiseSVN_Notification.wav
03/11/2007  12:18 PM14,426 TortoiseSVN_Warning.wav
05/15/2012  11:54 AM   123,272 TortoiseUDiff.exe
05/15/2012  11:54 AM   276,872 TSVNCache.exe
01/05/2007  09:30 PM49 Website.url


--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

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


[Lazarus] FPC and Lazarus trunk

2014-01-10 Thread waldo kitty


i've just updated my FPC trunk and now my Lazarus trunk won't compile...

***
*  TASK: before svn update...
*  CMND: make distclean
*
[trim]
*
*  make distclean complete...
***

***
*  TASK: updating lazarus from svn...
*  CMND: TortoiseProc /command:update /path:c:\freepascal\laz
*
*  TortoiseProc /command:update /path:c:\freepascal\laz complete...
***

***
*  TASK: build lazbuild, startlazarus and necessary tools...
*  CMND: make OPT=-gl -gh -dHEAPTRC_WINDOW lazbuild lcl basecomponents starter 
bigidecomponents lhelp

*
make -C packager/registration
make[1]: Entering directory `c:/freepascal/laz/packager/registration'
c:/freepascal/binutils/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu
c:/freepascal/fpc/trunk/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl 
-vewnhi -l -Fu. -FE. -FU../units/i386-win32 -gl -gh -dHEAPTRC_WINDOW -di386 
fcllaz.pas

Hint: Start of reading config file 
c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.7.1 [2014/01/10] for i386
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling fcllaz.pas
Compiling registerfcl.pas
Compiling lazaruspackageintf.pas
PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu
PPU Source: variants.pp not available
Recompiling variants, checksum changed for System
Fatal: Can't find unit variants used by db
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
make: *** [registration] Error 2


--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 20:45, Hans-Peter Diettrich wrote:
 Reinier Olislagers schrieb:
 On 10/01/2014 13:40, Hans-Peter Diettrich wrote:
 I don't remember the exact details. According to the docs, I deleted
 ppcx64.exe, and now it is *not* recreated automatically.
 
 What should I do to restart in a usable state?

Please follow
http://wiki.lazarus.freepascal.org/fpcup#Troubleshooting
especially deleting all files in the binutils dir

Then rerun fpcup.

If it still doesn't work, please follow
http://wiki.lazarus.freepascal.org/fpcup#Support_and_bug_reporting
and post on the forum.

Thanks.

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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 19:40, Kjow wrote:
 2014/1/10 Hans-Peter Diettrich drdiettri...@aol.com
 mailto:drdiettri...@aol.com
 SVN is not found, even if TortoiseSVN\bin is in the path, and I
 don't remember SVM problems with fpcup.
 - what exactly should be in the path?
 - does it harm when another SVN is installed by the manager?
 - Clicking Cancel makes the program unresponsive, Windows kills it.
 - The same when clicking OK. The last log entry is

@Kjow: perhaps you can adapt this code from fpcup:
file svnclient.pas
function TSVNClient.FindRepoExecutable: string;
const
  // Application name:
  SVNName = 'svn';
begin
  Result := FRepoExecutable;
  // Look in path
  // Windows: will also look for SVNName.exe
  if not FileExists(FRepoExecutable) then
FRepoExecutable := FindDefaultExecutablePath(SVNName);

{$IFDEF MSWINDOWS}
  // Some popular locations for SlikSVN, Subversion, and TortoiseSVN:
  // Covers both 32 bit and 64 bit Windows.
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles\Subversion\bin\svn.exe');
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles(x86)\Subversion\bin\svn.exe');
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles\SlikSvn\bin\svn.exe');
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles(x86)\SlikSvn\bin\svn.exe');
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles\TorToiseSVN\bin\svn.exe');
  if not FileExists(FRepoExecutable) then
FRepoExecutable :=
GetEnvironmentVariable('ProgramFiles(x86)\TorToiseSVN\bin\svn.exe');
  //Directory where current executable is:
  if not FileExists(FRepoExecutable) then
FRepoExecutable := (ExtractFilePath(ParamStr(0)) + 'svn');
{$ENDIF MSWINDOWS}

  if not FileExists(FRepoExecutable) then
  begin
//current directory. Note: potential for misuse by malicious program.
{$ifdef mswindows}
if FileExists(SVNName + '.exe') then
  FRepoExecutable := SVNName + '.exe';
{$endif mswindows}
if FileExists('svn') then
  FRepoExecutable := SVNName;
  end;

  if FileExists(FRepoExecutable) then
  begin
if ExecuteCommand(DoubleQuoteIfNeeded(FRepoExecutable) + '
--version', Verbose)  0 then
begin
  // File exists, but is not a valid svn client
  FRepoExecutable := '';
end;
  end
  else
  begin
// File does not exist
// Make sure we don't call an arbitrary executable:
FRepoExecutable := '';
  end;
  Result := FRepoExecutable;
end;


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


Re: [Lazarus] [ANN] Lazarus Manager v0.8

2014-01-10 Thread Reinier Olislagers
On 11/01/2014 01:09, waldo kitty wrote:
 On 1/10/2014 5:04 PM, Kjow wrote:
 AFAIK, TortiseSVN has never had a svn.exe... i've always had to use
 their executable's filename in my scripts...

http://stackoverflow.com/questions/2967176/where-is-svn-exe-in-my-machine
UPDATE: Recent versions of the TortoiseSVN package can install a
discrete svn.exe in addition to the one linked into the GUI binary. It
is located in the same bin directory where the main program is installed.

and
During the installation of TortoiseSVN, check the Command Line Client
Tools. This will create the file svn.exe inside the folder C: \
Program Files \ TortoiseSVN \ bin



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


Re: [Lazarus] FPC and Lazarus trunk

2014-01-10 Thread leledumbo
Same here, no idea yet. Investigating...



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-and-Lazarus-trunk-tp4035310p4035314.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


Re: [Lazarus] FPC and Lazarus trunk

2014-01-10 Thread patspiper

On 11/01/14 02:23, waldo kitty wrote:


i've just updated my FPC trunk and now my Lazarus trunk won't compile...

*** 


*  TASK: before svn update...
*  CMND: make distclean
*
[trim]
*
*  make distclean complete...
*** 



*** 


*  TASK: updating lazarus from svn...
*  CMND: TortoiseProc /command:update /path:c:\freepascal\laz
*
*  TortoiseProc /command:update /path:c:\freepascal\laz complete...
*** 



*** 


*  TASK: build lazbuild, startlazarus and necessary tools...
*  CMND: make OPT=-gl -gh -dHEAPTRC_WINDOW lazbuild lcl 
basecomponents starter bigidecomponents lhelp

*
make -C packager/registration
make[1]: Entering directory `c:/freepascal/laz/packager/registration'
c:/freepascal/binutils/i386-win32/rm.exe -f 
../units/i386-win32/fcllaz.ppu
c:/freepascal/fpc/trunk/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 
-g -gl -vewnhi -l -Fu. -FE. -FU../units/i386-win32 -gl -gh 
-dHEAPTRC_WINDOW -di386 fcllaz.pas
Hint: Start of reading config file 
c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg
Hint: End of reading config file 
c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg

Free Pascal Compiler version 2.7.1 [2014/01/10] for i386
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling fcllaz.pas
Compiling registerfcl.pas
Compiling lazaruspackageintf.pas
PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu
PPU Source: variants.pp not available
Recompiling variants, checksum changed for System
Fatal: Can't find unit variants used by db
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
make: *** [registration] Error 2




Search for variants.* especially in the install folder as there may be 
several dangling ones due to recent changes in 2.7.1. If more then one 
is found, it would be better to clean all object files thoroughly.


Stephano

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