Is it necessary to root devices to be able to access scoped storage? - permissions

We are currently using AWS Device Farm for testing android applications. Using AWS device farm, first the apk is built. Then, the required artifacts are placed in the testing device's scoped storage. Then, the application is ran(which uses these artifacts).
Lately, I have been facing the following issue when trying to push the artifacts:
(Consider my app's package is "com.myapp")
[ 5%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 11%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 16%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 22%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 27%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 33%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 38%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 44%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 49%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 55%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 60%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 66%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 71%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 77%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 82%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 88%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 93%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[ 99%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
[100%] /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
adb: error: failed to copy 'scripts.zip' to '/sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip': remote secure_mkdirs failed: Permission denied
on GOOGLE PIXEL 5 (UNLOCKED) OS 11
Whereas the same logic worked on a few set of devices:
SAMSUNG GALAXY S20 (UNLOCKED) 10
SAMSUNG GALAXY S9 (UNLOCKED) 9
The following command is run to push the scripts.zip file:
adb push scripts.zip /sdcard/Android/data/com.myapp/files/MyFolder/scripts.zip
I read a lot of articles about this error but all of them were using rooted device. Thus on running certain commands, they were able to fix it. In my case, aws cloud contains real device on which the testcases are run and thus rooting the device is not possible.
My requirement is to push the artifact into the scoped storage of my own application using cmd commands.
Thank you in advance.

The scoped storage location of your own app on Pixel devices is
/data/data/com.myapp/files
to copy a file into this folder you can copy it into a temporary location:
adb push scripts.zip /data/local/tmp/scripts.zip
then copy the uploaded file into the app's private location:
adb shell run-as com.myapp cp /data/local/tmp/scripts.zip .

Related

Is it possible to have a timer during a CMake build?

I need to measure the time spent by different steps during a CMake build.
Currently my build logs look like this :
Scanning dependencies of target TARGET1
[ 75%] Building TARGET1
[ 75%] Generating TARGET1 description file
[ 75%] Built target TARGET1
Scanning dependencies of target TARGET2
[ 75%] Building TARGET2
[ 75%] Generating TARGET2 description file
[ 75%] Built target TARGET2
Scanning dependencies of target TARGET3
[ 75%] Building TARGET3
[ 75%] Generating TARGET3 description file
[ 75%] Built target TARGET3
Scanning dependencies of target TARGET4
[ 75%] Building TARGET4
[ 75%] Generating TARGET4 description file
[ 75%] Built target TARGET4
What I would like to do is having something like that :
[build] [770/1170 64% :: 44.419] Building TARGET1
[build] [771/1170 64% :: 44.431] Building TARGET2
[build] [772/1170 64% :: 44.745] Building TARGET3
[build] [773/1170 64% :: 44.873] Generating TARGET1
[build] [774/1170 64% :: 44.934] Building TARGET4
Here we see a timer on the right which is very helpful to see which steps takes more time etc... The last logs come from the CMake plugin of VScode but I don't know how to display the same timer with a classical use of CMake.
Anyone knows how to do this ? Is there just an option to activate of something like that ?
Thx !

Does Apache Guacamole support VNC Connection with GNUTLS?

Currently I've working on my custom Remote Desktop Service which is strongly based on Apache Guacamole.
I found that I can encrypt VNC connection between Guacamole (which is actually LibVNCClient) and my TigerVNC Server with SSL/TLS.
So I built LibVNCServer with -DWITH_GNUTLS=ON -DWITH_OPENSSL=OFFoption and installed Guacamole based on customed LibVNCServer.
Below is the generated log when I build LibVNCServer and Guacamole.
cmake -DWITH_OPENSSL=OFF -DWITH_GNUTLS=ON ..
-- The C compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found LZO: /usr/lib64/liblzo2.so
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
-- Performing Test FOUND_LIBJPEG_TURBO
-- Performing Test FOUND_LIBJPEG_TURBO - Success
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.13")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL2: /usr/lib64/libSDL2.so;-lpthread
-- Found GTK2_GTK: /usr/lib64/libgtk-x11-2.0.so
-- Found GnuTLS: /usr/lib64/libgnutls.so (found version "3.3.29")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Checking for module 'libsystemd'
-- Found libsystemd, version 219
-- Found FFMPEG: /usr/include/ffmpeg (found suitable version "3.4.9", minimum required is "3.1.0") found components: avformat avcodec avutil swscale
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for ws2tcpip.h
-- Looking for ws2tcpip.h - not found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for vprintf
-- Looking for vprintf - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for fork
-- Looking for fork - found
-- Looking for ftime
-- Looking for ftime - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for inet_ntoa
-- Looking for inet_ntoa - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mkfifo
-- Looking for mkfifo - found
-- Looking for select
-- Looking for select - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strcspn
-- Looking for strcspn - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for htobe64
-- Looking for htobe64 - found
-- Looking for OSSwapHostToBigInt64
-- Looking for OSSwapHostToBigInt64 - not found
-- Building crypto with builtin functions, only including SHA1 and D3DES
-- Threads support is using pthreads
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of in_addr_t
-- Check size of in_addr_t - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Building TLS with GnuTLS
-- Configuring done
-- Generating done
-- Build files have been written to: /root/libvncserver/build
[root#localhost build]# cmake --build .
Scanning dependencies of target vncclient
[ 1%] Building C object CMakeFiles/vncclient.dir/libvncclient/cursor.c.o
[ 2%] Building C object CMakeFiles/vncclient.dir/libvncclient/listen.c.o
[ 3%] Building C object CMakeFiles/vncclient.dir/libvncclient/rfbproto.c.o
[ 4%] Building C object CMakeFiles/vncclient.dir/libvncclient/sockets.c.o
[ 5%] Building C object CMakeFiles/vncclient.dir/libvncclient/vncviewer.c.o
[ 6%] Building C object CMakeFiles/vncclient.dir/common/crypto_included.c.o
[ 7%] Building C object CMakeFiles/vncclient.dir/common/sha1.c.o
[ 8%] Building C object CMakeFiles/vncclient.dir/common/d3des.c.o
[ 8%] Building C object CMakeFiles/vncclient.dir/common/turbojpeg.c.o
[ 9%] Building C object CMakeFiles/vncclient.dir/libvncclient/tls_gnutls.c.o
[ 10%] Linking C shared library libvncclient.so
[ 10%] Built target vncclient
Scanning dependencies of target vncserver
[ 11%] Building C object CMakeFiles/vncserver.dir/libvncserver/main.c.o
[ 12%] Building C object CMakeFiles/vncserver.dir/libvncserver/rfbserver.c.o
/root/libvncserver/libvncserver/rfbserver.c: In function ‘rfbProcessExtendedServerCutTextData’:
/root/libvncserver/libvncserver/rfbserver.c:2134:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
stream.next_in = data;
^
[ 13%] Building C object CMakeFiles/vncserver.dir/libvncserver/rfbregion.c.o
[ 14%] Building C object CMakeFiles/vncserver.dir/libvncserver/auth.c.o
[ 15%] Building C object CMakeFiles/vncserver.dir/libvncserver/sockets.c.o
[ 16%] Building C object CMakeFiles/vncserver.dir/libvncserver/stats.c.o
[ 17%] Building C object CMakeFiles/vncserver.dir/libvncserver/corre.c.o
[ 18%] Building C object CMakeFiles/vncserver.dir/libvncserver/hextile.c.o
[ 19%] Building C object CMakeFiles/vncserver.dir/libvncserver/rre.c.o
[ 20%] Building C object CMakeFiles/vncserver.dir/libvncserver/translate.c.o
[ 21%] Building C object CMakeFiles/vncserver.dir/libvncserver/cutpaste.c.o
[ 21%] Building C object CMakeFiles/vncserver.dir/libvncserver/httpd.c.o
[ 22%] Building C object CMakeFiles/vncserver.dir/libvncserver/cursor.c.o
[ 23%] Building C object CMakeFiles/vncserver.dir/libvncserver/font.c.o
[ 24%] Building C object CMakeFiles/vncserver.dir/libvncserver/draw.c.o
[ 25%] Building C object CMakeFiles/vncserver.dir/libvncserver/selbox.c.o
[ 26%] Building C object CMakeFiles/vncserver.dir/common/vncauth.c.o
[ 27%] Building C object CMakeFiles/vncserver.dir/libvncserver/cargs.c.o
[ 28%] Building C object CMakeFiles/vncserver.dir/libvncserver/ultra.c.o
[ 29%] Building C object CMakeFiles/vncserver.dir/libvncserver/scale.c.o
[ 30%] Building C object CMakeFiles/vncserver.dir/common/crypto_included.c.o
[ 31%] Building C object CMakeFiles/vncserver.dir/common/sha1.c.o
[ 32%] Building C object CMakeFiles/vncserver.dir/common/d3des.c.o
[ 33%] Building C object CMakeFiles/vncserver.dir/libvncserver/rfbssl_gnutls.c.o
[ 33%] Building C object CMakeFiles/vncserver.dir/libvncserver/zlib.c.o
[ 34%] Building C object CMakeFiles/vncserver.dir/libvncserver/zrle.c.o
[ 35%] Building C object CMakeFiles/vncserver.dir/libvncserver/zrleoutstream.c.o
[ 36%] Building C object CMakeFiles/vncserver.dir/libvncserver/zrlepalettehelper.c.o
[ 37%] Building C object CMakeFiles/vncserver.dir/libvncserver/tight.c.o
[ 38%] Building C object CMakeFiles/vncserver.dir/common/turbojpeg.c.o
[ 39%] Building C object CMakeFiles/vncserver.dir/libvncserver/tightvnc-filetransfer/rfbtightserver.c.o
[ 40%] Building C object CMakeFiles/vncserver.dir/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c.o
[ 41%] Building C object CMakeFiles/vncserver.dir/libvncserver/tightvnc-filetransfer/filetransfermsg.c.o
[ 42%] Building C object CMakeFiles/vncserver.dir/libvncserver/tightvnc-filetransfer/filelistinfo.c.o
[ 43%] Building C object CMakeFiles/vncserver.dir/libvncserver/websockets.c.o
[ 44%] Building C object CMakeFiles/vncserver.dir/libvncserver/ws_decode.c.o
[ 45%] Building C object CMakeFiles/vncserver.dir/common/base64.c.o
[ 46%] Linking C shared library libvncserver.so
[ 46%] Built target vncserver
Scanning dependencies of target test_tjbench
[ 47%] Building C object CMakeFiles/test_tjbench.dir/test/tjbench.c.o
[ 48%] Building C object CMakeFiles/test_tjbench.dir/test/tjutil.c.o
[ 49%] Building C object CMakeFiles/test_tjbench.dir/test/bmp.c.o
[ 50%] Building C object CMakeFiles/test_tjbench.dir/common/turbojpeg.c.o
[ 51%] Linking C executable test/tjbench
[ 51%] Built target test_tjbench
Scanning dependencies of target test_copyrecttest
[ 52%] Building C object CMakeFiles/test_copyrecttest.dir/test/copyrecttest.c.o
[ 53%] Linking C executable test/copyrecttest
[ 53%] Built target test_copyrecttest
Scanning dependencies of target test_cargstest
[ 54%] Building C object CMakeFiles/test_cargstest.dir/test/cargstest.c.o
[ 55%] Linking C executable test/cargstest
[ 55%] Built target test_cargstest
Scanning dependencies of target client_examples_gtkvncviewer
[ 56%] Building C object CMakeFiles/client_examples_gtkvncviewer.dir/client_examples/gtkvncviewer.c.o
[ 57%] Linking C executable client_examples/gtkvncviewer
[ 57%] Built target client_examples_gtkvncviewer
Scanning dependencies of target test_wstest
[ 58%] Building C object CMakeFiles/test_wstest.dir/test/wstest.c.o
[ 59%] Linking C executable test/wstest
[ 59%] Built target test_wstest
Scanning dependencies of target examples_fontsel
[ 60%] Building C object CMakeFiles/examples_fontsel.dir/examples/fontsel.c.o
[ 61%] Linking C executable examples/fontsel
[ 61%] Built target examples_fontsel
Scanning dependencies of target examples_pnmshow24
[ 62%] Building C object CMakeFiles/examples_pnmshow24.dir/examples/pnmshow24.c.o
[ 62%] Linking C executable examples/pnmshow24
[ 62%] Built target examples_pnmshow24
Scanning dependencies of target copy-compile-commands
[ 62%] Built target copy-compile-commands
Scanning dependencies of target examples_regiontest
[ 63%] Building C object CMakeFiles/examples_regiontest.dir/examples/regiontest.c.o
[ 64%] Linking C executable examples/regiontest
[ 64%] Built target examples_regiontest
Scanning dependencies of target examples_cursors
[ 65%] Building C object CMakeFiles/examples_cursors.dir/examples/cursors.c.o
[ 66%] Linking C executable examples/cursors
[ 66%] Built target examples_cursors
Scanning dependencies of target examples_camera
[ 67%] Building C object CMakeFiles/examples_camera.dir/examples/camera.c.o
[ 67%] Linking C executable examples/camera
[ 67%] Built target examples_camera
Scanning dependencies of target examples_backchannel
[ 68%] Building C object CMakeFiles/examples_backchannel.dir/examples/backchannel.c.o
[ 69%] Linking C executable examples/backchannel
[ 69%] Built target examples_backchannel
Scanning dependencies of target examples_vncev
[ 69%] Building C object CMakeFiles/examples_vncev.dir/examples/vncev.c.o
[ 70%] Linking C executable examples/vncev
[ 70%] Built target examples_vncev
Scanning dependencies of target client_examples_SDLvncviewer
[ 70%] Building C object CMakeFiles/client_examples_SDLvncviewer.dir/client_examples/SDLvncviewer.c.o
[ 71%] Linking C executable client_examples/SDLvncviewer
[ 71%] Built target client_examples_SDLvncviewer
Scanning dependencies of target examples_pnmshow
[ 72%] Building C object CMakeFiles/examples_pnmshow.dir/examples/pnmshow.c.o
[ 73%] Linking C executable examples/pnmshow
[ 73%] Built target examples_pnmshow
Scanning dependencies of target examples_colourmaptest
[ 74%] Building C object CMakeFiles/examples_colourmaptest.dir/examples/colourmaptest.c.o
[ 75%] Linking C executable examples/colourmaptest
[ 75%] Built target examples_colourmaptest
Scanning dependencies of target test_encodingstest
[ 76%] Building C object CMakeFiles/test_encodingstest.dir/test/encodingstest.c.o
[ 77%] Linking C executable test/encodingstest
[ 77%] Built target test_encodingstest
Scanning dependencies of target examples_example
[ 78%] Building C object CMakeFiles/examples_example.dir/examples/example.c.o
[ 79%] Linking C executable examples/example
[ 79%] Built target examples_example
Scanning dependencies of target examples_blooptest
[ 80%] Building C object CMakeFiles/examples_blooptest.dir/examples/blooptest.c.o
[ 81%] Linking C executable examples/blooptest
[ 81%] Built target examples_blooptest
Scanning dependencies of target examples_repeater
[ 82%] Building C object CMakeFiles/examples_repeater.dir/examples/repeater.c.o
[ 83%] Linking C executable examples/repeater
[ 83%] Built target examples_repeater
Scanning dependencies of target test_tjunittest
[ 84%] Building C object CMakeFiles/test_tjunittest.dir/test/tjunittest.c.o
[ 84%] Building C object CMakeFiles/test_tjunittest.dir/test/tjutil.c.o
[ 85%] Building C object CMakeFiles/test_tjunittest.dir/common/turbojpeg.c.o
[ 86%] Linking C executable test/tjunittest
[ 86%] Built target test_tjunittest
Scanning dependencies of target examples_rotate
[ 87%] Building C object CMakeFiles/examples_rotate.dir/examples/rotate.c.o
[ 88%] Linking C executable examples/rotate
[ 88%] Built target examples_rotate
Scanning dependencies of target examples_simple
[ 89%] Building C object CMakeFiles/examples_simple.dir/examples/simple.c.o
[ 90%] Linking C executable examples/simple
[ 90%] Built target examples_simple
Scanning dependencies of target examples_simple15
[ 91%] Building C object CMakeFiles/examples_simple15.dir/examples/simple15.c.o
[ 92%] Linking C executable examples/simple15
[ 92%] Built target examples_simple15
Scanning dependencies of target examples_storepasswd
[ 93%] Building C object CMakeFiles/examples_storepasswd.dir/examples/storepasswd.c.o
[ 94%] Linking C executable examples/storepasswd
[ 94%] Built target examples_storepasswd
Scanning dependencies of target examples_filetransfer
[ 95%] Building C object CMakeFiles/examples_filetransfer.dir/examples/filetransfer.c.o
[ 96%] Linking C executable examples/filetransfer
[ 96%] Built target examples_filetransfer
Scanning dependencies of target client_examples_backchannel
[ 97%] Building C object CMakeFiles/client_examples_backchannel.dir/client_examples/backchannel.c.o
[ 98%] Linking C executable client_examples/backchannel
[ 98%] Built target client_examples_backchannel
Scanning dependencies of target client_examples_ppmtest
[ 99%] Building C object CMakeFiles/client_examples_ppmtest.dir/client_examples/ppmtest.c.o
[100%] Linking C executable client_examples/ppmtest
[100%] Built target client_examples_ppmtest
[root#localhost build]# make
[ 10%] Built target vncclient
[ 46%] Built target vncserver
[ 51%] Built target test_tjbench
[ 53%] Built target test_copyrecttest
[ 55%] Built target test_cargstest
[ 57%] Built target client_examples_gtkvncviewer
[ 59%] Built target test_wstest
[ 61%] Built target examples_fontsel
[ 62%] Built target examples_pnmshow24
[ 62%] Built target copy-compile-commands
[ 64%] Built target examples_regiontest
[ 66%] Built target examples_cursors
[ 67%] Built target examples_camera
[ 69%] Built target examples_backchannel
[ 70%] Built target examples_vncev
[ 71%] Built target client_examples_SDLvncviewer
[ 73%] Built target examples_pnmshow
[ 75%] Built target examples_colourmaptest
[ 77%] Built target test_encodingstest
[ 79%] Built target examples_example
[ 81%] Built target examples_blooptest
[ 83%] Built target examples_repeater
[ 86%] Built target test_tjunittest
[ 88%] Built target examples_rotate
[ 90%] Built target examples_simple
[ 92%] Built target examples_simple15
[ 94%] Built target examples_storepasswd
[ 96%] Built target examples_filetransfer
[ 98%] Built target client_examples_backchannel
[100%] Built target client_examples_ppmtest
[root#localhost build]# make test
Running tests...
Test project /root/libvncserver/build
Start 1: cargs
1/4 Test #1: cargs ............................ Passed 0.01 sec
Start 2: includetest
2/4 Test #2: includetest ...................... Passed 0.62 sec
Start 3: turbojpeg
3/4 Test #3: turbojpeg ........................ Passed 6.17 sec
Start 4: wstest
4/4 Test #4: wstest ........................... Passed 0.01 sec
100% tests passed, 0 tests failed out of 4
Total Test time (real) = 6.82 sec
[root#localhost build]# make install
[ 10%] Built target vncclient
[ 46%] Built target vncserver
[ 51%] Built target test_tjbench
[ 53%] Built target test_copyrecttest
[ 55%] Built target test_cargstest
[ 57%] Built target client_examples_gtkvncviewer
[ 59%] Built target test_wstest
[ 61%] Built target examples_fontsel
[ 62%] Built target examples_pnmshow24
[ 62%] Built target copy-compile-commands
[ 64%] Built target examples_regiontest
[ 66%] Built target examples_cursors
[ 67%] Built target examples_camera
[ 69%] Built target examples_backchannel
[ 70%] Built target examples_vncev
[ 71%] Built target client_examples_SDLvncviewer
[ 73%] Built target examples_pnmshow
[ 75%] Built target examples_colourmaptest
[ 77%] Built target test_encodingstest
[ 79%] Built target examples_example
[ 81%] Built target examples_blooptest
[ 83%] Built target examples_repeater
[ 86%] Built target test_tjunittest
[ 88%] Built target examples_rotate
[ 90%] Built target examples_simple
[ 92%] Built target examples_simple15
[ 94%] Built target examples_storepasswd
[ 96%] Built target examples_filetransfer
[ 98%] Built target client_examples_backchannel
[100%] Built target client_examples_ppmtest
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib64/libvncclient.so.0.9.13
-- Up-to-date: /usr/local/lib64/libvncclient.so.1
-- Up-to-date: /usr/local/lib64/libvncclient.so
-- Up-to-date: /usr/local/include/rfb/keysym.h
-- Up-to-date: /usr/local/include/rfb/threading.h
-- Up-to-date: /usr/local/include/rfb/rfb.h
-- Up-to-date: /usr/local/include/rfb/rfbclient.h
-- Installing: /usr/local/include/rfb/rfbconfig.h
-- Up-to-date: /usr/local/include/rfb/rfbproto.h
-- Up-to-date: /usr/local/include/rfb/rfbregion.h
-- Installing: /usr/local/lib64/libvncserver.so.0.9.13
-- Up-to-date: /usr/local/lib64/libvncserver.so.1
-- Up-to-date: /usr/local/lib64/libvncserver.so
-- Up-to-date: /usr/local/include/rfb/keysym.h
-- Up-to-date: /usr/local/include/rfb/threading.h
-- Up-to-date: /usr/local/include/rfb/rfb.h
-- Up-to-date: /usr/local/include/rfb/rfbclient.h
-- Up-to-date: /usr/local/include/rfb/rfbconfig.h
-- Up-to-date: /usr/local/include/rfb/rfbproto.h
-- Up-to-date: /usr/local/include/rfb/rfbregion.h
-- Installing: /usr/local/lib64/cmake/LibVNCServer/LibVNCServerTargets.cmake
-- Installing: /usr/local/lib64/cmake/LibVNCServer/LibVNCServerTargets-noconfig.cmake
-- Installing: /usr/local/lib64/cmake/LibVNCServer/LibVNCServerConfigVersion.cmake
-- Installing: /usr/local/lib64/cmake/LibVNCServer/LibVNCServerConfig.cmake
-- Installing: /usr/local/lib64/pkgconfig/libvncserver.pc
-- Installing: /usr/local/lib64/pkgconfig/libvncclient.pc
------------------------------------------------
guacamole-server version 1.2.0
------------------------------------------------
Library status:
freerdp2 ............ yes
pango ............... yes
libavcodec .......... yes
libavformat.......... yes
libavutil ........... yes
libssh2 ............. yes
libssl .............. yes
libswscale .......... yes
libtelnet ........... yes
libVNCServer ........ yes
libvorbis ........... yes
libpulse ............ yes
libwebsockets ....... yes
libwebp ............. yes
wsock32 ............. no
Protocol support:
Kubernetes .... yes
RDP ........... yes
SSH ........... yes
Telnet ........ yes
Rlogin ........ yes
VNC ........... yes
Services / tools:
guacd ...... yes
guacenc .... yes
guaclog .... yes
FreeRDP plugins: /usr/lib64/freerdp2
Init scripts: /etc/init.d
Systemd units: no
Type "make" to compile guacamole-server.
Below is guacd log when I try to connect TigerVNC Server via Guacamole.
Jan 13 17:33:42 localhost guacd[19563]: Creating new client for protocol "vnc"
Jan 13 17:33:42 localhost guacd[19563]: Connection ID is "$83a2d4dd-24cc-441a-af1e-66a0e429639c"
Jan 13 17:33:42 localhost guacd[31041]: Cursor rendering: local
Jan 13 17:33:42 localhost guacd[31041]: User "#9cdcd7df-1d51-498f-bb4b-2399d1a1b8de" joined connection "$83a2d4dd-24cc-441a-af1e-66a0e429639c" (1 users now present)
Jan 13 17:33:42 localhost guacd[31041]: VNC server supports protocol version 3.8 (viewer 3.8)
Jan 13 17:33:42 localhost guacd[31041]: We have 2 security types to read
Jan 13 17:33:42 localhost guacd[31041]: 0) Received security type 19
Jan 13 17:33:42 localhost guacd[31041]: Selecting security type 19 (0/2 in the list)
Jan 13 17:33:42 localhost guacd[31041]: 1) Received security type 19
Jan 13 17:33:42 localhost guacd[31041]: Selected Security Scheme 19
Jan 13 17:33:42 localhost guacd[31041]: TLS is not supported.
Jan 13 17:33:42 localhost guacd[31041]: Connect failed. Waiting 1000ms before retrying...
Jan 13 17:33:43 localhost guacd[31041]: VNC server supports protocol version 3.8 (viewer 3.8)
Jan 13 17:33:43 localhost guacd[31041]: We have 2 security types to read
Jan 13 17:33:43 localhost guacd[31041]: 0) Received security type 19
Jan 13 17:33:43 localhost guacd[31041]: Selecting security type 19 (0/2 in the list)
Jan 13 17:33:43 localhost guacd[31041]: 1) Received security type 19
Jan 13 17:33:43 localhost guacd[31041]: Selected Security Scheme 19
Jan 13 17:33:43 localhost guacd[31041]: TLS is not supported.
Jan 13 17:33:43 localhost guacd[31041]: Connect failed. Waiting 1000ms before retrying...
Jan 13 17:33:44 localhost guacd[31041]: VNC server supports protocol version 3.8 (viewer 3.8)
Jan 13 17:33:44 localhost guacd[31041]: We have 2 security types to read
Jan 13 17:33:44 localhost guacd[31041]: 0) Received security type 19
Jan 13 17:33:44 localhost guacd[31041]: Selecting security type 19 (0/2 in the list)
Jan 13 17:33:44 localhost guacd[31041]: 1) Received security type 19
Jan 13 17:33:44 localhost guacd[31041]: Selected Security Scheme 19
Jan 13 17:33:44 localhost guacd[31041]: TLS is not supported.
Jan 13 17:33:44 localhost guacd[31041]: Connect failed. Waiting 1000ms before retrying...
Jan 13 17:33:45 localhost guacd[31041]: VNC server supports protocol version 3.8 (viewer 3.8)
Jan 13 17:33:45 localhost guacd[31041]: We have 2 security types to read
Jan 13 17:33:45 localhost guacd[31041]: 0) Received security type 19
Jan 13 17:33:45 localhost guacd[31041]: Selecting security type 19 (0/2 in the list)
Jan 13 17:33:45 localhost guacd[31041]: 1) Received security type 19
Jan 13 17:33:45 localhost guacd[31041]: Selected Security Scheme 19
Jan 13 17:33:45 localhost guacd[31041]: TLS is not supported.
Jan 13 17:33:45 localhost guacd[31041]: Unable to connect to VNC server.
Jan 13 17:33:45 localhost guacd[31041]: User "#9cdcd7df-1d51-498f-bb4b-2399d1a1b8de" disconnected (0 users remain)
Jan 13 17:33:45 localhost guacd[31041]: Last user of connection "$83a2d4dd-24cc-441a-af1e-66a0e429639c" disconnected
Jan 13 17:33:47 localhost guacd[19563]: Connection "$83a2d4dd-24cc-441a-af1e-66a0e429639c" removed.
I cannot find any error log during make and make install.
What can I do further for encrypting my VNC connection?
Don't consider this a proper answer because it probably won't solve your issue.
Actually it works for me:
I have started TigerVNC v1.11.0 like this:
vncserver -geometry 1024x768 -SecurityTypes TLSVnc -alwaysshared :1
Log:
$ cat ~/.vnc/debian:5901.log
Sat Jun 25 19:39:46 2022
Connections: accepted: 127.0.0.1::47286
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Sat Jun 25 19:39:48 2022
VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888
I am using Guacamole v1.3.0. Log:
# journalctl -u guacd.service
Jun 25 19:39:46 debian guacd[270122]: Creating new client for protocol "vnc"
Jun 25 19:39:46 debian guacd[270122]: Connection ID is "$14bc9889-ad11-4457-96ee-091f1f06455c"
Jun 25 19:39:46 debian guacd[892713]: Cursor rendering: local
Jun 25 19:39:46 debian guacd[892713]: User "#549da414-67b2-4679-968d-216c11142a74" joined connection "$14bc9889-ad11-4457-96ee-091f1f06455c" (1 users now present)
Jun 25 19:39:46 debian guacd[892713]: Using non-standard VNC clipboard encoding: 'UTF-8'.
Jun 25 19:39:46 debian guacd[892713]: VNC server supports protocol version 3.8 (viewer 3.8)
Jun 25 19:39:46 debian guacd[892713]: We have 1 security types to read
Jun 25 19:39:46 debian guacd[892713]: 0) Received security type 19
Jun 25 19:39:46 debian guacd[892713]: Selecting security type 19 (0/1 in the list)
Jun 25 19:39:46 debian guacd[892713]: Selected Security Scheme 19
Jun 25 19:39:46 debian guacd[892713]: GnuTLS version 3.7.1 initialized.
Jun 25 19:39:46 debian guacd[892713]: Got VeNCrypt version 0.2 from server.
Jun 25 19:39:46 debian guacd[892713]: We have 1 security types to read
Jun 25 19:39:46 debian guacd[892713]: 0) Received security type 258
Jun 25 19:39:46 debian guacd[892713]: Selecting security type 258 (0/1 in the list)
Jun 25 19:39:46 debian guacd[892713]: TLS session initialized.
Jun 25 19:39:46 debian guacd[892713]: TLS anonymous credential created.
Jun 25 19:39:46 debian guacd[892713]: TLS handshake blocking.
Jun 25 19:39:47 debian guacd[892713]: TLS handshake blocking.
Jun 25 19:39:48 debian guacd[892713]: TLS handshake done.
Jun 25 19:39:48 debian guacd[892713]: Libgcrypt warning: missing initialization - please fix the application
Jun 25 19:39:48 debian guacd[892713]: VNC authentication succeeded
I don't think that SSL library plays a role, but just in case stock guacd is linked against OpenSSL:
# ldd `which guacd`
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fabf9992000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fabfa0ac000)
So I suggest you to try to upgrade TigerVNC first (as it seems to be the easiest in your case). If that does not help, then try stock guacd.

Doxygen docs installation fails due to EPSTOPDF-NOTFOUND error

I'm trying to build the Doxygen documentation. I can get the html files to build and load properly in the borwser. However, the PDF files do not build properly.
When I execute make docs (as stated in the Doxygen installation instructions), the following is the error output:
[ 37%] Built target _doxygen
[ 38%] Built target md5
[ 38%] Built target lodepng
[ 45%] Built target mscgen
[ 45%] Checking the git repository for changes...
[ 45%] Built target check_git_repository
[ 46%] Checking the doxygen version for changes...
[ 46%] Built target check_doxygen_version
[ 47%] Built target doxygen_version
[ 55%] Built target qtools
[ 55%] Built target generate_configvalues_header
[ 57%] Built target vhdlparser
[ 61%] Built target doxycfg
[ 61%] Built target doxygen
[ 85%] Built target examples
[ 85%] Generating Latex and HTML documentation.
[100%] Built target run_doxygen
[100%] Generating Doxygen Manual PDF.
/bin/sh: 1: EPSTOPDF-NOTFOUND: not found
doc/CMakeFiles/doxygen_pdf.dir/build.make:57: recipe for target 'doc/CMakeFiles/doxygen_pdf' failed
make[3]: *** [doc/CMakeFiles/doxygen_pdf] Error 127
CMakeFiles/Makefile2:637: recipe for target 'doc/CMakeFiles/doxygen_pdf.dir/all' failed
make[2]: *** [doc/CMakeFiles/doxygen_pdf.dir/all] Error 2
CMakeFiles/Makefile2:671: recipe for target 'doc/CMakeFiles/docs.dir/rule' failed
make[1]: *** [doc/CMakeFiles/docs.dir/rule] Error 2
Makefile:379: recipe for target 'docs' failed
make: *** [docs] Error 2
I have searched online extensively and installed all font packages I can find regarding the TexLive package, and I have installed the pdflatex package as well.
Help is appreciated, thank you!

Error compiling opencv_3.4.0 from source

I encountered the following error while trying to make opencv-3.4.0 from source:
main:StaticLib theo$ make -j8
[ 0%] Built target gen-pkgconfig
[ 1%] Built target ittnotify
[ 3%] Built target zlib
[ 5%] Built target gen_opencv_python_source
[ 8%] Built target libjpeg
[ 14%] Built target ippiw
[ 15%] Built target libjasper
[ 17%] Built target libpng
[ 23%] Built target libtiff
[ 30%] Built target libprotobuf
[ 38%] Built target IlmImf
[ 45%] Built target opencv_core
[ 46%] Built target opencv_flann
[ 48%] Built target opencv_ml
[ 56%] Built target opencv_imgproc
[ 57%] Built target opencv_objdetect
[ 59%] Built target opencv_video
[ 60%] Built target opencv_photo
[ 68%] Built target opencv_dnn
[ 68%] Built target opencv_shape
[ 70%] Built target opencv_imgcodecs
[ 70%] Built target opencv_videoio
[ 70%] Built target opencv_highgui
[ 71%] Built target opencv_superres
[ 71%] Linking CXX executable ../../bin/opencv_version
[ 71%] Linking CXX executable ../../bin/opencv_annotation
[ 71%] Linking CXX executable ../../bin/opencv_visualisation
ld: library not found for -lgstbase-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lgstbase-1.0
ld: library not found for -lgstbase-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/opencv_visualisation] Error 1
make[1]: *** [apps/visualisation/CMakeFiles/opencv_visualisation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [bin/opencv_version] Error 1
make[2]: *** [bin/opencv_annotation] Error 1
make[1]: *** [apps/annotation/CMakeFiles/opencv_annotation.dir/all] Error 2
make[1]: *** [apps/version/CMakeFiles/opencv_version.dir/all] Error 2
[ 72%] Built target opencv_ts
[ 74%] Built target opencv_features2d
make: *** [all] Error 2
I cannot find the package lgstbase-1.0 and am not sure how to link it to the project.
I encountered the same error with lintl, but I followed advice from another thread to fix it (brew reinstall gettext).
Any ideas?

Cmake building error for Vortex86DX Linux 2.6.23 platform

I´m trying to build CMAKE to an embedded platform based on Vortex86DX processor - Linux 2.6.23 kernel.
I´ve downloaded the latest CMAKE package (3.4.1), add did:
./bootstrap
Then: make
Here is the make result with the error message:
$ make
[ 1%] Built target cmIML_test
[ 4%] Built target cmsys
[ 5%] Built target cmsysTestDynload
[ 6%] Built target cmsys_c
[ 6%] Built target cmsysTestProcess
[ 6%] Built target cmsysTestSharedForward
[ 7%] Built target cmsysTestsC
[ 9%] Built target cmsysTestsCxx
[ 11%] Built target cmzlib
[ 28%] Built target cmcurl
[ 28%] Built target LIBCURL
[ 29%] Built target cmcompress
[ 30%] Built target cmbzip2
[ 40%] Built target cmliblzma
[ 41%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_write_disk_posix.c.o
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c: In function 'set_time':
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:19: error: 'AT_FDCWD' undeclared (first use in this function)
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:19: note: each undeclared identifier is reported only once for each function it appears in
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:39: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
make[2]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_write_disk_posix.c.o] Error 1
make[1]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/all] Error 2
make: *** [all] Error 2
And the system version:
$ uname -a
Linux DSC_DKLinux 2.6.23 #6 Mon Sep 1 05:27:54 EDT 2008 i586 unknown
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc-4.7.4/libexec/gcc/i586-pc-linux-gnu/4.7.4/lto-wrapper
Target: i586-pc-linux-gnu
Configured with: ../gcc-4.7.4/configure --prefix=/usr/gcc-4.7.4 --disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 4.7.4 (GCC)