Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-11

Lazarus + Qt4 in FreeBSD

31 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Unknown author
Show quoted text 9 lines
Hi! How to build lazarus with Qt4?? I set the interface of lazarus to Qt and try rebuild only LCL, but when it is rebuilding, it stops because it don't found qt4.pas. I'm doing all steps of wiki (http://wiki.lazarus.freepascal.org/Qt_Interface).<http://wiki.lazarus.freepascal.org/Qt_Interface%29.> ..

The page is still correct and it works here under linux. Please open a terminal and try this:

cd lazarus/lcl
make LCL_PLATFORM=qt clean all OPT=-vut > log.txt

Then take a and find out, why FPC does not find/like the file lcl/interfaces/qt/qt4.pas

Qt 4.3.1 is installed from ports and my Lazarus snapshot verion 0.9.25 of 22-nov-2007...

Mattias

Unknown author
to Den Jean

I'm interested, but I don't know the correct steps to do the libqt4intf... I do:

1) Copy Qt4 sources to my home directory;
2) Build Qt4;

3) Copy the compile_lib.bash to compile_lib_fbsd.sh and change it to use my Qt4 (in my home directory)

4) Run compile_libfbsd.sh

5) Put the libqt4intf.so in /usr/local/lib....

6) Rebuild Lazarus without sucess... :(

How you do the libqt4intf.so in Linux?

Fabio Luis Girardi

2007/11/24, Den Jean :

Show quoted text 19 lines
On Thursday 22 November 2007 04:50:59 pm wrote: > Qt 4.3.1 is installed from ports and my Lazarus snapshot verion 0.9.25of > 22-nov-2007... probably because the linker does not find libqt4intf.so. I have so bsd experience. Are you interested in creating a libqt4intf.so for bsd :-). ? if so start from the linux source code and compile script. kind regards, Den Jean _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Den Jean
to Unknown author
pm wrote
6) Rebuild Lazarus without sucess... :(

in point 5 you succesfully got a libqt4intf.so ?. Great. So the rest is just compiling lazarus.

cd lazarus
make LCL_PLATFORM=qt clean all OPT=dUSE_QT_4_3

and look at output

The option USE_QT_4_3 is if you use the Qt 4.3.1 libs. Do not add it if you used the Qt 4.2.3 libs.

Did you put llibQtCore.so.4 and libQtGui.so.4 in /usr/local/lib as well ? and ran ldconfig or the bsd equivalent ?

The resulting executable ofcourse depends on Qt :-)

ldd ./lazarus | grep -i qt
libqt4intf.so => /usr/lib/libqt4intf.so (0xb7d21000) libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7a51000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb7294000)

(/usr/lib on my system)

regards,

Den Jean

Unknown author
to Den Jean

I'm stupid!!!

In lcl/interfaces/qt/qt4.pas is wrote:

{$IFDEF MSWINDOWS}
QtIntf  = 'libqt4intf.dll';
{$ENDIF}
{$IFDEF LINUX}
QtIntf  = 'libqt4intf.so';
{$ENDIF}
{$IFDEF DARWIN}
QtIntf  = '';
{$ENDIF}

FREEBSD... not found!! :D

I sugest add this:

{$IFDEF FREEBSD}
QtIntf  = 'libqt4intf.so';
{$ENDIF}

Fabio Luis Girardi

2007/12/2, Den Jean :

Show quoted text 35 lines
On Saturday 01 December 2007 12:28:21 pm wrote: > 6) Rebuild Lazarus without sucess... :( in point 5 you succesfully got a libqt4intf.so ?. Great. So the rest is just compiling lazarus. cd lazarus make LCL_PLATFORM=qt clean all OPT=dUSE_QT_4_3 and look at output The option USE_QT_4_3 is if you use the Qt 4.3.1 libs. Do not add it if you used the Qt 4.2.3 libs. Did you put llibQtCore.so.4 and libQtGui.so.4 in /usr/local/lib as well ? and ran ldconfig or the bsd equivalent ? The resulting executable ofcourse depends on Qt :-) ldd ./lazarus | grep -i qt libqt4intf.so => /usr/lib/libqt4intf.so (0xb7d21000) libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7a51000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb7294000) (/usr/lib on my system) regards, Den Jean _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author
to Unknown author

Hi!!

If you ran ldd libqt4intf.so, what is the output?

Fabio Luis Girardi

2007/12/4, :

