Comments (6)
it seems building it using cmake fixis the PolyHook_2.lib became 2kb
from polyhook_2_0.
I actually have the same exact issue and I never used cmake before, how did you fix it exactly ?
Obviously, PolyHook .lib is shit and the code is in the .exe, just change the target build to static lib and rename the extension to .lib and you're good to go.
from polyhook_2_0.
you should read the readme where I give exact steps on how to compile word for word
from polyhook_2_0.
At that time. it doesn't really work out of the box.. when I compile it to load it as cmake on vs2017 on my google RDP. it will throw. the same error as above.. and it still keeps looking for lib.. that always 2kb. everything is successfully built but the example project is not.
but on CMake, it works. its just work.. and the example project is working.
from polyhook_2_0.
the whole project is cmake, the example too. They are separate projects, so get compiled separately. It only works with cmake because I used a special flag to export all symbols like a Linux .so. This is also why the lib is so large. Again I documented all of this. The problem is not the lib, it is you guys not understanding cmake
from polyhook_2_0.
I never said the issue was caused by you, i just posted a solution for the next guys that will have this issue.
I'm just not familiar with CMake at all.
from polyhook_2_0.
Related Issues (20)
- MessageBoxW & EatHook
- Cannot compile polyhook on linux using cmake HOT 4
- VEH Hook function HOT 1
- Stack overflow in PLH::ErrorLog::log HOT 3
- fail on link when use vcpkg with x64-windows-static HOT 17
- Does x86Detour seem not to work for external DLL calls? HOT 6
- A question about how to hook into external libraries. HOT 1
- When I tried to hook some functions, it caused the program to crash HOT 4
- Link issue with x86-windows-static HOT 1
- Calling the original function fails after hooking the same function twice or more HOT 2
- Crashes when hooking e.g. QueryPerformanceCounter in x64 but works with x86 HOT 1
- Design issues with bool hook() and bool unHook() HOT 1
- Hooking function fails with "Warn: Couldn't decompile instructions at followed jmp" and "Error: Prologue jmp resolution failed" HOT 9
- Improper hooks when RSP instructions are in the prologue HOT 1
- Crash caused by unsafe read HOT 4
- Implement detour unit tests with emulator HOT 1
- Failed to create hook on SHGetSpecialFolderPathW HOT 4
- find_package(PolyHook_2) fails because polyhook_2-config.cmake is not found on MinGW on Linux HOT 3
- The best API hooking library ever made, just thank you HOT 1
- AsmJit update in vcpkg breaks polyhook HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyhook_2_0.