-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dunrong Huang <[email protected]>
- Loading branch information
0 parents
commit b60fbac
Showing
11 changed files
with
2,698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
project(winspice) | ||
|
||
include_directories(include) | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(SPICE spice-server) | ||
pkg_check_modules(GLIB glib-2.0) | ||
include_directories(${SPICE_INCLUDEDIR} ${SPICE_INCLUDE_DIRS} ${GLIB_INCLUDEDIR} ${GLIB_INCLUDE_DIRS}) | ||
find_library(SPICE spice-server) | ||
find_library(GLIB glib-2.0) | ||
|
||
aux_source_directory(src DIR_SRCS) | ||
set(WINSPICE_LIBS d3d11 dxgi dxguid ${SPICE} ${GLIB}) | ||
add_executable(${PROJECT_NAME} ${DIR_SRCS}) | ||
target_link_libraries(${PROJECT_NAME} ${WINSPICE_LIBS}) | ||
add_compile_options(-Werror -Wall) | ||
target_compile_options(${PROJECT_NAME} PUBLIC -Werror -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
* Introduce | ||
winspice provides windows remote desktop access using the Spice protocol. | ||
|
||
* Building | ||
** Prepare build environment | ||
|
||
Use fedora 32 as the compilation platform | ||
|
||
#+BEGIN_SRC bash | ||
$ yum install yum-utils cmake | ||
$ yum-builddep mingw32-spice-glib | ||
#+END_SRC | ||
|
||
** Build spice server library | ||
|
||
For convenience, use the stable tar package directly instead of the git version | ||
to build spice library, e.g. | ||
|
||
$ tar xf spice-{VERSION}.tar.bz2 | ||
$ cd spice-{VERSION} | ||
$ mingw32-configure | ||
$ mingw32-make | ||
$ mingw32-make install | ||
|
||
** Build winspice | ||
|
||
$ git clone https://github.com/mathslinux/winspice.git | ||
$ cd winspice | ||
$ mkdir -p build && mingw32-cmake ../ | ||
$ mingw32-make | ||
|
||
* How to run | ||
|
||
Copy all the dll libraries that the winspice.exe depends on to the folder | ||
where the exe is located. Then open window cmd, run: | ||
#+BEGIN_SRC bash | ||
$ winspice.exe <PORT> | ||
#+END_SRC | ||
Or double click winspice.exe to run, the default port is 5900. | ||
|
||
In the future, a GUI window will be provided to set the port, username and | ||
other parameters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- GUI window for configuration parameters | ||
- Sound support |
Oops, something went wrong.