-
Notifications
You must be signed in to change notification settings - Fork 32
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
Packaging #15
Comments
From @probonopd on December 4, 2016 12:36 For AppImage, have a look at https://github.com/probonopd/linuxdeployqt. You could use it to bundle your application as part of your Travis CI runs. Check out these projects which already use
|
Looks really cool! I almost got it working, just one more thing. Because I am using KXmlGui, I need to be able to package the .rc file in share/kmlgui5/chiggui/chigguiui.rc How can I tell it to package it? |
From @probonopd on December 4, 2016 19:19 For now, you can try copy it to the target location manually. References: |
Yeah no problem.
Here is the image (it was too big for github): |
From @probonopd on December 4, 2016 19:31 When I run this, I get
|
From @probonopd on December 4, 2016 19:33 Back to the .rc file "chigguiui.rc" for component "chiggui" issue: Can you define it in a Qt resource file like in the example on https://git.reviewboard.kde.org/r/128193/diff/3-4/ and then run linuxdeploy twice, does it work then? |
I've never setup a qrc file before, so I had to look up some docs and I'm still not entirely sure I did it right. It still doesn't work so I fear I did it incorrectly. here is the commit. Same error. I never got the original error you got, I'm testing on a clean VM to see if I can reproduce with the new image. |
From @probonopd on December 4, 2016 20:14
You will only get it if you run the AppImage on a system with a different Qt from what you used at compile time. |
Aah makes sense |
From @probonopd on January 11, 2017 17:9
is still the case with Chigraph-x86_64-a50a7b0.AppImage and xubuntu-16.04-desktop-amd64.iso. |
I'm working on it right now, I've make a few other appimages and not I'm getting it to work in CI so I can have a continously running appimage. I figured out the other issues though :). On Wed, Jan 11, 2017, 10:09 AM probonopd [email protected] wrote:
|
Hey so I'm ready to start on this again-finally got all hardcoded paths out. I need to package some files in the lib dir (specificly the basic includes for clang because I have to compile code using libclang), how do I package that as well? I also need to package two exectuables because my qt exectuable calls another one (that is also compiled by the project) |
From @probonopd on March 2, 2017 7:0 Compile everything you compile, including all your self-compiled binaries and libraries, with
|
Hey! So I've done a lot of work getting appimages to work and I have--for the most part. I setup a continous build for it, but there is still one problem: I can't seem to spawn a process from the appimage. My GUI spawns an executable that is in the same directory, and it finds it like this: boost::filesystem::path chiPath =
boost::filesystem::path(QApplication::applicationFilePath().toStdString()).parent_path() / "chi";
Q_ASSERT(boost::filesystem::is_regular_file(chiPath));
The assertion doesn't trigger, but when I try to spawn that using a |
From @probonopd on April 3, 2017 5:40 @russelltg so, let's debug. First of all, please use a newer version of Next, you seem to be missing all libraries.
Maybe running something like linuxdeployqt would be a good idea. Alternatively, you can manually bundle all libraries but those that are on the excludelist. Once this is fixed, I will have another look; please let me know how I can invoke the command in the GUI that launches the QProcess. Need to look at it with |
I am currently running linuxdeployqt (see my script here). Also I'm pretty sure libKF5Crash.so is being bundled: $ ./appimagetool-x86_64.AppImage ./chigraph/Chigraph-x86_64.AppImage --list | grep KF5Crash
usr/lib/cmake/KF5Crash
usr/lib/cmake/KF5Crash/KF5CrashConfig.cmake
usr/lib/cmake/KF5Crash/KF5CrashConfigVersion.cmake
usr/lib/cmake/KF5Crash/KF5CrashTargets-release.cmake
usr/lib/cmake/KF5Crash/KF5CrashTargets.cmake
usr/lib/libKF5Crash.so
usr/lib/libKF5Crash.so.5
usr/lib/libKF5Crash.so.5.31.0 As far as launching a process, here's the steps:
I'll look into Thank you so so so much for your willingness to help, it's truly appreciated. Appimages are way too cool to pass up 👍. I'll make sure to test in a fresh VM too. |
You're right, there are some DLL issues. I'm looking into them right now, I think I shouldn't copy them in manually and just let linuxdeployqt do its work. |
Alright so when running it natively (no appimage), strace spits out this relevant output:
But when it's under the appimage, the clone seems ok:
but then there's a
which is where the exit status 127 is coming from. I'm not that experienced at reading these, any clues? |
From @probonopd on April 4, 2017 5:54 Maybe chi has dependencies that also need to be bundled? Does chi in the AppImage run if you invoke it manually? |
From @probonopd on April 4, 2017 6:25 Let's mount the AppImage and see what is inside:
Please strip files. Actually linuxdeployqt should do that for you. Do you really, absolutely need your own Docker container to build this in, rather than the environment provided by Travis CI? Here is an example that generates an AppImage using And where is Looking at the build log, we see
This means that these libraries are not found on the build system, and hence cannot be bundled. Run ldd on your binary to debug this. When ldd says Also, what is |
Not really, it was nice when I was making them on my local computer but now that I'm using travis, I'll remove it. That'll be a good first step to a sane appimage
https://github.com/chigraph/chigraph/blob/master/scripts/appimage/appimage_recipie.sh
This is a recent thing. How do I point ldd to those libraries? Is
It's not directly used by the chigraph executables. Chigraph itsself is a compiler, and it compiles C code as well, so needs a glibc install. It's only used by chigraph when compiling chigraph code. I should probably delete the libraries in there though, I only really need the headers. |
From @probonopd on April 5, 2017 17:41 Can you make a .travis.yml that compiles Chigraph and its dependencies to |
Yes of course! Thanks so much :). 💓 |
Please point me to copy-and-paste-able build instructions for Ubuntu 14.04 trusty, thanks. |
https://github.com/chigraph/chigraph-gui/blob/master/scripts/appimage/appimage_recipie.sh That currently works on a trusty travis CI bot. Thanks for following up! |
@russelltg thank you very much. Since people ask from time to time how to use KF5 on trusty on Travis CI, I'd like to add an explanation to the linuxdeployqt project. Is your https://github.com/chigraph/chigraph/releases/download/dependencies/kf5-5.32.0-release-gcc-linux64.tar.xz so generic that it could be used by other projects too? In this case, would you consider to move it to its own project? EDIT: It seems it is not, e.g., |
Yes it is. I'll move it into it's seperate project when I have the time (probably today) |
Can you include all KF5 parts such as |
Yeah, I can. It'd literally be 1 more line of code |
What was the issue that led you to remove AppImage? |
I guess I'm not ruling it out, just I was curious about flatpak and it was
incredibly easy to integrate and becoming more and more standard.
I wouldn't say issue, just flatpak was easy, and potentially easier for
appstore integration.
…On Tue, Sep 12, 2017, 10:15 AM probonopd ***@***.***> wrote:
What was the issue that led you to remove AppImage?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGxqOj9OPOZzq4xr5hP0erIBN7GE1cisks5shq4TgaJpZM4M-Lw7>
.
|
Just be aware that these two solutions are totally different beasts - whereas with AppImage you get one file that runs out of the box on most Linux desktops, the same cannot be said for Flatpak (e.g., last time I tried it did not work on Live systems at all), and you don't get portable apps that you can easily carry around on a USB stick. So why not offer both... |
Yeah that's why I said it's not ruled out. I'll add that checkbox back :)
…On Tue, Sep 12, 2017, 10:43 AM probonopd ***@***.***> wrote:
Just be aware that these two solutions are totally different beasts -
whereas with AppImage you get *one file* that runs out of the box on most
Linux desktops, the same cannot be said for Flatpak (e.g., last time I
tried it did not work on Live systems at all), and you don't get portable
apps that you can easily carry around on a USB stick. So why not offer
both...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGxqOoTTEhx-hGvxAh0vsXOnX8td8FlKks5shrSvgaJpZM4M-Lw7>
.
|
Any progress with windows installer? |
A little. I've looked into a few frameworks, but that's about the extent.
Sorry for the delay
…On Fri, Nov 17, 2017 at 4:48 PM Arn ***@***.***> wrote:
Any progress with windows installer?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGxqOqgja4EVdxcQwwLq2xxaRmmbpz1tks5s3htOgaJpZM4M-Lw7>
.
|
Take a look, it may will help you |
Alright thanks!
…On Fri, Nov 17, 2017 at 5:05 PM Arn ***@***.***> wrote:
Take a look
<https://gitlab.com/osslugaru/lugaru/blob/master/.gitlab-ci.yml>, it may
will help you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGxqOibC6YYtI8re6H_F1xHhcODSzxVfks5s3h8zgaJpZM4M-Lw7>
.
|
From @russelltg on November 23, 2016 15:50
Copied from original issue: chigraph/chigraph#16
The text was updated successfully, but these errors were encountered: