Comments (40)
I'll keep that in mind. When it's done, I'll let you know.
from ubunsys.
I need external help for do it. Can you help me? I suppose I need a debian directory and with this I had problems in the past (no PPA for now for it). So, with your issue I'm on stand by.
from ubunsys.
No, you don't need deb packaging to support "make install". You can do it in the .pro
file. For an example, check what https://github.com/probonopd/FeedTheMonkey/blob/master/FeedTheMonkey.pro does.
from ubunsys.
Thanks for help, can you modify ubunsys.pro to be compatible with AppImage deploy? I need specific steps.
- Modify .pro which lines specificly?
- Have I to run this https://github.com/probonopd/linuxdeployqt?
from ubunsys.
Hi @adgellida if you can get "make install" to work (without anything specific to AppImage), I can then do the AppImage-specific steps.
from ubunsys.
I don't know how get "make install" to work with your instruccions.
from ubunsys.
Please see
- http://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files
- https://stackoverflow.com/questions/12445445/how-to-configure-qmake-so-my-app-is-install-with-make-install
from ubunsys.
I'm on holidays, when I returned I'll see it.
from ubunsys.
- .pro lines added:
target.path = /usr/bin
icon.path = /usr/share/pixmaps
icon.files = $$PWD/images/ubunsys.ico
desktop.path = /usr/share/applications
desktop.files += ubunsys.desktop
INSTALLS += target desktop icon
- if you do:
qmake
make
sudo make install
The app is installed
What I need to complete now? Thanks for help. Almost there
from ubunsys.
Does it also install the icon and desktop file?
from ubunsys.
Of course, but I get 2 errors for icon and desktop, not file format recognized, but works ok.
from ubunsys.
Looks like a usr/share/pixmaps/ubunsys.ico
is installed. Should be a png, and should be 256x256 pixels large, in usr/share/icons/hicolor/256x256/apps/ubunsys.png
.
from ubunsys.
Done.
from ubunsys.
AppImage:
https://transfer.sh/vMwNJ/ubunsys-git.751e2cc-x86_64.AppImage
Made with:
https://github.com/probonopd/ubunsys/blob/patch-1/.travis.yml
Issues:
Upon first launch it tries to install stuff using apt, rather than copming bundled with that stuff.
Also somehow it blindly assumes I am running zesty, which I am not.
from ubunsys.
We finally got it! Cool, what have you done?
How did you make the final step to create the AppImage file? This way, I won't bother you each time I take out a new realease.
Yes this app has a lot of bugs. On next releases I'll fix a lot of things, add functionalities and redesign anothers. Now is on alpha status and I don't have almost experience. We are in touch.
Thanks for help.
from ubunsys.
We finally got it! Cool, what have you done?
How did you make the final step to create the AppImage file?
https://github.com/probonopd/ubunsys/blob/patch-1/.travis.yml
from ubunsys.
I'll revisit this issue, I don't know when, very busy. Right now bugfixes, enhancements and other personal priorities needed before. Thanks for help and comprension.
from ubunsys.
Sure, no hurries.
from ubunsys.
I'm here.
1.PPA operative. Only 16.04 and 17.04.
2.Appimage possible operative for all versions.
3.Deb package no operative for all versions. I need steps for create deb with linuxdeployqt like stacer app. When ok I'll do PPA for all versions.
4. Can you do linuxdeployqt compatible with 17.04? I had to use 14.04.
Can you help me in step 2 (your recommendation steps) and 3 (I don't now how, like your fpm example in your issue 9?).
I executed linuxdeployqt, and I can execute binary with libraries generated on any ubuntu, but if I try to package it manually permissions and linkage errors appear. With files separately ok, packaging on a deb error.
Thanks.
from ubunsys.
Can you make Ubunsys compile on Ubuntu 14.04? 17.04 is much too new, if you build on that it will never run on older systems.
from ubunsys.
Yes. I need help for 2 and 3 yet.
I think this is that I need, but I have to adequate to ubunsys. DEB section is right now the most important to include libs on deb. Help on it will be really appreciated.
I need to use travis?
from ubunsys.
2.Appimage possible operative for all versions.
If we put binaries that were compiled on 14.04 into an AppImage, then the AppImage will run on 14.04 and all later versions.
3.Deb package no operative for all versions. I need steps for create deb with linuxdeployqt like stacer app. When ok I'll do PPA for all versions.
I can do this, once the application builds correctly on 14.04 - either as a ppa or (preferred) on Travis CI. See https://github.com/probonopd/linuxdeployqt/blob/master/README.md#using-linuxdeployqt-with-travis-ci for an example.
from ubunsys.
Thanks another time! Incredible.
2. I know... I want to say compatible to generate no to execute.
3. If I configure travis and use your yml -> https://github.com/probonopd/ubunsys/blob/patch-1/.travis.yml how can I modify this yml to generate deb package compatible with 14.04 - 17.10 that integrates qt59 shared libs inside the deb?
from ubunsys.
It already does it. But it creates an AppImage, not a deb.
from ubunsys.
And stacer and redtimer how created it? I asked them but no answer yet. They also have AppImage.
from ubunsys.
@fathomssen and/or @oguzhaninan can you help me with this issue? debuild with shared libraries as in your debs. Integrate inside the deb the qt libraries
from ubunsys.
Hi,
Would you give a list of files created after using linuxdeployqt?
from ubunsys.
Hi
And stacer and redtimer how created it? I asked them but no answer yet. They also have AppImage.
Sorry, did not see your question - which issue are you referring to?
My approach, in general, works like this:
- Install Qt from ppa:beineri/opt-qt591-trusty (https://github.com/fathomssen/redtimer/blob/3767a5ef3ad1ef086583c17f1dbda04d10ff74f7/.travis.yml#L76-L84)
- Install FPM (https://github.com/fathomssen/redtimer/blob/3767a5ef3ad1ef086583c17f1dbda04d10ff74f7/.travis.yml#L98-L105)
- Create the AppImage (https://github.com/fathomssen/redtimer/blob/3767a5ef3ad1ef086583c17f1dbda04d10ff74f7/deploy/deploy.linux.sh#L20-L42)
- Create the deb/rpm files (https://github.com/fathomssen/redtimer/blob/3767a5ef3ad1ef086583c17f1dbda04d10ff74f7/.travis.yml#L76-L84)
Step 3 includes additional files that linuxdeployqt is missing (at least in the version that I used).
Step 4 uses the binaries created by linuxdeployqt which are also found in the AppImage package. Then the Debian and RedHat packages are created using FPM.
Best regards
Frederick Thomssen
from ubunsys.
@fathomssen I sended you a message to an incorrect e-mail in your web. With your steps I don't see clear to do it in my case. Can you put the exact steps for my app? I'm very lost. Thanks 4 help on the same day!
@oguzhaninan can you be more clear than @fathomssen? Form me impossible to follow him. Sorry. Thanks 4 help on the same day!
Is this that you need?
On lib
plugins/imageformats
plugins/platforms
Now I have an AppImage and a deb done manual way and uploaded to a PPA, but I need to integrate libs to use the same deb on all ubuntu versions as I say above, not version specific seeing the version of qt on official repositories like now. @probonopd this way we'll learn the 2.
from ubunsys.
I do it using Travis CI. It's my file.
If you are using a debreate, you can easily do it.
Add to postinst file ln -sf "/usr/share/ubunsys/ubunsys" "/usr/bin/ubunsys"
Add to prerm file rm /usr/bin/ubunsys
My DEBIAN folder.
from ubunsys.
debs created like that are hardly ever compliant with the distributions' rules. I'd say, either do "real" packages in the way distributions want them, or use the bundling approach and do, e.g., an AppImage.
from ubunsys.
@probonopd You're right, but it's that much easier for beginners.
from ubunsys.
@oguzhaninan thanks brother. I did it hours ago. With debreate ok, on another machine without qt works ok, but with debian rules I'm trying to push to my PPA and not done by now. Error finding plugins folder. No errors with lib folder. Hours trying... I suspect I need a modification on debian rules file, but which?
dh_install: Cannot find (any matches for) "plugins/imageformats/libqgif.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqgif.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqicns.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqicns.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqico.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqico.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqjp2.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqjp2.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqjpeg.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqjpeg.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqtga.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqtga.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqtiff.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqtiff.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqwbmp.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqwbmp.so dh_install: Cannot find (any matches for) "plugins/imageformats/libqwebp.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/imageformats/libqwebp.so dh_install: Cannot find (any matches for) "plugins/platforms/libqxcb.so" (tried in "." and "debian/tmp") dh_install: ubunsys missing files: plugins/platforms/libqxcb.so dh_install: missing files, aborting debian/rules:20: recipe for target 'binary' failed make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 -------------------------------------------------------------------------------- Build finished at 20170909-0858 Finished -------- E: Build failure (dpkg-buildpackage died)
from ubunsys.
Can you send me the Debian file? with transfer.sh
from ubunsys.
debian folder?
from ubunsys.
deb package
from ubunsys.
This night I'll send all necessary. Can also stacer have a PPA with shared libs? Thanks.
from ubunsys.
@fathomssen @probonopd @oguzhaninan all necessary is on the code:
- debian folder. Here we need a modification of rules file surely to build on launchpad with success.
- debreate folder. Here is the project, not following debian rules.
- @oguzhaninan you can use this case to put stacer on PPA not depending system libraries.
- Next steps, snap and flatpak, xd.
from ubunsys.
@fathomssen @probonopd @oguzhaninan, this is the status, last commit is the latest code:
- PPA
PPA with no shared libraries - OK. Using Qt 5.2.1 always.
PPA with shared libraries - not possible for me. - deb
17.04 deb usable in more versions. - AppImage. Pendant fix. *.desktop. Not updated.
- optional
flatpak - pending.
snap - pending.
from ubunsys.
For now always using Qt 5.2.1 libs from official sources for maximun compatibility and less work for packaging.
from ubunsys.
Related Issues (13)
- Qt 5.7 Support HOT 2
- Correct desktop file missing in AppImage HOT 10
- Exclusively use visudo to edit file /etc/sudoers HOT 1
- apt-fast is broken HOT 3
- 32bits package or recompiling... HOT 5
- PPA for Ubuntu 18.10 Cosmic Cuttlefish HOT 1
- Lock screen trigger not works HOT 1
- No realease file in ppa (Ubuntu 20.04) HOT 2
- ubuntu 16.04 support HOT 2
- Problems with "enable sudo without pass" HOT 1
- app version for 16.04 can't create necessary archives and folders HOT 2
- Enable compatibility for all distro versions with latest Qt version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubunsys.