Results 1 to 2 of 2

Thread: Now to deploy an application using Qt Assistant for linux

  1. #1
    Join Date
    Jan 2016
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Now to deploy an application using Qt Assistant for linux

    I have created a C++ Qt application that uses Qt assistant for the help system and would like to deploy it for Linux.

    To simulate a target system I created a new directory on my development system in my user directory “/home/username/myapplication” and using linuxdeployqt created the .AppImage of the application and placed this in that new directory and with all .htnl and .png files for the help in a sub-directory Documentation. In my assistant.cpp file function startAssistant has the app and args variables as:

    QString app = QLatin1String("/home/username/Qt/5.12.3/gcc_64/bin/assistant");

    args << QLatin1String("-collectionFile")
    << QLatin1String("./Documentation/myApplication.qhc")
    << QLatin1String("-enableRemoteControl");

    This all works great but I don’t want to have to have Qt installed on the target system.

    I tried just copying the assistant executable from /home/username/Qt/5.12.3/gcc_64/bin/ to /home/username/myapplication/ and changing the QString app to “assistant” then when I invoked help the assistant was found because I didn’t get the error message but no help dialog appeared either.

    I also tried using linuxdeployqt to create an .AppImage using the assistant executable but that just took me to dependency hell due to libmysqlclient.so.18 which I couldn’t find a way to install it. I assume that because it does work with the QString app set to "/home/username/Qt/5.12.3/gcc_64/bin/assistant" everything I need should already be on my development system. So much for assuming.

    Any help would be appreciated. No pun intended.

  2. #2
    Join Date
    Jan 2016
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Now to deploy an application using Qt Assistant for linux

    Problem solved:

    I just needed to add option -no-plugins to my linuxdeployqt command for creating assistant-x86_64.AppImage.

Similar Threads

  1. Deploy QT on various Linux distributions
    By zvika in forum Installation and Deployment
    Replies: 3
    Last Post: 27th March 2012, 01:02
  2. Deploy app in Linux
    By The_Fallen in forum Installation and Deployment
    Replies: 4
    Last Post: 13th October 2010, 16:43
  3. How to deploy application using shared library in Linux
    By cutie.monkey in forum Installation and Deployment
    Replies: 9
    Last Post: 21st January 2010, 19:41
  4. qt assistant on linux
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 16:27
  5. Qt assistant under linux
    By jochen_r in forum Newbie
    Replies: 8
    Last Post: 10th January 2006, 09:39

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.