How to Build OOLua in Visual Studio 2013 - c++

I'm currently trying to build OOLua in Visual Studio 2013. I have run the "premake4 vs2013" command and got a oolua.sln which looks like this:
http://imgur.com/jwP39pv
If I only build the oolua project is succeeds, but whenever I try to build the solution, I get a lot of errors everywhere. Am I supposed to build the whole solution or just the oolua project? How do I build the whole solution if that's what I have to do?

You have built the static library and that is all that is required. The solution includes all the tests, which if you want to run them requires Gmock and CppUnit.

Related

Visual studio Python extension mixed mode debugging on CMake project

I'm trying to create a C++ Python extension using pybind11 and CMake, and would like to take advantage of visual studio's mixed mode debugging (see) for developing the extension.
I tried following the MSDN guide, and was able to create an extension and debug it using visual studio solution configurations. However, trying to recreate the project with CMake and debug it, breakpoints inside the C++ code are not triggered. I tried recreating the project twice:
a full CMake project (i.e. first create a folder with a CMake file then open it in VS).
a Python solution with a CMake subproject (adding the build folder to python search paths to access the extension).
In both methods C++ breakpoints are not triggered. Is there any way to make this work? Something I'm missing? I know there is a VSCode plugin which enables something similar. I'm currently using it, however I'd like to know if it is possible in Visual Studio proper.
Versions:
Visual Studio 2022
CMake 3.18
Python 3.8 (with debug symbols installed), however this is not the Python distributed with Visual Studio

How to build and run in vscode

Previously I was using Visual Studio, and now I'm trying to use vscode. Overall I love it, but there are a few functionalities from Visual Studio which I'm missing. Maybe the most important one is a combination of build and run. In Visual Studio when I pressed F5 to run my c++ project, it was performing a build if there were modified files in the project. I can't find that here, I have to manually do a build, then run. Am I missing something?
Thanks in advance

Is is possible to build codes using Bazel in Visual Studio?

I'm currently following this instruction to build C++ code with tensorflow.
What I want to do is to run the execution (binary) file with Visual Studio's debug mode.
To do this, I think I have to build a binary file via Visual Studio first so that I can set a breakpoint and execute the code line by line.
But problem is that building the code in VS is not that simple because it uses bazel command instead of g++.
Is is possible to build codes using Bazel in Visual Studio?
As of version 0.22.0, there is no plugin support for Visual Studio: see list of supported IDEs and editors.
There is, however, an API to build IDE plugins.
In the meantime, https://github.com/tmandry/lavender has been published. This is a project generator that generates a Visual Studio Solution file and project files given Bazel build files (WORKSPACE, BUILD, etc.). Also debugging works surprisingly well.

How to add GPUMLib in Visual Studio?

I'm trying to use the c++ machine learning library GPUMLib downloaded at: http://sourceforge.net/projects/gpumlib/
How can I add this project in Visual studio in order to use it?
I build it with cmake. I put the source floder "GPUMLib" and cmake.exe in the same floder. In CMD ues commod 'cmake GPUMLib' , if you are fortunatrly enough you will get a GPUMLib Microsoft Visual Studio solution file. Open the sulotion file use VS,you can build it.
One problem may arise, the ReductionKernels project can not load correctly, just remove the ** Fliters Files.

TInyXML++ Premake with Visual Studio 2010

I tried to compile TinyXML++(or TICPP) using premake4 with these settings: "premake4 vs2010 [--unicode] [--ticpp-shared] [--dynamic-runtime]". It compiles the .libs but I can't compile TiCPP.vcxproj because the compiler says "Unable to start program c:\ticpp\lib\ticpp.lib. This file is an unrecognized or unsupported binary file." Anyone got a clue how to make this work? Oh and one more thing, why does Windows ask me if I want to open a .vcxproj with Visual Studio 2010 or Visual Studio 10? How do I make it so that it only picks one, and what's the difference. I tried the first answer, but it didn't work.
Download last version of premake, it does support VS2010
I have compiled tinyXML++ using it, by executing:
premake4 vs2010
it does generate valid sln and vcxproj files.
From oolua build instructions
Visual Studio 2010 (vs10) is not currently supported by premake yet if you have vs10 installed you can run the following command, it will generate vs9 projects and update them using the vs10 command line tool.
premake4 vs2010
As vs10 adds files which have not been created directly by premake, a specific clean operation has been added to the premake script.
premake4 cleanVS10
Scripts to build a local install, build and run unit test etc. have been added for vs10 in the script directory.
Notes:
* oolua's premake4 script may not be the same as yours.
* VS2010 support is borked in premake. Current workaround is to make a 2008 project and make VS2010 convert it for you.