Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
Looks like it can't find cairo development library to link



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033853.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] DBGrid Component

2013-10-17 Thread Dians
is there any other Grid Component Which rich Feature beside Dbgrid Standar
for Lazarus..?


Rgds,

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


Re: [Lazarus] DBGrid Component

2013-10-17 Thread Graeme Geldenhuys
Use TStringGrid with custom drawing. StringGrid is unbelievable 
flexiblewhich many overlook.




Regards,
 - Graeme -



On Thursday 17/10/2013 at 10:11, Dians  wrote:




is there any other Grid Component Which rich Feature beside Dbgrid 
Standar for Lazarus..?




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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-17 Thread Reimar Grabowski
Looks like I have to explain my last mail.
It was just a test to see if you get that this discussions is off-topic or if 
you keep it going as long as somebody (me in this case) is willing to fuel it.
You even missed or (most probably) ignored the last and most important 
statement.
But the best part is that you took my proposal for teaching beginners 
seriously. Teaching them C and JS (or even PHP), Pascal being for advanced 
programmers only (and all of that on a Pascal related mailing list), really 
highly amusing.

Now I feel like I have to apologize for making fun of you as my mail clearly 
went straight over your head. I am sorry.
Can this discussion now finally end here?

R.


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


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread Reimar Grabowski
On Wed, 16 Oct 2013 23:17:22 -0700 (PDT)
leledumbo leledumbo_c...@yahoo.co.id wrote:

 Looks like it can't find cairo development library to link
Possible. I have the same problem on Ubuntu 13.04 and the cairo libs are 
installed.
Waiting for a solution, too.

FPC revision is 25807.
Lazarus revision is 43261.

R.

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


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
 I have the same problem on Ubuntu 13.04 and the cairo libs are installed. 

Including the -dev package?



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033860.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] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread Reimar Grabowski
On Thu, 17 Oct 2013 07:43:05 -0700 (PDT)
leledumbo leledumbo_c...@yahoo.co.id wrote:

  I have the same problem on Ubuntu 13.04 and the cairo libs are installed. 
 
 Including the -dev package?
Yes.

R.

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


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread silvioprog
2013/10/17 Reimar Grabowski reimg...@web.de

 On Thu, 17 Oct 2013 07:43:05 -0700 (PDT)
 leledumbo leledumbo_c...@yahoo.co.id wrote:

   I have the same problem on Ubuntu 13.04 and the cairo libs are
 installed.
 
  Including the -dev package?
 Yes.

 R.


Which package to install, apt-get install libcairo-dev?

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread Reimar Grabowski
On Thu, 17 Oct 2013 11:59:49 -0300
silvioprog silviop...@gmail.com wrote:

 Which package to install, apt-get install libcairo-dev?
The package is named 'libcairo2-dev' but installing it will not help. I had it 
installed before updating fpc and lazarus and the problem emerged nonetheless.

R.

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


[Lazarus] UTF8 string compare with correct locale sorting

2013-10-17 Thread Jürgen Hestermann

I fully aggree on this

http://www.utf8everywhere.org/

and therefore want to use UTF8 in all my programs.
But the problem is sorting UTF8 strings.
According to

http://forum.lazarus.freepascal.org/index.php?topic=15256.0

UTF8CompareText would be the best choice and it runs quite fast.
But it does not obey sorting by locale (i.e. german umlauts end
up at the end of the list although they need to be sorted together with
their corresponding non-umlaut  characters (Ü at U, Ä at A, and so on).

Does *any* Pascal UTF8 string compare function exist that does this?




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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-17 Thread Jürgen Hestermann


Am 2013-10-17 15:05, schrieb Reimar Grabowski:

Can this discussion now finally end here?


No. ;-)

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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-17 Thread Lukasz Sokol
On 17/10/13 14:05, Reimar Grabowski wrote:
 Looks like I have to explain my last mail. It was just a test to see
 if you get that this discussions is off-topic or if you keep it going
 as long as somebody (me in this case) is willing to fuel it. You even
 missed or (most probably) ignored the last and most important
 statement. But the best part is that you took my proposal for
 teaching beginners seriously. Teaching them C and JS (or even PHP),
 Pascal being for advanced programmers only (and all of that on a
 Pascal related mailing list), really highly amusing.
 
 Now I feel like I have to apologize for making fun of you as my mail
 clearly went straight over your head. I am sorry. Can this discussion
 now finally end here?
 
 R.
 
http://xkcd.com/1207/

:)

-L.


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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-17 Thread Lukasz Sokol
On 17/10/13 16:35, Lukasz Sokol wrote:
 On 17/10/13 14:05, Reimar Grabowski wrote:

 Now I feel like I have to apologize for making fun of you as my mail
 clearly went straight over your head. I am sorry. Can this discussion
 now finally end here?

 R.

 http://xkcd.com/1207/
 
 :)
 
 -L.
 
And http://xkcd.com/493/

:)
-L



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


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread Reimar Grabowski
Addition:

AFAICS cairo.pp links against libcairo.so.2. The not found symbols 
(cairo_gobject_whatever) are simply not defined in that file.

user@computer:~/pascal/fpc$ objdump -tT 
/usr/lib/x86_64-linux-gnu/libcairo.so.2|grep -iIHn 'cairo_gobject'
user@computer:~/pascal/fpc$ 

