vcpkg exit code(compilation) #1

Closed
opened 2023-12-12 20:59:14 +02:00 by autarch · 6 comments

image

I never saw that error, not sure whats the cause.
i did git fetch and about vcpkg exit code, idk

![image](/attachments/ea9b02c0-d88c-4905-889c-4ddb12da0228) I never saw that error, not sure whats the cause. i did git fetch and about vcpkg exit code, idk
Author

all libs installed via vcpkg :x86-windows-static

all libs installed via vcpkg :x86-windows-static
autarch changed title from exit code(compilation) to vcpkg exit code(compilation) 2023-12-12 21:06:06 +02:00
Owner

Hi,
This looks like a vcpkg issue. Try reinstalling vcpkg and see what happens. Also, this project uses vcpkg in manifest mode, so it should (and tries here) to install dependencies automatically.

I might try compiling on a fresh install of VS in the near future as to write a small guide on compiling.

Hi, This looks like a vcpkg issue. Try reinstalling vcpkg and see what happens. Also, this project uses vcpkg in manifest mode, so it should (and tries here) to install dependencies automatically. I might try compiling on a fresh install of VS in the near future as to write a small guide on compiling.
Contributor

There is a related issue in the way vcpkg manifest is setup.
Currently on the "UserInterface" is using the manifest, but some other pojects also need the "lzo" dependency.

VisualStudio will first attempt to build all "UserInterface" dependencies first (the projects inside the solution) and only then will proceed to install vcpkg's dependencies. This will cause the projects like EterLib or EterBase to fail because vcpkg didn't install "lzo", then if this fails VS will not continue with the installation of vcpkg dependencies.

Hope i made myself clear.

@Exynox I have a local branch that set's the vcpkg manifest mode for all projects in order to solve this issue, although it looks like i don't have permissions to push the branch nor to open a PR.

There is a related issue in the way vcpkg manifest is setup. Currently on the "UserInterface" is using the manifest, but some other pojects also need the "lzo" dependency. VisualStudio will first attempt to build all "UserInterface" dependencies first (the projects inside the solution) and only then will proceed to install vcpkg's dependencies. This will cause the projects like EterLib or EterBase to fail because vcpkg didn't install "lzo", then if this fails VS will not continue with the installation of vcpkg dependencies. Hope i made myself clear. @Exynox I have a local branch that set's the vcpkg manifest mode for all projects in order to solve this issue, although it looks like i don't have permissions to push the branch nor to open a PR.
Owner

@eXploit That sounds really weird. Have you tried forking this project to your own namespace, pushing the local branch to that, and then try to create a PR? That's "The Git way"™ of doing things and it should work. Otherwise, I think I can give you Collaborator permissions.

(sorry for the mess, I am coming from GitLab and it works a bit different)

@eXploit That sounds really weird. Have you tried forking this project to your own namespace, pushing the local branch to that, and then try to create a PR? That's "The Git way"™ of doing things and it should work. Otherwise, I think I can give you Collaborator permissions. (sorry for the mess, I am coming from GitLab and it works a bit different)
Contributor

@Exynox Nevermind, i was just being dumb. I am not used to collaborate in public repositories.
Sorry for the delay, nonetheless this PR should solve the issue: #2

@Exynox Nevermind, i was just being dumb. I am not used to collaborate in public repositories. Sorry for the delay, nonetheless this PR should solve the issue: https://git.old-metin2.com/metin2/client/pulls/2
Owner

Merged! Thank you! I've sent you an e-mail with a discord invite!

Merged! Thank you! I've sent you an e-mail with a discord invite!
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: metin2/client#1
No description provided.