Opensteer project file conversion and compilation - c++

Opensteer is a library which aims to provide agent behaviors for real time games.
I tried to compile it, but I have an error and I have no clue what it means. When I click on it, it opens a MSVC file.
Error 3 error MSB3073: The command "mkdir "C:\opensteer\win32\\lib"
copy "C:\opensteer\win32\Debug\opensteer.lib" "C:\opensteer\win32\\lib"
:VCEnd" exited with code 1. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113
I've no idea why there is somehow a folder name thing missing between the two \\
It's only the source package provided here http://sourceforge.net/projects/opensteer/files/opensteer/OpenSteer%200.8.2/

Related

MS Visual c++ "The number of source files and corresponding outputs must match"

I'm trying to compile my code on c++ in msVisual2019 but I get an error at every try:
Severity Code Description Project File Line Suppression State Error MSB6001 Invalid command line switch for "CL.exe". System.ArgumentException: The number of source files and corresponding outputs must match. at Microsoft.Build.Shared.ErrorUtilities.ThrowArgument(Exception innerException, String resourceName, Object[] args) at Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.RemoveDependenciesFromEntryIfMissing(ITaskItem[] source, ITaskItem[] correspondingOutputs) at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) at Microsoft.Build.Utilities.ToolTask.Execute() HelloWorld C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 687
This first happened after I created (on accident) a header file inside "Source Files" (img attached), compiled it, then realized my mistake and placed it back in "Header Files". Now every time I build it, even after every change I make...
I can't get this error to go away and haven't found a solution to a similar problem yet.
Any help would be greatly apreciated, thanks.
[mistake, build after][1]
[correction, build after][2]
[errors displayed][3]
[1]: https://i.stack.imgur.com/SDAzP.png
[2]: https://i.stack.imgur.com/PG54S.png
[3]: https://i.stack.imgur.com/ZhEsH.png
Preprocess to a File doesn't seem like a good idea according to its description: This option suppresses compilation... I'm glad you set it to No. – rturrado Jul 10 at 21:04
Thanks #rturrado :D

C++ cannot open source file "hboost/predef/os/cygwin.h

I'm working with Houdini HDK (API), when I include
#include<OP/OP_OperatorTable.h> or some other preprocessor i get the error message
the visual studio gives me this error, C++ cannot open source file "hboost/predef/os/cygwin.h
the full error message is: Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file "hboost/predef/os/cygwin.h" NodeCreation C:\Program Files\Side Effects Software\Houdini 17.5.467\toolkit\include\hboost\predef\os.h
After I see this message for the first time I thought I should install Cygwin for windows, and I install the Cygwin but I get the error again
there's no cygwin.h file in this path, visual studio is searching for this file in this path
what's the problem and what should I do?
If you dont have cygwin.h that means you miss something when you install the Houdini API. I try a FULL installation by checking ALL the buttons below:
At the end, you will have this in your installation folder :
I am unable to tell you which one is responsible for installing "cygwin.h" but that should solve your problem.

Build Error in VC++11 Troubles - MSB3073 error code 127

I am attempting to build a project in VS Express 2012 that was not created by me on my computer for the first time and am getting the following build error:
error MSB3073: The command "c:\cygwin\bin\bash -c "CC=/usr/bin/i686-w64-mingw32-gcc
CXX=/usr/bin/i686-w64-mingw32-g++ AR=/usr/bin/i686-w64-mingw32-ar
OBJCOPY=/usr/bin/i686-w64-mingw32-objcopy RANLIB=/usr/bin/i686-w64-mingw32-ranlib
WINDRES=/usr/bin/i686-w64-mingw32-windres make MODEL=mdi -j "" exited with code 127.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets
I am very unfamiliar with Visual Studio make commands (and have no idea what this one is trying to do) let alone error codes and can't seem to find anywhere what exit code 127 means in relation to the MSB3073 error. I originally did not have cygwin or mingw installed on my computer and suspected that to be the issue, however after installing both I am getting the same error and I'm now out of ideas. Hopefully this is enough information to generate some thoughts. Thanks!

Unknown errors in makefile in Qt application

I did some changes like copying .dll (libmysql.dll) in project directories, and included include and libs path in mysql.pro. So now when I debug any program I get some error as follows:
'cl' is not recognized as an internal or external command, operable
program or batch file. jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile.Debug
[debug\main.obj] Error 1
'cl' is not recognized as an internal or external command, operable
program or batch file. jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile.Debug
[debug\client.obj] Error 1 jom:
D:\qt_projects\build-zerocopy-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile
[debug] Error 2 10:48:01: The process
"D:\QT\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while
building/deploying project zerocopy (kit: Desktop Qt 5.0.2 MSVC2010
32bit) When executing step 'Make' 10:48:01: Elapsed time: 00:01.
Is this error because of those changes? I am running a totally different program i.e I haven't included any sql header or anything. Please help me out.
Check my Tool Chains:
The important thing is the call of "C:\Program Files...vcvars32.bat" which is called as initialization. This batch file extends the PATH variables and does some other things so the calls of cl.exe and link.exe etc work. Maybe you can manually configure something like that as well. In my case, Qt Creator just auto-detected it and it has always been there.
Note that these settings are for Windows XP 32bit with Visual Studio 2008

Visual C++ build error: Failed to register output

So I have this project I'm working on, and every time I build, it builds then executes the program, and then finishes with a build error. Why does this happen? I can't seem to find in the project properties where it would execute the file on the build.
It is kind of annoying, and it also ends up spawning an error. Here's an excerpt from the output
2>Link:
2> Generating code
2>c:\users\d0c\desktop\jlrria.lottery.repo\trunc\hash\hl_hashwrapper.h(277): warning C4706: assignment within conditional expression
2> Finished generating code
2> lottery-gui.vcxproj -> C:\Users\d0c\Desktop\jlrria.Lottery.repo\trunc\build\Release\lotteryslayer.exe
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(741,5): warning MSB3073: The command ""C:\Users\d0c\Desktop\jlrria.Lottery.repo\trunc\build\Release\lotteryslayer.exe" /RegServerRedirect" exited with code 2.
2> The previous error was converted to a warning because the task was called with ContinueOnError=true.
2> Build continuing because "ContinueOnError" on the task "Exec" is set to "true".<br>
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
2>
2>Build FAILED.
So I guess I'm looking for help with two things
First and most importantly: Why is it executing the build program
Second: Why am I getting this error?
thanks.
ALSO
There are no items in the post build, otherwise, the log above would say "post-build" :p
Start with Visual Studio with Administrator rights. You can do so by right clicking on VS shortcut and Select Run As Administrator. Or create a shortcut where you would enable Run As Admin.
Reason:
Look at the error:
error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
Also, it seems to be a DLL/ActiveX control project. Look at: Linker->General->Register Output and set it to NO.
You are building an ATL project? Seems to be a bug in VS2010, http://social.msdn.microsoft.com/Forums/en/vcprerelease/thread/11f01ceb-52a4-438f-b7ef-727ce7a3e191 concerning ATL projects.