They are defined in libcairo-gobject.so.2 from package libcairo-gobject2:

user@computer:~/pascal/fpc$ objdump -tT 
/usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2|grep -iIHn 'cairo_gobject'
(standard input):38:3d00 gDF .text  006a  Base  
  cairo_gobject_extend_get_type
(standard input):39:3ad0 gDF .text  006a  Base  
  cairo_gobject_path_data_type_get_type
(standard input):40:3bb0 gDF .text  006a  Base  
  cairo_gobject_surface_type_get_type
(standard input):41:40f0 gDF .text  0071  Base  
  cairo_gobject_font_face_get_type
(standard input):42:37c0 gDF .text  006a  Base  
  cairo_gobject_text_cluster_flags_get_type
(standard input):43:3600 gDF .text  006a  Base  
  cairo_gobject_antialias_get_type
(standard input):44:42f0 gDF .text  0071  Base  
  cairo_gobject_rectangle_int_get_type
(standard input):45:3b40 gDF .text  006a  Base  
  cairo_gobject_device_type_get_type
(standard input):46:3d70 gDF .text  006a  Base  
  cairo_gobject_filter_get_type
(standard input):47:4170 gDF .text  0071  Base  
  cairo_gobject_font_options_get_type
(standard input):48:3ff0 gDF .text  0071  Base  
  cairo_gobject_surface_get_type
(standard input):49:3750 gDF .text  006a  Base  
  cairo_gobject_line_join_get_type
(standard input):50:3de0 gDF .text  006a  Base  
  cairo_gobject_region_overlap_get_type
(standard input):51:39f0 gDF .text  006a  Base  
  cairo_gobject_hint_metrics_get_type
(standard input):52:41f0 gDF .text  0071  Base  
  cairo_gobject_region_get_type
(standard input):53:4270 gDF .text  0071  Base  
  cairo_gobject_rectangle_get_type
(standard input):54:38a0 gDF .text  006a  Base  
  cairo_gobject_font_weight_get_type
(standard input):55:3c20 gDF .text  006a  Base  
  cairo_gobject_format_get_type
(standard input):56:4070 gDF .text  0071  Base  
  cairo_gobject_scaled_font_get_type
(standard input):57:3a60 gDF .text  006a  Base  
  cairo_gobject_font_type_get_type
(standard input):58:3c90 gDF .text  006a  Base  
  cairo_gobject_pattern_type_get_type
(standard input):59:3830 gDF .text  006a  Base  
  cairo_gobject_font_slant_get_type
(standard input):60:3e70 gDF .text  0071  Base  
  cairo_gobject_context_get_type
(standard input):61:36e0 gDF .text  006a  Base  
  cairo_gobject_line_cap_get_type
(standard input):62:3520 gDF .text  006a  Base  
  cairo_gobject_content_get_type
(standard input):63:34b0 gDF .text  006a  Base  
  cairo_gobject_status_get_type
(standard input):64:3f70 gDF .text  0071  Base  
  cairo_gobject_pattern_get_type
(standard input):65:3910 gDF .text  006a  Base  
  cairo_gobject_subpixel_order_get_type
(standard input):66:3980 gDF .text  006a  Base  
  cairo_gobject_hint_style_get_type
(standard input):67:3590 gDF .text  006a  Base  
  cairo_gobject_operator_get_type
(standard input):68:3ef0 gDF .text  0071  Base  
  cairo_gobject_device_get_type
(standard input):69:3670 gDF .text  006a  Base  
  cairo_gobject_fill_rule_get_type

So it makes sense that the linking fails.

R.

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-17 Thread Hans-Peter Diettrich

Jürgen Hestermann schrieb:

I fully aggree on this

http://www.utf8everywhere.org/

and therefore want to use UTF8 in all my programs.
But the problem is sorting UTF8 strings.
According to

http://forum.lazarus.freepascal.org/index.php?topic=15256.0

UTF8CompareText would be the best choice and it runs quite fast.
But it does not obey sorting by locale (i.e. german umlauts end
up at the end of the list although they need to be sorted together with
their corresponding non-umlaut  characters (Ü at U, Ä at A, and so on).

Does *any* Pascal UTF8 string compare function exist that does this?


Such functions should be provided by the system's 
Unicode/internationalization library. When they can be located there, a 
wrapper can be added to the RTL.


DoDi


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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-17 Thread Jürgen Hestermann

Am 2013-10-17 21:56, schrieb Hans-Peter Diettrich:
 Jürgen Hestermann schrieb:
 But it does not obey sorting by locale (i.e. german umlauts end
 up at the end of the list although they need to be sorted together with
 their corresponding non-umlaut  characters (Ü at U, Ä at A, and so on).

 Does *any* Pascal UTF8 string compare function exist that does this?

 Such functions should be provided by the system's 
Unicode/internationalization library. When they can be located there, a wrapper 
can be added to the RTL.

Yes, it exists. But on Windows for example is not available for UTF8, only for 
UTF16. When I store millions of file names I already have the problem to 
convert from UTF16 to UTF8 and now I need to convert back again only to get a 
correct sorting? That would be a real performance hit. It's strange that so 
many UTF8 string functions exist but none that sorts correctly dependend on 
locale.


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