Skip to content
New issue

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

build failure on Windows 10 Mingw #377

Closed
after1990s opened this issue Aug 19, 2017 · 3 comments
Closed

build failure on Windows 10 Mingw #377

after1990s opened this issue Aug 19, 2017 · 3 comments

Comments

@after1990s
Copy link

after1990s commented Aug 19, 2017

Fails to build using cmake & make.
cmake output:

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

make output:

#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

the wired thing is that I enter the utp src folder and make, it's success:

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

how can I continue make?

@mikedld
Copy link
Member

mikedld commented Aug 20, 2017

I think you're missing patch.exe somewhere in your %PATH%. FYI Current master sources have switched away from patching 3rd-party dependencies during build to using pre-patched submodules.

Note that building with MinGW isn't currently officially supported. It might build (as I made some effort in pursuing that) but not guaranteed to work properly. Patches are welcome ;)

@after1990s
Copy link
Author

@mikedld it works! thanks.

@lazka
Copy link

lazka commented Sep 27, 2017

Sorry for the spam, just wanted to add that a mingw build of transmission-gtk is now included in MSYS2: https://quodlibet.duckdns.org/msys2/base/mingw-w64-transmission

in case anyone is looking for a dev/test environment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants