ERROR:libx265.so.51: undefined reference to '__sqrtf_finite' so i can't compile the program correctly, i hope for somebody can help me, thank you

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ERROR:libx265.so.51: undefined reference to '__sqrtf_finite' so i can't compile the program correctly, i hope for somebody can help me, thank you

1,816 Views
zhujian
Contributor I

i use T2080RDB to compile the program x265. in the directory x265->build->README.txt,     i follow the README.txt saying. first, Use cmake to generate Makefiles: cmake ../source; second, build x265:         make.            but during the make operating,There appears to be a problem. 

libx265.so.51: undefined reference to `__sqrtf_finite'

libx265.so.51: undefined reference to `__sqrt_finite'

collect2: error: ld returned 1 exit status

CMakeFiles/cli.dir/build.make:261: recipe for target 'x265' failed

make[2]: *** [x265] Error 1

CMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/cli.dir/all' failed

make[1]: *** [CMakeFiles/cli.dir/all] Error 2

Makefile:116: recipe for target 'all' failed

i hope someone can help me, thank you very much!!!

Labels (1)
Tags (1)
0 Kudos
2 Replies

1,297 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jian Zhu,

The function __sqrtf_finite should be provided in libm libarary. Did you include it in your Makefile?

Would you please share your Makefle?


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,297 Views
zhujian
Contributor I

hello, Yiping

firstly thank you for you help!

the following is the Makefile after ./make-Makefiles.bash

# CMAKE generated file: DO NOT EDIT!

# Generated by "Unix Makefiles" Generator, CMake Version 3.2

# Default target executed when no arguments are given to make.

default_target: all

.PHONY : default_target

# Allow only one "make -f Makefile2" at a time, but pass parallelism.

.NOTPARALLEL:

#=============================================================================

# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.

.SUFFIXES:

# Remove some rules from gmake that .SUFFIXES does not remove.

SUFFIXES =

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.

$(VERBOSE).SILENT:

# A target that is always out of date.

cmake_force:

.PHONY : cmake_force

#=============================================================================

# Set environment variables for the build.

# The shell in which to execute make rules.

SHELL = /bin/sh

# The CMake executable.

CMAKE_COMMAND = /home/root/cmake-build-3.2.2/bin/cmake

# The command to remove a file.

RM = /home/root/cmake-build-3.2.2/bin/cmake -E remove -f

# Escaping for special characters.

EQUALS = =

# The top-level source directory on which CMake was run.

CMAKE_SOURCE_DIR = /home/root/x265_1.6/source

# The top-level build directory on which CMake was run.

CMAKE_BINARY_DIR = /home/root/x265_1.6/build/linux

#=============================================================================

# Targets provided globally by CMake.

# Special rule for the target install/strip

install/strip: preinstall

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."

  /home/root/cmake-build-3.2.2/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake

.PHONY : install/strip

# Special rule for the target install/strip

install/strip/fast: install/strip

.PHONY : install/strip/fast

# Special rule for the target edit_cache

edit_cache:

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."

  /home/root/cmake-build-3.2.2/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)

.PHONY : edit_cache

# Special rule for the target edit_cache

edit_cache/fast: edit_cache

.PHONY : edit_cache/fast

# Special rule for the target rebuild_cache

rebuild_cache:

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."

  /home/root/cmake-build-3.2.2/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)

.PHONY : rebuild_cache

# Special rule for the target rebuild_cache

rebuild_cache/fast: rebuild_cache

.PHONY : rebuild_cache/fast

# Special rule for the target install

install: preinstall

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."

  /home/root/cmake-build-3.2.2/bin/cmake -P cmake_install.cmake

.PHONY : install

# Special rule for the target install

install/fast: preinstall/fast

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."

  /home/root/cmake-build-3.2.2/bin/cmake -P cmake_install.cmake

.PHONY : install/fast

# Special rule for the target list_install_components

list_install_components:

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""

.PHONY : list_install_components

# Special rule for the target list_install_components

list_install_components/fast: list_install_components

.PHONY : list_install_components/fast

# Special rule for the target install/local

install/local: preinstall

  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."

  /home/root/cmake-build-3.2.2/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake

.PHONY : install/local

# Special rule for the target install/local

install/local/fast: install/local

.PHONY : install/local/fast

# The main all target

all: cmake_check_build_system

  $(CMAKE_COMMAND) -E cmake_progress_start /home/root/x265_1.6/build/linux/CMakeFiles /home/root/x265_1.6/build/linux/CMakeFiles/progress.marks

  $(MAKE) -f CMakeFiles/Makefile2 all

  $(CMAKE_COMMAND) -E cmake_progress_start /home/root/x265_1.6/build/linux/CMakeFiles 0

