Re: [Lazarus] GDB is not good, any tricks to improve it?

2016-05-26 Thread leledumbo
> Why are you running anti-virus software on a development machine in the 
> first place? That’s been a known fact in all companies I’ve worked for - 
> don’t do it. Thinking about it, I haven’t run any anti-virus software 
> for over 10 years. 

If you have a paranoid managers, you can't do anything about it, unless
you're on the same or higher title :)



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-GDB-is-not-good-any-tricks-to-improve-it-tp4048659p4048669.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] PDF generator

2016-03-09 Thread leledumbo
> I have committed a PDF generator to FPC Subversion: fcl-pdf

The package must be excluded from build for msdos target because its
dependencies are not available for msdos, otherwise full build will fail.
There are already embedded and win16 in the exclude list.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-PDF-generator-tp4047578p4047658.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] Simple MSSQL database connection fails from Lazarus 1.6/FPC 3.0.0...

2016-02-23 Thread leledumbo
> Since the -dev was an "also" package, how can I get the basic freetds 
> package? Or maybe it is not really needed?

Normally if you install the -dev package, the runtime one is also installed
since it's a dependency. Try `apt-cache search freetds` to see what related
packages are available.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Simple-MSSQL-database-connection-fails-from-Lazarus-1-6-FPC-3-0-0-tp4047332p4047338.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] Lazarus on my ancient computer?

2016-02-14 Thread leledumbo
> So, do you have tips on which Linux flavour to install on this machine?

Anything with a WM instead of DE. I suggest Manjaro as it's Arch rolling
release philosophy managed under Debian style package repository versioning,
try the Fluxbox, JWM or PekWM flavour from here:
https://sourceforge.net/projects/manjarolinux/files/community/



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-on-my-ancient-computer-tp4047249p4047255.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] How to separate window editor from code.

2016-02-08 Thread leledumbo
> How can I restore this to the way it was back on 1.4?

Uninstall sparta_dockedformeditor package.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-separate-window-editor-from-code-tp4047123p4047127.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] Conditional Defines for Raspberry PI?

2016-01-13 Thread leledumbo
> Raspberry Pi is an ARM so you could check for CPUARM. 64-bit x86 Linux
would be CPUX86_64 (for completeness: CPUI386 is for 32-bit x86).

Also try to compile with -vc, it will list whatever the compiler defines for
the target.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Conditional-Defines-for-Raspberry-PI-tp4046610p4046614.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] Lazarus trunc does not compile with fpc 2.6.4 Win32

2016-01-11 Thread leledumbo
> Isn't it possible anymore  to compile svn Lazarus with fc 2.6.4 ??

No. Latest stable is the only one that's supported, latest stable is 3.0.0.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-trunc-does-not-compile-with-fpc-2-6-4-Win32-tp4046548p4046552.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] In the event anyone want to read social reactions to FPC 3.0

2015-11-26 Thread leledumbo
> Some people have edited their comments which is why the slow remark is no
longer there

Does that mean now the admit that FPC is FAST?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-In-the-event-anyone-want-to-read-social-reactions-to-FPC-3-0-tp4045770p4045774.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] File is locked?

2015-11-15 Thread leledumbo
> How can I check if the file is locked before reading its contents?

Just handle the exception. Doing nothing in the handler is perfectly fine.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-File-is-locked-tp4045497p4045501.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] Encryption compatible with .net

2015-11-14 Thread leledumbo
> I can not find a way to encrypt a file with Lazarus and decrypt it with 
the .net DESCryptoServiceProvider. I tried with lockbox2, DCPcrypt but I 
could not. Someone can give me the code to implement this in Lazarus?

DES is a standard encryption. If you can't decrypt what's encrypted by a
standard encryption, regardless of languages and libraries, then either the
library or your way to use the library is wrong. Ensure all properties (key
size, block size, initialization vector, whatever) you use is the same and
the resulting data is also of the same type and structure. All in all, show
what you've done.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Encryption-compatible-with-net-tp4045490p4045492.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] Getcurrentdir in Linux Mint

2015-11-08 Thread leledumbo
> I need to know the function to get the current directory in Linux Mint

http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Getcurrentdir-in-Linux-Mint-tp4045341p4045348.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] Deployment tool: make deb

2015-10-30 Thread leledumbo
> If enough people are interested in this kind of app, let me know, because I
would spend a little extra time to make it a bit friendlier (file
associations, deployment save to folder, license file support, and desktop
actions).

Can I test now?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Deployment-tool-make-deb-tp4045090p4045093.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] How write a proper Type declaration with procedures?

2015-10-28 Thread leledumbo
> When I come to write the implementation part of the unit, what's the syntax
to refer to the property Table? If I use 
> ...
> I get the error 'No member is provided to access property.'

That should be correct. It's something else that bugs. At least the
following compiles for me:

unit Simple;

{$mode objfpc}{$H+}

interface

uses
  Classes;

type
  TURLTable = class(TStringList)
  private
Table: array of String;
  public
procedure Insert(const s: String); overload;
  end;

implementation

procedure TURLTable.Insert(const s: String);
var
  i: Integer;
begin
  i := Length(Table);
  SetLength(Table,i + 1);
  Table[i] := s;
end;

end.




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-write-a-proper-Type-declaration-with-procedures-tp4045029p4045031.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] Finding memory leaks

2015-10-25 Thread leledumbo
> I checked all of my objects and I free them,also I used DumpHeap for
finding memory leaks but its a big report and many other simple programs
have many report like this and I cant find anything good in it.

The leak reports lines from both your app and the underlying library you
use, i.e. LCL. Find the one from your app (./include/customcontrol.inc,
./include/whatever.inc certainly don't belong to your app), that's where you
should start tracing. It's sometimes obvious, sometimes not, no
generalization possible.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Finding-memory-leaks-tp4044940p4044955.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] How does one add an event to a blocking system?

2015-10-21 Thread leledumbo
> So if I use a thread to read data from the socket, how do I signal to 
the main application that data are arriving using an event?

Exactly, using an event:
http://www.freepascal.org/docs-html/fcl/syncobjs/tevent.html
Here's an example of how to use:
RoundRobinExample.zip

  



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-does-one-add-an-event-to-a-blocking-system-tp4044826p4044829.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] Lazarus program files very big, why?

2015-10-04 Thread leledumbo
> 1) Why is Lazarus creating such an enormously big executable file? 

Always read FAQ before asking:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#Why_are_the_generated_binaries_so_big.3F

> 2) Why is it placing the project files in /root/tmp? 
Why not in /home/pi/something_or_other? 

The setting is in Tools->Options->Environments->Files->Directory for
building test projects, which defaults to tmp folder of your currently
logged in user account.

Other than FAQ, reading other existing documentation is essential:
http://wiki.lazarus.freepascal.org/IDE_Window:_Environment_Options#Files




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-program-files-very-big-why-tp4044273p4044281.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] Storing projects in subversion (or git etc.)

