Page 1 of 1

OutOfTree build for Windows/MinGW target?

Posted: 26 Aug 2013 02:15
by joeklow
Hi all.

Wiki page on OutOfTree build is telling nothing cross-platform related; also, there's no good reliable example in any publicly available 3rdparty plugin code.
Using plain makefile template with CC set to mingw32-c++, make result is:

Code: Select all

mingw32-c++ -std=gnu99 -Wl,-no-undefined,defs -lvlccore -lgettextlib -DMODULE_STRING=\"some\" -shared -o libsome_plugin.dll some.o /usr/libexec/gcc/mingw32/ld: cannot find defs: No such file or directory /usr/libexec/gcc/mingw32/ld: cannot find -lvlccore /usr/libexec/gcc/mingw32/ld: cannot find -lgettextlib collect2: error: ld returned 1 exit status make: *** [libsome_plugin.dll] Error 1
Can anyone share a hint/template on this problem? :roll:

Re: OutOfTree build for Windows/MinGW target?

Posted: 28 Aug 2013 00:23
by Jean-Baptiste Kempf
Missing -L/path to the libvlccore.dll.a

Re: OutOfTree build for Windows/MinGW target?

Posted: 28 Aug 2013 21:20
by joeklow
Jean-Baptiste Kempf, thanks, actually there was more problems that one in the Debian/Ubuntu cross-platform building team may expect.

And, please, jb, pick this:

contrib files downloaded at 'make prebuilt' step:

Code: Select all

ls -l ../contrib/x86_64-w64-mingw32/lib/|grep libdts lrwxrwxrwx 1 1015 1016 56 Apr 8 20:57 libdts.a -> /home/funman/vlc/contrib/x86_64-w64-mingw32/lib/libdca.a ls -l ../contrib/i586-mingw32msvc/lib/|grep dts lrwxrwxrwx 1 ft ft 54 Dec 16 2012 libdts.a -> /home/jb/vlc-2.0/contrib/i586-mingw32msvc/lib/libdca.a
.. I moved the compilation story to the wiki's personal page, https://wiki.videolan.org/User:Joeklow/ ... t%20Gentoo

Re: OutOfTree build for Windows/MinGW target?

Posted: 02 Sep 2013 18:07
by Jean-Baptiste Kempf
Cool :)