Appveyor에서 PyInstaller를 사용하여 Kivy 응용 프로그램의 실행 파일을 만들고 싶습니다. 나는 내 자신의 컴퓨터에서 작업 빌드를 가지고 있지만, Appveyor에 나는 다음과 같은 메시지가 구축 : https://kivy.org/docs/guide/packaging-windows.html에 설명 된대로 내가 기본 pyInstaller 중에 구성을 사용하고Kivy PyInstaller on Appveyor
OpenGL version detected: 1.1
Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'
Try upgrading your graphics drivers and/or your graphics hardware in case of problems.
The application will leave now.
. 다음과 같이
appveyor.yml은 다음과 같습니다
image: Visual Studio 2015
environment:
matrix:
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.x" # currently 3.4.3
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x" # currently 3.4.3
PYTHON_ARCH: "64"
install:
# Install Python (from the official .msi of http://python.org) and pip when
# not already installed.
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "pip install --disable-pip-version-check --user --upgrade pip"
# Kivy and pyinstaller included
- "%CMD_IN_ENV% pip install -r requirements.txt"
# Saw somewhere on the internet, doesn't work with it nor without it.
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
build_script:
- "%CMD_IN_ENV% python -m PyInstaller myapp.spec"
artifacts:
- path: dist\*
지금까지 내가 그것을보고, 그것은 두 가지 방법으로 갈 수 : OpenGL을
OpenGL을 이 * Appveyor을 사용하도록 구성 사용하는 은 * 어떻게 든 kivy pyInstaller 중에 훅 방지를의견을 보내 주셔서 감사합니다. kivy.deps.angle
를 설치하고 포장하려고 -
실제로 실제로 아름답게 작동했습니다. 나는'python35','Kivy 1.9.2-dev0' 그리고'kivy.deps.angle'로 전환했습니다. OpenGL 2.0이 인식되고 빌드가 완료되었습니다. 감사. – Luka
답변으로 게시 됨 ^^ – KeyWeeUsr