Comments (6)
Do you mean build inside msys2 with mingw64? The MinGW in CI is msys2 mingw64. But why need to build inside msys2?
from klayge.
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.
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.
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.
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.
BTW, mingw-w64-x86_64-gcc and mingw-w64-x86_64-ninja packages are needed.
from klayge.
Related Issues (20)
- Faster skin rendering
- cling based C++ as scripting language / hot code reload
- Struct support in fxml
- Integrate motion blur into DeferredRendering pipeline
- Engineering improvements for 4.17
- A bug about loading "RenderableHelper.fxml" HOT 1
- Command buffer-based rendering system
- build fail on win HOT 1
- Resource view heap support in rendering system HOT 1
- Unable to build HOT 1
- DXBC2GLSL bug HOT 2
- Imgui integration
- DXBC2GLSLCmd bug: false in const struct DXBCInputBindDesc &__cdecl GLSLGen::GetResourceDesc HOT 1
- D3D12 descriptor heap allocator
- Cmake failed because of UniversalDXSDK HOT 1
- Cmake failed when downlaoding dependencies HOT 1
- Cleanup material system
- An error when "python Build.py" HOT 1
- computer shader(DXBC) to GLSL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klayge.