Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in xcode #187

Closed
sridhard opened this issue Dec 24, 2024 · 6 comments
Closed

Compile error in xcode #187

sridhard opened this issue Dec 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@sridhard
Copy link

I am trying to build the latest code from github in mac xcode. getting below errors

vmaware.hpp:725:13 No matching function for call to 'sysctlbyname'

vmaware.hpp:5957:24 Invalid operands to binary expression ('std::chrono::milliseconds' (aka 'duration<long long, ratio<1LL, 1000LL>>') and 'const u32' (aka 'const unsigned int'))

vmaware.hpp:6076:18 No member named 'has_hyperthreading' in 'VM::cpu'

@kernelwernel
Copy link
Owner

I'll find a fix for it really soon, are you using the cloned main branch or the 1.9 release?

@kernelwernel
Copy link
Owner

kernelwernel commented Dec 24, 2024

@sridhard I've made a few changes to the code and (I think) I fixed the issues you were facing.

Can you test the new vmaware.hpp file in the dev branch and see if the problem persists?

https://github.com/kernelwernel/VMAware/blob/dev/src/vmaware.hpp

@kernelwernel kernelwernel added the bug Something isn't working label Dec 25, 2024
@sridhard
Copy link
Author

Hi,

I dev branch getting error
vmaware.hpp:734:22 Use of undeclared identifier 'HW_PHYSICALCPU'

HW_PHYSICALCPU should be HW_NCPU correct?

@kernelwernel
Copy link
Owner

Hi,

I dev branch getting error vmaware.hpp:734:22 Use of undeclared identifier 'HW_PHYSICALCPU'

HW_PHYSICALCPU should be HW_NCPU correct?

updated, can you try it again in the dev branch?

@sridhard
Copy link
Author

Yes. fixed

@kernelwernel I am closing the iussue. Thanks a lot for your great support

@kernelwernel
Copy link
Owner

Yes. fixed

@kernelwernel I am closing the iussue. Thanks a lot for your great support

no problem , thanks for reporting the issue too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants