twinstar6980 / Twinning

https://github.com/twinstar6980/Twinning.Documentation
GNU General Public License v3.0
58 stars 12 forks source link

Building Shell #1

Closed MinhDuc21 closed 1 year ago

MinhDuc21 commented 1 year ago

I want to build the Shell according to the README.md in \Shell. But I keep getting this error: image

Here is my command: ./build.ps1 C:\Users\Admin\Desktop\TwinKleS.ToolKit-master\Shell -system native -build debug -native_compiler_c msvc -native_compiler_cxx msvc

Can you tell me what's wrong in it? I'm using a Windows device

twinstar6980 commented 1 year ago

Sorry, this is not indicated in the readme: you need to append the -project parameter before the project path, for example:

"./build.ps1"
        -project "."
        -system "native"
        -build "release"
        -native_compiler_c "cl" 
        -native_compiler_cxx "cl"

The name of the MSVC compiler is CL, not MSVC, and you need to configure the appropriate environment variables, see MSDN for this.

MinhDuc21 commented 1 year ago

Sorry to bother you again but after I change the command, I got these errors:

image

Could you help me with this? Thank you.

twinstar6980 commented 1 year ago

you need use powershell's call operator if you invoke a script file with quoted string, like this: & "./build.ps1" -project "." -system "native" -build "release" -native_compiler_c "cl" -native_compiler_cxx "cl"

MinhDuc21 commented 1 year ago

After I changed the command, I got this error again:

image