2017-03-29 2 views
1

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를 설치하고 포장하려고 -

+0

실제로 실제로 아름답게 작동했습니다. 나는'python35','Kivy 1.9.2-dev0' 그리고'kivy.deps.angle'로 전환했습니다. OpenGL 2.0이 인식되고 빌드가 완료되었습니다. 감사. – Luka

+0

답변으로 게시 됨 ^^ – KeyWeeUsr

답변

2

@ilyaf 말했듯이,하지만 한 가지 당신을 도울 수있는가 ... 빌드가 물리적 GPU를 가지고 있지 않는 하이퍼 V 가상 머신에서 일어나는로 할 수없는

0

나는 두려워 그걸로 + 귀하의 응용 프로그램을 만들 use the angle. GPU가 없으니 도움이 될지 모르겠지만, angle은 Appearor가 가지고있는 DirectX로 OpenGL 호출을 변환합니다. 시도해 볼만한 가치가 있습니다. 비록 angle을 사용해도 괜찮을 것입니다.

+0

고마워, 내가 생각한 것 ... – Luka