Re: [lazarus] Compile fails on project with long pathname (MacOS X)

2006-05-22 Thread Vincent Snijders

Tom Verhoeff wrote:

I recently upgraded to 0.9.14 and started a project, whose code
is in a deeply nested directory tree with fairly long directory names,
where one of the directory names contains a space.

When compiling from the ide, this fails at the assembler.  It seems
to report a cut off path (the part with the space is included), though
this could only be in the message printed (and not in the argument that
it received).

Does anyone have an idea what is the problem here?


There has been a similar bug report (but not the same), which I tried 
hard to reproduce, but could not. The bug report was closed.


http://www.freepascal.org/mantis/view.php?id=900

If you are willing to help me to reproduce this error, you can submit a 
new bug report.


Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Compile fails on project with long pathname (MacOS X)

2006-05-22 Thread L505

 Tom Verhoeff wrote:
  I recently upgraded to 0.9.14 and started a project, whose code
  is in a deeply nested directory tree with fairly long directory names,
  where one of the directory names contains a space.
 
  When compiling from the ide, this fails at the assembler.  It seems
  to report a cut off path (the part with the space is included), though
  this could only be in the message printed (and not in the argument that
  it received).
 
  Does anyone have an idea what is the problem here?

Yes, I've had all sorts of path chopping issues. Especially it occurs if you 
specify
the -o option to the compiler along with a -k option with some long paths 
involved. The
FPC compiler uses almost all shortstrings to pass options to the linker. The 
problem does
not occur until a total number of options add up to 255 - but it isn't as 
simple as just
counting all your options and adding them up to 255 - rather some options are 
passed to
the linker (such as -o) while others are sent other places, to for example the 
search
functions that verify directory/file location of units in the uses clause. Some 
limits 
are not even 255 but rather 50. If you read the fpc-devel list you will see 
what I mean 
when I say that I've had the same issues. 

It generally occurs on computers that have several hundred projects, because 
when you 
have this many projects you do use long paths - while most people out there 
don't have
hundreds/thousands of projects on their drive so the bug never pops up - or 
they just
learn to live with it - I had these issues since day one when I was a newbie to 
FPC
and I was blaming it on myself since I thought it was a newbie issue of my own. 

As more and more projects have been placed on my hard drive, the more the bug 
has
popped up over and over again. Back when my hard drive was not as loaded, it 
didn't occur much, but did occur.

It will require a lot of changes to the FPC source code since FPC source is 
heavily
reliant on shortstrings, and the compiler will be slower. All testing for this 
bug should
be done at the command line and the bug should be reported to FPC section 
rather than
Lazarus section.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton property transparant default value should be false.

2006-05-22 Thread Marien van Westen
On 5/21/06, darekm [EMAIL PROTECTED] wrote:
Pleas test this patchproblem was when speedbutton.transparent=truethere is problem with tGroupBox on GTK2, MouseEnter is not triggered andthen Flat not workOk DarekM,I applied the patch. I tested this with win32. Patch is OK. Behaviour is the same as in my delphi prog now.
I hope there won't be unforeseen effects in Linux programs.Thanks for the patch., Marien


[lazarus] Change: TImageList.Add now uses AddCopy instead of AddDirect

2006-05-22 Thread Mattias Gaertner

for Delphi compatibility.

TImageList.Add used AddDirect, that means, the bitmap was added to the
imagelist.
The Delphi TImageList adds only the content to the list.
This has been changed. The LCL TImageList now adds copies. You have to free
now your added images or better: Use AddDirect instead.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Speedbutton property transparant default value should be false.

2006-05-22 Thread Mattias Gaertner
On Sun, 21 May 2006 15:49:28 +0200
darekm [EMAIL PROTECTED] wrote:

 Pleas test this patch
 
 problem was when speedbutton.transparent=true

Applied. Thanks.

Mattias



 
 there is problem with tGroupBox on GTK2, MouseEnter is not triggered and 
 then Flat not work

Please add this to the bug tracker.

