Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with creating a run configuration, library file not found.
Forum Updated to NodeBB v4.3 + New Features

Problem with creating a run configuration, library file not found.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 323 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mahmoodn
    wrote on 29 Jul 2022, 11:41 last edited by mahmoodn
    #1

    Hi
    On a terminal, I am able to run a program this:

    $ cat run2.sh 
    #!/bin/bash
    export CUDA_VERSION="11.6"; export CUDA_VISIBLE_DEVICES="0" ; export TRACES_FOLDER=/home/mnaderan/accel-sim-framework/trace-test/traces; CUDA_INJECTION64_PATH=/home/mnaderan/accel-sim-framework/util/tracer_nvbit/tracer_tool/tracer_tool.so /home/mnaderan/gpu-apps/cactus/gms mdrun -notunepme -pme gpu -nb gpu -v -deffnm ./data_dirs/npt 
    $ ./run2.sh
        PROGRAM OUTPUT
    

    In Qt creator, I created a run configuration as you can see in the picture below. The executable is run2.sh and the working directory is trace-test/ But it complains about not finding a library file. That is weird because I put that in the working directory and as I said, there is no problem in terminal.

    5c539a7b-a6a1-45a7-a46e-831af1892bd6-image.png
    Any idea on how to fix that?

    J 1 Reply Last reply 29 Jul 2022, 11:50
    0
    • M mahmoodn
      29 Jul 2022, 11:41

      Hi
      On a terminal, I am able to run a program this:

      $ cat run2.sh 
      #!/bin/bash
      export CUDA_VERSION="11.6"; export CUDA_VISIBLE_DEVICES="0" ; export TRACES_FOLDER=/home/mnaderan/accel-sim-framework/trace-test/traces; CUDA_INJECTION64_PATH=/home/mnaderan/accel-sim-framework/util/tracer_nvbit/tracer_tool/tracer_tool.so /home/mnaderan/gpu-apps/cactus/gms mdrun -notunepme -pme gpu -nb gpu -v -deffnm ./data_dirs/npt 
      $ ./run2.sh
          PROGRAM OUTPUT
      

      In Qt creator, I created a run configuration as you can see in the picture below. The executable is run2.sh and the working directory is trace-test/ But it complains about not finding a library file. That is weird because I put that in the working directory and as I said, there is no problem in terminal.

      5c539a7b-a6a1-45a7-a46e-831af1892bd6-image.png
      Any idea on how to fix that?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Jul 2022, 11:50 last edited by jsulm
      #2

      @mahmoodn said in Problem with creating a run configuration, library file not found.:

      Any idea on how to fix that?

      In you shell script set LD_LIBRARY_PATH to point to the folder there this lib is before you execute the executable.
      As alternative you can also set LD_LIBRARY_PATH in "Environment".

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mahmoodn
        wrote on 29 Jul 2022, 11:57 last edited by
        #3

        Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?

        J J 2 Replies Last reply 29 Jul 2022, 11:58
        0
        • M mahmoodn
          29 Jul 2022, 11:57

          Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 29 Jul 2022, 11:58 last edited by
          #4

          @mahmoodn If you did not change anything it should not build after the first run.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M mahmoodn
            29 Jul 2022, 11:57

            Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?

            J Offline
            J Offline
            JonB
            wrote on 29 Jul 2022, 12:03 last edited by JonB
            #5

            @mahmoodn
            As @jsulm says you should find it does not rebuild if no change and be happy to run that way.

            If you really want there is another button with the green icon on it which re-runs but does not bother to (check for) rebuild. Look for a much smaller version of the green-play icon, it is on the "toolbar" of one of the view/panes shown at the bottom, something like the "build output" one.

            1 Reply Last reply
            3
            • M Offline
              M Offline
              mahmoodn
              wrote on 29 Jul 2022, 12:11 last edited by
              #6

              Yes I see it. thank you.

              1 Reply Last reply
              0

              1/6

              29 Jul 2022, 11:41

              • Login

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