Recent

Author Topic: /usr/bin/ld: Qt4Intf: No such file: No such file or directory  (Read 9735 times)

blueprint

  • New member
  • *
  • Posts: 7
Hello all!

Being totally new to Lazarus (and for that matter Delphi) I'm experiencing a bit of trouble. I've been trying to port an application to both Mac OS X and GNU/Linux. Porting to Mac was successful without much tweaking. The current problem has to do with me trying to use Qt for the Linux version (used Carbon for the Darwin version), but when reaching linking i get this in Messages: "/usr/bin/ld: Qt4Intf: No such file: No such file or directory". I followed this "http://wiki.lazarus.freepascal.org/Qt_Interface_Mac", installed the Mac intel binary mentioned in the Introduction, and finally added "-framework Qt4Intf -lobjc -framework Foundation" to "Pass Options to the Linker".

What am I doing wrong? :(

BTW. I'm running FPC 2.4.2 and Lazarus 0.9.30 on Mac OS X 10.5.8.


Kind regards

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #1 on: May 31, 2011, 04:57:48 pm »
If you want Qt+Linux then you don't need to follow wiki "Qt+Mac".
This one is for you: http://wiki.lazarus.freepascal.org/Qt_Interface#Quick_start_guide_for_Linux
And what distro do you have ? It should be some KDE4 based.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

blueprint

  • New member
  • *
  • Posts: 7
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #2 on: May 31, 2011, 05:22:46 pm »
Hi Blaazen

Thank you for your reply.

Surely that can't be right? I'm doing the work in Mac OS X (no ldconfig ...)? I've been able to do ports to GNU/Linux from here before, but those projects didn't involve Qt. The target workstation is running Debian 6.0.1a.
« Last Edit: May 31, 2011, 05:24:50 pm by blueprint »

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #3 on: May 31, 2011, 05:37:05 pm »
I am little confused. Why do you use word "port" ? Lazarus is write once - compile anywhere.

EDIT: I was hurry before. I wanted to say that if you have Lazarus compiled with carbon on Mac and you make some project there then the project should work on Linux where you have compiled Lazarus with Qt (or with GTK2).
« Last Edit: May 31, 2011, 06:07:07 pm by Blaazen »
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

blueprint

  • New member
  • *
  • Posts: 7
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #4 on: May 31, 2011, 06:38:48 pm »
I am little confused. Why do you use word "port" ? Lazarus is write once - compile anywhere.

EDIT: I was hurry before. I wanted to say that if you have Lazarus compiled with carbon on Mac and you make some project there then the project should work on Linux where you have compiled Lazarus with Qt (or with GTK2).

I think you're getting me wrong. I'm doing cross compiling on a Mac, specifying different targets (i386-linux, i386-win32 ...) and ending up having an executable for each platform. I've already compiled working versions of my project in both *.exe and *.app. Now, I'm left with building a GNU/Linux version?

Kind regards

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #5 on: May 31, 2011, 07:19:43 pm »
Quote
I'm doing cross compiling...
Now it is clear. Unfortunally I have no experience with cross-comp. from Mac to Linux+Qt. I only use Linux+Qt.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

zeljko

  • Hero Member
  • *****
  • Posts: 1054
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #6 on: May 31, 2011, 09:47:22 pm »
Disable linker options when compiling for linux. ld returned correct error.

blueprint

  • New member
  • *
  • Posts: 7
Re: /usr/bin/ld: Qt4Intf: No such file: No such file or directory
« Reply #7 on: June 01, 2011, 11:56:17 am »
It seems I got my project compiling without problems now. Naturally, some libraries were missing, and upon having copied these to a location which I specified in "Project Options/ Paths/ Libraries" it compiled and linked successfully. Although, now I'm getting a "Killed" in Debian when I try to run the application?

Can any of you maybe clarify this bit for me though, why Lazarus/FPC is searching for the linker (ld) and various other utilities, e.g. objcopy, strings ..., in folders belonging to my local system (Mac OS X's /bin, /usr/bin)? It doesn't use neither /sw/bin/i386-linux-ld nor /sw/lib/i386-linux/i386-linux/bin/ld.

Thanks so much for your help!
« Last Edit: June 01, 2011, 11:58:58 am by blueprint »