Compiling rdiff.exe for Windows

17 views
Skip to first unread message

Rasjid Wilcox

unread,
Apr 27, 2020, 3:02:28 AM4/27/20
to librsync
Hi all,

Have had no issues building the current master git branch for linux, but have not had a lot of joy compiling rdiff.exe for Windows.

I have tried building under Linux following the cross-compiling instructions at https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/cross_compiling/Mingw.

This fails with:
CMake Error at CMakeLists.txt:35 (message):
  No target CPU architecture set


I have tried building under Windows using the command-line tools for VS 2019.

That fails with:
...
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Compiling to Win32 - printf "%zu" size_t formatting support disabled
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/TestBigEndian.cmake:50 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeLists.txt:115 (TEST_BIG_ENDIAN)

Any suggestions or pointers would be greatly appreciated.

Thanks in advance,

Rasjid.


Martin P

unread,
Apr 28, 2020, 7:32:00 AM4/28/20
to Rasjid Wilcox, librsync
I've never tried this, but it seems to be a generic CMake issue, not something about rdiff. You could look at https://stackoverflow.com/q/11944060/243712 for example.

--
You received this message because you are subscribed to the Google Groups "librsync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librsync+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librsync/d49dbf1f-359d-40b7-8a0f-8778a238e030%40googlegroups.com.

Rasjid Wilcox

unread,
Apr 30, 2020, 6:52:21 AM4/30/20
to librsync
For reference, I ended up installing MSYS2 (https://www.msys2.org/), hoping for an easier process of compiling on Windows.

Turns out it was even easier than planned.

$ pacman -S mingw-w64-i686-librsync

installs a binary version which I can use directly, no compiling required.

Cheers,

Rasjid.

To unsubscribe from this group and stop receiving emails from it, send an email to libr...@googlegroups.com.

Martin P

unread,
Apr 30, 2020, 10:01:54 AM4/30/20
to Rasjid Wilcox, librsync
Great! 

To unsubscribe from this group and stop receiving emails from it, send an email to librsync+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librsync/9672b8ea-a352-4b79-9b6a-32741d6d4321%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages