ShiftMediaProject / FFVS-Project-Generator

A program that can scan existing FFmpeg/LibAV source files and dynamically generate a Visual Studio project file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smp_project_generate_*.bat ends up deleting ffmpeg.sln and ffmpeg.vcxproj

kbarnes3 opened this issue · comments

I'm trying to generate a custom FFmpeg solution that omits some features I don't want. I started the HEAD of this project and built project_generate.exe without issue. I also have the SMP fork of FFmpeg checked out to 4.2.r93029 (and no local modifications).

I modified gpl3.bat to remove --enable-opengl --enable-ffnvcodec --enable-cuda --enable-amf. I ran this batch file and it completed cleanly without errors. However, when I look at the ffmpeg project, many files were deleted and not generated, notably ffmpeg.sln and ffmpeg.vcxproj. Am I doing something wrong?

The output of my command and a git status are below

ffmpeg\source\FFVS-Project-Generator\bin>.\smp_project_generate_gpl3.bat
Located FFmpeg source directory at "../../ffmpeg/"

Creating project_get_dependencies.bat...

Do you want to download/update the required dependency projects (Y/N)?n
Running project generator...
Project generator (this may take several minutes, please wait)...
  Passing configure file...
  Outputting config.h...
  Outputting avconfig.h...
  Outputting ffversion.h...
  Outputting enabled components file libavfilter/filter_list.c...
  Outputting enabled components file libavcodec/codec_list.c...
  Outputting enabled components file libavcodec/parser_list.c...
  Outputting enabled components file libavcodec/bsf_list.c...
  Outputting enabled components file libavformat/demuxer_list.c...
  Outputting enabled components file libavformat/muxer_list.c...
  Outputting enabled components file libavdevice/indev_list.c...
  Outputting enabled components file libavdevice/outdev_list.c...
  Outputting enabled components file libavformat/protocol_list.c...
  Generating from Makefile (../../ffmpeg/libavdevice/MakeFile)...
  Generating missing DCE symbols (libavdevice)...
  Generating project exports file (libavdevice)...
  Generating project file (libavdevice)...
  Generating from Makefile (../../ffmpeg/libavfilter/MakeFile)...
  Generating from Makefile (../../ffmpeg/libavfilter/x86/MakeFile)...
  Generating missing DCE symbols (libavfilter)...
  Generating project exports file (libavfilter)...
  Generating project file (libavfilter)...
  Generating from Makefile (../../ffmpeg/libswscale/MakeFile)...
  Generating from Makefile (../../ffmpeg/libswscale/x86/MakeFile)...
  Generating missing DCE symbols (libswscale)...
  Generating project exports file (libswscale)...
  Generating project file (libswscale)...
  Generating from Makefile (../../ffmpeg/libpostproc/MakeFile)...
  Generating missing DCE symbols (libpostproc)...
  Generating project exports file (libpostproc)...
  Generating project file (libpostproc)...
  Generating from Makefile (../../ffmpeg/libavformat/MakeFile)...
  Generating missing DCE symbols (libavformat)...
  Generating project exports file (libavformat)...
  Generating project file (libavformat)...
  Generating from Makefile (../../ffmpeg/libavcodec/MakeFile)...
  Generating from Makefile (../../ffmpeg/libavcodec/x86/MakeFile)...
  Generating missing DCE symbols (libavcodec)...
  Generating project exports file (libavcodec)...
  Generating project file (libavcodec)...
  Generating from Makefile (../../ffmpeg/libswresample/MakeFile)...
  Generating from Makefile (../../ffmpeg/libswresample/x86/MakeFile)...
  Generating missing DCE symbols (libswresample)...
  Generating project exports file (libswresample)...
  Generating project file (libswresample)...
  Generating from Makefile (../../ffmpeg/libavutil/MakeFile)...
  Generating from Makefile (../../ffmpeg/libavutil/x86/MakeFile)...
  Generating missing DCE symbols (libavutil)...
  Generating project exports file (libavutil)...
  Generating project file (libavutil)...
Press any key to continue . . .
ffmpeg\source\ffmpeg\SMP>git status
HEAD detached at 4.2.r93029
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   compat.h
        modified:   config.asm
        modified:   config.h
        deleted:    ffmpeg.sln
        deleted:    ffmpeg.vcxproj
        deleted:    ffmpeg.vcxproj.filters
        deleted:    ffmpeg/dce_defs.c
        deleted:    ffplay.vcxproj
        deleted:    ffplay.vcxproj.filters
        deleted:    ffplay/dce_defs.c
        deleted:    ffprobe.vcxproj
        deleted:    ffprobe.vcxproj.filters
        deleted:    ffprobe/dce_defs.c
        modified:   libavcodec.vcxproj
        modified:   libavcodec.vcxproj.filters
        modified:   libavcodec/codec_list.c
        modified:   libavdevice.vcxproj
        modified:   libavdevice.vcxproj.filters
        modified:   libavdevice/indev_list.c
        modified:   libavdevice/outdev_list.c
        modified:   libavfilter.vcxproj
        modified:   libavfilter.vcxproj.filters
        modified:   libavfilter/filter_list.c
        modified:   libavformat.vcxproj
        modified:   libavformat.vcxproj.filters
        modified:   libavformat/demuxer_list.c
        modified:   libavformat/protocol_list.c
        deleted:    libavutil.vcxproj
        deleted:    libavutil.vcxproj.filters
        modified:   libpostproc.vcxproj
        modified:   libswresample.vcxproj
        modified:   libswscale.vcxproj

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        libavcodec/dxva2_h264_wrap.c
        libavcodec/dxva2_hevc_wrap.c
        libavcodec/dxva2_mpeg2_wrap.c
        libavcodec/dxva2_vc1_wrap.c
        libavcodec/dxva2_wrap.c
        libavcodec/hevc_ps_enc_wrap.c
        libavcodec/qsv_wrap.c
        libavcodec/qsvdec_h2645_wrap.c
        libavcodec/qsvdec_other_wrap.c
        libavcodec/qsvdec_wrap.c
        libavcodec/qsvenc_h264_wrap.c
        libavcodec/qsvenc_hevc_wrap.c
        libavcodec/qsvenc_jpeg_wrap.c
        libavcodec/qsvenc_mpeg2_wrap.c
        libavcodec/qsvenc_wrap.c
        libavdevice/dshow_common_wrap.c
        libavdevice/dshow_crossbar_wrap.c
        libavdevice/dshow_enummediatypes_wrap.c
        libavdevice/dshow_enumpins_wrap.c
        libavdevice/dshow_filter_wrap.c
        libavdevice/dshow_pin_wrap.c
        libavdevice/dshow_wrap.c
        libavdevice/gdigrab_wrap.c
        libavdevice/vfwcap_wrap.c
        libavfilter/qsvvpp_wrap.c
        libavfilter/vf_deinterlace_qsv_wrap.c
        libavfilter/vf_overlay_qsv_wrap.c
        libavfilter/vf_scale_qsv_wrap.c
        libavfilter/vf_vpp_qsv_wrap.c
        libavformat/avisynth_wrap.c
        libavformat/tls_wrap.c
        libavutil/hwcontext_dxva2_wrap.c
        libavutil/hwcontext_qsv_wrap.c

no changes added to commit (use "git add" and/or "git commit -a")

Fixed, Do a force pull to update to the latest HEAD.

Thanks, this is working for me now