cmake ๋ฐ make๋ฅผ ์ฌ์ฉํ์ฌ ๋น๋ํ์ง ๋ชปํ์ต๋๋ค.
cmake ์ถ๋ ฅ:
new@DESKTOP-F1R6TQI /cygdrive/e/transmission/transmission-2.92/build
$ cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found CURL: /usr/lib/libcurl.dll.a (found suitable version "7.54.1", minirequired is "7.15.4")
-- Found ICONV: /usr/lib/libiconv.dll.a
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Success
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in thetem variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_D(Required is at least version "0.9.7")
-- Could NOT find CyaSSL (missing: CYASSL_LIBRARY CYASSL_INCLUDE_DIR) (Requ is at least version "3.0")
-- Could NOT find PolarSSL (missing: POLARSSL_LIBRARY POLARSSL_INCLUDE_DIR)quired is at least version "1.2")
-- Checking for modules 'gtk+-3.0>=3.4.0;glib-2.0>=2.32.0;gio-2.0>=2.26.0;gme-2.0>=2.32.0;gthread-2.0>=2.32.0'
-- Found ZLIB: /usr/lib/libz.dll.a (found suitable version "1.2.11", minimumuired is "1.2.3")
-- Found EVENT2: /usr/lib/libevent.dll.a (found suitable version "2.0.22-sta, minimum required is "2.0.10")
-- Could NOT find NATPMP (missing: NATPMP_LIBRARY NATPMP_INCLUDE_DIR)
-- Could NOT find MINIUPNPC (missing: MINIUPNPC_LIBRARY MINIUPNPC_INCLUDE_DINIUPNPC_API_VERSION)
-- Could NOT find DHT (missing: DHT_LIBRARY DHT_INCLUDE_DIR)
-- Could NOT find UTP (missing: UTP_LIBRARY UTP_INCLUDE_DIR)
-- Could NOT find B64 (missing: B64_LIBRARY B64_INCLUDE_DIR)
-- Looking for sys/inotify.h
-- Looking for sys/inotify.h - not found
-- Looking for inotify_init
-- Looking for inotify_init - not found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Checking for module 'libsystemd-daemon'
-- No package 'libsystemd-daemon' found
-- Performing Test NO_LFS_MACROS_REQUIRED
-- Performing Test NO_LFS_MACROS_REQUIRED - Success
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Looking for sys/statvfs.h
-- Looking for sys/statvfs.h - found
-- Looking for xfs/xfs.h
-- Looking for xfs/xfs.h - not found
-- Looking for xlocale.h
-- Looking for xlocale.h - found
-- Looking for libintl.h
-- Looking for libintl.h - found
-- Looking for _configthreadlocale
-- Looking for _configthreadlocale - not found
-- Looking for canonicalize_file_name
-- Looking for canonicalize_file_name - found
-- Looking for daemon
-- Looking for daemon - found
-- Looking for fallocate64
-- Looking for fallocate64 - not found
-- Looking for getmntent
-- Looking for getmntent - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for htonll
-- Looking for htonll - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for memmem
-- Looking for memmem - found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Looking for posix_fadvise
-- Looking for posix_fadvise - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pwrite
-- Looking for pwrite - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for syslog
-- Looking for syslog - found
-- Looking for uselocale
-- Looking for uselocale - found
-- Looking for valloc
-- Looking for valloc - found
-- Looking for libintl_gettext in intl
-- Looking for libintl_gettext in intl - found
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Configuring done
-- Generating done
-- Build files have been written to: /cygdrive/e/transmission/transmission-2build
์ถ๋ ฅ:
#ignore all success message
-- downloading...
src='https://github.com/bittorrent/libutp/archive/7c4f19abdf.tar.gz'
dst='/cygdrive/e/transmission/transmission-2.92/build/third-party/utpf19abdf/src/7c4f19abdf.tar.gz'
timeout='none'
-- [download 0% complete]
-- [download 100% complete]
-- verifying file...
file='/cygdrive/e/transmission/transmission-2.92/build/third-party/ut4f19abdf/src/7c4f19abdf.tar.gz'
-- Downloading... done
-- extracting...
src='/cygdrive/e/transmission/transmission-2.92/build/third-party/utp-79abdf/src/7c4f19abdf.tar.gz'
dst='/cygdrive/e/transmission/transmission-2.92/build/third-party/utp-79abdf/src/utp-7c4f19abdf'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 16%] Performing patch step for 'utp-7c4f19abdf'
No such file or directory
make[2]: *** [CMakeFiles/utp-7c4f19abdf.dir/build.make:104๏ผthird-party/utp-19abdf/src/utp-7c4f19abdf-stamp/utp-7c4f19abdf-patch] error 1
make[1]: *** [CMakeFiles/Makefile2:787๏ผCMakeFiles/utp-7c4f19abdf.dir/all] error 2
make: *** [Makefile:161๏ผall] error 2
์ ์ ์ ๋ด๊ฐ utp src ํด๋์ ๋ค์ด๊ฐ์ ์ฑ๊ณตํ๋ค๋ ๊ฒ์ ๋๋ค.
new@DESKTOP-F1R6TQI /cygdrive/e/transmission/transmission-2.92/build/third-p/utp-7c4f19abdf/src/utp-7c4f19abdf
$ make
g++ -c -DPOSIX -I . -I utp_config_lib -fno-exceptions -fno-rtti -Wall -g utp
In file included from utp.cpp:78:0:
utp_config.h:11:2: warning๏ผ#warning implement this in libtransmission [-Wcpp]
#warning implement this in libtransmission
^~~~~~~
utp.cpp:1701:4: warning๏ผinvalid suffix on literal; C++11 requires a space betwliteral and string macro [-Wliteral-suffix]
"scaled_gain:%f rtt:%u rate:%u quota:%d wnduser:%u rto:%u timeout:%d getroseconds:"I64u" "
^
utp.cpp:1786:11: warning๏ผinvalid suffix on literal; C++11 requires a space bet literal and string macro [-Wliteral-suffix]
g++ -c -DPOSIX -I . -I utp_config_lib -fno-exceptions -fno-rtti -Wall -g utpls.cpp
rm -f libutp.a
ar q libutp.a utp.o utp_utils.o
ar: creating libutp.a
ranlib libutp.a
์ด๋ป๊ฒ ๊ณ์ ๋ง๋ค ์ ์์ต๋๊น?
๋ ๋น์ ์ด ๋์น๊ณ ์๊ฐ patch.exe
์ด๋๊ฐ์์ %PATH%
. ์ฐธ๊ณ ๋ก ํ์ฌ master
์์ค๋ ๋น๋ ์ค ํ์ฌ ์ข
์์ฑ ํจ์น์์ ์ฌ์ ํจ์น๋ ํ์ ๋ชจ๋ ์ฌ์ฉ์ผ๋ก ์ ํ๋์์ต๋๋ค.
MinGW๋ก ๋น๋ํ๋ ๊ฒ์ ํ์ฌ ๊ณต์์ ์ผ๋ก ์ง์๋์ง ์์ต๋๋ค. ๊ตฌ์ถํ ์๋ ์์ง๋ง(๊ทธ๊ฒ์ ์ถ๊ตฌํ๋ ๋ฐ ์ฝ๊ฐ์ ๋ ธ๋ ฅ์ ๊ธฐ์ธ์๊ธฐ ๋๋ฌธ์) ์ ๋๋ก ์๋ํ์ง ์์ ์ ์์ต๋๋ค. ํจ์น๋ฅผ ํ์ํฉ๋๋ค ;)
@mikedld ์๋ํฉ๋๋ค! ๊ฐ์ฌ ํด์.
์คํธ ์ฃ์กํฉ๋๋ค. transmission-gtk์ mingw ๋น๋๊ฐ ์ด์ MSYS2์ ํฌํจ๋์์์ ์ถ๊ฐํ๊ณ ์ถ์ https://quodlibet.duckdns.org/msys2/base/mingw-w64-transmission
๋๊ตฐ๊ฐ๊ฐ ๊ฐ๋ฐ/ํ ์คํธ ํ๊ฒฝ์ ์ฐพ๊ณ ์๋ ๊ฒฝ์ฐ๋ฅผ ๋๋นํ์ฌ...