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

Transform360 issues building for Windows #39

Open
SteUK opened this issue Aug 29, 2017 · 6 comments
Open

Transform360 issues building for Windows #39

SteUK opened this issue Aug 29, 2017 · 6 comments

Comments

@SteUK
Copy link

SteUK commented Aug 29, 2017

Hi,

As others seem to have had, I am getting issues building ffmpeg with Transform360. I am using MSYS2 and the CMake produces a VisualStudio2015 solution to build a Transform360.lib. I then use this via the configure command...

./configure --prefix=ffmpeg/ --extra-cflags=-I"/usr/local/include" --extra-ldflags='-L/usr/local/lib -static' --pkg-config-flags="--static" --enable-nonfree --enable-gpl --enable-static --disable-shared --enable-libx264 --enable-libx265 --enable-libfdk_aac --enable-nvenc --extra-libs='Transform360.lib'

The subsequent 'make' call then spits out the error...

libavfilter\libavfilter.a(vf_transform360.o): In function generate_map': C:\msys64\home\stebu\ffmpeg_nvidia_cubemap2/libavfilter/vf_transform360.c:140: undefined reference to VideoFrameTransform_new'
C:\msys64\home\stebu\ffmpeg_nvidia_cubemap2/libavfilter/vf_transform360.c:140:(.text+0x57f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `VideoFrameTransform_new'

I am betting it is because the transform lib has been made with VS compiler, and ffmpeg is being compiled with gcc...

Can anyone offer any guidance?

Thanks!

@SteUK
Copy link
Author

SteUK commented Aug 30, 2017

To answer my own question...

Yes, it is the use of multiple compilers. I have made everything with make (gcc) and, with a little bit of fiddling, managed to build up ffmpeg with Transform360 for Windows under MSYS2.

Case closed!

@EthanXzhang
Copy link

I face the same problem when I use Cmake to generate the Translate360 in Win10/VS2017.
Everything seems OK before using MSYS2 to make FFMpeg,but the undefined reference problem appeared(the same as yours).
Thanks for report your solution.

@EthanXzhang
Copy link

hi!I still trapped by this problem.
I build it in Ubuntu, using openCV 3.1.0. Move the lib and include to windows and add it when configure the FFMpeg. In other issue(#35), I read a solution about change the version of openCV, but I try and it doesn't work.
Can you give more detail about this issues solution.Thanks a lot!

@xuws20
Copy link

xuws20 commented Nov 8, 2017

ffmpeg in windows:https://github.com/ShiftMediaProject
use cmake produce vs2015 project
CMakeLists.txt delete the line about opencv

@badtrip987
Copy link

I'm having the same issue when building using msys2 and cmake. What fiddling did you do?

@rdp
Copy link

rdp commented Jan 16, 2019

Just ran into this (all same compiler), I had to modify ffbuild/config.mak and "move" -lTransform360 to just before the opencv libraries (no idea how this ever worked before). See also https://stackoverflow.com/a/54209992/32453

rdp added a commit to rdp/ffmpeg-windows-build-helpers that referenced this issue Jan 16, 2019
to get this to build, see facebook/transform360#39 (comment)
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

5 participants