nowsecure / r2frida

Radare2 and Frida better together.
MIT License
1.18k stars 121 forks source link

windows install failed,please update build.bat #239

Closed tmxd09887 closed 10 months ago

tmxd09887 commented 4 years ago

follow the readme build.bat install but got error


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! r2frida-agent@4.5.0 build: `frida-compile -L -c src/agent -o src/_agent.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the r2frida-agent@4.5.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dd\AppData\Roaming\npm-cache\_logs\2020-06-10T06_44_16_020Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! r2frida-agent@4.5.0 prepare: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the r2frida-agent@4.5.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dd\AppData\Roaming\npm-cache\_logs\2020-06-10T06_44_16_220Z-debug.log
cat: '.\_agent.js': No such file or directory
Compiling...

“frida-core.h”: No such file or directory

and the frida version is out date(12.6.23)

trufae commented 4 years ago

can you try again? i dont have any windows to test this. It will be nice if we can have windows builds using github actions

vmprog commented 4 years ago

The same problem on Windows 7 frida 12.8.20 r2frida 4.3.1 2020-06-18T21_07_36_284Z-debug.log 2020-06-18T21_07_36_178Z-debug.log

trufae commented 4 years ago

I don't see anything relevant in the logs and i don't have any windows machine to try it out. Anyone using windows can have a look at this issue? @oleavr ?

Now with github actions, i should setup the per-commit builds for windows too

vmprog commented 4 years ago

Added command prompt output: error.log

trufae commented 4 years ago

Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

this seems relevant. But i dont see why npm dependencies should be different in windows or mac/Linux. Can you confirm the frida sdk is downloaded properly? the initial error was a missing frida.h

On Fri, Jun 19, 2020 at 12:43 PM vmprog notifications@github.com wrote:

Added command prompt output: error.log https://github.com/nowsecure/r2frida/files/4804078/error.log

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nowsecure/r2frida/issues/239#issuecomment-646567678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRCGGZURK6NNEXF5X5AGKTRXM6MXANCNFSM4N2CTX6Q .

vmprog commented 4 years ago

That's right I understand what I need to install Windows Toolchain and SDK from https://frida.re/docs/building/#windows $ git clone --recurse-submodules https://github.com/frida/frida $ cd frida $ py -3 releng\build-deps-windows.py

oleavr commented 4 years ago

@vmprog That's not necessary. The r2frida build system downloads a prebuilt devkit – containing a header and a static library – from https://github.com/frida/frida/releases.

trufae commented 10 months ago

r2frida builds in the ci without problems, and this ticket is more than 3years old. unifying all windows issues into this ticket until I get some spare time to check it out https://github.com/nowsecure/r2frida/issues/444