Mattias


 
 
 
 
 
 
 Marien van Westen wrote:
 
 
 
  On 5/20/06, *DarekM* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  wrote:
 
  Marien van Westen napisa__(a):
 
 
 
  On 5/20/06, *DarekM* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Micha Nelissen napisa__(a):
 
 On Sat, 20 May 2006 10:37:01 +0200
 DarekM [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
   
 
 Transparency work both,
 with flat=true button  has border only when mouse is over
 with transparency=true don't fill inner area
 
 
 That contradicts Marien's picture
 'speedbuttons-panel-delphi-runtime.png' (the first one).
   
 
 
  This is slide from my application write in Delphi
  all buttons are transparent=true and flat=true
  only button under mouse has border
 
  different is when we work on IDE,
  then button has always border
 
 
  In my app I have a signal generater and the speedbuttons only
  have a Caption to select frequency range.
  In Delphi I can see the different buttons, but not in Lazarus.
 
  Have You property Flat=true ?
 
 
  I attach two pictures to show the difference.
  N.B. I tried to improve things bij placing the buttons in a
  groupbox in the Lazarus version, hence the line above the buttons
  (as you can see that's not an improvement).
 
 I`m not sure if You have problem with line above, but to disable it 
 uncheck ToolBar2.edgeBorder.top
 
 Darek
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Change: TImageList.Add now uses AddCopy instead of AddDirect

2006-05-22 Thread Marc Weustink

Mattias Gaertner wrote:

for Delphi compatibility.

TImageList.Add used AddDirect, that means, the bitmap was added to the
imagelist.
The Delphi TImageList adds only the content to the list.
This has been changed. The LCL TImageList now adds copies. You have to free
now your added images or better: Use AddDirect instead.


Please be aware that when you use AddDirect the imagelist is responsible 
for freeing the image. This means that the image may be freed after it 
is added, so you cannot refer toit anymore once added. It may work now, 
but maybe not for future implementations.



Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Can't install on Linux ¿?

2006-05-22 Thread David Nicolás Abdala
Hi, all

I try to search in the mailing list for an answer, with no luck.

I'm trying to install lazarus on Linux. I already installed freepascal and
when I do 'make clean all' for Lazarus, after a while compiling, It shows
this messages:

Free Pascal Compiler version 2.0.2 [2005/12/07] for i386
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling lazarus.pp
Linking ../lazarus
lazarus.pp(113,1) Error: Can't call the linker, switching to external linking
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/mnt/win-c/pascal-linux/lazarus/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/mnt/win-c/pascal-linux/lazarus/ide'
make: *** [ide] Error 2

Any ideas??
Thanks a lot.
David.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Change: TImageList.Add now uses AddCopy instead of AddDirect

2006-05-22 Thread Andreas Berger

Mattias Gaertner wrote:


for Delphi compatibility.

TImageList.Add used AddDirect, that means, the bitmap was added to the
imagelist.
The Delphi TImageList adds only the content to the list.
This has been changed. The LCL TImageList now adds copies. You have to free
now your added images or better: Use AddDirect instead.

Mattias
 


A big thank you. :)

How if I could only understand how to change the transparency map of a 
bitmap so that I can manipulate the image . . .


Andreas

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Can't install on Linux ¿?

2006-05-22 Thread Matej Hausenblas
This seems more like trying to create symbolic links on a FAT32 FS. Try to do 
the compilation somewhere on a proper Linux FS.
On fat32 you can't simply create symlinks...

Hope that's it,
best regards,
Matej

On Monday 22 May 2006 21:15, Florian Klaempfl wrote:
 David Nicolás Abdala wrote:
  Install binutils.
 
  Thanks for the answer, but I still have the same problem. I downloaded
  the binutils-2.16.1 and when I do './configure' no error then 'make', and
  it shows:
 
  config.h is unchanged
  linking .././intl/libgettext.h to libintl.h
  ln: creating hard link `libintl.h' to `.././intl/libgettext.h': Operation
  not permitted
  configure: error: can not link libintl.h to .././intl/libgettext.h
  make: *** [configure-intl] Error 1
 
  (after a lot of lines apparently with no errors)
  Then did (as the readme says) 'make install' and get this:
 
  /usr/bin/ginstall -c -m 644 .././bfd/../include/bfdlink.h
  /usr/local/include/bfdlink.h
  make[3]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
  make[2]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
  make[1]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
  make[1]: Entering directory
  `/mnt/win-c/pascal-linux/binutils-2.16.1/opcodes' make[1]: *** No rule to
  make target `install'.  Stop.
  make[1]: Leaving directory
  `/mnt/win-c/pascal-linux/binutils-2.16.1/opcodes' make: ***
  [install-opcodes] Error 2
 
  despite the errors (that I have no idea what they mean) try to make
  lazarus again, getting the same error.
 
  Thanks.
  David.

 Can't you get binutils from the packages of your distro?

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Can't install on Linux ¿?

2006-05-22 Thread Gustavo Enrique Jimenez

Wich is your linux distro ?


Gustavo



2006/5/22, David Nicolás Abdala [EMAIL PROTECTED]:


 Install binutils.

Thanks for the answer, but I still have the same problem. I downloaded the
binutils-2.16.1 and when I do './configure' no error then 'make', and it
shows:

config.h is unchanged
linking .././intl/libgettext.h to libintl.h
ln: creating hard link `libintl.h' to `.././intl/libgettext.h': Operation
not permitted
configure: error: can not link libintl.h to .././intl/libgettext.h
make: *** [configure-intl] Error 1

(after a lot of lines apparently with no errors)
Then did (as the readme says) 'make install' and get this:

/usr/bin/ginstall -c -m 644 .././bfd/../include/bfdlink.h
/usr/local/include/bfdlink.h
make[3]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
make[2]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
make[1]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/bfd'
make[1]: Entering directory `/mnt/win-c/pascal-linux/binutils-2.16.1/opcodes'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory `/mnt/win-c/pascal-linux/binutils-2.16.1/opcodes'
make: *** [install-opcodes] Error 2

despite the errors (that I have no idea what they mean) try to make
lazarus again, getting the same error.

Thanks.
David.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Can't install on Linux ¿?

2006-05-22 Thread David Nicolás Abdala
 This seems more like trying to create symbolic links on a FAT32 FS. Try to
 do
 the compilation somewhere on a proper Linux FS.
 On fat32 you can't simply create symlinks...

 Hope that's it,
 best regards,
 Matej


Seems that is working now (still running), so apparently was the
filesystem problem.

I'm not use to mailing lists, so don't know if should send another mail to
answer another question, but I do it here: the distribution is Slackware
and I don't have the CD.

My situation is that I'm using an inherited machine, beeing my first
time with Linux (it's been a month of #$@¡? allready).

Thanks a lot.
David.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Can't install on Linux ¿?

2006-05-22 Thread Felipe Monteiro de Carvalho

On 5/22/06, David Nicolás Abdala [EMAIL PROTECTED] wrote:

My situation is that I'm using an inherited machine, beeing my first
time with Linux (it's been a month of #$@¡? allready).


Yes, Linux is very hard on new users.

One thing that helped me a lot is posting questions on a linux
dedicated community forum, like: http://www.linuxquestions.org/

There you can ask (or search the archives) for the questions you have
about using Linux. Also make sure to understand how to use the package
system of your distribution.

--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives