Problem Compiling VLC for Windows (idna, luac)

This forum is about all development around libVLC.
adam19
New Cone
New Cone
Posts: 2
Joined: 28 Aug 2014 00:08

Problem Compiling VLC for Windows (idna, luac)

Postby adam19 » 28 Aug 2014 00:27

Hi everyone,

I'm working on a project which is going to use VLC as the base, but I'm running into problems compiling for Windows. I'm trying to compile it for 64-bit Win7 using Ubuntu 14.04 inside Virtual Box. I've been following the instructions here https://wiki.videolan.org/Win32Compile/, but I keep running into problems when running make.

When I build using i686-w64-mingw32 or x86_64-w64-mingw32 I get an error saying it cannot locate idna.h. Both libidn11 & libidn11-dev are installed already, and the headers live in /usr/include. I did some searching and found people suggesting copying the headers into the VLC folder, and while that makes the error go away, I get another error saying it can't find -lidn -ldbus-1 or -lrt. Another post suggested copying libidn.so, libdbus-1.so and librt.so from /usr/lib, but I can't find them. I'm new to linux and building VLC, but I'm assuming those libraries are not being built during the process. Is there a way to build them?

I have also tried building using the triple i586-mingw32msvc, but it gives me an error saying I need the 32-bit version of luac. I remember reading that the 64-bit luac installed with Ubuntu can't output 32-bit bytecode. Is there a way around this?

I downloaded the contrib files for each of the triples, but I have no idea how to use them.

If anybody has any idea of how to fix these issues I would be greatly appreciative!

Thanks,
-Adam

TL;DR:
Compiling for Win7 under Ubuntu
i686-w64-mingw32 and x86_64-w64-mingw32 can't find idna.h
i586-mingw32msvc needs the 32-bit version of luac
How do you use the contribs?

adam19
New Cone
New Cone
Posts: 2
Joined: 28 Aug 2014 00:08

Re: Problem Compiling VLC for Windows (idna, luac)

Postby adam19 » 03 Sep 2014 21:38

I've been working at cross compiling again, and I have run into some new errors. When I compile with i686-w64-mingw32 or i586-mingw32msvc I get the error:

Code: Select all

libvlc_win32_rc.o: file not recognized: File format not recognized collect2: error: ld returned 1 exit status
Any idea of what could be causing this?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 42 guests