-
Notifications
You must be signed in to change notification settings - Fork 114
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
Fix use of Visual Studio compiler values "-w..." or "-FS" #2
base: master
Are you sure you want to change the base?
Conversation
This was needed by a Kodi addon project and ffmpeg Windows ARM compile, where the flag "-FS" was needed, to become AppVeyor and Jenkins more happy and the "-w..." to prevent one warning, which was given by config.h on every compile file. Without comes on configure: ```bash BEGIN ./ffconf.KEHnLLrW/test.S 1 2 .macro m n, y:vararg=0 3 \n: .int \y 4 .endm 5 m x END ./ffconf.KEHnLLrW/test.S gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64.exe -I/d/Dev/Kodi64/NEW/inputstream.ffmpegdirect/build2/build/depends/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -nologo -ignore 4509 -DWIN32 -D_WINDOWS -W3 -DUNICODE -D_UNICODE -DTARGET_WINDOWS -DTARGET_WINDOWS_STORE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_WINSOCKAPI_ -ID:/Dev/Kodi64/NEW/inputstream.ffmpegdirect/build2/build/depends/include -ID:/Dev/Kodi64/NEW/inputstream.ffmpegdirect/build2/build/depends/include/libxml2 -FS -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00 -wd4828 -mcpu=aarch64 -c -o ./ffconf.KEHnLLrW/test.o ./ffconf.KEHnLLrW/test.S cpp.exe: error: unrecognized command line option '-wd4828' GNU assembler not found, install/update gas-preprocessor ```
@mstorsjo what do you think? |
In general, the change probably looks good - but I wonder why this is needed - the normal build also uses a number of What does the configure line look like, how do you pass the |
The related flags are set for here https://github.com/xbmc/inputstream.ffmpegdirect/blob/Matrix/depends/common/ffmpeg/CMakeLists.txt#L215-L235, what we use to create the ffmpeg for our Kodi addon About the Here his build without value: https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.ffmpegdirect/detail/PR-36/5/pipeline/307
This with the
Seems by a test build inside The other for
The german Also can there other flags on There was then on configure this, too:
|
Right, thanks for the links. After rechecking - options added via One could in theory add these flags there as well, but it's probably better and more robust (and useful to more projects) to add the flags in gas-preprocessor instead. So the patch looks fine, but development of gas-preprocessor happens over at https://github.com/ffmpeg/gas-preprocessor nowadays, and contributions should be sent to the ffmpeg-devel mailing list - once sent there I'll acknowledge and merge it. |
Thank you very much, had overlooked the fact that it is there now. Will then bring the request there. |
@mstorsjo I submitted the patch on Alwin's behalf here: https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/ But appears to fail on applying it in patchwork. |
This was needed by a Kodi addon project and ffmpeg Windows ARM compile,
where the flag "-FS" was needed, to become AppVeyor and Jenkins
more happy and the "-w..." to prevent one warning, which was given by
config.h on every compile file.
Without comes on configure:
I'm not sure if OK, just thought that if I bring a patch into the project (https://github.com/AlwinEsch/inputstream.ffmpegdirect/tree/build-fixes/depends/common/gas-preprocessor), I could also ask and try to bring it in directly.