Show quoted text 68 lines
I'm stupid!!! In lcl/interfaces/qt/qt4.pas is wrote: {$IFDEF MSWINDOWS} QtIntf = 'libqt4intf.dll'; {$ENDIF} {$IFDEF LINUX} QtIntf = 'libqt4intf.so'; {$ENDIF} {$IFDEF DARWIN} QtIntf = ''; {$ENDIF} FREEBSD... not found!! :D I sugest add this: {$IFDEF FREEBSD} QtIntf = 'libqt4intf.so'; {$ENDIF} Fabio Luis Girardi 2007/12/2, Den Jean : > > On Saturday 01 December 2007 12:28:21 pm wrote: > > 6) Rebuild Lazarus without sucess... :( > > in point 5 you succesfully got a libqt4intf.so ?. Great. > So the rest is just compiling lazarus. > > cd lazarus > make LCL_PLATFORM=qt clean all OPT=dUSE_QT_4_3 > > and look at output > > The option USE_QT_4_3 is if you use the Qt 4.3.1 libs. > Do not add it if you used the Qt 4.2.3 libs. > > Did you put llibQtCore.so.4 and libQtGui.so.4 in /usr/local/lib as well > ? > and ran ldconfig or the bsd equivalent ? > > The resulting executable ofcourse depends on Qt :-) > > ldd ./lazarus | grep -i qt > libqt4intf.so => /usr/lib/libqt4intf.so (0xb7d21000) > libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7a51000) > libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb7294000) > > (/usr/lib on my system) > > > regards, > > Den Jean > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
Den Jean
to Unknown author
pm wrote
{$IFDEF FREEBSD} QtIntf  = 'libqt4intf.so'; {$ENDIF}

but there are many LINUX ifdefs. (see below)
It would be complicated to add "... or FREEBSD or NETBSD" everywhere etc.

I am considering to replace LINUX with UNIX everywhere, but need to check if this does not break things.

Can you also read Lazarus Qt Widget Set List.

I will ask there what they think about that.

$ grep -ir LINUX qt4.pas lib
qt4.pas:{$IFDEF LINUX}
qt4.pas:{$ifdef DARWIN or LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef DARWIN or LINUX }
qt4.pas:{$ifdef DARWIN or LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$ifdef DARWIN or LINUX }
qt4.pas:{$ifdef DARWIN or LINUX }
qt4.pas:{$ifdef LINUX }
qt4.pas:{$IFDEF LINUX}
lib/qcoreapplication.hb:#if defined DARWIN || LINUX lib/qcoreapplication.cppb:#if defined DARWIN || LINUX lib/qapplication.hb:#if defined LINUX
lib/qapplication.hb:#if defined LINUX
lib/qapplication.cppb:#if defined LINUX
lib/qapplication.cppb:#if defined LINUX
lib/qwidget.hb:#if defined LINUX
lib/qwidget.hb:#if defined DARWIN || LINUX
lib/qwidget.cppb:#if defined LINUX
lib/qwidget.cppb:#if defined DARWIN || LINUX
lib/qcursor.hb:#if defined DARWIN || LINUX
lib/qcursor.hb:#if defined LINUX
lib/qcursor.cppb:#if defined DARWIN || LINUX
lib/qcursor.cppb:#if defined LINUX
lib/qx11info_x11.hb:#if defined LINUX
lib/qx11info_x11.cppb:#if defined LINUX
lib/qx11info_x11.cppb:#if defined LINUX
lib/qcolor.hb:#if defined LINUX
lib/qcolor.cppb:#if defined LINUX
lib/qregion.hb:#if defined LINUX
lib/qregion.cppb:#if defined LINUX
lib/qprinter.hb:#if defined DARWIN || LINUX
lib/qprinter.cppb:#if defined DARWIN || LINUX
lib/qfont.hb:#if defined DARWIN || LINUX
lib/qfont.cppb:#if defined DARWIN || LINUX
lib/qpixmap.hb:#if defined LINUX
lib/qpixmap.cppb:#if defined LINUX

Den Jean
to Unknown author: Hi!! If you ran ldd libqt4intf.so, what is the output? Fabio Luis Girardi 2007/12/4, :
pm wrote
If you ran ldd libqt4intf.so, what is the output?

$ ldd -r libqt4intf.so
linux-gate.so.1 => (0xffffe000)
libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7be8000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb742b000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb733d000) libm.so.6 => /lib/i686/libm.so.6 (0xb7318000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb730b000)
libc.so.6 => /lib/i686/libc.so.6 (0xb71cb000)
libz.so.1 => /lib/libz.so.1 (0xb71b8000)
librt.so.1 => /lib/i686/librt.so.1 (0xb71af000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb7198000) libdl.so.2 => /lib/libdl.so.2 (0xb7194000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb716c000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7164000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb714b000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb7142000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7139000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7131000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb712c000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7122000) libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb711f000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb70a4000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7075000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb7066000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb6f62000)
/lib/ld-linux.so.2 (0x80000000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb6e2d000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb6e2a000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6e24000)

