Compare commits

...

2 Commits

Author SHA1 Message Date
Lephenixnoir 69e6445d93
meta: use pkg-config to find SDL2 2023-03-28 22:00:01 +02:00
Lephenixnoir 03622f0d32
README adjustments 2023-03-28 21:59:46 +02:00
2 changed files with 7 additions and 6 deletions

View File

@ -114,16 +114,17 @@ output, so I run two instances to get both monitors.
% wayvnc -o "HEADLESS-1" 127.0.0.1 5900
# For a second monitor:
% wayvnc -o "HEADLESS-2" 127.0.0.1 5910
% wayvnc -o "HEADLESS-2" -S /tmp/second-wayvnc.socket 127.0.0.1 5910
```
As the name suggests, wayvnc is for Wayland. There are alternatives on X, such
as [TigerVNC](https://tigervnc.org/). The following setup
([courtesy of Tituya](https://www.planet-casio.com/Fr/forums/topic17303-1-teaser-usb-utiliser-une-calto-comme-ecran-pour-son-pc.html#191111))
grabs grabs the top-left corner of the primary display:
grabs the top-left corner of the primary display:
```bash
% x0vncserver -rfbauth ~/.vnc/passwd -rfbport 5910 -Geometry 394x224+0+150
% vncpasswd
% x0vncserver -rfbauth ~/.vnc/passwd -rfbport 5910 -Geometry 394x224+0+0
```
**Step 3: Run the VNC client and calculator add-in**
@ -156,6 +157,6 @@ finally remove the outputs.
## Known issues
- The VNC client seems to lost connection with the calculator sometimes (libusb
- The VNC client seems to lose connection with the calculator sometimes (libusb
returning "No such device"). Not sure why yet, as it's hard to reproduce. In
that case restart the VNC client.

View File

@ -9,14 +9,14 @@ if(DEFINED "$ENV{FXSDK_PATH}")
endif()
find_package(PkgConfig REQUIRED)
find_package(SDL2 2.0 REQUIRED)
find_package(LibFxlink 2.9 REQUIRED)
pkg_check_modules(libvncclient REQUIRED libvncclient IMPORTED_TARGET)
pkg_check_modules(sdl2 REQUIRED sdl2 IMPORTED_TARGET)
add_executable(cgvm_vnc src/main.c)
target_compile_options(cgvm_vnc PRIVATE -g)
set_target_properties(cgvm_vnc PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(cgvm_vnc PRIVATE
PkgConfig::libvncclient SDL2::SDL2 LibFxlink::LibFxlink)
PkgConfig::libvncclient PkgConfig::sdl2 LibFxlink::LibFxlink)