1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 11:21:53 +00:00

#10 import OpenGl library on startup, dropped qtbase5-dev dependancy

This commit is contained in:
Bumsik Kim 2018-06-24 14:36:57 -04:00
parent 458108119d
commit 9b2925b428
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
5 changed files with 11 additions and 4 deletions

View file

@ -8,7 +8,7 @@ arch=("i686" "x86_64")
url="https://github.com/kbumsik/VirtScreen"
license=('GPL')
groups=()
depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'python-twisted' 'python-netifaces' 'python-qt5reactor' 'python-opengl')
depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'python-twisted' 'python-netifaces' 'python-qt5reactor')
makedepends=('python-pip')
optdepends=(
'arandr: for display settings option'

View file

@ -9,6 +9,7 @@ install:
install -d $(DESTDIR)$(prefix)/share/virtscreen
source $(HOME)/miniconda/bin/activate && \
conda create -y --copy --prefix $(DESTDIR)$(prefix)/share/virtscreen/env python=3.6
# Install VirtScreen using pip
source $(HOME)/miniconda/bin/activate && \
source activate $(DESTDIR)$(prefix)/share/virtscreen/env && \
pip install .

View file

@ -10,7 +10,7 @@ X-Python3-Version: >= 3.6
Package: virtscreen
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}, x11vnc, python3-pyqt5, qtbase5-dev, python3-opengl, python3-twisted, python3-netifaces
Depends: ${misc:Depends}, ${python3:Depends}, x11vnc, python3-pyqt5, python3-twisted, python3-netifaces
Description: Make your iPad/tablet/computer as a secondary monitor on Linux
VirtScreen is an easy-to-use Linux GUI app that creates a virtual
secondary screen and shares it through VNC.

View file

@ -10,7 +10,7 @@ X-Python3-Version: >= 3.5
Package: virtscreen
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, x11vnc, qtbase5-dev
Depends: ${misc:Depends}, x11vnc
Description: Make your iPad/tablet/computer as a secondary monitor on Linux
VirtScreen is an easy-to-use Linux GUI app that creates a virtual
secondary screen and shares it through VNC.

View file

@ -14,6 +14,13 @@ import argparse
from pathlib import Path
from enum import Enum
from typing import List, Dict, Callable
# Import OpenGL library for Nvidia driver
# https://github.com/Ultimaker/Cura/pull/131#issuecomment-176088664
import ctypes
from ctypes.util import find_library
ctypes.CDLL(find_library('GL'), ctypes.RTLD_GLOBAL)
# PyQt5 packages
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QObject, QUrl, Qt, pyqtProperty, pyqtSlot, pyqtSignal, Q_ENUMS
@ -23,7 +30,6 @@ from PyQt5.QtQml import qmlRegisterType, QQmlApplicationEngine, QQmlListProperty
from twisted.internet import protocol, error
from netifaces import interfaces, ifaddresses, AF_INET
# -------------------------------------------------------------------------------
# file path definitions
# -------------------------------------------------------------------------------