Unknown author
to Den Jean

Hi!!

I can build lazarus with Qt in FreeBSD, but when I ran ./startlazarus... crash!

Attached the script that build libqt4intf.so in FreeBSD (test)

Fabio Luis Girardi

2007/12/7, Den Jean :

Show quoted text 38 lines
On Tuesday 04 December 2007 05:08:15 pm wrote: > If you ran ldd libqt4intf.so, what is the output? $ ldd -r libqt4intf.so linux-gate.so.1 => (0xffffe000) libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7be8000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb742b000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb733d000) libm.so.6 => /lib/i686/libm.so.6 (0xb7318000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb730b000) libc.so.6 => /lib/i686/libc.so.6 (0xb71cb000) libz.so.1 => /lib/libz.so.1 (0xb71b8000) librt.so.1 => /lib/i686/librt.so.1 (0xb71af000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb7198000) libdl.so.2 => /lib/libdl.so.2 (0xb7194000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb716c000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7164000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb714b000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb7142000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7139000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7131000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb712c000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7122000) libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb711f000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb70a4000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7075000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb7066000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb6f62000) /lib/ld-linux.so.2 (0x80000000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb6e2d000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb6e2a000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6e24000) _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Den Jean
to Unknown author: Hi!! I can build lazarus with Qt in FreeBSD, but when I ran ./startlazarus... crash!…
pm wrote
Attached the script that build libqt4intf.so in FreeBSD (test)

try to run the demoes of c++ qt4
e.g.
cd qt-x11-opensource-src-4.3.1/demos/textedit
./textedit

try to build the demo of the fpc qt4 bindings and run those

make sure you do not have 2 Qt's mixed in the library paths. Although different versions are claimed to be compatible, a different ./configure by distrib vendor may even make a same version a completely different Qt lib.

There is a help about in the bindings mainwindow demo that gives the Qt version.

use ldd to find the the path of the used lib on your system

ldd ./mainwindow | grep -i qt
libqt4intf.so => /usr/lib/libqt4intf.so (0xb7d3f000) libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7a6f000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb72b2000)

Unknown author
to Den Jean

I ran qt4 demos and all right! Lazarus demos crash...

Attached is the backtrace of lazarus and ldd of lazarus example (hello).

I will update my lazarus to a recent snapshot...

Fabio Luis Girardi

2007/12/11, Den Jean :

Show quoted text 30 lines
On Tuesday 11 December 2007 08:05:49 pm wrote: > Attached the script that build libqt4intf.so in FreeBSD (test) try to run the demoes of c++ qt4 e.g. cd qt-x11-opensource-src-4.3.1/demos/textedit ./textedit try to build the demo of the fpc qt4 bindings and run those make sure you do not have 2 Qt's mixed in the library paths. Although different versions are claimed to be compatible, a different ./configure by distrib vendor may even make a same version a completely different Qt lib. There is a help about in the bindings mainwindow demo that gives the Qt version. use ldd to find the the path of the used lib on your system ldd ./mainwindow | grep -i qt libqt4intf.so => /usr/lib/libqt4intf.so (0xb7d3f000) libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0xb7a6f000) libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0xb72b2000) _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Den Jean
to Den Jean
pm Den Jean wrote
do you have a sse2 capable processor ?

compile and run pure pascal (no qt or lazarus) program below to check anyhow (more verbose version of testsse2 of svn/fpctrunk/tests/test/testsse2.pp)

{ %OPT=-OaVARMAX=16 -OaVARMIN=16 }
{ %CPU=i386 }
uses

   mmx;

{ only a small test to see if it works in principle }

var
  b : byte;
  q : array[0..15] of byte;

begin

  if is_sse2_cpu then
    begin
    writeln('executing sse2 instructions ...');
    asm

{$ifdef FPC_PIC}
call .LPIC
.LPIC:
popl %ecx
{$ifdef darwin}
movdqa %xmm1,%xmm2
movdqa q-.LPIC(%ecx),%xmm4
psubq %xmm1,%xmm2
psubq q-.LPIC(%ecx),%xmm4
{$else darwin}
addl $_GLOBAL_OFFSET_TABLE_,%ecx
movdqa %xmm1,%xmm2
movdqa (%ecx),%xmm4
psubq %xmm1,%xmm2
psubq (%ecx),%xmm4
{$endif darwin}
{$else FPC_PIC}
movdqa %xmm1,%xmm2
movdqa q,%xmm4
psubq %xmm1,%xmm2
psubq q,%xmm4
{$endif FPC_PIC}

    end;
    end else writeln('not sse2 cpu');

end.

Unknown author
to Den Jean

Yes, I have an CPU SSE2 enabled (AMD Athlon 64 X2 3600+)

I ran fpc test and the output is:

%fpc teste1.pas
Free Pascal Compiler version 2.2.0 [2007/09/02] for i386 Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling teste1.pas
teste1.pas(10,2) Note: Local variable "b" not used Linking teste1
41 lines compiled, 1.1 sec
1 note(s) issued
%./teste1
executing sse2 instructions ...
%

Fabio Luis Girardi

2007/12/12, Den Jean :

Show quoted text 53 lines
On Wednesday 12 December 2007 07:33:15 pm Den Jean wrote: > do you have a sse2 capable processor ? compile and run pure pascal (no qt or lazarus) program below to check anyhow (more verbose version of testsse2 of svn/fpctrunk/tests/test/testsse2.pp) { %OPT=-OaVARMAX=16 -OaVARMIN=16 } { %CPU=i386 } uses mmx; { only a small test to see if it works in principle } var b : byte; q : array[0..15] of byte; begin if is_sse2_cpu then begin writeln('executing sse2 instructions ...'); asm {$ifdef FPC_PIC} call .LPIC .LPIC: popl %ecx {$ifdef darwin} movdqa %xmm1,%xmm2 movdqa q-.LPIC(%ecx),%xmm4 psubq %xmm1,%xmm2 psubq q-.LPIC(%ecx),%xmm4 {$else darwin} addl $_GLOBAL_OFFSET_TABLE_,%ecx movdqa %xmm1,%xmm2 movdqa (%ecx),%xmm4 psubq %xmm1,%xmm2 psubq (%ecx),%xmm4 {$endif darwin} {$else FPC_PIC} movdqa %xmm1,%xmm2 movdqa q,%xmm4 psubq %xmm1,%xmm2 psubq q,%xmm4 {$endif FPC_PIC} end; end else writeln('not sse2 cpu'); end. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author
to Unknown author

I will try disable SSE2 instructions...

2007/12/14, :

Show quoted text 79 lines
Yes, I have an CPU SSE2 enabled (AMD Athlon 64 X2 3600+) I ran fpc test and the output is: %fpc teste1.pas Free Pascal Compiler version 2.2.0 [2007/09/02] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: FreeBSD/ELF for i386 Compiling teste1.pas teste1.pas(10,2) Note: Local variable "b" not used Linking teste1 41 lines compiled, 1.1 sec 1 note(s) issued %./teste1 executing sse2 instructions ... % Fabio Luis Girardi 2007/12/12, Den Jean : > > On Wednesday 12 December 2007 07:33:15 pm Den Jean wrote: > > do you have a sse2 capable processor ? > > compile and run pure pascal (no qt or lazarus) program below to check > anyhow > (more verbose version of testsse2 of > svn/fpctrunk/tests/test/testsse2.pp) > > { %OPT=-OaVARMAX=16 -OaVARMIN=16 } > { %CPU=i386 } > uses > mmx; > > { only a small test to see if it works in principle } > > var > b : byte; > q : array[0..15] of byte; > > begin > if is_sse2_cpu then > begin > writeln('executing sse2 instructions ...'); > asm > {$ifdef FPC_PIC} > call .LPIC > .LPIC: > popl %ecx > {$ifdef darwin} > movdqa %xmm1,%xmm2 > movdqa q-.LPIC(%ecx),%xmm4 > psubq %xmm1,%xmm2 > psubq q-.LPIC(%ecx),%xmm4 > {$else darwin} > addl $_GLOBAL_OFFSET_TABLE_,%ecx > movdqa %xmm1,%xmm2 > movdqa (%ecx),%xmm4 > psubq %xmm1,%xmm2 > psubq (%ecx),%xmm4 > {$endif darwin} > {$else FPC_PIC} > movdqa %xmm1,%xmm2 > movdqa q,%xmm4 > psubq %xmm1,%xmm2 > psubq q,%xmm4 > {$endif FPC_PIC} > end; > end else writeln('not sse2 cpu'); > end. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
Marco van de Voort
to Unknown author
I will try disable SSE2 instructions...

My 3700+ already had SSE3, and afaik X2's are newer. So I would be very surprised if it didn't support SSE2

Unknown author
to Den Jean

Well, FreeBSD is my personal choice. It´s stable and fast, more than Linux or Windows (to me), because it has less drivers (and less bullshit, is a joke :D) than... And have the ports system...

