We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Error: CMake can not determine linker language for target: iperf
my CMakeFile.txt
cmake_minimum_required(VERSION 3.4.1) #project(iperf3) set(IPERF_SRC ${CMAKE_SOURCE_DIR}/iperf3/src)
if("${ANDROID_ABI}" MATCHES "arm64-v8a|x86_64") set(HAVE_SO_MAX_PACING_RATE 1) endif()
configure_file(${CMAKE_SOURCE_DIR}/iperf_config.h.in ${CMAKE_BINARY_DIR}/src/iperf_config.h)
###################################
add_library( iperf
SHARED ${IPERF_SRC}/src/cjson.c ${IPERF_SRC}/src/iperf_api.c ${IPERF_SRC}/src/iperf_error.c ${IPERF_SRC}/src/iperf_client_api.c ${IPERF_SRC}/src/iperf_locale.c ${IPERF_SRC}/src/iperf_server_api.c ${IPERF_SRC}/src/iperf_tcp.c ${IPERF_SRC}/src/iperf_udp.c ${IPERF_SRC}/src/iperf_sctp.c ${IPERF_SRC}/src/iperf_util.c ${IPERF_SRC}/src/net.c ${IPERF_SRC}/src/tcp_info.c ${IPERF_SRC}/src/tcp_window_size.c ${IPERF_SRC}/src/timer.c ${IPERF_SRC}/src/units.c )
find_library( # Sets the name of the path variable. log-lib
# Specifies the name of the NDK library that # you want CMake to locate. log )
target_link_libraries( # Specifies the target library. iperf
# Links the target library to the log library # included in the NDK. ${log-lib} )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CMake Error: CMake can not determine linker language for target: iperf
my CMakeFile.txt
Sets the minimum version of CMake required to build the native
library. You should either keep the default value or only pass a
value of 3.4.0 or lower.
cmake_minimum_required(VERSION 3.4.1)
#project(iperf3)
set(IPERF_SRC ${CMAKE_SOURCE_DIR}/iperf3/src)
check some architecture specific build options
if("${ANDROID_ABI}" MATCHES "arm64-v8a|x86_64")
set(HAVE_SO_MAX_PACING_RATE 1)
endif()
generate src/iperf_config.h
configure_file(${CMAKE_SOURCE_DIR}/iperf_config.h.in ${CMAKE_BINARY_DIR}/src/iperf_config.h)
###################################
Creates and names a library, sets it as either STATIC
or SHARED, and provides the relative paths to its source code.
You can define multiple libraries, and CMake builds it for you.
Gradle automatically packages shared libraries with your APK.
add_library( iperf
Searches for a specified prebuilt library and stores the path as a
variable. Because system libraries are included in the search path by
default, you only need to specify the name of the public NDK library
you want to add. CMake verifies that the library exists before
completing its build.
find_library( # Sets the name of the path variable.
log-lib
Specifies libraries CMake should link to your target library. You
can link multiple libraries, such as libraries you define in the
build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
iperf
The text was updated successfully, but these errors were encountered: