Open kungfooman opened 6 years ago
Since I'm tight on schedule nowadays because of other projects, it would be really appreciated if you could make a PR from your improvements. Thanks.
I figured this only fails with missing npm init
(and press Enter
like 10 times)
In case you want to prevent this pitfall: https://github.com/cmake-js/fastcall/pull/42
Hi, thanks for this nice library. I just tried it, but the build process fails with some missing headers, so I had to fix two cmake files
1)
npm install fastcall --force
--force
is needed, because otherwise all files will be deleted in case of failed build (it will currently fail)2) Fix your
node_modules/fastcall/src/CMakeLists.txt
to something like this:The hardcoded paths of course need to be fixed, the apply to my current setup
3) Fix your
node_modules/fastcall/deps/ref-cmake/CMakeLists.txt
to something like this:4)
npm install nan
(otherwise there was no nan.h IIRC)5) Now the cmake files are fixed and nan.h should be available, so we just need to trigger a compilation with:
D:\BabylonCpp\node\node_modules\fastcall>..\..\node_modules\.bin\cmake-js.cmd compile
After all that,
require("fastcall")
should work, I might make a video later of the process, just wanted to put the info out first lol