.PHONY : all

# The main clean target

clean:

  $(MAKE) -f CMakeFiles/Makefile2 clean

.PHONY : clean

# The main clean target

clean/fast: clean

.PHONY : clean/fast

# Prepare targets for installation.

preinstall: all

  $(MAKE) -f CMakeFiles/Makefile2 preinstall

.PHONY : preinstall

# Prepare targets for installation.

preinstall/fast:

  $(MAKE) -f CMakeFiles/Makefile2 preinstall

.PHONY : preinstall/fast

# clear depends

depend:

  $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1

.PHONY : depend

#=============================================================================

# Target rules for targets named clean-generated

# Build rule for target.

clean-generated: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 clean-generated

.PHONY : clean-generated

# fast build rule for target.

clean-generated/fast:

  $(MAKE) -f CMakeFiles/clean-generated.dir/build.make CMakeFiles/clean-generated.dir/build

.PHONY : clean-generated/fast

#=============================================================================

# Target rules for targets named cli

# Build rule for target.

cli: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 cli

.PHONY : cli

# fast build rule for target.

cli/fast:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/build

.PHONY : cli/fast

#=============================================================================

# Target rules for targets named uninstall

# Build rule for target.

uninstall: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 uninstall

.PHONY : uninstall

# fast build rule for target.

uninstall/fast:

  $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build

.PHONY : uninstall/fast

#=============================================================================

# Target rules for targets named x265-shared

# Build rule for target.

x265-shared: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 x265-shared

.PHONY : x265-shared

# fast build rule for target.

x265-shared/fast:

  $(MAKE) -f CMakeFiles/x265-shared.dir/build.make CMakeFiles/x265-shared.dir/build

.PHONY : x265-shared/fast

#=============================================================================

# Target rules for targets named x265-static

# Build rule for target.

x265-static: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 x265-static

.PHONY : x265-static

# fast build rule for target.

x265-static/fast:

  $(MAKE) -f CMakeFiles/x265-static.dir/build.make CMakeFiles/x265-static.dir/build

.PHONY : x265-static/fast

#=============================================================================

# Target rules for targets named encoder

# Build rule for target.

encoder: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 encoder

.PHONY : encoder

# fast build rule for target.

encoder/fast:

  $(MAKE) -f encoder/CMakeFiles/encoder.dir/build.make encoder/CMakeFiles/encoder.dir/build

.PHONY : encoder/fast

#=============================================================================

# Target rules for targets named common

# Build rule for target.

common: cmake_check_build_system

  $(MAKE) -f CMakeFiles/Makefile2 common

.PHONY : common

# fast build rule for target.

common/fast:

  $(MAKE) -f common/CMakeFiles/common.dir/build.make common/CMakeFiles/common.dir/build

.PHONY : common/fast

filters/filters.o: filters/filters.cpp.o

.PHONY : filters/filters.o

# target to build an object file

filters/filters.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/filters/filters.cpp.o

.PHONY : filters/filters.cpp.o

filters/filters.i: filters/filters.cpp.i

.PHONY : filters/filters.i

# target to preprocess a source file

filters/filters.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/filters/filters.cpp.i

.PHONY : filters/filters.cpp.i

filters/filters.s: filters/filters.cpp.s

.PHONY : filters/filters.s

# target to generate assembly for a file

filters/filters.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/filters/filters.cpp.s

.PHONY : filters/filters.cpp.s

input/input.o: input/input.cpp.o

.PHONY : input/input.o

# target to build an object file

input/input.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/input.cpp.o

.PHONY : input/input.cpp.o

input/input.i: input/input.cpp.i

.PHONY : input/input.i

# target to preprocess a source file

input/input.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/input.cpp.i

.PHONY : input/input.cpp.i

input/input.s: input/input.cpp.s

.PHONY : input/input.s

# target to generate assembly for a file

input/input.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/input.cpp.s

.PHONY : input/input.cpp.s

input/y4m.o: input/y4m.cpp.o

.PHONY : input/y4m.o

# target to build an object file

input/y4m.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/y4m.cpp.o

.PHONY : input/y4m.cpp.o

input/y4m.i: input/y4m.cpp.i

.PHONY : input/y4m.i

# target to preprocess a source file

input/y4m.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/y4m.cpp.i

.PHONY : input/y4m.cpp.i

input/y4m.s: input/y4m.cpp.s

.PHONY : input/y4m.s

# target to generate assembly for a file

input/y4m.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/y4m.cpp.s

