Re: [Lazarus] Embedded/small database

2015-02-20 Thread Rik van Kekem

leledumbo wrote:

Not changing anything doesn't mean nothing supplied. You still have to
distribute it.
No, you don't *need* to distribute one. But that wasn't your original 
argument. Your original argument was that you needed to *specify* a 
config file and *set* some environment variable before program start. 
And that's not necessary.


So it should be:

sqlite:
- just supply a single dll/so (or nothing if you statically linked it).

firebird:
- supply a bunch of dll/so (firebird doesn't consist of just one)

For *both* there is no need to do *any* setup.
So, yes, Firebird Embedded does need more files but not all of the 
supplied files are necessary to distribute. If, with that, you get a 
complete portable embedded RDBMS which is 1:1 compatible with it's big 
server-brother my choice is easy.



Interesting. I don't know how firebird works without its .conf file, perhaps
it has default value for everything.
The config file supplied doesn't have *any* settings in it. They are all 
commented out because they are all default in the .dll itself. The file 
is only supplied as an example to what you can change in the rare 
instance you need to. (Where are those settings for sqlite?)


I don't even bother removing unneeded files from the supplied/downloaded 
firebird_embedded.zip. I just unpack everything to my program directory 
and my program is ready to go.


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


Re: [Lazarus] Play video files in a row without delay

2015-02-20 Thread aradeonas
Thank you Mike and John.

But I test playlists with VLC,mplayer and ffplay and problem is after
first file finish thery is a 0.5 second delay for opening second file
and its not good for project because files are tiny videos(less than 5mb
and 4 seconds) and this delay is not good at all.I need to read second
file before first one or pass every frame at a time to player.

Regards,
Ara

On Thu, Feb 19, 2015, at 07:28 PM, John Briggs wrote:
 As mentioned by Mike earlier generate a plaaylist of the videos you want
 to
 watch and vlc/mplayer will play them for you with little or no delay
 between videos.
 
 John
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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


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


Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-20 Thread Juha Manninen
On Thu, Feb 19, 2015 at 6:55 PM, m...@rpzdesign.com m...@rpzdesign.com wrote:
 Do these XML files also have the keystroke assignments?
 Where are the XML files located.

Yes, key mappings are in editoroptions.xml, section KeyMapping.
On *nix systems the default location for config files is ~/.lazarus.
It can be overridden by --pcp=xxx parameter when strarting Lazarus.
On Windows I can never remember the path by hart but you can see it in
View - IDE internals - About IDE - Primary config directory.

Juha

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


Re: [Lazarus] Play video files in a row without delay

2015-02-20 Thread aradeonas
Thank you Graeme,

I tested PasLibVLC but opening second file after first file play
finished is cause of delay and I need a way to read file before first
file finished and I done that with VLC with creating 2 player)but
problem is I could not to play both player in one handle.
I will this example too and if you have idea about that problem please
let me know.

Regards,
Ara

On Fri, Feb 20, 2015, at 03:50 AM, Graeme Geldenhuys wrote:
 On 2015-02-19 09:33, aradeonas wrote:
  Graeme can you give me an example?In any wrapper or way.
 
 I believe fpc/packages/libvlc/example/testvlc.pp  should give you what
 you want.
 
 I've also got a GUI VLC video player included with fpGUI in
 fpgui/examples/gui/video_vlc/ which uses the same libvlc code, but
 just included as part of fpGUI in the fpgui/src/3rdparty/libvlc/
 directory.
 
 
 Regards,
   - Graeme -
 
 -- 
 fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
 http://fpgui.sourceforge.net/
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - Email service worth paying for. Try it for free


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


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

2015-02-20 Thread FreeMan

Sorry I been late.

var wProgram :string;

params:

-dUseCThreads

-FcUTF8

-dEnableUTF8

-al


result:
# [634] wFileStr.Read(ar, 4);
leaq-24(%rbp),%r14
movq-16(%rbp),%r13
movl$4,%r12d
movq-16(%rbp),%rbx
testq%rbx,%rbx
jneLj2643
movl$210,%edi
callfpc_handleerror
Lj2643:
movq(%rbx),%rbx
movq%rbx,%rdi
callfpc_check_object
movl%r12d,%edx
movq%r13,%rdi
movq%r14,%rsi
call*256(%rbx)
Lj2634:
callFPC_POPADDRSTACK
# [637] wFileStr.Free

params:

-dUseCThreads

-al
results:# [634] wFileStr.Read(ar, 4);
leaq-24(%rbp),%r14
movq-16(%rbp),%r13
movl$4,%r12d
movq-16(%rbp),%rbx
testq%rbx,%rbx
jneLj2515
movl$210,%edi
callfpc_handleerror
Lj2515:
movq(%rbx),%rbx
movq%rbx,%rdi
callfpc_check_object
movl%r12d,%edx
movq%r13,%rdi
movq%r14,%rsi
call*256(%rbx)
Lj2506:
callFPC_POPADDRSTACK
# [637] wFileStr.Free;


On 19.02.2015 13:59, luiz americo pereira camara wrote:

I have two more tips to try to see where the problem is:

What is the type of wProgram?

Compile with the option -al (without debug info to get smaller files) 
and look to the generated asm file (has .s extension and lives the 
same dir the units are store)


look at the generated code for

wFileStr := TFileStream.Create(wProgram, fmOpenRead);

