Sign in Join

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

Mailing lists / fpc-pascal / 2004-01

Re: problems linking to libborqt

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Florian Klaempfl
to geeken: I am trying to use freeclx/qt with fpc. So I must be able to link to libborqt. It works…
geeken wrote 40 lines
Hi, I am trying to use freeclx/qt with fpc. So I must be able to link to libborqt. It works with dcc (kylix compiler), but not with fpc. Here is small link test program program test; procedure InitializePAnsiString(CCPS, COPS, IPS, FPS: Pointer); cdecl; external 'libborqt-6.9-qt2.3.so' name 'initPAnsiStrings'; begin writeln('Hello'); InitializePAnsiString(nil,nil,nil,nil); end. Output with fpc: ------------------ Free Pascal Compiler version 1.9.2 [2004/01/06] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling test.pas Linking test /usr/bin/ld: cannot find -lborqt-6.9-qt2.3 test.pas(8,1) Error: Error while linking Closing script ppas.sh Output with dcc: ------------------- Borland Delphi for Linux Version 14.5 Copyright (c) 1983,2002 Borland Software Corporation test.pas(9) 10 lines, 0.01 seconds, 21816 bytes code, 3088 bytes data. Hello libborqt-6.9.0-qt2.3.so => /usr/kylix3/bin/libborqt-6.9.0-qt2.3.so

If this is the real location of libborqt-6.9.0-qt2.3.so , fpc won't find it, indeed. Create a softlink in /usr/lib to this file.

Show quoted text 33 lines
(0x40015000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40754000) libdl.so.2 => /lib/libdl.so.2 (0x407a5000) libc.so.6 => /lib/i686/libc.so.6 (0x407a8000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x408d8000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x408e7000) libm.so.6 => /lib/i686/libm.so.6 (0x409ca000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x409ed000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x409f7000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40a0e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) compiling was done with following script: ---------------------------------------------- #!/bin/bash source /usr/kylix3/bin/kylixpath /usr/kylix3 >/dev/null #fpc test.pas dcc test.pas ./test ldd test Has anyone succesfully compiled and linked Qt.pas/Bindhelp.pas ? kind regards, Den Jean _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Pedro Lopez-Cabanillas
to geeken: I am trying to use freeclx/qt with fpc. So I must be able to link to libborqt. It works…

On Monday 26 January 2004 21:46, geeken wrote:
[...]

Show quoted text 5 lines
compiling was done with following script: ---------------------------------------------- #!/bin/bash source /usr/kylix3/bin/kylixpath /usr/kylix3 >/dev/null #fpc test.pas

use:
fpc -Fl/usr/lib/kylix3 test.pas

instead of '/usr/lib/kylix3' use the path where your kylix libs are installed.

Regards,
Pedro

Reply by email

geeken

Hi,

I am trying to use freeclx/qt with fpc.

So I must be able to link to libborqt.
It works with dcc (kylix compiler), but not with fpc.

Here is small link test program

program test;
procedure InitializePAnsiString(CCPS, COPS, IPS, FPS: Pointer); cdecl;
external 'libborqt-6.9-qt2.3.so' name 'initPAnsiStrings';
begin
writeln('Hello');
InitializePAnsiString(nil,nil,nil,nil);
end.

Output with fpc:
------------------
Free Pascal Compiler version 1.9.2 [2004/01/06] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling test.pas
Linking test
/usr/bin/ld: cannot find -lborqt-6.9-qt2.3
test.pas(8,1) Error: Error while linking
Closing script ppas.sh

Output with dcc:
-------------------
Borland Delphi for Linux Version 14.5
Copyright (c) 1983,2002 Borland Software Corporation test.pas(9)
10 lines, 0.01 seconds, 21816 bytes code, 3088 bytes data. Hello
libborqt-6.9.0-qt2.3.so => /usr/kylix3/bin/libborqt-6.9.0-qt2.3.so (0x40015000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40754000) libdl.so.2 => /lib/libdl.so.2 (0x407a5000)
libc.so.6 => /lib/i686/libc.so.6 (0x407a8000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x408d8000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x408e7000) libm.so.6 => /lib/i686/libm.so.6 (0x409ca000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x409ed000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x409f7000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40a0e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

compiling was done with following script:
----------------------------------------------
#!/bin/bash
source /usr/kylix3/bin/kylixpath /usr/kylix3 >/dev/null #fpc test.pas
dcc test.pas
./test
ldd test

Has anyone succesfully compiled and linked Qt.pas/Bindhelp.pas ?

kind regards,

Den Jean

Reply by email