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

installation project missing on MSVC? #1992

Open
AlexanderBarnt opened this issue Aug 30, 2024 · 5 comments
Open

installation project missing on MSVC? #1992

AlexanderBarnt opened this issue Aug 30, 2024 · 5 comments
Labels

Comments

@AlexanderBarnt
Copy link

I was able to compile Unicorn 2.0.1.post1 using CMAKE with MSVC on Windows but I could not find any way to install it, looks like there is no "INSTALL" project in the solution:
devenv-nnlfg-Dj6u9

I did enable the installation option in CMAKE:
cmake-gui-p-Mxp7-YI1t3

or maybe am i missing something?

@wtdcode
Copy link
Member

wtdcode commented Aug 30, 2024

Unfortunately, I don't see reasonable ways to "install" a package on Windows natively so UNICORN_INSTALL only applies on *nix systems. However, vcpkg is known to work this out and you may have a try.

@AlexanderBarnt
Copy link
Author

AlexanderBarnt commented Aug 30, 2024

its suppose that the latest Visual studio comes with vcpkg integrated, sorry for asking this but I am not used to it, can I use it? I just want the compiled files, headers, etc from my build. I went to the download page and I tried to download the "Windows core engine" but both 32 and 64 links say "not found".

edit:
any posibility to just add a INSTALL project in the solution like in most of the projects? that would save a lot of time from people.

@wtdcode
Copy link
Member

wtdcode commented Sep 6, 2024

its suppose that the latest Visual studio comes with vcpkg integrated, sorry for asking this but I am not used to it, can I use it? I just want the compiled files, headers, etc from my build. I went to the download page and I tried to download the "Windows core engine" but both 32 and 64 links say "not found".

edit: any posibility to just add a INSTALL project in the solution like in most of the projects? that would save a lot of time from people.

Does INSTALL really works on Windows? I think I need to read more docs about cmake.

@AlexanderBarnt
Copy link
Author

its suppose that the latest Visual studio comes with vcpkg integrated, sorry for asking this but I am not used to it, can I use it? I just want the compiled files, headers, etc from my build. I went to the download page and I tried to download the "Windows core engine" but both 32 and 64 links say "not found".
edit: any posibility to just add a INSTALL project in the solution like in most of the projects? that would save a lot of time from people.

Does INSTALL really works on Windows? I think I need to read more docs about cmake.

yeah, it just copies the right files (lib, dll, headers etc) depending on the build into the install directory

@vlasta-labsky
Copy link

I discovered this issue too.
In my build workflow on github I needed to add
(Get-Content CMakeLists.txt).Replace('if(UNICORN_INSTALL AND NOT MSVC)', 'if(UNICORN_INSTALL)') | Set-Content CMakeLists.txt to make unicorn behave as any other cmake project on windows.
I dont use vcpkg, but manage all free software on windows by means of pkgconfig.
I did it like this long before any vcpkg even existed.
It would be very nice to enable installation on windows so I could remove this hardcoded string replacement from my scripts.

@wtdcode wtdcode added the bug label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants