facebook / transform360

Transform360 is an equirectangular to cubemap transform for 360 video.
Other
1k stars 240 forks source link

Windows build #69

Open stancho44 opened 4 years ago

stancho44 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

stancho44 commented 4 years ago

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 commented 4 years ago

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

stancho44 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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