I have been trying to install the ImageView plugin for Far Manager, but I couldn't find the dll file. Instead I found the original code, but I am having trouble compiling it into a DLL.
Here is the original: https://sourceforge.net/p/farplugs/code/HEAD/tree/ImageView/
I am trying to open the files as a Visual Studio project, opening plugin.cpp and pressing Build->"Build Current Document". It starts building, and runs into a million fatal errors like this one:
C:\Users\User\source\repos\ImageView\ImageView\libfreeimage\c1 : fatal error C1083: Cannot open source file: 'FreeImage\Source\LibPNG\pngwutil.c': No such file or directory
The files aren't there, but in ...\libfreeimage\ there are a bunch of vcxproj files like FreeImageLib.vcxproj
I am new to C++, and Visual Studio, so I am not sure what I am doing wrong. Any help would be greatly appreciated.
Related
I just set up a fresh cocos2d project using the cocos new cli. When I open the project, I am immediately greeted with several errors about files not being able to open the precompiled header. The files don't actually try to include these files though, so I'm guessing it's a CMake setting. Are these files supposed to be automatically generated?
I'm using Visual Studio 2019. Sorry if this a duplicate post, but i've been trying to get this to work for the past 2 hours but with no success...
You can generate Visual Studio project files:
cd YourGame\proj.win32
cmake .. -G"Visual Studio 16 2019" -A win32
Then open the generated solution file, it should compile without any error.
So, I'm taking this class.... wince
My day job is pretty technical, but I'm a complete Visual Studio newbie.
I have a Visual Studio Express 2013 project that runs/compiles fine on my local system, but I have to get it to build in Visual Studio Online, so I can share it with the other people in my class.
The very first line of my program is:
#include "stdafx.h"
When I attempt to build my program in the online build environment, I get an error:
Error C1083: Cannot open source file: '..\..\..\..\..\path_to\file_on\my_local\computer\Project\stdafx.cpp': No such file or directory
The stdafx.cpp and .h files are in the project folder in source control, along with the main.cpp file, as well as showing up earlier in the build log when the project is cloned. But according to the #include directive docs the very first place it looks should be the directory where the main.cpp file lives?
Looking at the XML content of the .vcxproj filters files, I'm seeing an entry that looks like this for every file in the project:
<ItemGroup>
<Text Include="..\..\..\..\..\path_to\file_on\my_local\computer\Project\ReadMe.txt" />
</ItemGroup>
And I'm wondering if that's related, and/or somehow overriding the normal behavior of #include. However, I can't find a way to edit those from within Visual Studio (I mean, okay, I could open the file in Notepad++ or something, but that can't be the 'right' way... can it?)
So, is there a (preferably simple) way to tell my VS project to just look in "." for things?
In my case issue related to space is present between folder name, .sln path should not contain folder name with space, like 'foo foo', it should 'foofoo' or 'foo_foo'
I'm working on adding some openCV features to a couple projects that use the Kinect and openGL/freeGLUT. I have downloaded and installed OpenCV using the pre-built libraries and successfully run a simple sample. Now I want to work with the Kinect Bridge with OpenCV Basics sample from the Kinect for Windows Developer Toolkit to get a better idea of how to use OpenCV with the Kinect. I downloaded the sample into my projects folder, opened the solution in visual studio and built it. I got the following errors:
Error 1 error C1083: Cannot open include file:
'opencv2/core/core.hpp': No such file or
directory c:\users\justin\documents\visual studio
2010\projects\kinectbridgewithopencvbasics-d2d\OpenCVHelper.h 17
and
Error 2 error C1083: Cannot open include file:
'opencv2/core/core.hpp': No such file or
directory c:\users\justin\documents\visual studio
2010\projects\kinectbridgewithopencvbasics-d2d\OpenCVFrameHelper.h 13
Initially I thought these errors were due to forgetting to specify the additional include directories. I added the same property sheet that my other OpenCV projects use to this one, but the errors remained. I tired copying the header files into the project folder: same thing. It seems like the only thing that works is specifying the full absolute file paths in the #include statements. I want to avoid doing this because visual studio wants me to change every #include in every file used in the project, including the openCV header files. I also tried shortening the name of my project folder in case the file path was too long (though I'm pretty sure that's more of an issue for the header file paths), but again no change.
The include directories and #includes that I'm trying to use are the same as in my other projects. I'm using Visual Studio 2010 on Windows 7 x64 based system.
Why would the additional include directory work for other projects, but not this one?
Usually when I see something like this it turns out to be a bad character in one of the prior include paths or other options that's messing everything up after it. I would take a look at your the command line page in the project configuration and see if you can spot anything amiss.
This could be a very silly question to any long time C++, visual studio or live555 users but I am having problems building the live555 source code with visual studio 2005. I have found a good walk through guide for creating the projects manually because .mak files are no longer supported by newer versions of visual studio but am still having problems. It seems that visual studio cannot open the .hh files that come in the include folders and I have added to the header folders of each seperate project.
Is there something special you have to do to the compilier or a plugin for the IDE to allow VS2005 to open .hh header files?
This is the error I am getting:
fatal error C1083: Cannot open include file
'BasicUsageEnvironment.hh': No such file or directory.
It seems to me that Visual studios cannot find the file, rather than it not being able to open that file type. If you right click on your project and go to
Properties->C/C++->General->Additional Include Directories
Now browse to the location of the .hh file and add it to the path. Visual studios should now be able to find the file in question. You may also have to add library paths to your solution. Please let me know if there are additional errors.
Visual Studio C++ 2008
I have downloaded a sample project.
I converted the project from VS 7 to VS 9.
However, when I compile I get this error:
c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory
Under project properties > preprocessor definitions. I have WIN32 defined there.
I have never had this error before.
Many thanks for any suggestions,
Go to Project-->Properties-->C/C++-->General-->Additional include directories and make sure no WIN32 chars.
Make sure PATH environement variable values that doesn't exist WIN32 chars.