frekky / iodine

iodine fork to improve performance and add features
45 stars 12 forks source link

msys-mingw32 #18

Open Anime4000 opened 7 years ago

Anime4000 commented 7 years ago

I using XhmikosR's Builds for MSYS (GCC 7.1.0) and it has a bit older autoconf, I can simply update by get latest source and make install

however, for long time, your build a bit different, which is need autoconf

I run this command

autoreconf --install
export CC=x86_64-w64-mingw32-gcc
./configure

and this error came in windows 7 pro 64-bit-2017-07-02-08-00-41

sorry, I new into autoconf 🙇

frekky commented 7 years ago

Sorry, I can't really help you since I don't have a Windows installation available to test with! Since it looks like the check library is missing or pkg-config is not available (in the mingw build that you are using), it is probably easiest to just remove the following lines from configure.ac and rerun the commands you are using to build.

# The check library is used for the unit testing.  Not bothering to
# implement an --enable-tests option, as they are only run by "make
# check" so there is no user-level difference.  If the unit tests
# won't even *compile* there is probably a better solution than just
# turning them off, and build time is minimal.

PKG_CHECK_MODULES(CHECK,[check],
  AC_MSG_RESULT([enabled: unit testing]),
  AC_MSG_RESULT([disabled: unit testing]))

AM_CONDITIONAL([HAVE_CHECK],[test -z "${CHECK_PKG_ERRORS}"])

Let me know if that helps.

Anime4000 commented 7 years ago

@frekky maybe you can install Windows via VM like VirtualBox. However, after install check via https://libcheck.github.io/check/web/install.html#mingwsource can't compile

frekky commented 7 years ago

What version of autotools are you using? If you can download and install a later version of autotools in mingw by source following a similar method, that might help. Also make sure you have pkg-config available. Did you have any luck by removing those lines from configure.ac?

Anime4000 commented 7 years ago

I use XhmikosR's Builds for MSYS/Mingw it has pkg-config removing few lines configure.ac can't compile, check.h missing, I sure install correctly

Anime4000 commented 7 years ago

can you do CMAKE for faster cross-compile, like x265 did

frekky commented 7 years ago

If you need to run iodine reliably and haven't got a working Windows build system, the easiest solution right now is to get a minimal Linux installation (ie. Debian 8) running on a VM and build/run inside the VM.

Anime4000 commented 7 years ago

well, other option is using Raspberry Pi, will this iodine compile on ARM CPU?

frekky commented 7 years ago

Yes, it should do. If using Raspbian (or most Debian-based Linux distributions) you would need to have a number of packages installed first. The following should work, assuming you have an internet connection:

apt-get update
apt-get install build-essential check automake autoconf pkg-config

Then following the build instructions should result in a working binary.

frekky commented 7 years ago

Yes, it should do. Make sure you have the build-essential and check packages installed (if using Raspbian/Debian).

frekky commented 7 years ago

Yes, it should do. Make sure you have the build-essential and check packages installed (if using Raspbian/Debian).

Anime4000 commented 6 years ago

Hello @frekky ... I successfully build your version of iodine under Windows,

  1. Using msys2
  2. Update msys2 by typing pacman -Syu, close terminal (no type exit)
  3. Open MSYS2 MSYS at Start Menu and run pacman -Su
  4. Install package pacman -S base-devel git mingw-w64-x86_64-toolchain zlib-devel yasm cmake

Terminal log here: https://gist.github.com/Anime4000/03bb3d18b0cfdfa9e2439e3dc045d0c2

I attach my version builds, can test on VM, for my self, still not test yet, just having successful builds iodine-frekky.zip

Anime4000 commented 6 years ago

I notice that you remove Windows code... no wonder it keep asking root even I run as admin 😄