I´m creating a project (http://pascalscada.blogspot.com in portuguese) to allow create industrial applications using lazarus or delphi, prataform independent (only on lazarus). I think that an application that ran in FreeBSD, ran in Linux too, but an application that ran in Linux can´t run in FreeBSD always. Because of this, it's my personal choice (to reduce tests between similar OS).

Why QT? Because GTK and GTK2 disapoint in some aspects. Some components of my project lost some properties under GTK (as Color property). Then Qt is my next choice to test my project...

Ok, I will try an updated snapshot of lazarus. And yes, I'm using fpc 2.2.0. I can't disable suport of SSE2 instructions on my QT4 instalation...

Fabio Luis Girardi

2007/12/17, Den Jean :

Show quoted text 18 lines
On Saturday 15 December 2007 02:25:59 pm wrote: > I will try disable SSE2 instructions... It was a long shot ... can you tell us which freebsd ? if I have time I may give it a try please try latest lazarus svn source again. (you are already using fpc 2.2.0 I see, Ok). _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe
to Unknown author
Show quoted text 11 lines
2007/12/17, Den Jean : > > On Saturday 15 December 2007 02:25:59 pm > wrote: >> I will try disable SSE2 instructions... > > It was a long shot ... > > can you tell us which freebsd ? if I have time I may give it a try Well, FreeBSD is my personal choice.

It appears that you misunderstood the question: he asked *which* FreeBSD, not *why* FreeBSD.

Jonas

Unknown author
to Jonas Maebe

Sorry... I read why...

I'm using FreeBSD 6.2 (PC-BSD 1.4.1)... I will test on pure FreeBSD 6.2 on my home.

Fabio Luis Girardi

2007/12/18, Jonas Maebe :

Show quoted text 25 lines
On 18 Dec 2007, at 11:22, wrote: > 2007/12/17, Den Jean : >> >> On Saturday 15 December 2007 02:25:59 pm >> wrote: >>> I will try disable SSE2 instructions... >> >> It was a long shot ... >> >> can you tell us which freebsd ? if I have time I may give it a try > > Well, FreeBSD is my personal choice. It appears that you misunderstood the question: he asked *which* FreeBSD, not *why* FreeBSD. Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Den Jean
to Jonas Maebe: It appears that you misunderstood the question: he asked *which* FreeBSD, not *why*…
am Jonas Maebe wrote
It appears that you misunderstood the question: he asked *which*   FreeBSD, not *why* FreeBSD.

yes what should I download :-) ? 6.2, 6.3RC1 or 7.0BETA4

ncftp ...FreeBSD/ISO-IMAGES-i386 > ls 6.2
6.2-RELEASE-i386-bootonly.iso 6.2-RELEASE-i386-docs.iso 6.2-RELEASE-i386-disc1.iso CHECKSUM.MD5 6.2-RELEASE-i386-disc2.iso CHECKSUM.SHA256 ncftp ...reeBSD/ISO-IMAGES-i386 > ls 6.3
6.3-RC1-i386-bootonly.iso 6.3-RC1-i386-disc2.iso CHECKSUM.MD5 6.3-RC1-i386-disc1.iso 6.3-RC1-i386-docs.iso CHECKSUM.SHA256 ncftp ...reeBSD/ISO-IMAGES-i386 > ls 7.0
7.0-BETA4-i386-bootonly.iso 7.0-BETA4-i386-docs.iso CHECKSUM.SHA256 7.0-BETA4-i386-disc1.iso 7.0-BETA4-i386-livefs.iso 7.0-BETA4-i386-disc2.iso CHECKSUM.MD5

Unknown author
to Den Jean

6.2 Release disc 1 and 2...

2007/12/18, Den Jean :

Show quoted text 25 lines
On Tuesday 18 December 2007 11:39:44 am Jonas Maebe wrote: > It appears that you misunderstood the question: he asked *which* > FreeBSD, not *why* FreeBSD. yes what should I download :-) ? 6.2, 6.3RC1 or 7.0BETA4 ncftp ...FreeBSD/ISO-IMAGES-i386 > ls 6.2 6.2-RELEASE-i386-bootonly.iso 6.2-RELEASE-i386-docs.iso 6.2-RELEASE-i386-disc1.iso CHECKSUM.MD5 6.2-RELEASE-i386-disc2.iso CHECKSUM.SHA256 ncftp ...reeBSD/ISO-IMAGES-i386 > ls 6.3 6.3-RC1-i386-bootonly.iso 6.3-RC1-i386-disc2.iso CHECKSUM.MD5 6.3-RC1-i386-disc1.iso 6.3-RC1-i386-docs.iso CHECKSUM.SHA256 ncftp ...reeBSD/ISO-IMAGES-i386 > ls 7.0 7.0-BETA4-i386-bootonly.iso 7.0-BETA4-i386-docs.iso CHECKSUM.SHA256 7.0-BETA4-i386-disc1.iso 7.0-BETA4-i386-livefs.iso 7.0-BETA4-i386-disc2.iso CHECKSUM.MD5 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author
to Unknown author

Hi!

I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from ports (that is an automated process, that applies some patchs before build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make install) and I got the same result, but with a more detailed backtrace (because QT compiled with debug enabled).

I have to change qt43.pas that uses defines LINUX and not UNIX...

Fabio Luis Girardi

2007/12/18, :

Show quoted text 32 lines
6.2 Release disc 1 and 2... 2007/12/18, Den Jean : > > On Tuesday 18 December 2007 11:39:44 am Jonas Maebe wrote: > > It appears that you misunderstood the question: he asked *which* > > FreeBSD, not *why* FreeBSD. > > yes what should I download :-) ? 6.2, 6.3RC1 or 7.0BETA4 > > ncftp ...FreeBSD/ISO-IMAGES-i386 > ls 6.2 > 6.2-RELEASE-i386-bootonly.iso 6.2-RELEASE-i386-docs.iso > 6.2-RELEASE-i386-disc1.iso CHECKSUM.MD5 > 6.2-RELEASE-i386-disc2.iso CHECKSUM.SHA256 > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 6.3 > 6.3-RC1-i386-bootonly.iso 6.3-RC1-i386-disc2.iso > CHECKSUM.MD5 > 6.3-RC1-i386-disc1.iso 6.3-RC1-i386-docs.iso > CHECKSUM.SHA256 > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 7.0 > 7.0-BETA4-i386-bootonly.iso 7.0-BETA4-i386-docs.iso > CHECKSUM.SHA256 > 7.0-BETA4-i386-disc1.iso 7.0-BETA4-i386-livefs.iso > 7.0-BETA4-i386-disc2.iso CHECKSUM.MD5 > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
Unknown author
to Unknown author

Debug detailed....

2007/12/19, :

Show quoted text 50 lines
Hi! I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from ports (that is an automated process, that applies some patchs before build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make install) and I got the same result, but with a more detailed backtrace (because QT compiled with debug enabled). I have to change qt43.pas that uses defines LINUX and not UNIX... Fabio Luis Girardi 2007/12/18, : > > 6.2 Release disc 1 and 2... > > 2007/12/18, Den Jean : > > > > On Tuesday 18 December 2007 11:39:44 am Jonas Maebe wrote: > > > It appears that you misunderstood the question: he asked *which* > > > FreeBSD, not *why* FreeBSD. > > > > yes what should I download :-) ? 6.2, 6.3RC1 or 7.0BETA4 > > > > ncftp ...FreeBSD/ISO-IMAGES-i386 > ls 6.2 > > 6.2-RELEASE-i386-bootonly.iso > > 6.2-RELEASE-i386-docs.iso > > 6.2-RELEASE-i386-disc1.iso CHECKSUM.MD5 > > 6.2-RELEASE-i386-disc2.iso CHECKSUM.SHA256 > > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 6.3 > > 6.3-RC1-i386-bootonly.iso 6.3-RC1-i386-disc2.iso > > CHECKSUM.MD5 > > 6.3-RC1-i386-disc1.iso 6.3-RC1-i386-docs.iso > > CHECKSUM.SHA256 > > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 7.0 > > 7.0-BETA4-i386-bootonly.iso 7.0-BETA4-i386-docs.iso > > CHECKSUM.SHA256 > > 7.0-BETA4-i386-disc1.iso 7.0-BETA4-i386-livefs.iso > > 7.0-BETA4-i386-disc2.iso CHECKSUM.MD5 > > > > _______________________________________________ > > fpc-pascal maillist - > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > >
Den Jean
to Unknown author
Show quoted text 5 lines
I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from ports (that is an automated process, that applies some patchs before build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make install) and I got the same result, but with a more detailed backtrace (because QT compiled with debug enabled).

I tried FreeBSD, but X always seg failed, so then I tried PC-BSD.

The qt4 ports install include files to close to qt3 include files (you fall on qt3 files first). The PREFIX stuff does not work. The qt4-gui ports does not link with the PREFIX (does not find libqtcore, whatever you do with ldconfig)

If you play with ldconfig, bash becomes unstable-> you cannot launch any program or any new konsole anymore, the messages you get are common problems (google says: update ports recompile everything, but my ports are fresh :-) -> reboot -> I have never rebooted this much :-(. (BSD ? :-)

with LD_LIBRARY_PATH and a manually (no ports) compiled qt4 (put in /usr/local/KDE4) I can finally compile lazarus (some pthreads link hurdle aside)

lazarus compiled with:
#!/bin/bash
cd lazarus
export LD_LIBRARY_PATH=/usr/local/KDE4/lib
gmake LCL_PLATFORM=qt clean all OPT="-dDEBUG -dUSE_QT_4_3 -k'-L/usr/local/KDE4/lib' -k'-lpthread'"

qt4intf compiled with:
cat ./compile_lib.bash
#!/bin/bash
export QT4=/usr/local/KDE4
export QT4I=$QT4/include
export LD_LIBRARY_PATH=$QT4/lib
if [ -e "$LD_LIBRARY_PATH/libQtCore.so.4" ]
then
  g++ -D UNIX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore -Iqlcl qtpas.cpp -o libqt4intf.so -shared -fPIC -Xlinker $QT4/lib/libQtCore.so.4 $QT4/lib/libQtGui.so.4 "-soname=libqt4intf.so"
  strip --strip-all libqt4intf.so
else
  echo "Please Modify location of Qt4 in this script" fi

lazarus runs, but has continuously exceptions:

$2911D9EA
  $2911E1AA
  $291417EF
  $2881BAB8
  $082400DE  TQTTHEMESERVICES__DRAWELEMENT,  line 168 of qtthemes.pas   $081BFF95  TCUSTOMSPEEDBUTTON__PAINTBACKGROUND,  line 629 of ./include/speedbutton.inc
  $081BF6B2  TCUSTOMSPEEDBUTTON__PAINT,  line 518 of ./include/speedbutton.inc   $0819B979  TGRAPHICCONTROL__WMPAINT,  line 64 of ./include/graphiccontrol.inc
  $08060F91
  $08191C92  TCONTROL__PERFORM,  line 1016 of ./include/control.inc   $0818710B  TWINCONTROL__PAINTCONTROLS,  line 4294 of ./include/wincontrol.inc
  $08186E66  TWINCONTROL__PAINTHANDLER,  line 4233 of ./include/wincontrol.inc QPainter::end: Painter ended with 2 saved states
TApplication.HandleException Access violation
  Stack trace:
  $28E88EE

I also noticed that the gtk2 version crashes when started with ./startlazarus but runs fine when started with ./lazarus ???

so something is wrong ...

Unknown author
to Unknown author: Debug detailed.... 2007/12/19, :

Hi!!!!

Den, you want screenshots? Then see...

Rebuild QT without SSE2 is a VERY long shot :D... And I disable Qt suport to glib.
After disable this, lazarus + QT + FreeBSD works, with some bugs and slow startup, but works!

Screenshot1.png: lazarus open dialog.
Screenshot2.png: Saving my small project.
Screenshot.png: "About Lazarus" dialog, object inspector with object selected and my small app running in background.

Fabio Luis Girardi

2007/12/19, :

Show quoted text 56 lines
Debug detailed.... 2007/12/19, : > > Hi! > > I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT > from ports (that is an automated process, that applies some patchs before > build). In my FreeBSD 6.1 I build QT without ports (./configure, make, > make install) and I got the same result, but with a more detailed backtrace > (because QT compiled with debug enabled). > > I have to change qt43.pas that uses defines LINUX and not UNIX... > > > Fabio Luis Girardi > > > 2007/12/18, : > > > > 6.2 Release disc 1 and 2... > > > > 2007/12/18, Den Jean : > > > > > > On Tuesday 18 December 2007 11:39:44 am Jonas Maebe wrote: > > > > It appears that you misunderstood the question: he asked *which* > > > > FreeBSD, not *why* FreeBSD. > > > > > > yes what should I download :-) ? 6.2, 6.3RC1 or 7.0BETA4 > > > > > > ncftp ...FreeBSD/ISO-IMAGES-i386 > ls 6.2 > > > 6.2-RELEASE-i386-bootonly.iso > > > 6.2-RELEASE-i386-docs.iso > > > 6.2-RELEASE-i386-disc1.iso CHECKSUM.MD5 > > > 6.2-RELEASE-i386-disc2.iso CHECKSUM.SHA256 > > > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 6.3 > > > 6.3-RC1-i386-bootonly.iso 6.3-RC1-i386-disc2.iso > > > CHECKSUM.MD5 > > > 6.3-RC1-i386-disc1.iso 6.3-RC1-i386-docs.iso > > > CHECKSUM.SHA256 > > > ncftp ...reeBSD/ISO-IMAGES-i386 > ls 7.0 > > > 7.0-BETA4-i386-bootonly.iso 7.0-BETA4-i386-docs.iso > > > CHECKSUM.SHA256 > > > 7.0-BETA4-i386-disc1.iso 7.0-BETA4-i386-livefs.iso > > > 7.0-BETA4-i386-disc2.iso CHECKSUM.MD5 > > > > > > _______________________________________________ > > > fpc-pascal maillist - > > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > > > > > >
Unknown author
to Den Jean: I tried FreeBSD, but X always seg failed, so then I tried PC-BSD. The qt4 ports install…

I don't remember if I'm running lazaurs with ./startlazarus or ./lazarus, I will see if this ocurs with GTK2..

Yes, QT4 ports don't work, then I build QT4 manualy. My steps:

1) ./configure -prefix /usr/local/ -no-sse2 -no-glib do QT4 install in /usr/local and disable sse2 and GLib suport.

2) gmake, gmake install

3) cd lazaurs, gmake LCL_PLATFORM=qt OPT="-dUSE_QT_4_3" I don't need specify where my QT4 librarys are installed because I put it in /usr/local/(bin, lib, share...) in ./configure...

4) Run ./startlazarus, wait a little time and Have QT4 running with lazarus under FreeBSD

2007/12/20, Den Jean :

Show quoted text 82 lines
On Wednesday 19 December 2007 11:37:33 am wrote: > I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from > ports (that is an automated process, that applies some patchs before > build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make > install) and I got the same result, but with a more detailed backtrace > (because QT compiled with debug enabled). I tried FreeBSD, but X always seg failed, so then I tried PC-BSD. The qt4 ports install include files to close to qt3 include files (you fall on qt3 files first). The PREFIX stuff does not work. The qt4-gui ports does not link with the PREFIX (does not find libqtcore, whatever you do with ldconfig) If you play with ldconfig, bash becomes unstable-> you cannot launch any program or any new konsole anymore, the messages you get are common problems (google says: update ports recompile everything, but my ports are fresh :-) -> reboot -> I have never rebooted this much :-(. (BSD ? :-) with LD_LIBRARY_PATH and a manually (no ports) compiled qt4 (put in /usr/local/KDE4) I can finally compile lazarus (some pthreads link hurdle aside) lazarus compiled with: #!/bin/bash cd lazarus export LD_LIBRARY_PATH=/usr/local/KDE4/lib gmake LCL_PLATFORM=qt clean all OPT="-dDEBUG -dUSE_QT_4_3 -k'-L/usr/local/KDE4/lib' -k'-lpthread'" qt4intf compiled with: cat ./compile_lib.bash #!/bin/bash export QT4=/usr/local/KDE4 export QT4I=$QT4/include export LD_LIBRARY_PATH=$QT4/lib if [ -e "$LD_LIBRARY_PATH/libQtCore.so.4" ] then g++ -D UNIX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore -Iqlcl qtpas.cpp -o libqt4intf.so -shared -fPIC -Xlinker $QT4/lib/libQtCore.so.4 $QT4/lib/libQtGui.so.4 "-soname=libqt4intf.so" strip --strip-all libqt4intf.so else echo "Please Modify location of Qt4 in this script" fi lazarus runs, but has continuously exceptions: $2911D9EA $2911E1AA $291417EF $2881BAB8 $082400DE TQTTHEMESERVICES__DRAWELEMENT, line 168 of qtthemes.pas $081BFF95 TCUSTOMSPEEDBUTTON__PAINTBACKGROUND, line 629 of ./include/speedbutton.inc $081BF6B2 TCUSTOMSPEEDBUTTON__PAINT, line 518 of ./include/speedbutton.inc $0819B979 TGRAPHICCONTROL__WMPAINT, line 64 of ./include/graphiccontrol.inc $08060F91 $08191C92 TCONTROL__PERFORM, line 1016 of ./include/control.inc $0818710B TWINCONTROL__PAINTCONTROLS, line 4294 of ./include/wincontrol.inc $08186E66 TWINCONTROL__PAINTHANDLER, line 4233 of ./include/wincontrol.inc QPainter::end: Painter ended with 2 saved states TApplication.HandleException Access violation Stack trace: $28E88EE I also noticed that the gtk2 version crashes when started with ./startlazarus but runs fine when started with ./lazarus ??? so something is wrong ... _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author
to Den Jean

Forwarding...

de

para

data
29/12/2007 20:30
assunto
Lazarus + Qt4 in FreeBSD

Hi,
I've just readed thread on fpc-pascal list, and seen your sse2 problem with qt4.
I had same thing on linux (Fedora Core 3) and qt4. Just recompile your qt4 libs with --no-sse and you'll get bingo ;)

cheers,
zeljan

2007/12/21, Den Jean < >:

Show quoted text 10 lines
On Friday 21 December 2007 03:06:32 am wrote: > Den, you want screenshots? Then see... thanks _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal