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 JuuS
Thanks leledumbo and Ondrej, I am away now and will look these over in
the next days.

On 17/06/2015 18:35, Ondrej Kelle wrote:
> Hi,
> 
> In case anybody finds it interesting, I've recently blogged:
> FPC and Lazarus development environment
> 
> Notes on how to set up a FreePascal/Lazarus development environment on a
> Linux system, with cross-compiling for OSX and Windows
> http://tondrej.blogspot.com/2015/05/fpc-and-lazarus-development-environment.html
> 
> On 17 Jun 2015 18:03, "leledumbo"  > wrote:
> 
> > 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
> 
> 
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 

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


Re: [Lazarus] Cross Compile setup unsuccessful

2015-06-17 Thread Ondrej Kelle
Hi,

In case anybody finds it interesting, I've recently blogged:
FPC and Lazarus development environment

Notes on how to set up a FreePascal/Lazarus development environment on a
Linux system, with cross-compiling for OSX and Windows
http://tondrej.blogspot.com/2015/05/fpc-and-lazarus-development-environment.html
On 17 Jun 2015 18:03, "leledumbo"  wrote:

> > 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
>
--
___
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] [OT] Re: I have some custom components, can I convert Delphi -> Lazarus?

2015-06-17 Thread Lukasz Sokol
On 17/06/15 14:16, aradeonas wrote:
> Android and AndroidStudio are bad against Lazarus? 

Well I can see the difference and to me Lazarus is the winner here and now.

> Yea I think but it
> has power of millions of users 

maybe, like some not exactly fresh meat has too ;)

> and it has a standard for UI and its good

the 'good' part is that it doesn't crash unexpectedly ;) 
but I found some ways to get a project built, without warnings or errors,
and then have it not run on the target device while programming
a listener for a button...

(luckily it was just some implementations missing while c&p programming, so it
was semi-not frightening already ) 

the whole Android-Java thing is a right nightmare to comprehend, to me.

> so if any programming language want to play it its field it need to be
> clean as native but easier to write with a better structure. 
> 

Which is what my rant was actually about :J 

> Regards,
> Ara
> 
> 
Regards
el es


--
___
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 JuuS


On 06/17/2015 03:10 PM, Gabor Boros wrote:
> 2015.06.17. 14:46 keltezéssel, JuuS írta:
>> Hello,
>>
>> I work with Lazarus 1.4.0 on Kubuntu 14.04 with an x86_64 system.
>>
>> I wanted today to make my Lazarus cross compile to win32, win64 and
>> linux 32 bit.
>>
>> I followed the directions at these two pages:
>>
>> http://wiki.lazarus.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386
>>
>>
>> http://wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_Linux
>>
>> For windows the make all and make crossinstall appeared to have finished
>> properly with no errors. But when I attempt to make a cross install of
>> win32, for example, in Lazarus it says /usr/bin/fpc does not support the
>> target i386-win32
> 
> Hi,
> 
> For Win32 add a symlink to /usr/bin for ppcross386. (I use cross
> compiler for Win32 only.)

Thanks Gabor, I will look into it.

> 

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

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


Re: [Lazarus] [OT] Re: I have some custom components, can I convert Delphi -> Lazarus?

2015-06-17 Thread aradeonas
Android and AndroidStudio are bad against Lazarus? Yea I think but it
has power of millions of users and it has a standard for UI and its good
so if any programming language want to play it its field it need to be
clean as native but easier to write with a better structure. 

Regards,
Ara


-- 
http://www.fastmail.com - Does exactly what it says on the tin


--
___
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 Gabor Boros

2015.06.17. 14:46 keltezéssel, JuuS írta:

Hello,

I work with Lazarus 1.4.0 on Kubuntu 14.04 with an x86_64 system.

I wanted today to make my Lazarus cross compile to win32, win64 and
linux 32 bit.

I followed the directions at these two pages:

http://wiki.lazarus.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

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

For windows the make all and make crossinstall appeared to have finished
properly with no errors. But when I attempt to make a cross install of
win32, for example, in Lazarus it says /usr/bin/fpc does not support the
target i386-win32


Hi,

For Win32 add a symlink to /usr/bin for ppcross386. (I use cross 
compiler for Win32 only.)


Gabor

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


[Lazarus] Cross Compile setup unsuccessful

2015-06-17 Thread JuuS
Hello,

I work with Lazarus 1.4.0 on Kubuntu 14.04 with an x86_64 system.

I wanted today to make my Lazarus cross compile to win32, win64 and
linux 32 bit.

I followed the directions at these two pages:

http://wiki.lazarus.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

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

For windows the make all and make crossinstall appeared to have finished
properly with no errors. But when I attempt to make a cross install of
win32, for example, in Lazarus it says /usr/bin/fpc does not support the
target i386-win32


As for the make all for Linux i386 it fails with:

ld: warning: ./link.res contains output sections; did you forget -T?
ld: cannot find -lpthread
ld: cannot find -ldl
ld: cannot find -lc
fppkg.pp(396,1) Error: Error while linking
fppkg.pp(396,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [fppkg] Error 1
make[3]: Leaving directory `/usr/share/fpcsrc/2.6.4/utils/fppkg'
make[2]: *** [fppkg_all] Error 2
make[2]: Leaving directory `/usr/share/fpcsrc/2.6.4/utils'
make[1]: *** [utils_all] Error 2
make[1]: Leaving directory `/usr/share/fpcsrc/2.6.4'
make: *** [build-stamp.i386-linux] Error 2

So I am missing some other steps??

Thanks,

Julius

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


[Lazarus] [OT] Re: I have some custom components, can I convert Delphi -> Lazarus?

2015-06-17 Thread Lukasz Sokol
On 17/06/15 11:03, aradeonas wrote:
> Yes but its wrong
> 
> 
> Wrong is typo here but its likely to be true.In Android and iOS I
> didn't saw ant foreign language do a good job.If you saw any good app
> with beautiful standard UI tell me.
> 
> I mean if they are going with AsndroidStudio probably they should
> continue with that,just compiling for a device is not a good reason
> to make app with it.
> 
> Regards, Ara
> 


I tried Android Studio, only just a simple example project (bluetooth chat with 
mods)
import (mods to make the bluetooth part connect to a bluetooth-serial type 
endpoint)...

It is painful.

They went to great lengths to name every other element of that ecosystem
DIFFERENT than people coming from other contexts may recognize. 

I mean, you know what an 'activity' is ? At first glance? ...

The standard controls are well, standard; and no clear path/explanation to 
install any 
non-standard ones (like, how would you program up something like analog gamepad 
buttons?)

(one might just about recognize a Button class, and c&p its creation&usage to 
get what one wants,
 within the bounds of same class... ok it works... even got progress/trackbars 
to work as joysticks...
 but the rest is so baroque and unhelpful and unintuitive, I can't bear to look 
at it any more... 
 too many variables. oh, and what is a 'listener' again ?)

Now try merging code from another example (e.g. accelerometer/gyroscope 
handling)
with the serial bluetooth dongle/chat example. In Java. 

I'm still struggling.

Not helped by, that my 4 year old i5 24XX CPU turns its fan into a small 
jetplane (noise-wize)
wile just browsing code trying to figure things out for more than half an hour.


el es


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


Re: [Lazarus] QuestionDlg block mouse and keyboard input under OSX

2015-06-17 Thread Dmitry Boyarintsev
On Tue, Jun 16, 2015 at 9:48 AM, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:

> See screenshot...
>
>   http://geldenhuys.co.uk/~graemeg/laz_osx_corrupt_text_rendering.png
>
Could you please copy-paste (cmd+c , cmd+v) the contents to a text file?

thanks,
Dmitry
--
___
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 Mark Morgan Lloyd

Michael Schnell wrote:

He also wants to use closed source 3rd party stuff and want to impose 
copy protection to his projects. All that is rather queer with an open 
source IDE.


Why? It's not as though he's trying to add non-open components to the 
published IDE and expecting other people to use them, and since there's 
no requirement to publish stuff you build using an "open" license (GPL 
etc.) I don't see that putting copy protection on it makes any 
difference at all.


The format of binary-distributed libraries etc. could prove to be more 
of a problem, and consulting Jonas et al. in the fpc-pascal mailing list 
might be necessary. However I would say that while I recognise that 
changing the protection "dongle" is obviously a non-starter, I'd be very 
suspicious of any protection scheme which relies on unpublished source 
code: such a thing would smack of "security by obscurity" which is 
universally considered to be a Bad Thing.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
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 aradeonas
> Yes but its wrong

Wrong is typo here but its likely to be true.In Android and iOS I didn't
saw ant foreign language do a good job.If you saw any good app with
beautiful standard UI tell me.

I mean if they are going with AsndroidStudio probably they should
continue with that,just compiling for a device is not a good reason to
make app with it.

Regards, Ara


-- 
http://www.fastmail.com - Send your email first class

--
___
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 Graeme Geldenhuys
On 2015-06-17 09:34, Michael Schnell wrote:
> All that is rather queer with an open 
> source IDE.

Closed source 3rd part stuff might be problematic.

As for imposing copy protection on software... I have no problem with
that at all. I do it myself, otherwise how am I going to make money off
software that took me years to develop. Not everything in this world
needs to be open source. Developers need to make a living too. I know
this is a fine line. eg: I personally think development tools (compiler,
IDE and debugger) should be open source. 3rd Party components should
come with source code, and applications being developed can be anything.

Regards,
  - Graeme -

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

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


Re: [Lazarus] I have some custom components, can I convert Delphi -> Lazarus?

2015-06-17 Thread Michael Schnell

On 06/16/2015 06:14 PM, Graeme Geldenhuys wrote:
Being open source and allowing me to customise things the way I like 
is a brilliant feature.
He also wants to use closed source 3rd party stuff and want to impose 
copy protection to his projects. All that is rather queer with an open 
source IDE.


-Michael

--
___
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 Graeme Geldenhuys
On 2015-06-17 07:26, Sven Barth wrote:
> Of course you can already check back with SafeNet if they'd provide you
> with binaries or even better the source.

[I know it is a bit late for the original posted]

For that reason I refuse to purchase any software components that don't
include full source code. Some ISV's can be very slack with support, or
very slow to progress. eg: Digital Metaphors don't support FPC or
Lazarus with their ReportBuilder product. Yet I knew somebody that
bought it will full source code, and managed to port it themselves. Full
source code gives you that option, and you don't have to be locked in or
at the mercy of the ISV.

Either way, it is good to ask the ISV's to support Free Pascal and
Lazarus. Always raise the interest.

Regards,
  - Graeme -

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

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


Re: [Lazarus] I have some custom components, can I convert Delphi -> Lazarus?

2015-06-17 Thread Michael Van Canneyt



On Tue, 16 Jun 2015, aradeonas wrote:



Can Lazarus do Android platform apps?

 
Yes but its wrong and I didn't saw any good new-age-look app with it.


Why ?

If you use the JVM compiler, the app uses the Java SDK, and it will look exactly like the 
android native apps look, because then it IS a native android app.


Of course, you can't use the LCL then.

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


Re: [Lazarus] Docked Form

2015-06-17 Thread Juha Manninen
On Mon, Jun 15, 2015 at 3:31 PM, Graeme Geldenhuys
 wrote:
> How is that going to look under OSX where tabs are very different (read
> as butt ugly and rubbish) compared to other platforms?

Good question. Has somebody tried CodeTyphon or KZDesktop in a Mac?
Those systems have similar tabs.

Otherwise we can have few weeks pause before implementing this
feature. Balázs is having holidays, Maciej can fine-tune his changes,
I also have many other things to do. We are not in a hurry really. I
am quite confident we get this feature into Lazarus during July.
I still hope there will be one version of the code accepted by all
parties instead of competing versions.

Juha

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