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

Does not work on Windows #9

Open
GEOEGII555 opened this issue Jan 8, 2025 · 2 comments
Open

Does not work on Windows #9

GEOEGII555 opened this issue Jan 8, 2025 · 2 comments

Comments

@GEOEGII555
Copy link

It compiles and installs like normal, but when I try to link the library with target_link_libraries(<executable> libvbox::vbox) it fails with these errors:

[cmake] CMake Error in CMakeLists.txt:
[cmake]   IMPORTED_IMPLIB not set for imported target "libvbox::vbox" configuration
[cmake]   "Debug".
[cmake] 
[cmake] 
[cmake] CMake Error in CMakeLists.txt:
[cmake]   IMPORTED_IMPLIB not set for imported target "libvbox::vbox" configuration
[cmake]   "Release".
[cmake] 
[cmake] 
[cmake] CMake Error in CMakeLists.txt:
[cmake]   IMPORTED_IMPLIB not set for imported target "libvbox::vbox" configuration
[cmake]   "MinSizeRel".
[cmake] 
[cmake] 
[cmake] CMake Error in CMakeLists.txt:
[cmake]   IMPORTED_IMPLIB not set for imported target "libvbox::vbox" configuration
[cmake]   "RelWithDebInfo".
[cmake] 
[cmake] 
[cmake] -- Generating done (0.1s)
[cmake] CMake Generate step failed.  Build files cannot be regenerated correctly.

I am using MSVC in Visual Studio Code, VirtualBox version 7.1.4.

@zrax
Copy link
Owner

zrax commented Jan 9, 2025

Did you build (and install) libvbox with the same config (e.g. Debug, Release, RelWithDebInfo, etc) as your code?

@GEOEGII555
Copy link
Author

I checked, it's the same config (Debug).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants