I downloaded easyhook package "EasyHook 2.7.6789.0 Binaries .NET 3.5/4.0 (zip)" and then link dll with my project in visual studio 2015 (first add my easyhook in this path C/C++->General->Additional Include Directories and second add .lib file to Linker->Input->Additional Dependencies). No errors occur in build but when I run got this error "can not find easyhook64.dll".
The EasyHook binaries need to be located in the same dir as your exe at runtime.
Related
I'm creating a conan package for OpenCV but am at a loss on what to put in package_info. Building OpenCV places .lib and .dll files in the paths x64\vc15\lib and x64\vc15\bin. This means that once I install the package and try to link I get linker errors as Visual C++ cannot find the files.
What is the correct way of making these files available to Visual Studio? Should I add code to the package method to move the bin and lib directories out of x64 and into package_folder or should I add code to package_info to indicate the path to those directories via self.cpp_info.libdirs?
I want to use Aquila DSP to compute MFCC features in my project and trying to make it work.I followed this tutorial but after mingw32-make install on the source code pulled from Aquila's git repo, it generates only libAquila.a in lib folder. I tried changing my project's include and library dependencies using these generated files after install. Also tried adding FindAquila.cmake and tried building my project with cmake for VS 2012, still no luck. Keep getting "aquila/global.h" no such file or directory when I try to include "aquila/global.h".
I also tried building Aquila with cmake for VS 2012 and able to compile it and it generates .lib files as well, but not sure how to proceed with that.
If anyone knows how to make it work, it will be great help.
So, I made it work with Visual studio 2013. Now what I am doing is I am building Aquila with both Mingw and with VisualStudio. Mingw gives required include files and visual studio build gives required .lib files. I am building Aquila in VS 2013 with configuration type static lib (project properties >> General >> Configuration type) for both debug and release configuration and then I build the project.
For Mingw, first I use cmake GUI with mingw cmakefiles configuration and then run mingw32-make install in the build directory, which will put the include, lib and share files in the installation directory( usually C:\\Programme files\\Aquila.
Now I create a Folder Aquila and put include and share from above path and create a new folder lib with two subfolder debug and release. Here I put two .lib files in each folder (aquila.lib and Ooura_fft.lib) (debug libs in debug and release libs in release folder, they will be VS build folder). Once this is done, in my project setting, I add Additional include directories under C++ >> general, Addiotnal library path under linker >> general and names of libraries under linker >> input for both bebug and release configuration. After doing all these things, now the library works with my project.
I download pthread-w32-2-9-1-release.zip, unzip it and use Prebuild/include lib and dll with VisualStudio2013.
I set up a VC++ empty project "helloc" with main.c, then write a simple example with pthread_create pthread_join functions.
This is my configure:
Properties->C/C++->General->Additional Include Directories, add "F:\pthread_win32\include"
Properties->Linker->General->Additional Library Directories, add "F:\pthread_win32\lib\x86"
Properties->Linker->Input->Additional Dependencies, add "pthreadVC2.lib"
And it's successfully build, but when I click "Local Windows Debugger", the console break with "helloc.exe error because cannot find pthreadVC2.dll".
Then I copied pthreadVC2.dll to helloc/Debug/, same directory with helloc.exe, finally it's working.
But I don't know why the pthreadVC2.lib and pthreadVC2.dll are both required by helloc.exe. Is it a must that both lib and dll being used in VisualStudio ?
If only one of them (pthreadVC2.lib pthreadVC2.dll) is enough to support helloc.exe, how can I specify which one (dll or lib) I want to use in VisualStudio with helloc.exe ?
And I don't want to put all pthread libs and dlls into "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC", I want to know how to configure manually.
AFAICT, the pre-built library is just an import library for the DLL. (Allowing you to link against the DLL, hence required)
If you want to link statically, you'll have to rebuild the library yourself. See the README file for more information.
I'm trying to get boost::filesystem to compile. The system sees the filesystem.hpp file but it can't link and gives the error message
LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc110-mt-gd-1_55.lib'
I tried building the boost libs with the 1_55 version I'm using but it built the vc120 version and not the vc110 version. This is strange because I'm using the same 1_55_0 source for the #include files and the b2 build so I'm not clear why it's looking for vc110 in the #include and building vc120. I've tried including the .lib file in the VC12 Project settings in Addt'l Dependencies and Addt'l Includes sections but it doesn't make a difference. Same error. I'm using VC2012.
What else can I try?
vc110 is the default platform toolset of Visual Studio 2012. You can set it in the project properties/Configuration Properties/General/Platform Toolset.
Boost will not build with vc120 with VC2012 because VC2012 cannot use vc120 - I'm not sure if it's possible to make it use the vc120 at all. Usually vc120 means Visual Studio 2013 (and Win8).
I would do the following things:
Check if your filesystem project is set to vc110 (in General/Platform Toolset)
Check if the lib is in Linker/Input/Additional Dependencies
Check if the path to the lib is in VC++ Directories
Boost HAS to build vc110, for whatever reasons it builds vc120, it shouldn't. If it does anyway, set the project settings to vc110.
I hope that helps..
I am still fairly new to C++ and even newer to Visual Studio. I am attempting to link the perlin noise library 'libnoise' (found here) to my visual studio 2010 project, I have searched online for many many hours to no avail, this has been a road block for a few days now.
What are the steps needed to link this library?
The files that are downloaded are a bin folder (contains the .dll and .lib) and a include (headers I believe)
thank you in advance and please correct any mistakes I have made with asking this question.
You'll need to:
1. Add the header directory to Additional Include Directories (PROJECT->Properties->Configuration Properties->C/C++->General->Additional Include Directories, on drop down select <Edit...>)
2. Add the .lib directory to Additional Library Directories (PROJECT->Properties->Configuration Properties->Linker->General->Additional Library Directories, same above)
3. Add the .lib names you need to Additional Dependencies (PROJECT->Properties->Configuration Properties->Linker->Input->Additional Dependencies, same above)
4. After building your project, copy the .dll to your project's build directory, usually at your solution's Debug directory ("Solution Path"/Debug) or you would encounter *.dll is missing error. You should find "yourapp".exe file there as well.
Good Luck.
Edit: more can be found at http://en.wikibooks.org/wiki/C%2B%2B_Programming/Compiler/Linker/Libraries/Configuring_Visual_Studio
You can use nuget.
Open package manager console and type : Install-Package libnoise