Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Running the Built Desktop Client from IDE gives error: "The Code execution cannot proceed because Qt5Cored.dll was not found. Reinstalling the program may fix this probem"

Answered

Comments

7 comments

  • Andrey Terentyev
    • Network Optix team

    Hi,

    Could not understand the issue "A dependent dll was not found"

    At first glance, since you're building a debug version, the debug version of Qt should be supplied.

    I need to check it in my lab to say for sure. I'll get back later.

    JIRA-VMS-39110

     

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Pranay Singh ,

    I managed to reproduce the issue.

    It's a bug in the CMakeSettings.json.

    Environment variable is defined like this

    "qtdir": "${env.USERPROFILE}/.conan/data/qt/5.15.2/_/_/package/77f30be2ea492b561ef6a5684bdc283505176ad0/bin"

    meanwhile, during the configuration stage, Qt is installed to a different location:

    \nx_open-build-debug\.conan\data\qt\5.15.2\_\_\package\6b084d9a731e73c59481635bb17a98a332ed96d9

    The variable should be defined this way for every configuration you need:

     "qtdir": "${projectDir}-build-debug/.conan/data/qt/5.15.2/_/_/package/6b084d9a731e73c59481635bb17a98a332ed96d9/bin"

    Once the variable is changed, the binary starts successfully.

    See the screenshot for detail.

    1
  • Pranay Singh

    Andrey Terentyev Thank you so much for the assistance. I was able to resolve it using your detailed screenshots. I appreciate. Thanks.

    0
  • Andrey Terentyev
    • Network Optix team

    Hello,

    The bug has been fixed. You can rebase to the latest commit and try the updated code.

    0
  • Pranay Singh

    Andrey Terentyev Thanks!

    0
  • Pranay Singh

    Hi Andrey Terentyev,

    I really appreciate your consistent support. You remember this issue you fixed? 
    We have updated to vms_5.1 now and it still persists. 

    Simple steps:

    1. git clone https://github.com/networkoptix/nx_open.git

    2. cd nx_open

    3. git checkout vms_5.1

    4. build.bat

    It first completes the generation step, that gives me a cmakesettings.json file. Then it proceeds to the building step and completes it successfully. 

    problem:

    the executable in nx_open-build/bin/ does not work. Double clicking it gives same error windows: 

    this and a few more, like..

    one after another as you click "OK" 

    How I eventually make it work:

    So I can clearly understand it is not able to find the qt binaries whose path are supposed to be mentioned in generated cmakesettings.json file. But Anyway,

    1. I go to that path manually (C:/Users/KMG/Desktop/NX/v5.1/nx_open-build/.conan/data/qt/5.15.6/_/_/package/1f73d4233187b0ed7afcdb5b1c8d8755a50170bc/bin) 

    2. copy everything from there and paste it in the folder where the executable is(nx_open-build/bin/).

    3. This makes the executable work but clearly is a very dirty way of doing it. Those files are upto of 3 GB.

    My Suspicion:

    The path mentioned in the cmakesettings.json file.

    They still seem not to be correct, but I would anyway share the screenshot.

    PS: the actual path where the qt binaries are found to be present after the build is: C:/Users/KMG/Desktop/NX/v5.1/nx_open-build/.conan/data/qt/5.15.6/_/_/package/1f73d4233187b0ed7afcdb5b1c8d8755a50170bc/bin

    and here is cmakesettings.json

    The Debug configs have this path, which is clearly wrong as it was earlier:

    you see the ${env.USERPROFILE} ? that's wrong as you stated in previous answers. Also the name of parent folder of bin (77f30be2ea492b561ef6a5684bdc283505176ad0) is also wrong. The version of qt(5.15.2) is also wrong.
    Alright, and for the Release configurations, the path is:
    and this here seems to be the correct path. Everything is correct here, the qt version(5.15.6) the parent folder of bin and the complete path itself.
    But the fact is, I am not building the Release configuration, I am building the Debug configuration. Where the path is wrong.
    I have also tried to manually edit the path and rebuild but the error didn't resolve. I really need help on this. 

     

    Your efforts are appreciated by our organization and team. 

    Thanks.

    0
  • Pranay Singh

    Also, another weird things..
    You noticed I said i am building the Debug version ? 

    because "build.bat" command just builds the debug version(correct me if i am wrong) and you need to add 

    -DdeveloperBuild=OFF

    to get a Release build as per ReadMe.

    But, the build folder I am getting once running this command "build.bat" is 
    nx_open-build and NOT nx_open-build-debug as cmakesettings.json file suggests.

    So there is lot of confusion, first:

    1. Which version I am building using build.bat. If Debug, why does it not holds the correct name of the directory(nx_open-build-debug)

    2. Why it does not have the correct path to qt accordingly.

    Kindly Help

    Thanks

    0

Please sign in to leave a comment.