[x265] Another issue with MSYS2/MinGW windres: Output not writeable
Mateusz
mateuszb at poczta.onet.pl
Thu Jan 3 20:42:55 CET 2019
W dniu 03.01.2019 o 18:45, Mario Rohkrämer pisze:
> Since you published the recent patches (e.g. to fix the version numbers), there was a report in the MABS project that windres failed again (here MinGW64):
>
>> x265.rc:2: fatal error: when writing output to : Broken pipe
>
> I tried that too, my error message is different but similar (here MinGW32):
>
>> x265.rc:2:0: fatal error: when writing output to : No such file or directory
>
> In both cases, no recognizable output file name, so I guess that is an important factor.
>
>
>
> Please consider using an MSYS environment (like MABS, which can be configured to build only x265 and possibly ffmpeg linking only libx265 via import config file) regularly for testing patches in parallel to MSVS.
Just tested:
$ hg import --no-commit https://patches.videolan.org/patch/22290/raw/
applying https://patches.videolan.org/patch/22290/raw/
Mateusz at Mateusz-i7 /f/x265p/build/msys
$ hg diff
diff -r 8f1c154aae5e source/CMakeLists.txt
--- a/source/CMakeLists.txt Sat Dec 29 07:21:21 2018 +0100
+++ b/source/CMakeLists.txt Thu Jan 03 20:38:16 2019 +0100
@@ -578,7 +578,7 @@
# convert X265_LATEST_TAG (ex: 0.7) and X265_TAG_DISTANCE (ex: 103) to
# @X265_VERSION_MAJOR@, at X265_VERSION_MINOR@, at X265_BRANCH_ID@, at X265_TAG_DISTANCE@
- string(REPLACE "." ";" VERSION_LIST "${X265_LATEST_TAG}")
+ string(REGEX MATCHALL "([0-9]+)" VERSION_LIST "${X265_LATEST_TAG}")
list(GET VERSION_LIST 0 X265_VERSION_MAJOR)
list(GET VERSION_LIST 1 X265_VERSION_MINOR)
set(X265_BRANCH_ID 0) # TODO: 0 - stable, 1 - default or other
And from this point I can build x265.exe without problems with original
./make-Makefiles.sh
make
Did you try the original build scripts?
Regards,
Mateusz
More information about the x265-devel
mailing list