undefined reference to `x265_cpu_neon_test' etc.

Issue #155 resolved
Former user created an issue

Cross-compilation of x265 for Gumstix Duovero

#!/bin/bash

CMAKE_SYSTEM_PROCESSOR=ARMV6L

cmake ../../source/ \ -DSYSPROC=armv6l \ -DCMAKE_LINKER=${TOOLCHAINS_PREFIX}ld \ -DCMAKE_SYSTEM_PROCESSOR=armv6l \ -DCMAKE_SYSTEM_NAME=Linux \ -DLIB_INSTALL_DIR=%my install dir% \ -DCMAKE_INSTALL_PREFIX=%my install prefix% \ -DCMAKE_C_COMPILER=${TOOLCHAINS_PREFIX}gcc \ -DCMAKE_CXX_COMPILER=${TOOLCHAINS_PREFIX}g++ \ -DCMAKE_C_FLAGS='--sysroot=%my sysroot% -mfloat-abi=hard -ldl -mfpu=neon' \ -DCMAKE_CXX_FLAGS='--sysroot=%my sysroot% -mfloat-abi=hard -ldl -mfpu=neon -lstdc++'

Result: ..... Linking CXX static library libx265.a Linking CXX shared library libx265.so [ 82%] Built target x265-static [ 82%] Built target x265-shared [ 82%] [ 82%] [ 82%] [ 82%] Building CXX object CMakeFiles/cli.dir/input/input.cpp.o Building CXX object CMakeFiles/cli.dir/input/yuv.cpp.o Building CXX object CMakeFiles/cli.dir/output/output.cpp.o Building CXX object CMakeFiles/cli.dir/input/y4m.cpp.o [ 82%] Building CXX object CMakeFiles/cli.dir/output/reconplay.cpp.o [ 82%] Building CXX object CMakeFiles/cli.dir/output/yuv.cpp.o [ 82%] [ 82%] Building CXX object CMakeFiles/cli.dir/output/y4m.cpp.o [ 82%] Building CXX object CMakeFiles/cli.dir/output/raw.cpp.o Building CXX object CMakeFiles/cli.dir/filters/filters.cpp.o [ 82%] Building CXX object CMakeFiles/cli.dir/x265.cpp.o Linking CXX executable x265 libx265.so.63: undefined reference to x265_cpu_neon_test' libx265.so.63: undefined reference tox265_cpu_fast_neon_mrc_test'

Comments (4)

  1. Steve Borho

    I don't believe we've ever had a successful ARM build. We haven't pulled in any of the ARM assembly from x264, which is why that function is missing. You'll need to set ENABLE_ASSEMBLY=OFF and you'll probably need a patch like this:

    http://pastie.org/10275977

  2. Steve Borho

    primitives: stubs for ARM cpu-detect functions (refs #155)

    Support for ARM processors is still in the "we're happy if it builds" stage. This is a step in that direction.

    → <<cset 27b5097e0e47>>

  3. Log in to comment