Jump to content

capstone vcpkg package broken?


deepzero

Recommended Posts

I am porting some tools over to vcpkg package manager. Maybe it's just too late, but it seems to me the capstone package on vcpkg is broken. Installed with vcpkg install capstone:x64_windows.

The following:

cs_open(CS_ARCH_X86, CS_MODE_64, &handle);

returns CS_ERR_ARCH,  because the x86-init function in

static cs_err (*cs_arch_init[MAX_ARCH])(cs_struct *) = {

in cs.c is Null. Which  would suggest that CAPSTONE_HAS_X86 was not defined during compilation of the package.

 

Can someone confirm this?

Link to comment
  • 2 weeks later...

For future reference, you  have to specify the architectures explicitly...

vcpkg.exe install capstone[x86,arm,arm64,evm,m680x,m68k,mips,ppc,sparc,sysz]:x64-windows-static

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...