-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not start patchelf, version `Qt_5.8' not found errors #65
Comments
Hi @ubruhin. Thanks for your interest in linuydeployqt. Loading resources from locations relative to the main binary like you describe is a very good approach. In fact, I started to work on a FHS-like mode where linuxdeployqt should check whether the main executable is in a FHS-like structure, i.e., whether its parent directory is called My initial code on this can be found in the |
Great to hear!
I have just looked into your source code, but unfortunately it's kind of hard to understand because it looks not very well structured (only 2 source files, no object oriented design, ...) 😉 Maybe I could do some refactoring first, if you agree with that? |
To be honest, I find the current structure hard to work with too, but I had modeled
I'm all for refactoring @ubruhin if the flow is easier to understand afterwards, and if we still have a chance to get it into Qt. Also look at macdeployqt and windeployqt. |
Alright, that's probably a good reason to keep the current structure.
That would be amazing! 😃 But wouldn't it be easier to bring
I will take a look on them the next few days. |
AppImageKit is not a dependency. It's a "works-well-with" relationship. It's not being used by default. I like to keep it. |
I don't find the code base appealing either. IMHO it's starting to look more like a spaghetti-hack of macdeployqt than a proper well written Qt deploy tool for linux.
MacOS is not Linux - Linux does things a little differently as you might know now.
Any well-written (Qt-based) tool that solves a problem will have a chance. Don't get me wrong here - I think this project rocks and I wish it all the best. I also think, though, that linuxdeployqt actually got higher chances of being included (and attract more developers) if you refactor/rewrite from scratch - instead of shoehorning and patching up macdeployqt. Different OS = different needs, different ways of doing things - and maybe most importantly - different programmers with different skillsets. Start by getting the library dependency resolving rock-solid and take it from there. Maybe even keep some layers Qt-independant or, even better, make them plugin-based so you can add a plugin that handle Qt's oddities. This way you'd have a tool flexible enough to build AppImages for many Linux binaries. And keep the output generators as plugins as well - that way you'd have an AppImage output plugin that generates AppImages, one that generates a .json list of dependencies, one that pack everything into a zip archive, one that wrap a tool to make If a tool like that is written in a portable (Qt based) way you'll maybe even end up having all the *deployqt's replaced by plugins :)
|
This is way over my head (this being my first Qt project ever), but I'd welcome it happening. |
FHS-like mode is now implemented and (hopefully) working, please try https://github.com/probonopd/linuxdeployqt/releases/tag/continuous. Turns out that Let me know if this solves it for you. |
Now I get other errors:
|
Sorry for the trouble you are having @ubruhin
Are you sure you have the correct Qt on your $PATH as pointed out in README.md? I need to investigate what is going on. Any help appreciated. |
No problem ;)
Yes, this is be done with sourcing the file I will try to debug this on my own machine... |
Yes, The |
Where are you getting your |
I use the official |
That is very strange. Can you please check with
It should load
|
With Qt5.2 from the Ubuntu repository it looks good to me:
But with Qt5.7 from the beineri PPA, it looks bad:
Maybe this is somehow caused by sourcing the file |
Please try to unset the environment variables set by |
That works! I just saw that
I guess this is the problem. As the directories contained in But how to deal with that problem? ;) |
I think the clue may be in http://blog.qt.io/blog/2011/10/28/rpath-and-runpath/
|
Hi,
my Qt application LibrePCB requires to load some resource files at runtime (for example some license templates) which I consider to store in the directory
../share/librepcb/
relative to the executable. So If the executable is installed to/usr/bin/librepcb
, it searches for resources at/usr/share/librepcb/
.To make this working inside AppImages, the executable needs to be located in a subdirectory (e.g.
./bin/
) of the AppDir. Is there a way to do this withlinuxdeployqt
? As far as I can see,linuxdeployqt
assumes that the application executable is located in the root of the AppDir...The text was updated successfully, but these errors were encountered: