libvips / build-win64-mxe

76 stars 15 forks source link

the LLVM-MinGW plugin can't find any of the executables to run #11

Closed pahaze closed 4 years ago

pahaze commented 4 years ago

To start off, I'm really sorry if this is a huge dummie question, I'm newer to Linux trying to build for ARM. No matter what I do, I can't get MXE to find the armv7 execs for llvm-mingw.

I've tried applying patches, putting the execs in different folders within /mxe/usr/, renaming them without the arch+w64-mingw32, building llvm-mingw myself, setting the path to MXE, but nothing seems to work. It always thinks its missing and it fails to build anything when it gets to checking for windres. I know windres is fine though, because I went into the bin folder of llvm-mingw and ran it to check, it was there. Nothing was missing.

Any help is gladly appreciated, and thanks for taking time to read this.

lovell commented 4 years ago

Does this question relate to cross-compilation of libvips for Windows? Perhaps you've got the wrong repo?

kleisauke commented 4 years ago

You probably need this patch to support ARM32 within MXE: https://github.com/libvips/build-win64-mxe/blob/master/build/patches/mxe-fixes.patch

Note that the LLVM-MinGW plugin is considered to be experimental, as it only has been tested on a Raspberry Pi 3 with Windows 10 IoT. It also depends on non-"stable" releases of LLVM and mingw-w64, so I can't guarantee the stability.

If possible, use the pre-built binaries of the llvm-mingw project instead.

pahaze commented 4 years ago

Does this question relate to cross-compilation of libvips for Windows? Perhaps you've got the wrong repo?

Yes, I tried building this repo's files

You probably need this patch to support ARM32 within MXE: https://github.com/libvips/build-win64-mxe/blob/master/build/patches/mxe-fixes.patch

Note that the LLVM-MinGW plugin is considered to be experimental, as it only has been tested on a Raspberry Pi 3 with Windows 10 IoT. It also depends on non-"stable" releases of LLVM and mingw-w64, so I can't guarantee the stability.

If possible, use the pre-built binaries of the llvm-mingw project instead.

I have tried this patch, but I'll re-clone and try again to be sure, and I use the pre-built when possible, but it does make sense that it wouldn't work due to using non-stable releases of llvm/mingw-w64 though

pahaze commented 4 years ago

Update:

I tried on another PC, and for some reason, running the exact same distribution, desktop environment, etc, it worked. Sorry about all of this, not sure why it didn't work, but thanks for the plugin!

Have a good day