我试图在我的Raspberry Pi模型3上安装Cobalt,但后来发现它不能与Stretch一起很好地工作。所以我继续降级到Jessie Lite 8.0。 我继续遵循以下指示: https://cobalt.foo/development/setup-raspi.html#set-up-your-workstation
但是无法运行gyp_cobalt raspi-1
,所以我继续按照以下说明进行操作:
http://junyelee.blogspot.com/2019/01/raspberry-pi-multimedia-programming.html
我一直到:
cobalt/build/gyp_cobalt raspi-2
ninja -C out/raspi-2_debug cobalt
当我运行第二个命令时,我遇到了这个问题:
[6/6849] CC obj/third_party/libjpeg-turbo/libjpeg.jcprepct.o
FAILED: /home/pi/pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc -MMD -MF obj/third_party/libjpeg-turbo/libjpeg.jcprepct.o.d -DUSE_OPENSSL=1 -DCOBALT_LINUX -D__STDC_FORMAT_MACROS -D_GNU_SOURCE=1 -DCOBALT -DCOBALT_MEDIA_BUFFER_POOL_ALLOCATE_ON_DEMAND=1 -DCOBALT_MEDIA_BUFFER_INITIAL_CAPACITY=22020096 -DCOBALT_MEDIA_BUFFER_MAX_CAPACITY_1080P=52428800 -DCOBALT_MEDIA_BUFFER_MAX_CAPACITY_4K=146800640 -DCOBALT_MEDIA_BUFFER_ALLOCATION_UNIT=1048576 -DCOBALT_MEDIA_BUFFER_ALIGNMENT=1 -DCOBALT_MEDIA_BUFFER_PADDING=0 -DCOBALT_MEDIA_BUFFER_PROGRESSIVE_BUDGET=12582912 -DCOBALT_MEDIA_BUFFER_NON_VIDEO_BUDGET=5242880 -DCOBALT_MEDIA_BUFFER_VIDEO_BUDGET_1080P=31457280 -DCOBALT_MEDIA_BUFFER_VIDEO_BUDGET_4K=104857600 -DCOBALT_MEDIA_SOURCE_GARBAGE_COLLECTION_DURATION_THRESHOLD_IN_SECONDS=170 -DCOBALT_MEDIA_BUFFER_STORAGE_TYPE_MEMORY=1 -DENABLE_DEBUGGER -DCOBALT_V8_BUILDTIME_SNAPSHOT=1 -DCOBALT_ENABLE_QUIC -DBMP_SUPPORTED -DPPM_SUPPORTED -DSTARBOARD -DSB_GYP_GL_TYPE_IS_NONE=0 -DSB_ABORT_ON_ALLOCATION_FAILURE -DSTARBOARD_ALLOWS_MEMORY_TRACKING '-DSTARBOARD_ATOMIC_INCLUDE="starboard/raspi/2/atomic_public.h"' '-DSTARBOARD_CONFIGURATION_INCLUDE="starboard/raspi/2/configuration_public.h"' '-DSTARBOARD_THREAD_TYPES_INCLUDE="starboard/raspi/2/thread_types_public.h"' -DALLOCATOR_STATS_TRACKING -DCOBALT_BOX_DUMP_ENABLED -DCOBALT_BUILD_TYPE_DEBUG -DCOBALT_ENABLE_JAVASCRIPT_ERROR_LOGGING -DCOBALT_ENABLE_VERSION_COMPATIBILITY_VALIDATIONS -DCOBALT_SECURITY_SCREEN_CLEAR_TO_UGLY_COLOR -DENABLE_DEBUG_COMMAND_LINE_SWITCHES -DENABLE_DEBUG_C_VAL -DENABLE_IGNORE_CERTIFICATE_ERRORS -DENABLE_PARTIAL_LAYOUT_CONTROL -DENABLE_TEST_DATA -DENABLE_TEST_RUNNER -DENABLE_TOKEN_ALPHABETICAL_SORTING -D__LB_SHELL__FORCE_LOGGING__ -DSK_DEVELOPER -DSTARBOARD_BUILD_TYPE_DEBUG -D_DEBUG -I../.. -I../../third_party/libjpeg-turbo -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon-vfpv4 -U__linux__ -fsigned-char -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -Wno-unused-local-typedefs -Wno-unused-result -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-extra -Wno-comment -Wno-narrowing -Wno-unknown-pragmas -Wno-type-limits -Wno-unused-parameter --sysroot=/home/pi/pi/sysroot -I/home/pi/pi/sysroot/opt/vc/include -I/home/pi/pi/sysroot/opt/vc/include/interface/vcos/pthreads -I/home/pi/pi/sysroot/opt/vc/include/interface/vmcs_host/linux -Wno-conversion -O0 -g -std=c11 -c ../../third_party/libjpeg-turbo/jcprepct.c -o obj/third_party/libjpeg-turbo/libjpeg.jcprepct.o
/home/pi/pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: 1: /home/pi/pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
ninja: build stopped: subcommand failed.
我无法从此前进。 arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected
错误。当我用Google搜索时,它说我正在交叉编译,但是我按照上面的说明在pi上运行了所有内容。