Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Installer framework linux, how to copy(or extract) 4 Qt shared libraries in /usr/local/lib ?
Forum Updated to NodeBB v4.3 + New Features

Qt Installer framework linux, how to copy(or extract) 4 Qt shared libraries in /usr/local/lib ?

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stephane78
    wrote on 9 Feb 2016, 10:14 last edited by A Former User
    #1

    Hi,
    I did'nt found how to copy(or extract) 4 Qt shared libraries that are in a second component of my installer in /usr/local/lib.
    I have a first component with my app and the second component with the 4 Qt shared libraries.I am under linux and use the qt installer framework.
    Has someone an idea ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stephane78
      wrote on 9 Feb 2016, 10:19 last edited by stephane78 2 Sept 2016, 10:19
      #2

      I have tried that :

      function Component()
      {
      component.addOperation("Copy", "libQt5Core.so.5", "/usr/local/lib/libQt5Core.so.5");
          component.addOperation("Copy", "libQt5Gui.so.5", "/usr/local/lib/libQt5Gui.so.5");
          component.addOperation("Copy", "libQt5Network.so.5", "/usr/local/lib/libQt5Network.so.5");
          component.addOperation("Copy", "libQt5Widgets.so.5", "/usr/local/lib/libQt5Widgets.so.5");
      }
      

      and

      function Component()
      {
          component.addOperation("Extract", "libQt5Core.so.5", "/usr/local/lib/");
          component.addOperation("Extract", "libQt5Gui.so.5", "/usr/local/lib/");
          component.addOperation("Extract", "libQt5Network.so.5", "/usr/local/lib/");
          component.addOperation("Extract", "libQt5Widgets.so.5", "/usr/local/lib/");
      } 
      

      in a script but it is not ok.with the copy instruction I had an error messagebox that the source file doesn't exist...

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stephane78
        wrote on 9 Feb 2016, 10:48 last edited by
        #3

        Instead of copying the shared libraries in /usr/local/lib I have tried that too in the script :

        function Component()
        {
            component.addOperation("EnvironmentVariable","LD_LIBRARY_PATH","@TargetDir@/Dirappname:$LD_LIBRARY_PATH");
        } 
        
        
        

        but LD_LIBRARY_PATH is empty if I do echo on it.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stephane78
          wrote on 9 Feb 2016, 15:18 last edited by stephane78 2 Sept 2016, 15:19
          #4

          I have solved this problem by watching the example modifyextract...

          1 Reply Last reply
          0

          1/4

          9 Feb 2016, 10:14

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved