GithubHelp home page GithubHelp logo

Comments (6)

gongminmin avatar gongminmin commented on June 15, 2024

Do you mean build inside msys2 with mingw64? The MinGW in CI is msys2 mingw64. But why need to build inside msys2?

from klayge.

 avatar commented on June 15, 2024

Do you mean build inside msys2 with mingw64? The MinGW in CI is msys2 mingw64. But why need to build inside msys2?

Please tell me which command to use. I'm confused by the Python scripts. Could I invoke cmake directly? I think I shouldn't do so.

p/s: MSYS2 MINGW64 is an environment of MSYS2: https://www.msys2.org/docs/environments/

from klayge.

gongminmin avatar gongminmin commented on June 15, 2024

Yes, msys2 mingw64 is supported. But I don't run msys2 to call the script, just in cmd.

First, you put the mingw64, say, C:\msys64\mingw64\bin, to your path. Then the command line of building is:
Build.py ninja mingw x64 Release

You can replace the ninja with make, if you don't have ninja install. Or replace the Release with Debug.

The Build.py can detect the compiler, and set the environment for CMake. It would be easier than just using CMake.

from klayge.

 avatar commented on June 15, 2024

Yes, msys2 mingw64 is supported. But I don't run msys2 to call the script, just in cmd.

First, you put the mingw64, say, C:\msys64\mingw64\bin, to your path. Then the command line of building is: Build.py ninja mingw x64 Release

You can replace the ninja with make, if you don't have ninja install. Or replace the Release with Debug.

The Build.py can detect the compiler, and set the environment for CMake. It would be easier than just using CMake.

Well, it seems the script expects Windows path separator so it failed to run on the MSYS2 MINGW64 Shell:

$ ./Build.py ninja mingw x64 Release
Generating CfgBuild.py ...
Build information:
        CMake path: C:\msys64\mingw64\bin/cmake.EXE
        CMake version: 326
        Host platform: win
        Target platform: win
        CPU count: 4
        Prefer static library: False
        Shader platform: auto
        Is dev platform: True
        Project type: ninja
        Compiler: mgw122
        Architectures: x64
        Configures: Release
        GLES SDK include path: auto
        Oculus LibOVR path: auto

Building KlayGE Release...

C:\msys64\home\Administrator\KlayGE\Build\ninja_mgw122_win_x64-Release>"C:\msys64\mingw64\bin/cmake.EXE" -G "Ninja"  -DKLAYGE_SHADER_PLATFORM_NAME:STRING="auto" -DKLAYGE_ARCH_NAME:STRING="x64" -DCMAKE_BUILD_TYPE:STRING="Release" ../CMake
CMake Error: The source directory "C:/msys64/home/Administrator/KlayGE/build/CMake" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[W] Config KlayGE failed, retry 1...


C:\msys64\home\Administrator\KlayGE\Build\ninja_mgw122_win_x64-Release>"C:\msys64\mingw64\bin/cmake.EXE" -G "Ninja"  -DKLAYGE_SHADER_PLATFORM_NAME:STRING="auto" -DKLAYGE_ARCH_NAME:STRING="x64" -DCMAKE_BUILD_TYPE:STRING="Release" ../CMake
CMake Error: The source directory "C:/msys64/home/Administrator/KlayGE/build/CMake" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[W] Config KlayGE failed, retry 2...


C:\msys64\home\Administrator\KlayGE\Build\ninja_mgw122_win_x64-Release>"C:\msys64\mingw64\bin/cmake.EXE" -G "Ninja"  -DKLAYGE_SHADER_PLATFORM_NAME:STRING="auto" -DKLAYGE_ARCH_NAME:STRING="x64" -DCMAKE_BUILD_TYPE:STRING="Release" ../CMake
CMake Error: The source directory "C:/msys64/home/Administrator/KlayGE/build/CMake" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[E] Config KlayGE failed.

Press any key to continue . . .

from klayge.

gongminmin avatar gongminmin commented on June 15, 2024

That's what I asked. You want to run inside the msys2. That's not supported. You can just run the Build script in cmd, with mingw64 installed from msys2.

from klayge.

gongminmin avatar gongminmin commented on June 15, 2024

BTW, mingw-w64-x86_64-gcc and mingw-w64-x86_64-ninja packages are needed.

from klayge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.