LibVNC / x11vnc

a VNC server for real X displays
GNU General Public License v2.0
725 stars 142 forks source link

happpens when i am crossing compiling x11vnc on my machine. #211

Open SKTTelephoneFaker opened 2 years ago

SKTTelephoneFaker commented 2 years ago

HI

Describe the bug happpens when i am crossing compiling x11vnc on my arm32 machine. configure ok but make failed.

To Reproduce here is my shell code

sudo ./autogen.sh
cd ..
sudo chown forlinx:forlinx x11vnc-master/ -R
cd ~/Desktop/libx11/x11vnc-master
export CC=~/work/lichee/out/sun8iw11p1/linux/common/buildroot/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc-5.3.1 
export CXX=~/work/lichee/out/sun8iw11p1/linux/common/buildroot/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-g++ 
export AR=~/work/lichee/out/sun8iw11p1/linux/common/buildroot/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-ar
export LD=~/work/lichee/out/sun8iw11p1/linux/common/buildroot/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-ld 
export AS=~/work/lichee/out/sun8iw11p1/linux/common/buildroot/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-as
export PKG_CONFIG_PATH=/home/work/DownLoad/libX11/share/pkgconfig:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/home/work/DownLoad/libX11/lib/pkgconfig:$PKG_CONFIG_PATH
export CFLAGS="-I/home/work/DownLoad/libX11/include"
export LDFLAGS="-L/home/work/DownLoad/libX11/lib"
export LIBS="-L /home/work/DownLoad/libX11/lib -lXdmcp -lX11 -lxcb -lXau -lXext -lXtst -lXi"
 ./configure --help
./configure --prefix=/home/work/DownLoad/libX11/ \
--host=arm-linux-gnueabi \
--without-ssl \
--without-macosx-native 
make

Expected Behavior make command should be ok

Screenshots here is the err screenshots make[1]: Entering directory '/home/forlinx/Desktop/libx11/x11vnc-master' Making all in src make[2]: Entering directory '/home/forlinx/Desktop/libx11/x11vnc-master/src' CC x11vnc-8to24.o In file included from /usr/include/stdlib.h:55:0, from /home/work/DownLoad/libX11/include/rfb/rfb.h:42, from x11vnc.h:69, from 8to24.c:34: /usr/include/bits/floatn.h:75:1: error: unknown machine mode '__TC__' typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__))); ^ /usr/include/bits/floatn.h:87:9: error: unknown type name '__float128' typedef __float128 _Float128; ^ In file included from /home/work/DownLoad/libX11/include/rfb/threading.h:28:0, from /home/work/DownLoad/libX11/include/rfb/rfb.h:67, from x11vnc.h:69, from 8to24.c:34: /usr/include/pthread.h:682:6: warning: '__regparm__' attribute directive ignored [-Wattributes] __cleanup_fct_attribute; ^ /usr/include/pthread.h:694:3: warning: '__regparm__' attribute directive ignored [-Wattributes] __cleanup_fct_attribute; ^ /usr/include/pthread.h:739:6: warning: '__regparm__' attribute directive ignored [-Wattributes] ; ^ Makefile:596: recipe for target 'x11vnc-8to24.o' failed make[2]: *** [x11vnc-8to24.o] Error 1 make[2]: Leaving directory '/home/forlinx/Desktop/libx11/x11vnc-master/src' Makefile:501: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/forlinx/Desktop/libx11/x11vnc-master' Makefile:378: recipe for target 'all' failed make: *** [all] Error 2

Desktop (please complete the following information):

Additional context