Build Error VS2008

Examples and samples for those who develop software with FFmpeg.
Post Reply
thammr
Posts: 1
Joined: Mon Sep 18, 2017 12:52 am

Build Error VS2008

Post by thammr » Mon Sep 18, 2017 5:50 am

Hi,

I am trying to build ffmpeg using VS2008. I followed the instructions I found online.

https://trac.ffmpeg.org/wiki/CompilationGuide

I had to find pr.exe and mktemp.exe before configure worked.

All goes well until make tries to compile libavfilter/vf_tonemap.c

CC libavfilter/vf_tonemap.o
libavfilter/vf_tonemap.o_preprocessed.c:19:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:108:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:1028:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:2494:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:4607:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:7421:164: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7421:144: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7422:33: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7422:33: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7423:133: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7423:113: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7424:135: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7424:115: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7425:144: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7425:124: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7426:33: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7426:33: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7427:132: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7427:112: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7428:132: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7428:112: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7429:135: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7429:115: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7430:144: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7430:124: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7431:135: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7431:115: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7432:144: warning: __declspec attribute 'restrict' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7432:124: warning: __declspec attribute 'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:7750:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:9895:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:12397:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:15064:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:15395:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:18262:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:20513:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:20556:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:20587:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:23872:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:23908:12: warning: '_wctime64' is deprecated: This function or variable may be unsafe. Consider using _wctime64_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
libavfilter/vf_tonemap.o_preprocessed.c:23853:211: note: '_wctime64' declared here
libavfilter/vf_tonemap.o_preprocessed.c:32668:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:34817:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:37210:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:39424:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:41591:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:45889:26: warning: unknown __declspec attribute 'intrin_type' ignored [-Wattributes]
libavfilter/vf_tonemap.o_preprocessed.c:46066:26: warning: unknown __declspec attribute 'intrin_type' ignored [-Wattributes]
libavfilter/vf_tonemap.o_preprocessed.c:46096:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:48444:12: warning: __declspec attribute'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:48444:12: warning: __declspec attribute'noalias' is not supported [-Wignored-attributes]
libavfilter/vf_tonemap.o_preprocessed.c:48922:26: warning: unknown __declspec attribute 'intrin_type' ignored [-Wattributes]
libavfilter/vf_tonemap.o_preprocessed.c:48933:27: warning: unknown __declspec attribute 'intrin_type' ignored [-Wattributes]
libavfilter/vf_tonemap.o_preprocessed.c:49513:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:65485:9: warning: #pragma once in main file
libavfilter/vf_tonemap.o_preprocessed.c:132869:12: warning: 5 enumeration values not handled in switch: 'TONEMAP_NONE', 'TONEMAP_LINEAR', 'TONEMAP_CLIP'... [-Wswitch]
libavfilter/vf_tonemap.o_preprocessed.c:133078:43: error: initializer element is not a compile-time constant
Unable to parse av_int2float as expression primary
make: *** [libavfilter/vf_tonemap.o] Error 1

Any idea what I am doing wrong?
Is there some way to get a look at the output of c99wrap?

Thanks

Post Reply