Results 1 to 9 of 9

Thread: Minimal Linux dist to run Qt-app from

  1. #1
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Minimal Linux dist to run Qt-app from

    Hi

    Im currently playing around with Qt and are looking for the fastest way to boot up and get a Qt-app visible (QtWebKit with flash inside).

    I would assume that a minimal Linux dist would be a good thing to use.
    Since this could not be a very uncommon thing to do would I imagine that there are some ready to use dist somewhere?

    How are you all doing it?

    FYI: I'm booting from a USB-stick on VIA Pico hardware.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    Something that would be fun to do would be to create a busybox-based minimal distro booting from an initramfs (i.e. integrated into the kernel). Then you would use Qt for Embedded Linux for your application - avoiding X11 and other sources of complexity and added boot time.

    That is how you build embedded systems, but usually not how you build for desktop computers.

  3. #3
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    Quote Originally Posted by e8johan View Post
    Something that would be fun to do would be to create a busybox-based minimal distro booting from an initramfs (i.e. integrated into the kernel). Then you would use Qt for Embedded Linux for your application - avoiding X11 and other sources of complexity and added boot time.

    That is how you build embedded systems, but usually not how you build for desktop computers.
    Seems a bit complex for me, but sounds good.

  4. #4
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    You could use BuildRoot to build a minimal busybox system for x86... aught to be simple enough. :-)

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Minimal Linux dist to run Qt-app from

    Modern X11 based systems are able to bootup within 10 seconds if you turn off everything that you don't need so you probably don't need any special distros, try some lightweight desktop one and strip it from everything you don't need.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    Quote Originally Posted by wysota View Post
    Modern X11 based systems are able to bootup within 10 seconds if you turn off everything that you don't need so you probably don't need any special distros, try some lightweight desktop one and strip it from everything you don't need.
    Qt does not need X11 (?) so I do not need anything X11 based?

    Boot time is a big thing in my application so the faster the better.
    Running it on a 1 Ghz CPU / USB Stick that limits the speed.

  7. #7
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    Qt for embedded Linux does not need X11, Qt/X11 needs X11. When using Qt for embedded Linux, you need to provide it with a framebuffer, keyboard and pointer device. That is pretty much it.

    Putting everything in an initramfs, means that as soon as the kernel has been loaded, everything will run from RAM, i.e. be really quick.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Minimal Linux dist to run Qt-app from

    Quote Originally Posted by AnAx View Post
    Boot time is a big thing in my application so the faster the better.
    In that case Qt/Embedded is better but it will be harder to deploy it.
    Running it on a 1 Ghz CPU / USB Stick that limits the speed.
    Come on, one can do miracles with 1GHz
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Minimal Linux dist to run Qt-app from

    Quote Originally Posted by e8johan View Post
    Qt for embedded Linux does not need X11, Qt/X11 needs X11. When using Qt for embedded Linux, you need to provide it with a framebuffer, keyboard and pointer device. That is pretty much it.

    Putting everything in an initramfs, means that as soon as the kernel has been loaded, everything will run from RAM, i.e. be really quick.
    Is there anything out there ready-to-use so I only need to add my compiled program?

Similar Threads

  1. Which Linux distribution is best for building compatible apps?
    By Oxidative in forum Installation and Deployment
    Replies: 8
    Last Post: 9th July 2009, 16:13
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Replies: 19
    Last Post: 21st January 2008, 09:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.