×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Talking Ubuntu - Which package to install to get "Redist" package?

    I've written a few programs using Qt Creator and they are on Source Forge - GPL edition of course.

    I've made installers for them on windows, and those work fine.

    Now I'm trying to figure out how to get packages built for Ubuntu [and mac, but that's another post].

    So some questions:
    • Which package do I install on a "bare" ubuntu system [without the SDK installed ] so I can test the apps I've compiled on another system. I want to get the smallest set of packages necessary to run apps. Windows calls this the REDIST package for the SDK. When I run the package installer and search for Qt there are a pile of them and none is the obvious starter that will bring in the rest. I'll need most of the packages for my apps - threads, network, gui, and eventually OpenGL stuff too. And the image plugins too of course.
    • Is there a detailed doc page for how to build a package of my app for Ubuntu? I need which SW is best [best practices GUI package builder if possible], where to put the app [yes I know it's different for every Linux distro, but let's start with one of the most popular Debian/Ubuntu.] , where to put the icon, how to build the launcher etc. A pointer to a page that exists would be great.


    Up to there would be a great start.

    Thanks a bunch
    Windy

    No question Icon in the list? how strange.

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Unhappy Part of the answer... But where are image plugins?

    Here's part of my answer, but it only causes more questions:

    Code:
    xxx@armor-storm:~/code/PhotoResizerQt-build-desktop$ ldd PhotoResizerQt
    	linux-gate.so.1 =>  (0xf77d3000)
    	libQtGui.so.4 => /usr/lib32/libQtGui.so.4 (0xf6d3d000)
    	libQtCore.so.4 => /usr/lib32/libQtCore.so.4 (0xf6abf000)
    	libpthread.so.0 => /lib32/libpthread.so.0 (0xf6aa5000)
    	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf69af000)
    	libm.so.6 => /lib32/libm.so.6 (0xf6989000)
    	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf696a000)
    	libc.so.6 => /lib32/libc.so.6 (0xf6810000)
    	libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf67df000)
    	libaudio.so.2 => /usr/lib32/libaudio.so.2 (0xf67c8000)
    	libglib-2.0.so.0 => /lib32/libglib-2.0.so.0 (0xf66fe000)
    	libpng12.so.0 => /lib32/libpng12.so.0 (0xf66d9000)
    	libz.so.1 => /usr/lib32/libz.so.1 (0xf66c4000)
    	libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf664e000)
    	libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf660e000)
    	libSM.so.6 => /usr/lib32/libSM.so.6 (0xf6605000)
    	libICE.so.6 => /usr/lib32/libICE.so.6 (0xf65ec000)
    	libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf65e2000)
    	libXext.so.6 => /usr/lib32/libXext.so.6 (0xf65d2000)
    	libX11.so.6 => /usr/lib32/libX11.so.6 (0xf64b5000)
    	libdl.so.2 => /lib32/libdl.so.2 (0xf64b0000)
    	libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf64aa000)
    	librt.so.1 => /lib32/librt.so.1 (0xf64a1000)
    	/lib/ld-linux.so.2 (0xf77d4000)
    	libexpat.so.1 => /lib32/libexpat.so.1 (0xf647a000)
    	libXt.so.6 => /usr/lib32/libXt.so.6 (0xf6427000)
    	libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6422000)
    	libpcre.so.3 => /lib32/libpcre.so.3 (0xf63f1000)
    	libuuid.so.1 => /lib32/libuuid.so.1 (0xf63ec000)
    	libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf63d2000)
    	libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf63cc000)
    xxx@armor-storm:~/code/PhotoResizerQt-build-desktop$
    So I loaded the libqtcore4 and libqtgui4 packages and the programs run.
    Except.
    The photo program only has support for PNG files, not JPG files, so I'm missing image plugins.
    And that's not an explicit dependency that ldd can find, apparently.

    • Any notion about how to find out what the package is that contains the image plugins?
    • Are there more surprises of this kind awaiting? Where do I find out in advance
    ?

    Thanks,
    windy

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Ubuntu - Which package to install to get "Redist" package?

    This is kind of off-topic in Qt forums but you can read Debian packaging FAQ as a starting point
    http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
    http://www.debian.org/doc/FAQ/ch-pkgtools.en.html

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Re: Part of the answer... But where are image plugins?

    Turns out that image plugins are installed with the two packges Core and Gui.
    But the JPG image format doesn't work inspite of the fact that the library path is correct and the supportImageFormats code says it should be.
    Here is a thread I'm following that shows other folks are having the same issue: http://developer.qt.nokia.com/forums/viewforum/10/

    Also here are details of my issue: http://www.windyweather.net/wp/2011/...-image-plugin/

    - windy

  5. #5
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Re: Ubuntu - Which package to install to get "Redist" package?

    Thanks divanov. I saw a "deployment on Windows" in the Qt docs and was looking for a "deployment on Linux" or some such, but never saw it, which is why I thought it was on-topic. I'm considering using Debreate or Packin for a package builder now that I'm beginning to have a clue about what is required. All I need to do is get my image plugins to work and I'll be starting to roll.
    - windy

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Ubuntu - Which package to install to get "Redist" package?

    You should take into account that Linux name refers to a kernel, so "Deployment on Linux" is equivalent to "Deployment to a kernel"
    http://doc.qt.nokia.com/latest/deployment-x11.html

  7. #7
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Ubuntu - Which package to install to get "Redist" package?

    I've tried your application on Fedora 14 and there is no problem with loading JPEG images.

  8. #8
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Re: Ubuntu - Which package to install to get "Redist" package?

    Quote Originally Posted by divanov View Post
    I've tried your application on Fedora 14 and there is no problem with loading JPEG images.
    Super. No SDK install? - always works fine if you install the SDK, but I'm trying to make a kit that works without the SDK.
    Which packages did you install to get it going?
    x64 or x86? And which did you build on? - Like I said, it's not an issue if you run on system that you build on.
    The problem is running on a system that is not a "build environment".
    My failing case is build on x86 and run on x64 with libqtcore4 and libqtgui4 packages installed.
    And how do I debug what is wrong with my system? Since all the checks that I know about says it's going to work, but doesn't. and all the plug-ins are there - in all the "theres" that I know about.
    More information that I can provide?

    Thanks for pointer to Kernel Deployment - I would never have guessed that "Kernel" meant Linux, or that x11 meant Linux although that is slightly more likely.

    Wait a sec... This X11 Deployment page seems to be a page for the Ubuntu Disto folks not for me. I don't want to install some other version of the Qt packages, I want my applications to work with the packages that are supplied as part of the Distro. I certainly don't want to link statically. I want to build a package for my app that contains dependencies for the Ubuntu / Debian package names for Qt stuff that is required so that it will be put on the system for my app. That I have figured out - libqtcore4 and libqtgui4 brings in all the stuff - including the plugins - since I found them in a few places as mentioned.

    Thanks,
    W
    Last edited by windyweather; 2011-03-05 at 20:54. Reason: Clarify the X11 deployment...

Similar Threads

  1. Qt SDK "Create package" and executable name
    By virne in forum Nokia N9
    Replies: 1
    Last Post: 2010-08-23, 07:07
  2. Replies: 0
    Last Post: 2008-02-14, 10:27
  3. "cannot create class in system package" help!!
    By seewan22 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-02-04, 00:35
  4. Help! package "com.nokia" doesn't exist
    By mwiezik in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2004-03-11, 04:32
  5. "Unable to create Application Package"
    By DimaA6_ABC_Kiev in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2003-07-08, 15:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×