对于Haskell的sdl2,我去了How to install pkg config in windows?,并下载了pkg pkg-config-lite。我将其设置为path,它给了我这个错误Configuring sdl2-2.4.1.0...
Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe: The pkg-config package 'sdl2'
version >=2.0.4 is required but it could not be found.
我试图找到一种新的替代品,但找不到有效的替代品。
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe --builddir=.stack-work\dist\e626a42b configure --with-ghc=C:\Users\d\AppData\Local\Programs\stack\x86_64-windows\ghc-8.6.5\bin\ghc.EXE --with-ghc-pkg=C:\Users\d\AppData\Local\Programs\stack\x86_64-windows\ghc-8.6.5\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\a6aa7628\pkgdb --libdir=C:\sr\snapshots\a6aa7628\lib --bindir=C:\sr\snapshots\a6aa7628\bin --datadir=C:\sr\snapshots\a6aa7628\share --libexecdir=C:\sr\snapshots\a6aa7628\libexec --sysconfdir=C:\sr\snapshots\a6aa7628\etc --docdir=C:\sr\snapshots\a6aa7628\doc\sdl2-2.4.1.0 --htmldir=C:\sr\snapshots\a6aa7628\doc\sdl2-2.4.1.0 --haddockdir=C:\sr\snapshots\a6aa7628\doc\sdl2-2.4.1.0 --dependency=StateVar=StateVar-1.1.1.1-2ewTKofpCGhC2np5dyFIaR --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=exceptions=exceptions-0.10.2-965Nx9KftkgCsZ4B7Zhuyu --dependency=linear=linear-1.20.9-8i87OQRLMk19j5jCRXHfj4 --dependency=text=text-1.2.3.1 --dependency=transformers=transformers-0.5.6.2 --dependency=vector=vector-0.12.0.3-2LEYu9M2i7lERDtz76XG3n --extra-include-dirs=C:\Users\d\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-lib-dirs=C:\Users\d\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\d\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib
Process exited with code: ExitFailure 1
Logs have been written to: C:\sr\global-project\.stack-work\logs\sdl2-2.4.1.0.log
Configuring sdl2-2.4.1.0...
Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe: The pkg-config package 'sdl2'
version >=2.0.4 is required but it could not be found.```
the output should be it downloads sdl2 into my computer