unicorn icon indicating copy to clipboard operation
unicorn copied to clipboard

installation project missing on MSVC?

Open AlexanderBarnt opened this issue 1 year ago • 4 comments

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?

AlexanderBarnt avatar Aug 30 '24 07:08 AlexanderBarnt

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.

wtdcode avatar Aug 30 '24 07:08 wtdcode

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.

AlexanderBarnt avatar Aug 30 '24 15:08 AlexanderBarnt

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.

wtdcode avatar Sep 06 '24 12:09 wtdcode

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

AlexanderBarnt avatar Sep 19 '24 16:09 AlexanderBarnt

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.

vlasta-labsky avatar Nov 02 '24 15:11 vlasta-labsky

Fixed in 8082239cc3a105a6aa1e69c1a122f5eb7999f19c and to be included in 2.1.2

wtdcode avatar Feb 10 '25 08:02 wtdcode