I tried to compile tpt with meson(tutorial from the wiki), and got this error when i was trying to compile it:
The Meson build system
Version: 0.59.1
Source dir: C:\Users\phosp\OneDrive\Documents\powder source
Build dir: C:\Users\phosp\OneDrive\Documents\powder source\build-debug
Build type: native build
Project name: the-powder-toy
Project version: the.cake.is.a.lie
meson.build:1:0: ERROR: Compiler cl can not compile programs.
A full log can be found at C:\Users\phosp\OneDrive\Documents\powder source\build-debug\meson-logs\meson-log.txt
the log sais this:
Build started at 2021-09-02T14:20:42.993337
Main binary: C:\python36\python.exe
Build Options:
Python system: Windows
The Meson build system
Version: 0.59.1
Source dir: C:\Users\phosp\OneDrive\Documents\powder source
Build dir: C:\Users\phosp\OneDrive\Documents\powder source\build-debug
Build type: native build
Project name: the-powder-toy
Project version: the.cake.is.a.lie
Sanity testing C compiler: cl
Is cross compiler: False.
Sanity check compiler command line: cl sanitycheckc.c /Fesanitycheckc.exe /MDd /nologo /showIncludes /link
Sanity check compile stdout:
sanitycheckc.c
LINK : fatal error LNK1104: Data "kernel32.lib" kant bee opened.
-----
Sanity check compile stderr:
-----
meson.build:1:0: ERROR: Compiler cl can not compile programs.
I werified that i did not make a mistake, i installed visual studio and python and added the variables to %path%
How can i fix this?
yes
found 1 data named meason-log.txt at C:\Users\Phosp\OneDrive\Documents\powder source\meson-logs:
Build started at 2021-09-02T14:20:42.993337
Main binary: C:\python36\python.exe
Build Options:
Python system: Windows
The Meson build system
Version: 0.59.1
Source dir: C:\Users\phosp\OneDrive\Documents\powder source
Build dir: C:\Users\phosp\OneDrive\Documents\powder source\build-debug
Build type: native build
Project name: the-powder-toy
Project version: the.cake.is.a.lie
Sanity testing C compiler: cl
Is cross compiler: False.
Sanity check compiler command line: cl sanitycheckc.c /Fesanitycheckc.exe /MDd /nologo /showIncludes /link
Sanity check compile stdout:
sanitycheckc.c
LINK : fatal error LNK1104: data "kernel32.lib" cant be opened.
-----
Sanity check compile stderr:
-----
meson.build:1:0: ERROR: Compiler cl can not compile programs.
that's it
Edit: is it a problem that meson is not in the %path%?
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\phosp\AppData\Roaming
BRB=C:\Program Files\HP\Sure Click\bin
BRS=C:\Program Files\HP\Sure Click\servers
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-6DH79IL
ComSpec=C:\windows\system32\cmd.exe
DriverData=C:\Windows\System32\Drivers\DriverData
HOMEDRIVE=C:
HOMEPATH=\Users\phosp
LOCALAPPDATA=C:\Users\phosp\AppData\Local
LOGONSERVER=\\DESKTOP-6DH79IL
NUMBER_OF_PROCESSORS=12
OneDrive=C:\Users\phosp\OneDrive
OneDriveConsumer=C:\Users\phosp\OneDrive
OnlineServices=Online Services
OS=Windows_NT
Path=C:\python36;C:\python36\Scripts;C:\Program Files\dotnet\;C:\Python36\Scripts\;C:\Python36\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\;C:\Users\phosp\AppData\Local\Programs\Python\Launcher\;C:\Users\phosp\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm 2021.1.1\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;;C:\Users\phosp\.dotnet\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
platformcode=AN
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=23
PROCESSOR_REVISION=6001
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules
PTSMINSTALLPATH=c:\Program Files\HP\HP ProtectTools Security Manager\Bin\
PTSMINSTALLPATH_X86=c:\Program Files (x86)\HP\HP ProtectTools Security Manager\Bin\
PUBLIC=C:\Users\Public
PyCharm=C:\Program Files\JetBrains\PyCharm 2021.1.1\bin;
PyCharm Community Edition=C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;
RegionCode=EMEA
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\phosp\AppData\Local\Temp
TMP=C:\Users\phosp\AppData\Local\Temp
USERDOMAIN=DESKTOP-6DH79IL
USERDOMAIN_ROAMINGPROFILE=DESKTOP-6DH79IL
USERNAME=phosp
USERPROFILE=C:\Users\phosp
windir=C:\windows
no this comes out when i use x64 Native tools command prompt for vs 2019:
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\phosp\AppData\Roaming
BRB=C:\Program Files\HP\Sure Click\bin
BRS=C:\Program Files\HP\Sure Click\servers
CommandPromptType=Native
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-6DH79IL
ComSpec=C:\windows\system32\cmd.exe
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
DriverData=C:\Windows\System32\Drivers\DriverData
ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
Framework40Version=v4.0
FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
FSHARPINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools
HOMEDRIVE=C:
HOMEPATH=\Users\phosp
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include
LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64
LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x86\store\references;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
LOCALAPPDATA=C:\Users\phosp\AppData\Local
LOGONSERVER=\\DESKTOP-6DH79IL
NUMBER_OF_PROCESSORS=12
OneDrive=C:\Users\phosp\OneDrive
OneDriveConsumer=C:\Users\phosp\OneDrive
OnlineServices=Online Services
OS=Windows_NT
Path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\devinit;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\;C:\python36;C:\python36\Scripts;C:\Program Files\dotnet\;C:\Python36\Scripts\;C:\Python36\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\;C:\Users\phosp\AppData\Local\Programs\Python\Launcher\;C:\Users\phosp\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm 2021.1.1\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;;C:\Users\phosp\.dotnet\tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Platform=x64
platformcode=AN
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=23
PROCESSOR_REVISION=6001
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules
PTSMINSTALLPATH=c:\Program Files\HP\HP ProtectTools Security Manager\Bin\
PTSMINSTALLPATH_X86=c:\Program Files (x86)\HP\HP ProtectTools Security Manager\Bin\
PUBLIC=C:\Users\Public
PyCharm=C:\Program Files\JetBrains\PyCharm 2021.1.1\bin;
PyCharm Community Edition=C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;
RegionCode=EMEA
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\phosp\AppData\Local\Temp
TMP=C:\Users\phosp\AppData\Local\Temp
USERDOMAIN=DESKTOP-6DH79IL
USERDOMAIN_ROAMINGPROFILE=DESKTOP-6DH79IL
USERNAME=phosp
USERPROFILE=C:\Users\phosp
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\
VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\
VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.29.30133\
VCToolsVersion=14.29.30133
VisualStudioVersion=16.0
VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x64
VSCMD_ARG_TGT_ARCH=x64
VSCMD_VER=16.11.2
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
windir=C:\windows
WindowsLibPath=References\CommonConfiguration\Neutral
WindowsSDKLibVersion=winv6.3\
WindowsSDKVersion=\
__devinit_path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\devinit\devinit.exe
__DOTNET_ADD_64BIT=1
__DOTNET_PREFERRED_BITNESS=64
__VSCMD_PREINIT_PATH=C:\python36;C:\python36\Scripts;C:\Program Files\dotnet\;C:\Python36\Scripts\;C:\Python36\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\phosp\AppData\Local\Programs\Python\Python39\;C:\Users\phosp\AppData\Local\Programs\Python\Launcher\;C:\Users\phosp\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm 2021.1.1\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin;;C:\Users\phosp\.dotnet\tools
__VSCMD_script_err_count=0