mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2024-11-22 14:06:47 +01:00
288c61aa08
macOS requires -liconv in the LDFLAGS to link correctly. So add a search macro to the configure script to prevent following error: g++ -g -O2 -o rkdeveloptool main.o crc.o RKBoot.o RKComm.o RKDevice.o RKImage.o RKLog.o RKScan.o -L/usr/local/Cellar/libusb/1.0.21/lib -lusb-1.0 Undefined symbols for architecture x86_64: "_iconv", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o "_iconv_close", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o "_iconv_open", referenced from: StringToWideString(char*, wchar_t*&) in main.o WideStringToString(wchar_t*, char*&) in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [rkdeveloptool] Error 1
27 lines
550 B
Plaintext
27 lines
550 B
Plaintext
dnl Copyright (C) 2017 Trevor Woerner <twoerner@gmail.com>
|
|
|
|
AC_INIT([Rockchip rkdeveloptool], 1.2, [Eddie Cai <eddie.cai.linux@gmail.com>], rkdeveloptool)
|
|
AC_PREREQ([2.68])
|
|
AC_CONFIG_SRCDIR(main.cpp)
|
|
AC_CONFIG_AUX_DIR(cfg)
|
|
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2 1.9])
|
|
AM_CONFIG_HEADER(cfg/config.h)
|
|
|
|
SUBDIRS=""
|
|
|
|
AC_PROG_CPP
|
|
AC_PROG_CXX
|
|
AC_PROG_CXXCPP
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
|
|
AC_SEARCH_LIBS(iconv, iconv)
|
|
|
|
PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_CONFIG_FILES([cfg/Makefile])
|
|
|
|
AC_OUTPUT
|