.PHONY : input/y4m.cpp.s

input/yuv.o: input/yuv.cpp.o

.PHONY : input/yuv.o

# target to build an object file

input/yuv.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/yuv.cpp.o

.PHONY : input/yuv.cpp.o

input/yuv.i: input/yuv.cpp.i

.PHONY : input/yuv.i

# target to preprocess a source file

input/yuv.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/yuv.cpp.i

.PHONY : input/yuv.cpp.i

input/yuv.s: input/yuv.cpp.s

.PHONY : input/yuv.s

# target to generate assembly for a file

input/yuv.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/input/yuv.cpp.s

.PHONY : input/yuv.cpp.s

output/output.o: output/output.cpp.o

.PHONY : output/output.o

# target to build an object file

output/output.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/output.cpp.o

.PHONY : output/output.cpp.o

output/output.i: output/output.cpp.i

.PHONY : output/output.i

# target to preprocess a source file

output/output.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/output.cpp.i

.PHONY : output/output.cpp.i

output/output.s: output/output.cpp.s

.PHONY : output/output.s

# target to generate assembly for a file

output/output.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/output.cpp.s

.PHONY : output/output.cpp.s

output/y4m.o: output/y4m.cpp.o

.PHONY : output/y4m.o

# target to build an object file

output/y4m.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/y4m.cpp.o

.PHONY : output/y4m.cpp.o

output/y4m.i: output/y4m.cpp.i

.PHONY : output/y4m.i

# target to preprocess a source file

output/y4m.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/y4m.cpp.i

.PHONY : output/y4m.cpp.i

output/y4m.s: output/y4m.cpp.s

.PHONY : output/y4m.s

# target to generate assembly for a file

output/y4m.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/y4m.cpp.s

.PHONY : output/y4m.cpp.s

output/yuv.o: output/yuv.cpp.o

.PHONY : output/yuv.o

# target to build an object file

output/yuv.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/yuv.cpp.o

.PHONY : output/yuv.cpp.o

output/yuv.i: output/yuv.cpp.i

.PHONY : output/yuv.i

# target to preprocess a source file

output/yuv.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/yuv.cpp.i

.PHONY : output/yuv.cpp.i

output/yuv.s: output/yuv.cpp.s

.PHONY : output/yuv.s

# target to generate assembly for a file

output/yuv.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/output/yuv.cpp.s

.PHONY : output/yuv.cpp.s

x265.o: x265.cpp.o

.PHONY : x265.o

# target to build an object file

x265.cpp.o:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/x265.cpp.o

.PHONY : x265.cpp.o

x265.i: x265.cpp.i

.PHONY : x265.i

# target to preprocess a source file

x265.cpp.i:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/x265.cpp.i

.PHONY : x265.cpp.i

x265.s: x265.cpp.s

.PHONY : x265.s

# target to generate assembly for a file

x265.cpp.s:

  $(MAKE) -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/x265.cpp.s

.PHONY : x265.cpp.s

# Help Target

help:

  @echo "The following are some of the valid targets for this Makefile:"

  @echo "... all (the default if no target is provided)"

  @echo "... clean"

  @echo "... depend"

  @echo "... install/strip"

  @echo "... x265-static"

  @echo "... uninstall"

  @echo "... edit_cache"

  @echo "... rebuild_cache"

  @echo "... cli"

  @echo "... install"

  @echo "... list_install_components"

  @echo "... x265-shared"

  @echo "... clean-generated"

  @echo "... install/local"

  @echo "... encoder"

  @echo "... common"

  @echo "... filters/filters.o"

  @echo "... filters/filters.i"

  @echo "... filters/filters.s"

  @echo "... input/input.o"

  @echo "... input/input.i"

  @echo "... input/input.s"

  @echo "... input/y4m.o"

  @echo "... input/y4m.i"

  @echo "... input/y4m.s"

  @echo "... input/yuv.o"

  @echo "... input/yuv.i"

  @echo "... input/yuv.s"

  @echo "... output/output.o"

  @echo "... output/output.i"

  @echo "... output/output.s"

  @echo "... output/y4m.o"

  @echo "... output/y4m.i"

  @echo "... output/y4m.s"

  @echo "... output/yuv.o"

  @echo "... output/yuv.i"

  @echo "... output/yuv.s"

  @echo "... x265.o"

  @echo "... x265.i"

  @echo "... x265.s"

.PHONY : help

#=============================================================================

# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.

# No rule that depends on this can have commands that come from listfiles

# because they might be regenerated.

cmake_check_build_system:

  $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0

.PHONY : cmake_check_build_system

0 Kudos