2015-09-20 Thread leledumbo
> For newer lazaruses, .lrs is no longer used, since Lazarus uses the .lfm
files directly for new projects.

and even in older lazarus, only .lfm is used for streaming. you can
regenerate .lrs simply by either compiling it with lazres or make a trivial
change in the form designer.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Storing-projects-in-subversion-or-git-etc-tp4044037p4044043.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] Equivalent of a Windows DLL on RPi?

2015-09-20 Thread leledumbo
> Could someone please outline if there is a concept like a Windows DLL also
in Raspbian for the Pi?

Get yourself a bunch of basic Linux (or *nix in general) concept and
implementation first. Don't jump in to the world you don't know about.

> If so could I port the existing DLL from Windows to freepascal and then to
> Linux on the Pi?

Depends on a lot of factor.
http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide applies.

> I got some advice on the porting process in my other thread but in 
this case it involves the creation of a DLL equivalent so that the 
main programming could be done in for example Python while using the 
functions from the DLL code?

As long as you know how Python convention for dynamic libraries, this can of
course be done.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Equivalent-of-a-Windows-DLL-on-RPi-tp4044033p4044035.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] Cross-compiling for Raspberry Pi2

2015-09-17 Thread leledumbo
> What are the steps needed to port to Pi2?

Standard cross compiling rules apply. Nothing is fancy, pi is just another
arm-linux system. Probably only SoftFP vs hard float that's problematic, but
simply installing the latest raspbian and compile using hardfloat enabled
FPC for arm should suffice.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-compiling-for-Raspberry-Pi2-tp4043994p4043995.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] Multiple versions of MySQL/MariaDB

2015-08-28 Thread leledumbo
 Is it possible to detect which version of MySQL/MariaDB is used , and 
 according to the result select the right connection, at run-time ?

Trial and error:
Loop over the connection component until you find one that doesn't raise
exception when activated. Simple, but takes more resource.

Querying the tool:
Executes `mysql --version` and parse the result. Apparently the output is
consistent enough between versions, it's always the fifth column. More
complicated logic, but lower resource usage.

Let the user decide:
Provide a config file and let user fill it. Just connect anyway to whatever
value supplied by user, certainly you can limit to certain accepted values
only. This lifts the responsibility to user to supply the correct version.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Multiple-versions-of-MySQL-MariaDB-tp4043756p4043757.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] TMemo: behavior difference between linux and windows

2015-08-05 Thread leledumbo
 TMemo.OnChange is triggered while Memo content is updated PROGRAMATICALLY,
while on Linux (GTK) it is not triggered.

Tested on both GTK2 and QT, OnChange fires when Memo1 content is updated
programmatically.

Lazarus 1.5 r49595




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TMemo-behavior-difference-between-linux-and-windows-tp4043450p4043452.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] Library for Android

2015-07-25 Thread leledumbo
 I make library that do some math stuff and I used them in Windows and Linux
version made with Lazarus simply but how used it in a Android Java project?

The same as how use dynamic library written in any language from Java. Two
options: JNI and JNA. Feel free to read Java's documentation for this. One
thing for sure, it's no way easy once you want to pass parameters (unless
they're simple types) or access the caller object/class fields.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Library-for-Android-tp4043315p4043319.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] Tracking software useage

2015-07-22 Thread leledumbo
 I am really interested in tracking how many people are using my software
and was wondering what people that would be a good and ethical way of doing
it. Any thoughts?

- Require registration prior to using your software
- Send background HTTP request during installation
- Recording ip address who downloads

Every way has its own drawback and none are 100% reliable, just pick
whatever you prefer.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Tracking-software-useage-tp4043280p4043282.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] gdb version for use with lazarus

2015-07-19 Thread leledumbo
 GNU gdb 6.1.1 [FreeBSD]

Wow! That's about 11 years ago :o
I don't know what's the lower bound, but 7.1-7.2 is found to be working. I'm
on a rolling release distro which always provides latest GDB (7.9.1 atm) and
it works quite fine (well, there are hiccups here and there, but only in
certain corner cases).



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-gdb-version-for-use-with-lazarus-tp4043248p4043249.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] MariaDB access - modifying the MySQL56Connection component

2015-06-28 Thread leledumbo
 This hasn't achieved anything. I get the same error, which presumably means
I have missed out some steps.

- patch /usr/share/fpsrc/2.6.4/packages/fcl-db/src/sqldb/mysql/mysqlconn.inc
as in the diff
 - rebuilt, using the Makefile in that directory
 - install it, replacing the shipped mysqlXY compiled units
 - within Lazarus, rebuilt the IDE.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-MariaDB-access-modifying-the-MySQL56Connection-component-tp4042985p4042987.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] Beyond Compare finally moved to LCL

2015-06-27 Thread leledumbo
 Their OSX version which was the first version to use LCL, also 
 has a lot of customisations and fixes applied over the stock LCL. They 
 ported some of their own Qt3 code to LCL used in BC - all to improve the 
 usability under OSX. Then the move from OSX to Linux wasn't straight 
 forward either. LCL-Qt was chosen on both platforms to get some 
 improvement on consistency. They assured me it wasn't just a matter of a 
 recompile. :)

That's actually kinda expected. People with urgent needs will move much
faster, and that's what makes our framework better. We actually need even
more commercial companies whose employees are as skillful as scooter
software, so the work on free time only paradigm that FPC  Lazarus
developers use can be pushed by those companies becoming the contributors
instead of just users. They get their product done, we got our bu gs fixed
and hopefully some new features, too :)



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Beyond-Compare-finally-moved-to-LCL-tp4042961p4042968.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] Beyond Compare finally moved to LCL

2015-06-26 Thread leledumbo
 I just found out that Beyond Compare 4.1 has finally left Kylix  Qt3 
 and moved their Linux builds to LCL-Qt4. So that means the OSX and Linux 
 versions now use LCL and the Windows version still uses Delphi. With the 
 move to LCL, the Linux version now has 64-bit support too, plus many 
 other nice additions.

Great news! I can finally buy it for my Linux. They eventually think Lazarus
for Linux is better than the old Kylix. It's a very high jump from Qt 3.3 to
4.8, I believe the user experience will improve a lot.




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Beyond-Compare-finally-moved-to-LCL-tp4042961p4042966.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] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread leledumbo
 The warning about the $F switch concerns a setting to force far calls, 
 what is the equivalent in FPC? 

http://www.freepascal.org/docs-html/prog/progsu21.html

 And I am not sure that COFF is the correct file type to link 
 against... 

yes, it is. the fact that you know in undefined symbol step says it all. Now
you will need to provide how those undefined symbols actually defined. They
probably occur from external function declaration, which differs from
compiler to compiler. For instance:

SPROMEPS_RNBOSPROFORMATPACKET$RB_SPRO_APIPACKET_PTR$WORD$$WORD 

is FPC's way to define:

unit SPROMEPS;
...
function RNBOSPROFORMATPACKET(x: RB_SPRO_APIPACKET_PTR; y: WORD): WORD;

which is explained here:
http://www.freepascal.org/docs-html/prog/progsu141.html#x172-1750006.2.2

and the way to modify it, such that you can match with what the object file
expects:
http://www.freepascal.org/docs-html/prog/progsu142.html#x173-1760006.2.3



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Newbie-porting-class-to-FPC-but-get-procedure-assignment-error-tp4042730p4042768.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] I have some custom components, can I convert Delphi - Lazarus?

2015-06-17 Thread leledumbo
 just compiling for a device is not a good reason to make app with it.

then maybe big, core functionality, non-UI code sharing between mobile,
desktop and web platforms would be a good one. no LCL, but at least RAD
style development with lazandroidmodulewizard is fun enough.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-I-have-some-custom-components-can-I-convert-Delphi-Lazarus-tp4042624p4042687.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] Cross Compile setup unsuccessful

2015-06-17 Thread leledumbo
 As for the make all for Linux i386 it fails with: 

You need 32-bit libraries, too. Usually packaged with multilib in its
name. After that, you need to add -Fl pointing to those 32-bit libraries as
the default library search path must be for your 64-bit system. You might
even need -Xd if the linker still fails to find them, it basically makes
default search path empty so only directories listed by -Fl is searched.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-Compile-setup-unsuccessful-tp4042679p4042684.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] I have some custom components, can I convert Delphi - Lazarus?

2015-06-15 Thread leledumbo
 Seems like non-visual components are not handled by Lazarus according to
wiki texts I have read. 

Then how we can use T[mention a dbms here]? Dialogs? Action list? Logger?
Indy? etc. All of them are non-visual.

 How can we handle this?

Indy 10 - already supported
TurboPower Async Pro - feel free to port
GLScene - they're moving forward, so are we. If you need to stick with old
version that no longer works, I'm afraid you're alone to make the package
work with current Lazarus version.

 We use some VCL features which according to wiki pages I have read are not
 supported in Lazarus, like TSplitter

It was, but for a long time both TSplitter and TPairSplitter have been
existed until now. Both seem to work fine although I prefer TPairSplitter
(I've ported a Delphi project which uses TSplitter).

 How can I find out? 

Free Pascal deals with COFF object files. If those object files from your
vendor are not in this format, then you can't use it. Ensure what the object
files format is first, then consult back here. You can try linking the
object files, if the linker refuses, then you know the conclusion.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-I-have-some-custom-components-can-I-convert-Delphi-Lazarus-tp4042624p4042625.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] Formkeydown

2015-06-12 Thread leledumbo
 Will try that, but first problem is nothing happens when key pressed 

Did you set KeyPreview to true?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Formkeydown-tp4042578p4042588.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] Support for MariaDB 10.0

2015-06-09 Thread leledumbo
 fpc 2.6.4-2.10, lazarus 1.4.0.0, OpenSuse 13.2

Perhaps opensuse team creates its own 2.6.4? AFAIR TMySQL56Connection is not
available in 2.6.4. You should either use fixes 3.0.0 or trunk.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-MariaDB-10-0-tp4042171p4042549.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] fast mathematical matrix operations

2015-06-08 Thread leledumbo
 anyone interested in evaluating the possibility to make mrmath usable under
linux too?

Despite it's mostly written in hand-crafted assembly, the code is pretty
well commented with respective Pascal construct. You might want to turn it
back to Pascal first. My first attempt doesn't yet come to the threading
thing, my trunk compiler even stops at:

   cvtsi2sd xmm5, width;

with message:

ASMMatrixMeanOperationsx64.pas(83,4) Error: Asm: [cvtsi2sd xmmreg,mem128]
invalid combination of opcode and operands

if at least the compiler can go up to the thread pooling, I guess it won't
be that difficult to replace the platform specific thread implementations
with FPC's native cross platform threading solution. The code is quite good
that all thread unit usage are actually abstracted in MtxThreadPool unit
functions, so implementing one for linux can also be a solution, albeit not
the most beautiful since you have to mess with ifdefs.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-fast-mathematical-matrix-operations-tp4042505p4042511.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] LHelp

2015-05-25 Thread leledumbo
 Does LHelp support images? That is, can you include screen shots within the
.chm file for LHelp to display?

LHelp viewer is TurboPowerIPro. TurboPowerIPro supports images. Therefore...



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-LHelp-tp4042367p4042368.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] What option do I need to build Lazarus executable itself from a different OS or architecture?

2015-05-18 Thread leledumbo
 What option do I have to add to ensure that the Lazarus executable and
units are targeted to the right CPU and OS?

OS_TARGET= CPU_TARGET=

same as FPC makefile parameters. After all, the makefiles are generated
using fpcmake.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-option-do-I-need-to-build-Lazarus-executable-itself-from-a-different-OS-or-architecture-tp4042265p4042273.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] New preprocessor directive

2015-05-17 Thread leledumbo
 At my request, Florian added 
 
 {$I %CURRENTROUTINE%} 
 
 to the list of possibilities, which means you can do nifty things as:

I usually use hardcoded strings for that, so this makes my coding life
easier :)
Thanks!



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-New-preprocessor-directive-tp4042241p4042246.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] Fugue icons for LHelp?

2015-05-13 Thread leledumbo
 Please give opinions about new proposed icons for LHelp. 

Here or there?

However, for me, either is fine. The yellow icons are only in the treeview
nodes, it would be irritating if yellow is the dominant color. Blue is
indeed calmer, but it doesn't make significant differences.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Fugue-icons-for-LHelp-tp4042195p4042198.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] Support for MariaDB 10.0

2015-05-12 Thread leledumbo
 Any support for MariaDB 10.0 branch? 
 client library?

TMySQL56Connection can connect to MariaDB perfectly.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-MariaDB-10-0-tp4042171p4042174.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] How to display html contents?

2015-05-06 Thread leledumbo
 I need to display some local html files in a Lazarus application, which
must run under Linux. 

* http://wiki.lazarus.freepascal.org/THtmlPort
*
http://wiki.lazarus.freepascal.org/Webbrowser#Using_the_Turbopower_internet_pro_control




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-display-html-contents-tp4042058p4042068.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] Load classes from dll

2015-05-04 Thread leledumbo
 Hi, im having problems loading classes in lazarus from dlls, i can load
functions without problem but i cant figure out how to load classes cause
right now im trying it and im getting an undeclared name fail

AFAIK it's still not possible to do so. We don't have external declaration
for classes yet (except for C++, still in development, probably compiler
specific, and Java via jvm target) and the RTL is not ready to be shared
(which is a requirement, too).

Here are some reading: http://wiki.freepascal.org/shared_library



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Load-classes-from-dll-tp4042029p4042033.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] Does a Lazarus build include the revision of the FPC used to compile it?

2015-03-24 Thread leledumbo
 Is including the FPC revision part of the Lazarus build

nope

 does FPC have a way of telling its revision number, if it is checked out
 from a Git mirror, ie using `git archive` without the metadata?

nope, only version (fpc -iV), and that's what building revision.inc in the
Lazarus build process does




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Does-a-Lazarus-build-include-the-revision-of-the-FPC-used-to-compile-it-tp4041424p4041427.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] Choose compiler mode

2015-03-11 Thread leledumbo
 But why they aren't in one mode?I mean all the good stuff in one mode? 

Because some of them are intersecting:
- Generics syntax in ObjFPC and Delphi mode are different
- Integer = SmallInt in TP/FPC mode, but LongInt in ObjFPC/Delphi mode

continue the list yourself by reading the docs



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Choose-compiler-mode-tp4041075p4041094.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] How to write an eficient lexical scanner/parser?

2015-03-11 Thread leledumbo
 When there is NO license information in your repositories , this means that 
 
 NO one can use them .
 
 with respect to copy right laws or conventions .

No idea with what's default by law or convention, but when I give no
license, consider it public domain.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-write-an-eficient-lexical-scanner-parser-tp4041002p4041093.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] Choose compiler mode

2015-03-11 Thread leledumbo
 Can any one explain it to me or  link me to a source? 

http://www.freepascal.org/docs-html/user/userse33.html
http://www.freepascal.org/docs-html/prog/progap4.html
http://www.freepascal.org/docs-html/prog/progsu106.html



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Choose-compiler-mode-tp4041075p4041079.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] How to write an eficient lexical scanner/parser?

2015-03-11 Thread leledumbo
 However, I have a question: is there any article about 'how to write
lexical parsers' using Object Pascal?

First, you need to differentiate them correctly. Lexical scanner (or simply
lexer) and parser, not lexical parser :)

I've written some simple languages, generating GraphViz, LLVM or C code,
using both self learning reference from the almighty Prof. Niklaus Wirth's
articles, Jack Crenshaw's, the legendary dragon book and many others plus my
compiler course in college.

I really really suggest Prof. Niklaus Wirth's one
(http://www.inf.ethz.ch/personal/wirth/, click the Compiler Construction
link) as it's concise, simple, doesn't use stupid generator (i.e.: easy to
implement by hand) while covering most important parts of the subject. While
he didn't use or stress or even discourage the usage of abstract syntax
tree, he did explain it that's good enough to understand.

Here's what I've written in the past and is publicly available:
- https://bitbucket.org/leledumbo/erd-maker (generates GraphViz code for ERD
visualization)
- https://bitbucket.org/leledumbo/linguc (generates LLVM code that can be
compiled as a library for a mathematically provable language focusing in
database driven application)

I don't use the direct code generation approach anymore as I found the
abstract syntax tree to be usable for more than just code generation.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-write-an-eficient-lexical-scanner-parser-tp4041002p4041083.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] Cross Codebot nearing release

2015-03-02 Thread leledumbo
 Here are a few controls, TAlphaImage, TSlideBar, THuePicker, and
TSatureationPicker:

 http://www.getlazarus.org/videos/crossdemo/

OK, that's FAAST!!!



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cross-Codebot-nearing-release-tp4040918p4040923.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] make ide custom option

2015-03-01 Thread leledumbo
 make bigide LCL_PLATFORM=cocoa OPT=-gw2 

try: make clean bigide LCL_PLATFORM=cocoa OPT=-gw2 



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-make-ide-custom-option-tp4040892p4040912.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] Embedded/small database

2015-02-19 Thread leledumbo
 Yes, I know about the firebird.conf. But I've never had to change 
anything in that file. The default settings were always good for me.

Not changing anything doesn't mean nothing supplied. You still have to
distribute it.

 No config file or environment variables are required

Interesting. I don't know how firebird works without its .conf file, perhaps
it has default value for everything.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embedded-small-database-tp4040516p4040697.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] Embedded/small database

2015-02-18 Thread leledumbo
 Did you use FTS4 for your search index? 

Nope, I'm talking about searching on non-indexed column.

 Firebird's setup is pretty easy

I didn't say it's difficult, but certainly sqlite is much easier. You use
sqlite just like any other libraries, no setup required, just supply a
single dll/so (or nothing if you statically linked it). With firebird
embedded, you need to:
- supply a bunch of dll/so (firebird doesn't consist of just one)
- specify a config file
- set some environment variables before program start
easy, but certainly more than sqlite.

 I don't even understand that any pascal programmer (pascal being stronly
 typed) 
can consider such a system. But there are many things I don't understand :) 

As sqlite page says, it's designed to compete with fopen. sqlite does a good
job for easy data storage and retrieval, where it doesn't need complicated
setup like fopen, but it can be used (in terms of storing and retrieving
data, from its users point of view) like an rdbms :)



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embedded-small-database-tp4040516p4040592.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] Embedded/small database

2015-02-17 Thread leledumbo
 Sqlite is only good for storing preferences. Anyone using it for something
else is playing with fire. 

Tested, it can't even manage 50,000 rows efficiently. Searching a string
takes minutes, while it takes a fraction of second in real dbms.

It has much easier setup, though. Even easier than embedded firebird. Choose
wisely.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embedded-small-database-tp4040516p4040573.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] Missing components in component palette

2014-12-26 Thread leledumbo
 Yes, removing it was the right choice but how did this configuration 
happen? There should never be visible tabs without components. A tab 
without components is hidden.

I really have no idea... probably a left over from... I don't know, before
this update, my component palette was fully displayed.

 Did you test the reordering while a DataModule was active?

Nope, I didn't reorder the components at all. I let the IDE does that.

 Can you import the modern layout without problems?

Umm... I can't see the import button... 
tools-options-environment-componentpalette.png
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4039906/tools-options-environment-componentpalette.png
  



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903p4039906.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] Missing components in component palette

2014-12-26 Thread leledumbo
 Did you try widening the window (making it higher)? 
The import and export buttons are below the add and restore 
buttons which are the last visible buttons in your image. 

Yes, even full screen:  tools-options-componentpalette-fullscreen.png
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4039908/tools-options-componentpalette-fullscreen.png
  
This is on a standard 1366x768 notebook screen, widgetset is Qt.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903p4039908.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] Missing components in component palette

2014-12-26 Thread leledumbo
 A clean rebuild may help. If it doesn't then I have no ideas. 

Sorry, I was on 47056 because I thought it was a regression in 47247. Now it
appears after svn up again.

For Giuliano, yes it works. I don't test thoroughly, but at least switching
tabs work, no components seem missing. Restore default also works.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903p4039913.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