and

wFileStr.Read(ar, 4);

BTW: the compiler are being recompiled with those options -FcUTF8 , 
-dEnableUTF8 or only LCL?


Luiz



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


Re: [Lazarus] debugger error when end application

2015-02-20 Thread FreeMan

I have svn fpc  lazarus on osx. This solution not work for me,


Lazarus 1.2.4 and higher
go to the debugger options and set the field
DisableLoadSymbolsForLibraries to True 

When run my project, a few second wait then, icon just jumping on dock 
:) I added icon to my appication, its not showing, main IDE caption show 
(Debuging) but project not starting, no any error comes. I click to 
reset debugger button, project not working, turn to IDE



On 19.02.2015 15:51, Martin Frb wrote:
This is a bug in gdb. It happens with a number of different messages. 
(I have plans to suppress those errors (during debugger shutdown)), 
but not yet the time)


Please change the DisableLoadSymbolsForLibraries option:
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions

Out of interest, which version of gdb?



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


[Lazarus] [Pol] Stream video and save in client

2015-02-20 Thread aradeonas
Hi,

I want to know your opinions about this situation:

I want to make an app that let user to stream video and also cache them
so another time when he/she wants to play there is no need to stream it
again.
For this I read all sources that I found and still Its not clear for me:
1-What is the best file format for streaming and saving to user device
for lather use,flv,mp4 or ...?
2-Can I use rtmp or other stream protocol or its need a custom stream
system? 

Regards,
Ara

-- 
http://www.fastmail.com - mmm... Fastmail...


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


Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-20 Thread Mattias Gaertner
On Thu, 19 Feb 2015 18:40:22 +0100
Giuliano Colla giuliano.co...@fastwebnet.it wrote:

 Il 19/02/2015 14:10, Mattias Gaertner ha scritto:
 
  The Clean All is calling make clean. That only works in the
  Lazarus source directory.
  There is a clean up for the project and its packages, but not yet for
  the IDE and its packages.
  Missing feature.
 
 Is there a reason why a procedure CleanLazarusDestDir similar to 
 CleanLazarusSrcDir could not be used to perform the cleanup when 
 isRedirected is true?
 All that is required, in a user path, is to clean up compiler generated 
 files, without all the other stuff which cleanide or cleanlaz do.

Trunk now cleans up the fallback directories, when the user selects
the clean option.
Please test. If it works it can be merged to fixes_1_4.

Mattias

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


Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-20 Thread Giuliano Colla

Il 20/02/2015 01:32, Mattias Gaertner ha scritto:

On Fri, 20 Feb 2015 00:23:57 +0100
Giuliano Colla giuliano.co...@fastwebnet.it wrote:


[...]
After some further analysis, I'm becoming convinced that clean all would
be unnecessary,

There are always cases when a clean all is needed.
For example when an unit is moved to another package. The compiler
options are exactly the same, but you have to delete the old
ppu files.


Let's say, would be less necessary.

it clean auto didn't have a flaw in how package
compilation is handled in TLazPackageGraph.

In a situation where lazarus tree is not writeable, and a different user
path must be used, what happens currently is:

  1. TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile checks from lazarus
 tree if the compilation is required.
  2. If yes, it verifies if normal output dir is writeable. The check
 fails, and it uses the FallBackOutputDir with SetDirectoryOverride.
 Compilation output goes in the user path, and overwrites possible
 old ppu's and resources. That's OK.
  3. If no compilation is required, compilation is skipped, and anything
 leftover in the user path remains untouched. That's the flaw.

What exactly is flawed?



  4. When linking user path takes precedence over lazarus tree path
 (newly compiled must take precedence over old ones), and invalid
 leftovers abort the linking.

The issue can be solved by brute force, always forcing the compile when
normal output dir is not writeable, or with more elegance, by checking
also the fall back output dir before deciding if a new compilation is
required.

Do you mean line 3237?



I rather mean line 3206.
If normal output directory (i.e. the not writeable one, in our case) 
doesn't need compile, no check is made on the fall back directory.
If the fall back directory is empty (as it would be on a first time 
build) , a useless compilation is avoided, and this is Ok, but if it 
contains old ppu's  (as it may happen after an update) the old ppu's are 
left in place, and will cause linking to abort.


I'll make some tests on the transition from 1.2.6 to 1.4RC1 which shows 
the problem, to see if some smarter checks on PackageSytem can help, or 
if, after all, a clean all is the only viable solution.


Are there cases where a package units directory contains units from more 
than one package?



Giuliano


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


Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-20 Thread Mattias Gaertner
On Fri, 20 Feb 2015 18:29:15 +0100
Giuliano Colla giuliano.co...@fastwebnet.it wrote:

 Il 20/02/2015 17:30, Mattias Gaertner ha scritto:
  On Fri, 20 Feb 2015 17:04:22 +0100
  Giuliano Colla giuliano.co...@fastwebnet.it wrote:
 
  Il 20/02/2015 01:32, Mattias Gaertner ha scritto:
  [...]
  Do you mean line 3237?
  That was fixes_1_4.
 

  I rather mean line 3206.
  I guess this line is in 1.4RC1. Please refer to fixes_1_4.
 
 No it was in trunk.

trunk:

3205:  if APackage.AutoUpdate=pupManually then
3206:exit(mrNo);

?

Mattias

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