AnsweredAssumed Answered

IMX6Q cross compile RealVNC

Question asked by xin fang on Dec 10, 2018

Hello, I need remote desktop on my imx6q embed device . So I try to cross compile the RealVNC source code . when i building Xvnc after patched xc, exec "make World" . its failed . 

 

fangxin@fangxin-NV47H:xc$ make World
./config/util/printver.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main()
 ^
./config/util/printver.c: In function 'main':
./config/util/printver.c:25:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  exit(0);
  ^
./config/util/printver.c:25:2: warning: incompatible implicit declaration of built-in function 'exit'
./config/util/printver.c:25:2: note: include '<stdlib.h>' or provide a declaration of 'exit'

 

./config/util/printver.exe: 1: ./config/util/printver.exe: Syntax error: word unexpected (expecting ")")
Building XFree86.

 

I hope you checked the configuration parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.

 

2018年 12月 10日 星期一 21:13:05 CST

 

cd ./config/imake && make  -f Makefile.ini BOOTSTRAPCFLAGS="" CC="arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi" clean
make[1]: Entering directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc/config/imake'
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a tags TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
rm -f imakemdep_cpp.h
make[1]: Leaving directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc/config/imake'
make  Makefile.boot
make[1]: Entering directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc'
cd ./config/imake && make -w -f Makefile.ini BOOTSTRAPCFLAGS="" CC="arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi"
make[2]: Entering directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc/config/imake'
making imake with BOOTSTRAPCFLAGS= and CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="" in config/imake
arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi -o ccimake -DCROSSCOMPILEDIR=\"\"  -O -I../../include -I../../imports/x11/include/X11 ccimake.c
ccimake.c: In function 'main':
ccimake.c:53:6: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
      write(1, crosscompiledir_str, sizeof(crosscompiledir_str) - 1);
      ^
if [ -n "" ] ; then \
    /cc -E `./ccimake` \
    -DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; \
    else touch imakemdep_cpp.h; fi
arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi -c  -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
./ccimake: 1: ./ccimake: Syntax error: word unexpected (expecting ")")
arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi -o imake  -O -I../../include -I../../imports/x11/include/X11 imake.o
make[2]: Leaving directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
./config/imake/imake: 1: ./config/imake/imake: Syntax error: word unexpected (expecting ")")
make[1]: *** [config/makedepend/Makefile.proto] Error 2
make[1]: Leaving directory `/home/fangxin/VNC/vnc-4_1_3-unixsrc/unix/xc'
make: *** [World] Error 2

 

 

I guess ,  I need to modify the Makefile  about the environment CFLAGS  , but i dont know how to do it ?

Outcomes