[Lazarus] Missing components in component palette

2014-12-25 Thread leledumbo
I just updated my lazarus today (r47247) and I found that the component
palette misses a lot of components. The appearing components are random,
though. Some tab has 3, the other maybe 2, some other may be complete or
even there are some that are totally has no components (but the tab is
there). Is this another palette reordering issue?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903.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] Missing components in component palette

2014-12-25 Thread leledumbo
There's a cute section in my environmenoptions.xml that might be responsible
for this:
component-palette-options.png
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4039904/component-palette-options.png
  
Removing the whole section fixes it.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Missing-components-in-component-palette-tp4039903p4039904.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] FPDoc Editor vs Lazarus Documentation Tool

2014-12-20 Thread leledumbo
 I'm writting a new component and I want to use a doc creator tool
available in own Lazarus

My recommendation:
fpdoceditor.png
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4039867/fpdoceditor.png 
 

I don't really care about the generated XML as long as it's compilable. I
edit from this editor and it's nice to have IDE integrated one. I can both
document and code at the same time without the need to switch app.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPDoc-Editor-vs-Lazarus-Documentation-Tool-tp4039856p4039867.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] Only VCL-compatible components in LCL

2014-12-09 Thread leledumbo
 But what is the problem with new components? 

No problem with that I guess, but the competes part could be. i.e.: there
are two competing components which do the same thing (and belongs to the
same package: LCL) with one of them is not VCL compatible.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Only-VCL-compatible-components-in-LCL-tp4039781p4039782.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] Another Where is Error

2014-12-02 Thread leledumbo
 My question is how to find depend pas or lpk

Make a good use of find in files feature. Dependency on external library
can only be achieved in three ways (AFAIR):
- {$LINKLIB libname} directive
- external 'libname' procedure modifier
- -kpass library to linker

Packages have linking options greyed out AFAIK, so 3rd way is not possible.
The other two can be easily searched using external 'sqlite3' or
{$LINKLIB sqlite3} against your packages directories.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Another-Where-is-Error-tp4039634p4039641.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] ShowModal always brings up MainForm, is this normal? (GTK)

2014-12-02 Thread leledumbo
 Is this normal? Is there a way to go around it?

Yes, I experience both in Windows and Linux (KDE). This applies to
non-Lazarus made apps as well, so I guess it's system defined.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ShowModal-always-brings-up-MainForm-is-this-normal-GTK-tp4039632p4039642.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] Cannot add components to FPWebModule anymore

2014-11-28 Thread leledumbo
Juha Manninen wrote
 I have broken it with my changes related to palette reordering.
 I try to find out what happens and fix it ASAP.

Do you know the safe revision, i.e. the one before your first commit to
this feature? I want to test a design time package that makes use of data
module.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cannot-add-components-to-FPWebModule-anymore-tp4039554p4039566.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] Cannot add components to FPWebModule anymore

2014-11-28 Thread leledumbo
Juha Manninen wrote
 First commit was r46828,  IDE: Partly implement component palette
 reordering.
 from over 2 weeks ago, 12 Nov.
 Just tested with the previous r46827 and it works. (Needs a clean
 rebuild for other reasons.)

Confirmed, thanks :)



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Cannot-add-components-to-FPWebModule-anymore-tp4039554p4039572.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] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread leledumbo
 In my understanding, the elements of a set 
 correspond to the bits of an integer. In a 32-bit OS, therefore, a set 
 can only contain 32 elements - there is one too many now... 
 
 Is this interpretation correct?

http://www.freepascal.org/docs-html/prog/progsu163.html#x207-228.2.8



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Having-more-than-32-elements-in-a-set-TGridOptions-of-TCustomGrid-tp4039097p4039099.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] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread leledumbo
Rik van Kekem wrote
 On 05-11-2014 20:11, Howard Page-Clark wrote:
 I think you meant:
 ... cannot have a default value if the upper or lower bounds of the 
 set's (or array's) base type have ordinal values *outside* the range 
 0..31.
 Yep That would be better ;) (That's what you get when you try to 
 merge two opposite English sentences together.)
 (From http://docwiki.embarcadero.com/RADStudio/XE6/en/Properties and 
 http://www.freepascal.org/docs-html/user/userse62.html)
 
 
 --
 ___
 Lazarus mailing list

 Lazarus@.freepascal

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Anybody wants to file an error message enhancement to the bugtracker?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Having-more-than-32-elements-in-a-set-TGridOptions-of-TCustomGrid-tp4039097p4039115.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] [FEATURE REQUEST] Check syntax on the fly

2014-09-22 Thread leledumbo
 But if you share your opinion or direct me in the right way, I could try
write it by myself.

Feel free to write one, but IMO it's not a good idea to integrate it (or
worse: having it installed and turned on by default) with the IDE. My
primary reason is regarding speed. Features like this could eat cpu cycle in
the middle of coding, thus decreasing IDE's responsiveness. Second, calling
the compiler is fast. Only first call will be a bit slow due to loading of
required units to RAM. After that, it runs in milliseconds.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FEATURE-REQUEST-Check-syntax-on-the-fly-tp4038627p4038629.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] GBD

2014-09-08 Thread leledumbo
 I can't find where to download latest/best gbd binaries (both x86/x86_64),
can you help me?

http://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/GDB-7.2/gdb-7.2-1-mingw32-bin.tar.lzma/download

32-bit MinGW GDB, no idea if it works with 64-bit binaries or not (probably
no).



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-GBD-tp4038406p4038413.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] will lazarus work on kde plasma 5?

2014-08-20 Thread leledumbo
 They wrote Plasma 5 should be the default desktop in a future release so
I asked lazarus's plan.

I don't think we have anything to do related to specific desktop
environment. So far, only Unity causes problems and the workaround is not
done at Lazarus level.

Plasma 5 should be the default desktop in a future release is
Kubuntu-team-only statement. Other distros might or might not follow.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-will-lazarus-work-on-kde-plasma-5-tp4038190p4038197.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] How to convert old *.lrs based forms to *.res

2014-08-20 Thread leledumbo
 Is there documentation or a wiki page on converting such old 
projects/forms to newer resources? Or does the IDE have this ability, 
but I simply haven't found it.

- Change resource format in the project options to FPC resources
- Change {$I *.lrs} in initialization section to {$R *.lfm}, optionally
remove the initialization section if it doesn't contain any other code
- Remove LResources from uses clause
- Optionally remove existing .lrs 




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-convert-old-lrs-based-forms-to-res-tp4038205p4038207.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] will lazarus work on kde plasma 5?

2014-08-19 Thread leledumbo
 will lazarus work on kde plasma 5? 
anybody test this? 
http://www.kubuntu.org/news/kubuntu-plasma-5

while I don't see any reason why it wouldn't work there (KDE plasma 5
doesn't take Unity's radical approach that could break existing
environment), KDE plasma 5 is still a newborn baby. It should work fine
after a few months, though.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-will-lazarus-work-on-kde-plasma-5-tp4038190p4038191.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] how to write a simple form designer similar to that of lazarus?

2014-08-11 Thread leledumbo
 How can I do that ?
 I don't want to just tell them to install lazarus, which is over kill and
 too complex for them to use.
 I want my users to just drag and drop controls onto a form and modify some
 properties only.

http://sourceforge.net/projects/jvruntimedesign/




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-how-to-write-a-simple-form-designer-similar-to-that-of-lazarus-tp4038159p4038161.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] Developing with fcl-web

2014-07-26 Thread leledumbo
 My major problem with Lazarus is where is my server? 
 So how do I configure Lazarus to do about the same? 

Up to you. Apache, nginx, any other you've ever heard of, fphttpserver
(embedded), the choice is yours. The last is capable of debugging from IDE.
If you use the Lazarus wizard, you should've found it in the application
type selection dialog. But actually they only differ in uses clause (fpcgi,
fpfcgi, fphttpapp), everything else is the same. Well, maybe you need to set
Port as well but that's all. Practically this applies to ALL fcl-web
examples, so you can try it yourself.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Developing-with-fcl-web-tp4038075p4038085.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] Developing with fcl-web

2014-07-26 Thread leledumbo
 I tried this on my older CGI Application, changing the uses clause in the
.lpr file to 'fphttpapp'. Compiled without a problem but of course I could
not run it in Lazarus since the run button/menu entry is disabled.

Check Project Options-Miscellanous-Project Is Runnable. CGI wizard
automatically uncheck this because it makes no sense for CGI.

 Running on the command line gave a socket error which looks like it is
 working (perhaps changing the port from 80 to something else fixes this).

I don't remember whether the default is 80 or not, I always set it
explicitly via Application.Port.

 If it's that simple why is it that hard to get that information. Please,
 tell me I am stupid and there is a wiki page that I just did not find.

Perhaps it's your turn to contribute to fcl-web wiki article :)

P.S.: If you use Nginx or any other web server whose FastCGI executable must
be started manually, you can also debug from IDE



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Developing-with-fcl-web-tp4038075p4038088.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] r45949: Access violation when executing compiler

2014-07-24 Thread leledumbo
 Sorry. My fault. Fixed. 

Tested. Thanks.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/r45949-Access-violation-when-executing-compiler-tp4038025p4038054.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] Qt interface on Linux uses plastique style by default

2014-07-23 Thread leledumbo
 Please create a bug report. Zeljko is on vacation. 

Forget it, must be something on my system. It correctly uses the system
default now.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Qt-interface-on-Linux-uses-plastique-style-by-default-tp4038024p4038046.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


[Lazarus] Qt interface on Linux uses plastique style by default

2014-07-20 Thread leledumbo
I don't remember having this issue a couple of weeks ago. Just update from
svn and now Lazarus uses plastique style by default, instead of following
system style (which is set to oxygen). I have to fool startlazarus by
creating lazarus script which calls the real lazarus with -style oxygen.
Honestly, plastique is ugly.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Qt-interface-on-Linux-uses-plastique-style-by-default-tp4038024.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


[Lazarus] r45949: Access violation when executing compiler

2014-07-20 Thread leledumbo
Anyone responsible for this?

Adding --primary-config-path=/mnt/LinuxShared/lazarus-svn/config as a
parameter
bacada1.lpi is a file
 is a file
SetPrimaryConfigPath NewValue=/mnt/LinuxShared/lazarus-svn/config -
/mnt/LinuxShared/lazarus-svn/config
TLazarusManager.Run starting /mnt/LinuxShared/lazarus-svn/lazarus ...
SetPrimaryConfigPath NewValue=/mnt/LinuxShared/lazarus-svn/config -
/mnt/LinuxShared/lazarus-svn/config
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath=/mnt/LinuxShared/lazarus-svn/config/
  SecondaryConfigPath=/etc/lazarus
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Last= -Fu.  -MObjFPC -Scghi
-O1 -g -gl -vewnhi -l fcllaz.pas
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile  Compiler custom params
changed for FCL 1.0.1
  Old=-MObjFPC -Scghi -O1 -g -gl fcllaz.pas
  Now=-MObjFPC -Scghi -O1 -g -gl -O3 -g- -CX -XXs -dEnableNewExtTools
fcllaz.pas
  State
file=/mnt/LinuxShared/lazarus-svn/packager/units/x86_64-linux/FCL.compiled
TApplication.HandleException Access violation
  Stack trace:
  $008286DD line 1181 of ideexterntoolintf.pas
  $0085341E line 4190 of compileroptions.pp
  $0093BB96 line 3527 of ../packager/packagesystem.pas
  $0093B128 line 3392 of ../packager/packagesystem.pas
  $00955919 line 4162 of ../packager/pkgmanager.pas
  $004ACB30 line 6531 of main.pp
  $004A399D line 4257 of main.pp
  $008348F1 line 575 of menuintf.pas
  $00838661 line 1650 of menuintf.pas
  $0068DBD0 line 84 of include/menuitem.inc
  $0068E4CA line 282 of include/menuitem.inc
  $004342AF
  $7F01EE1836F6
[TMainIDE.Destroy] A 
[TMainIDE.Destroy] B  - inherited Destroy... TMainIDE
[TMainIDE.Destroy] END




--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/r45949-Access-violation-when-executing-compiler-tp4038025.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] Compiling svn Lazarus on Linux/windows

2014-07-05 Thread leledumbo
The basic rule is that svn version should always be compilable with latest
release version, not necessarily previous ones.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Compiling-svn-Lazarus-on-Linux-windows-tp4037802p4037828.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] Compiling svn Lazarus on Linux/windows

2014-07-05 Thread leledumbo
John Landmesser-2 wrote
 Am Samstag, den 05.07.2014, 13:59 +0300 schrieb Juha Manninen:
 On Thu, Jul 3, 2014 at 2:10 PM, John Landmesser lt;

 jmlandmesser@

 gt; wrote:
  i can compile any svn version of lazarus on linux using fpc 2.6.2 but
 on
  windows i have(!!) to use fpc 2.6.4.
 
 If you really need to use fpc 2.6.2, we can make it compile. What is
 the error? Is it easy to fix using eg. IFDEFs? If you send a patch to
 fix compilation, it will be applied.
 On the other hand, updating to the latest FPC is generally a good idea.
 
 Juha
 
 --
 ___
 Lazarus mailing list
 

 Lazarus@.freepascal

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 
 
 
 i don't know the error any more ... updated to fpc 2.6.4 that compiled
 svn lazarus.
 
 Just wondered about the differences between Win and Linux!
 
 
 
 --
 ___
 Lazarus mailing list

 Lazarus@.freepascal

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Core parts of RTL are written specifically for the target platform. Other
than that, everything should be the same.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Compiling-svn-Lazarus-on-Linux-windows-tp4037802p4037839.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] Source Editor enhancement mini-patch

2014-06-24 Thread leledumbo
It's a more general component than specifically jump back/forward. You can
assign any IDE menu functionality to the toolbar button. Personally, I
prefer the shortcut since it's faster.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Source-Editor-enhancement-mini-patch-tp4037602p4037606.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] Need testers, new Messages window

2014-06-05 Thread leledumbo
Mmm... sounds delicious. Will svn up soon.


Mattias Gaertner wrote
 Hi,
 
 Some central parts of the IDE have been rewritten: the whole messages
 window and all code that runs external tools (e.g. the compiler),
 including the
 fpc and 'make' output parser and all quick fixes.
 
 You can enable it by compiling clean with -dEnableNewExtTools.
 
 Highlights:
 - external tool is now run in a thread. And so is the biggest part of
 the parser.
 - the IDE now passes -vbq (message ids and full file names) to the
 compiler.
 - Messages window now uses a special control:
   every tool output is now clearly separated by a header line
 - the control can handle much bigger outputs, so you can compile with
   more verbosity
 - the popup menu of the messages window has new items:
 - The IDE now knows where each message came from and what tool has
   created them. For example you can see the reason why a package was
   compiled and the parameters via the About menu item.
 - the fpc parser uses the message ids, the errore.msg file and the
   translated error*.msg file
 - you can switch between English and translation at any time
 - you can search in messages window
 - you can filter for message types and urgency (hint, note, warn ...)
 - choose file names styles (short, relative, full)
 - you can change the colors in Tools / Options / Messages
 - when you insert/delete text in the source editor the messages are now
   updated in line *and* column number.
 - the source editor shows marks: on left gutter an icon, on right gutter
   a small rectangle and the token is underlined with a wave.
 - right clicking on the left gutter icon will show the quick fixes
 
 Here is a short list of the built in quick fixes:
 http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Quick_Fixes
 
 
 Mattias
 
 --
 ___
 Lazarus mailing list

 Lazarus@.freepascal

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Need-testers-new-Messages-window-tp4037263p4037265.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] OpenGL

2014-05-29 Thread leledumbo
 1. Have there ever been a Free Pascal implementation of OpenGL? I would
like to learn OpenGL and was wondering if I will be forced to use C++/C or
if there are other options.
 2. I know there are (or have been) various OpenGL Lazarus components (e.g.
 GLScene, NX etc) and game engines? (JEDI SDL != OpenGL?). Which would you
 advice me to install/use for learning OpenGL and why? I am not asking for
 a flame-war, so please state when it is just your opinion or else give a
 reason.

Based on your 2nd question, you should've known that OpenGL is perfectly
accessible from Pascal.
nxPascal does use OpenGL as backend, Kambi VRML also utilizes OpenGL for
portability, and others as well (some also supports DirectX though).

If you just want to learn OpenGL, I don't think we have Pascal specific
complete tutorial as OpenGL is just an API and is language independent,
though designed with C interface. So OpenGL own tutorial and reference
(which is written with C in mind) should be applicable, provided you
understand C and know how to convert C constructs to Pascal.

I don't suggest using game engine, as it will be too complicated for
learning purpose. Pure OpenGL with GLFW frontend (I also don't suggest GLUT)
is good for learning. At least using pure OpenGL can get you understand the
rendering pipeline, matrices (projection, rotation, etc), coloring, shading,
picking (for input and feedback), etc.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-OpenGL-tp4037158p4037165.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] [Off Topic] Guys, you know the news?

2014-05-20 Thread leledumbo
 This message (spam) is from the same author with dual identity, a.k.a
Robson.

I received insults in pvt. This is the famous hue hue br br br
(http://knowyourmeme.com/memes/huahuehuahue). Therefore,
Robson/Lazarus.linux/Junior.linux/others is just a flamer, who that delights
causing flames/trolls in Delphi/Lazarus/Linux lists.

Could it be the same shit as this:
https://github.com/leledumbo/QTemplate/issues/2 ?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Off-Topic-Guys-you-know-the-news-tp4037015p4037025.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] int64 assignment fails

2014-05-10 Thread leledumbo
http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-int64-assignment-fails-tp4036884p4036887.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] New member with compiler query

2014-05-03 Thread leledumbo
 Does this mean that I would have to compile any freePascal rewrites on a
Mackintosh computer?

You can cross compile from Linux as well, but you will still need some Mac
tools. See the cross compiling wiki article.
But surely it's much easier to build on Mac directly.

See all Delphi porting wiki and documentation articles, the conversion might
not be straightforward.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-New-member-with-compiler-query-tp4036844p4036845.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] Debian: fpc-source update

2014-05-02 Thread leledumbo
 by manually, would that be something like 

   apt-get remove fpc-2.6.2 

or 

   rm /f path/to/fpc/2.6.2 

?? 

if dpkg -l still shows fpc-2.6.2 then do the former, otherwise the latter.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Debian-fpc-source-update-tp4036823p4036833.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] Packages of Lazarus 1.2 and FPC 2.6.4 for Ubuntu 14.04

2014-05-02 Thread leledumbo
 https://launchpad.net/~ok2cqr/+archive/lazarus

Why not Lazarus 1.2.2? 1.2.0 with FPC 2.6.4 has a (showstopper) bug with Qt
and Carbon interface.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Packages-of-Lazarus-1-2-and-FPC-2-6-4-for-Ubuntu-14-04-tp4036822p4036834.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] Reading and Writing to TProcess

2014-04-12 Thread leledumbo
You can do it around here:

nread := Hbk.Output.Read(Buffer^, C_BUFSIZE);
if nread = 0 then
  sleep(100)
else
  begin
// Translate raw input to a string
SStream.size := 0;
SStream.Write(Buffer^, nread);
// And add the raw stringdata to the memo
Memo1.Lines.Text := Memo1.Lines.Text + SStream.DataString;
  end;

Instead of directly flushing SStream contents to Memo1, I suggest keep
appending Buffer to SStream and detect the string you're looking for after
SStream.Write. When you've found it (and ensure the process already waits
for input), you can call Hbk.Input.Write methods (it has several overloads,
figure out which one is the best for you). Remember that normally process
waits for newline before processing input, so you might want to append that
to your input data.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Reading-and-Writing-to-TProcess-tp4036656p4036661.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] Ann: TButtonEdit as replacement for TEditButton

2014-04-06 Thread leledumbo
Finally :)
*executing: svn up



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Ann-TButtonEdit-as-replacement-for-TEditButton-tp4036553p4036554.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] When does ComponentPageControl gets filled?

2014-03-07 Thread leledumbo
 I've just installed Lazarus 1.2 and I realize that KZDesktop's way of
embedding component palette no longer works as it was in 1.0.14. It looks
like KZDesktop has overriden the event when ComponentPageControl gets
filled. Do I need to call something to make it filled? Or perhaps an easier
one, what are the differences between 1.0.14 an 1.2's way of filling
component paletter?

Sorry, my bad. I installed EducationLaz accidentally and it disables all my
components (by default, with enable education settings unchecked). The bug
should be assigned to EducationLaz instead.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/When-does-ComponentPageControl-gets-filled-tp4036110p4036134.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] When does ComponentPageControl gets filled?

2014-03-06 Thread leledumbo
 You mean the compilation error? Just change 'Items' for 'Comps'

Yes, I've done that.

 And to fix the painting problem in the designer, change the
 'UpdateControlState' call to 'AdjustSize'.

What painting problem? I didn't see any. Well I haven't really tested the
designer though.
My actual problem is that my component palette (which is docked to
pnComponents) is empty.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/When-does-ComponentPageControl-gets-filled-tp4036110p4036117.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


[Lazarus] When does ComponentPageControl gets filled?

2014-03-05 Thread leledumbo
I've just installed Lazarus 1.2 and I realize that KZDesktop's way of
embedding component palette no longer works as it was in 1.0.14. It looks
like KZDesktop has overriden the event when ComponentPageControl gets
filled. Do I need to call something to make it filled? Or perhaps an easier
one, what are the differences between 1.0.14 an 1.2's way of filling
component paletter?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/When-does-ComponentPageControl-gets-filled-tp4036110.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] Windows DOS-Box behind a running app, why??

2014-03-04 Thread leledumbo
 I could not find the checkbox(?) in project-options(?) that results to such
a behaviour!

uncheck -WG



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Windows-DOS-Box-behind-a-running-app-why-tp4036075p4036079.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] [OT] Developing for Android with Pascal and Eclipse?

2014-02-28 Thread leledumbo
silvioprog wrote
 Hello,
 
 I saw in a post on Facebook, but not tested:
 
 http://web.fastermac.net/~MacPgmr/pba/PbaStatus.html
 
 I don't know about.

The JVM compiler is tested, and I've tested it myself as well. I don't use
Eclipse though, the Android SDK has enough tools to build the required
directory layout and building only requires Ant. This is actually the most
native way to build Android apps, but you have to sacrifice some (a lot of?)
normal Pascal features and use different syntax in many places. A lot of
standard units are missing, and the chance you can reuse existing units is
also quite small (depends on how the units are coded).



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-OT-Developing-for-Android-with-Pascal-and-Eclipse-tp4036021p4036027.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] Lazarus/FPC for Web Development only

2014-02-22 Thread leledumbo
I see you already have your own persistence framework. Is it fully functional
already? What backends are supported? Do you use another abstract framework
(like SQLdb) to achive it?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035934.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] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-21 Thread leledumbo
 It should work via the address trick. Most users have an RTL without dbg 
info, and yet can debug 

Got it, I can debug now. In my case, the address is shifted 5 bytes. No idea
who is wrong...



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035842.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] Lazarus 1.2 RC2 Asking for /usr/share/fpcsrc/2.4.4/?

2014-02-21 Thread leledumbo
Allan E. Registos wrote
 Environment: Ubuntu 12.04.4 32-bit 
 Downloaded from sf the required fpc 2.6.2 versions of binary and source
 and installed them.
 Lazarus 1.2 RC2 will show this error at start:
 Directory: /usr/share/fpcsrc/2.4.4/
 
 Error: directory not found
 You can download FPC and the FPC sources from
 http://sourceforge.net/projects/lazarus/?source=directory
 
 And when point to the correct source will show this error:
 
 Directory: /usr/share/fpcsrc/2.6.2/
 
 Warning: Found version 2.6.2, expected 2.4.4
 You can download FPC and the FPC sources from
 http://sourceforge.net/projects/lazarus/?source=directory
 
 It won't recognize 2.6.2. My first problem is that I've installed the
 previous version of lazarus 0.9.30.4, which I think caused this problem.
 I've removed already this version with dpkg -r lazarus-* and dpkg -r lcl-*
 and deleted the folder manually at /usr/share/lazarus.
 Is there something I can do?

It checks for the correct version by checking fpc (should normally be in
/usr/bin). Try running fpc -l on terminal, do you get 2.6.2? If not, check
where ppc386 points to (it should be a symlink to the real compiler, ls -l
will tell you). Note that fpc directory is located in /usr/lib/fpc so you
might want to check that.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-1-2-RC2-Asking-for-usr-share-fpcsrc-2-4-4-tp4035923p4035924.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] Getting project type

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



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Getting-project-type-tp4035844p4035848.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] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread leledumbo
Ah...my bad, my FPC wasn't built with debugging info, only Lazarus was.
Perhaps that could be the problem? But GDB knows when I give b
FPC_RAISEEXCEPTION? OK, this is weird...



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035840.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] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-14 Thread leledumbo
 Anyway I now see, that there is an invalid identifier: 
 NiceChartD7. 
I added check. Please test.

Tested and working. So, what the code would do now if such an invalid
identifier occurs?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035843.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] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-13 Thread leledumbo
 Please load the IDE in the debugger and set a breakpoint at 
FPC_RAISEEXCEPTION. 
Then run, reproduce the error and create a backtrace. 

Done, but gdb doesn't seem to catch the exception. Here's the log:

(gdb) b FPC_RAISEEXCEPTION
Breakpoint 1 at 0x8072a45
(gdb) run
Starting program: /usr/bin/startlazarus 
Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 14: reading
configurations from ~/.fonts.conf is deprecated.
 is a file
TLazarusManager.Run starting /media/LinuxShared/lazarus/lazarus ...
Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 14: reading
configurations from ~/.fonts.conf is deprecated.
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath=/home/leledumbo/.lazarus
  SecondaryConfigPath=/etc/lazarus
TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted:
unit1.pas
[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x64000eb
[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A 
[TMainIDE.Destroy] B  - inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
During startup program exited normally.

However, I've managed to get the exception source (line 2656 of laz2_dom) by
removing try-except in the respective code block. Extending the exception
message a bit, I guess I know the problem. Here's the log:

[TEnvironmentOptions.Save]  error writing
/home/leledumbo/.lazarus/environmentoptions.xml: EDOMError in
DOMDocument.CreateElement PackageEditor_
NiceChartD7 FXML11=0

As you can see, I have PackageEditor_LineEndingNiceChartD7 in FormIdList
tag. The line ending seems to be the cause. I've removed the whole
FormIdList tag and everything seems well now.

I have no idea now whether this should be reported as bug or not. I have no
idea where that LineEnding comes from, because I never touch
environmentoptions.xml before this (unless when there's a problem).



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035824.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


  1   2   3   4   >