Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Unable to build the program on Windows 10 x64 #129

Open
HASJ opened this issue Jun 12, 2020 · 3 comments
Open

Unable to build the program on Windows 10 x64 #129

HASJ opened this issue Jun 12, 2020 · 3 comments

Comments

@HASJ
Copy link

HASJ commented Jun 12, 2020

running build
running build_py
running build_ext
building 'butterflow.avinfo' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\Programas
creating build\temp.win-amd64-3.8\Release\Programas\butterflow
creating build\temp.win-amd64-3.8\Release\Programas\butterflow\butterflow
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python38\include -IC:\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\include" /TcD:\Programas\butterflow\butterflow\avinfo.c /Fobuild\temp.win-amd64-3.8\Release\Programas\butterflow\butterflow\avinfo.obj -std=c11 -Wall -g -O0 -fbuiltin -fdiagnostics-show-option -Wno-unused-variable -Wno-unused-function -Wno-cpp
cl : Linha de comando error D8021 : argumento numérico inválido '/Wno-unused-variable'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Do I need to specifically install Build Tools for C++ v14?
All I want is to change some parameters on settings.pyc to use my GPU for encoding...

@dthpham
Copy link
Owner

dthpham commented Jun 12, 2020

I've never built BF with Visual Studio or with MSVC so I can't answer that. There's no up to date build from source guide for Windows but the latest one can be seen in older commits like this one: https://github.com/dthpham/butterflow/blob/aebbc6ede3aa3ae29857143ffde49fcaefdc05a3/docs/Install-From-Source-Guide.md

@HASJ
Copy link
Author

HASJ commented Jun 12, 2020

I've never built BF with Visual Studio or with MSVC so I can't answer that. There's no up to date build from source guide for Windows but the latest one can be seen in older commits like this one: https://github.com/dthpham/butterflow/blob/aebbc6ede3aa3ae29857143ffde49fcaefdc05a3/docs/Install-From-Source-Guide.md

I am unable to execute the install script by following the instructions in that link. Some dependencies have changed in MSYS2's repo and git clone https://github.com/dthpham/butterflow.git does not create the install folder the script suggests is there.

I've tried compiling settings.py separately but when I put it on BF v024a4's folder, python returns me a invalid magic number error.

Just wanted to change the cv parameter in settings.py to hevc_nvenc and a few other things 'cause my CPU just can't handle the veryslow preset, but my GPU would burn through that.

I'll try it on my ubuntu installation but not sure it'll work.

@HASJ
Copy link
Author

HASJ commented Jun 13, 2020

Unable to do it on ubuntu, either.

@dthpham could you explain in a little more detail what to do for a newbie?
Also, if it isn't asking too much, could you tell me how to add the ffmpeg parameters -qmin and -qmax? Because, from what I understood of the code, the settings.py ffmpeg parameters are sent somewhere else before being passed to ffmpeg itself.

I know you are not maintaining anymore but there's nowhere else to ask.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants