Problems opening c++ software on another PC

Asked

Viewed 196 times

0

I am developing a software in c++ using Visual Studio 2015, and I am using two external libraries, OPENCV and Flycapture2. I developed the software and it runs normally on my computer, but at the time of moving to another computer it says that dll is missing,

what I have tried: I set up include paths and release mode library, managed the executable, installed the visual c++ redisbutable, but still, the program does not open on another computer.

What I must do?

  • You get some error message while running it on another machine?

  • You need to check which Dlls it is using and copy them to the machines you want it to run.

  • @Renan The following message appears: The application cannot be initialized correctly(0xc000007b) Click OK to close

  • @Reginaldorigo then before appeared message that was missing some DLL, but I already added it and what appears to me now is the error I commented above

  • This error is very generic, it can have zillions of reasons. It has a mistake of logic, structure, programming, I don’t know what somewhere. But as it runs on your machine and would guess that the DLL version you put on the other machine is not the same as the one running on your.

  • Did you compile it as a release? I say this because compiling as Debug it uses a debug version of Runtime that I think is not included in the visual c++ redist

  • This happened when I wanted to play a little game I created for other computers. What I did was I added the Dlls that the computer asked for but I put them in the folder where the bootable was and it worked .

Show 2 more comments

1 answer

0


There is a program called Dependency Walker, that can analyze the dependencies of an executable file. Try opening your program with it and then play all the DLL files it indicates in the same folder as your program (including Visual C++ Runtime).

I have never used these libraries, but I believe that the DLL’s should be in the folder you compiled them.

  • Thanks, using this Dependency Walker appeared the missing dlls on the other computer, and when adding them to the file folder get to run the program.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.