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

How to build? #31

Open
X52p opened this issue Mar 9, 2021 · 2 comments
Open

How to build? #31

X52p opened this issue Mar 9, 2021 · 2 comments

Comments

@X52p
Copy link

X52p commented Mar 9, 2021

I tried to build the mod myself, because I would like to contribute. I currently can't manage to build it because the Visual Studio Build files contain a lot of user specific paths.

What is the intended way to build this?

@linuxgurugamer
Copy link
Owner

Actually, there aren't. Ignoring the post-build-event, you need to set an environment variable called:

KSPDIR

and have it point to your main KSP directory, the one you are building against. You need to set this in Windows, and then log off and log back on (or reboot). Once done, you should be able to do a compile

@X52p
Copy link
Author

X52p commented Mar 10, 2021

I still have problems building it.
Just to be sure:
I add an environment variable named KSPDIR with the value
(should It be a user variable or System variable? I tried both)
C:/Program Files (x86)/Steam/steamapps/common/Kerbal Space Program
(which is where my KSP is installed.)
Then I reboot my PC
Then I build "ksp-advanced-flybywire_win"
Then the new DLL should be in ksp-advanced-flybywire\AFBW\bin ?
Or should I be using the .bat file for build release?

edit:
I found a solution. Besides adding the Environment variable, I also needed to change some occurrences of
\Microsoft Visual Studio\2017\Community\Common7\IDE\texttransform.exe
to
\Microsoft Visual Studio\2019\Community\Common7\IDE\texttransform.exe
(I don't know a better way to do this. Maybe there is a variable for the current Visual Studio path?)
and I also needed to change the build target architecture from x86 to Any CPU (I'm using an AMD Threadripper, which somehow is incompatible with x86 according to the error message I got from Visual Studio (which is a riddle to me))

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