Skip to content
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

Windows build #69

Open
stancho44 opened this issue Mar 3, 2020 · 13 comments
Open

Windows build #69

stancho44 opened this issue Mar 3, 2020 · 13 comments

Comments

@stancho44
Copy link

Hi, I am trying to get a copy of a build for windows. I was working on ubuntu trying to get a build by following the instructions but was completely lost. I don't use Linux often and I am very confused about what each application do and if I did it successfully. If anyone has a windows build with this filter I would appreciate your kindness.

@wu-yuhui
Copy link
Contributor

wu-yuhui commented Mar 3, 2020

Hi @stancho44,

Do you prefer to build on Windows but not sure if it works on Windows?

It does. You could use a X terminal that supports Linux commands.
Examples of X terminals are:

  1. MobaXterm
  2. Cygwin
  3. Windows Subsystem for Linux (for Windows 10 only)

Then you can build the package by just following the steps.

If you have questions of any step of the build that confuses you, feel free to ask!

@stancho44
Copy link
Author

Thanks. I'll try the windows subsystem for Linux. I'll let you know if I have any trouble with it

@stancho44
Copy link
Author

stancho44 commented May 8, 2020

hello @wu-yuhui ,
Sorry for the very late reply
I am getting this error when I was on step 9.

`root@RyzAndShine:/mnt/c/FFMPEG# ./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'

: Permission deniedonfigure:
: bad variable nameport: LC_ALL`

did I follow the install wrong?
I am using the windows subsystem for Linux

@wu-yuhui
Copy link
Contributor

wu-yuhui commented May 8, 2020

Seems like you don't have permission. Try chmod +x configure first.
https://askubuntu.com/questions/623461/bash-configure-permission-denied

@stancho44
Copy link
Author

I got this error when I put chmod +x configure before the configure command
`
root@RyzAndShine:/mnt/c/FFMPEG# chmod +x configure
root@RyzAndShine:/mnt/c/FFMPEG# ./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'

: not found: 9: ./configure:
: bad variable nameport: LC_ALL
`

@wu-yuhui
Copy link
Contributor

Just to confirm, is there a configure binary in your FFMPEG folder, because it states "not found".

if I do ls -al to the FFMPEG repro, my configure is as this line:
-rwxrwxrwx 1 yuhuiwu yuhuiwu 256885 May 13 13:40 configure*

@stancho44
Copy link
Author

stancho44 commented Jul 25, 2020

I got this when I did ls -al to the FFmpeg directory
-rwxrwxrwx 1 root root 264356 May 7 23:21 configure

Sorry for the late response

@wu-yuhui
Copy link
Contributor

I got this error when I put chmod +x configure before the configure command
`
root@RyzAndShine:/mnt/c/FFMPEG# chmod +x configure
root@RyzAndShine:/mnt/c/FFMPEG# ./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'

: not found: 9: ./configure:
: bad variable nameport: LC_ALL
`

If this about is your actual command, it seems like you pasted the command twice. Try this agin?

./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'

@stancho44
Copy link
Author

I get the same error

root@RyzAndShine:/mnt/c/FFMPEG# ./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'
: not found: 9: ./configure:
: bad variable nameport: LC_ALL
root@RyzAndShine:/mnt/c/FFMPEG#

@wu-yuhui
Copy link
Contributor

wu-yuhui commented Sep 1, 2020

According to https://stackoverflow.com/questions/33320452/bad-variable-name-using-read-var

When they run

#!/bin/bash
echo "Type some Text:"
read var
echo "You entered: "$var

The output is

user@Ubuntu:/media/buff/ShellScript$ sh test.sh
Type some Text:
:bad variable nameread var
You entered:

So when looking at your error code and also ./configure in FFMpeg floder

: not found: 9: ./configure:
: bad variable nameport: LC_ALL
root@RyzAndShine:/mnt/c/FFMPEG#

Screen Shot 2020-08-31 at 5 51 04 PM

I suspect you accidentally modified the configure file. So try to undo it to the original configure file and run the command again.

@stancho44
Copy link
Author

image
I haven't changed the configure file from the initial state and it has the "export lc_all" in the file itself. See attached image

@emcodem
Copy link

emcodem commented Jan 15, 2021

i had the same when trying to compile ffmpeg. It was because i used windows to clone the git repository but tried configure in the windows subsystem based Ubuntu from windows store. re-cloning from inside ubuntu solved it

@kilanny
Copy link

kilanny commented Aug 11, 2021

Maybe because the file was created using windows not linux. You should convert it to linux
for example
https://unix.stackexchange.com/a/365679/59618

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

No branches or pull requests

4 participants