Skip to content

Instantly share code, notes, and snippets.

@phazmatis

phazmatis/howto.md

Last active Dec 28, 2016
Embed
What would you like to do?
CLion / MSYS2 / JA

https://msys2.github.io/ https://www.jetbrains.com/clion/

  1. Install mingw in msys:

    pacman -S mingw-w64-x86_64-toolchain
    
  2. Point CLion at it. (Ex.: C:\msys64\mingw64)

  3. Make a batch file to run it:

    SET MSYSTEM=MINGW64
    C:\msys64\usr\bin\bash.exe -l -c "(cd /c/Users/phaz/ClionProjects/jaownt; python waf configure build)"
    

    (Or if bash is in another location, as in the case where you have MSYS/MSYS2 and WSL installed on the same machine...

    SET MSYSTEM=MINGW64
    C:\msys64\usr\bin\bash.exe -l -c "(cd /c/Users/phaz/ClionProjects/jaownt; python waf configure build --bash_location=C:/msys64/usr/bin/bash)"
    
  4. Make a batch file to copy files to the JA dirs:

    SET gamedata="C:\Program Files (x86)\Steam\steamapps\common\Jedi Academy\GameData\"
    SET base=%gamedata%"base"
    
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jaownt.exe" %gamedata%
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jaowntded.exe" %gamedata%
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\rd-vanilla_x86_64.dll" %gamedata%
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\cgamex86_64.dll" %base%
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\jampgamex86_64.dll" %base%
    COPY /Y "C:\Users\phaz\ClionProjects\jaownt\build\uix86_64.dll" %base%
    
    COPY /Y "C:\msys64\mingw64\bin\libgcc_s_seh-1.dll" %gamedata%
    COPY /Y "C:\msys64\mingw64\bin\libstdc++-6.dll" %gamedata%
    COPY /Y "C:\msys64\mingw64\bin\libjpeg-8.dll" %gamedata%
    COPY /Y "C:\msys64\mingw64\bin\libpng16-16.dll" %gamedata%
    COPY /Y "C:\msys64\mingw64\bin\SDL2.dll" %gamedata%
    COPY /Y "C:\msys64\mingw64\bin\zlib1.dll" %gamedata%
    
    COPY /Y "C:\msys64\mingw64\bin\libwinpthread-1.dll" %gamedata%
    
  5. Install git in msys

  6. Add .ssh dir to msys home dir, add ssh keys

  7. Install libs:

    pacman -S mingw64/mingw-w64-x86_64-dlfcn
    pacman -S mingw64/mingw-w64-x86_64-libjpeg-turbo
    pacman -S mingw64/mingw-w64-x86_64-libpng
    pacman -S mingw64/mingw-w64-x86_64-bullet
    pacman -S mingw64/mingw-w64-x86_64-glm
    
  8. Install mono for Windows.

  9. Copy mono dir contents into mingw's 64-bit dir (mingw64/mingw64) (and mingw's /usr/ dir?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.