I recently developed a SDL2 game using C++ and the latest version of CodeBlocks. The game works just fine if I run it inside the IDE - the problem is that if I try to run it outside CodeBlocks it will get an error:
The application was unable to start correctly(0xc000007b)
What should I do in order to solve it?
You need to ship/install all libraries that your application uses. This includes SDL, but also your compilers runtime libraries.
If you don't include all libraries your application links with, then it cannot run.
And no, just linking with them locally is not enough. You need to ship them to the other computer that needs to run the program.
Related
I am working in a C++ project with OpenCV in Windows and VSCode. The project is meant to be built and run in a Docker Container, thus I do not need OpenCV in Windows. If needed, I use OpenCV as installed in WSL.
VSCode complains all the time in #include <opencv2/opencv.hpp> about not being able to find the library, and consequently it refuses to look for errors along the rest of the file.
I do not need OpenCV and I know that the compiling process can become tedious over Windows, so I would like VSCode to ignore this error and go on checking the rest of the files. Having IntelliSense working with OpenCV classes would be ideal.
Is there some way to have this without installing OpenCV in Windows?
This sounds like a good use case for VS Code Dev Containers. Dev containers let you use a docker file to define an isolated linux based development environment—including which tools and libraries are installed—in a reproducible way that does not effect your local machine.
Check out the Dev Container docs and the example c++ dev container for help getting started. If you already have an OpenCV docker image, you can use this as the base for your dev cotntainer
If you are using VSCode on Windows and would like it to OpenCV that is in WSL, you will need to install an extension on VSCode called Remote - WSL, developed by Microsoft.
You'll be able to use Linux specific toolchains, utilities and even run Linux-based applications directly from VSCode on Windows..
I've just received a MacBook Pro for cross-platform game development. I've been making an SDL2 game project on CodeBlocks for Windows and Linux, and everything's fine on both operating systems so far. However, when it comes to Mac OS X, it seems I've got to use XCode instead.
I could figure out how to create a working SDL project in XCode. However, I would like to create an XCode project that shares the same source code as my CodeBlocks project, which happens to be on a Git repository. I've yet to find out how to do that. However, I've already put the #ifdef platform preprocessor instructions in my source code.
Could you give me some tips for doing that?
Use CMake to generate platform-specific makefiles/IDE projects.
My experience with C++, GCC, MinGW and Cygwin is very limited. However, I already tested it and realized that Cygwin is not the ideal solution for what I am trying to do. Even though a GTK+ program with GTKWebkit works fine on Cygwin, it's not that great in terms of packaging the final project to a single .exe. The dependency on the cywin1.dll, etc... is a deal breaker.
I tested MinGW and it works flawlessly for a standard GTK only application in Windows. And the file size is great!
I tested a standard GCC compiler to compile a GTK & WebKitGtk application on Mac and it worked flawlessly.
But in the windows world where I am getting confused with GTK and WebkitGTK. What I want to do is compile a sample WebkitGTK application on Windows using MinGW. So, all the required libraries are statically linked and has a single .exe.
What are my choices? How do I actually build WebsiteGTK on Windows? Please give me the tools and as much details as you can.
FYI, QtWebkit is not going to cut it. Their licensing terms are not that commercial friendly.
I never did get WebKitGtk to compile on Windows. I think I could have got it to work using cygwin, but that's a non-starter for the project I'm working on.
I ended up using Chromium Embedded Framework instead: https://code.google.com/p/chromiumembedded/. It has clear instructions and sample apps for Mac, Linux, Windows, and mobile.
Here someone says that the easiest way to do that it's to cross-compile from virtual machine. Actually, there is binary there.
He uses OpenSUSE booted through VirtualBox. Then, using osc tool, get the mingw32-webkitgtk from windows:mingw:win32 and build it with osc.
is there any Binary Decision diagram (BDD) is available in windows.i tried to run cudd in vc++6.0..which is mention link
http://web.cecs.pdx.edu/~alanmi/research/soft/softPorts.htm
but it isn't working properly.i get compiler error while running a sample code
I compiled CUDD for Windows, but using MinGW not a Microsoft environment. My goal was that compiler since I use Dev-C as IDE.
I did a first try using Cygwin, but with no luck. The second try was with MSYS, an environment to run unix commands that come with MinGW for Windows. Note that CUDD uses a couple of POSIX libraries (such as ). Luckily they are used only in two secondary functions: CPU stats and a kind of fork that I didn't fully understood. Since I didn't need those, I simply commented the portion of code (in util/cpu_stats.c).
Then you only need to write a Makefile for MinGW in order to link the library!
If you need it, I can send to you the library already compiled.
I have a deployment problem after having compiled the release of my program. I can use it on my computer, but it doesn't work on another computer unless I install Qt on it.
I tried to compile with MSVC2012 and MinGW:
With MSVC2012, the program doesn't show any error messages.
With MinGW the program sends me a c++ runtime error.
You have three options:
Compile Qt with static libraries and link you program with those static libraries. All dependencies will be included in the program binary.
Ship Qt dynamic libraries that your program needs with your program.
Ask the user to install Qt libraries with the same major version you used to compile your program.
I'm not a Windows guys so I can't tell you Windows specifics, but these will do the job.