Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Distributing Qt4-Applications as Binaries

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
finr
Tux's lil' helper
Tux's lil' helper
Posts: 126
Joined: Tue Feb 24, 2004 1:15 pm

Distributing Qt4-Applications as Binaries

  • Quote

Post by finr » Fri Sep 09, 2005 9:59 am

Hi all!

I just finished an application using Qt4 and I'd really like to distribute it as a binary, so those guys that use it (mostly new to Linux) can use it without having to compile it.
In Windows I can just drop Qt4Gui.dll and Qt4Core.dll as well as a .dll from MinGW into the application's directory and it runs fine, but in Linux copying those files to the applications directory doesn't really help, they still can't be found. If I start the application using LD_LIBRARY_PATH=. I guess it would find those libraries, but of course all the others (libc, etc) are missing than.. Is there an easy way to make the application find those files? If not, how can I link the Qt libraries statically to the executable?

Thanks very much..
Rainer.
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

Re: Distributing Qt4-Applications as Binaries

  • Quote

Post by tomvollerthun » Fri Sep 09, 2005 12:03 pm

finr wrote:If I start the application using LD_LIBRARY_PATH=. I guess it would find those libraries, but of course all the others (libc, etc) are missing than.
If that is an option, you could use this: LD_LIBRARY_PATH=.:"$LD_LIBRARY_PATH"
That should make ld search the current directory first and the normal path afterwards.

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic