OutOfTree build for Windows/MinGW target?

This forum is about all development around libVLC.
joeklow
New Cone
New Cone
Posts: 9
Joined: 10 Aug 2013 23:00

OutOfTree build for Windows/MinGW target?

Postby joeklow » 26 Aug 2013 02:15

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:

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: OutOfTree build for Windows/MinGW target?

Postby Jean-Baptiste Kempf » 28 Aug 2013 00:23

Missing -L/path to the libvlccore.dll.a
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

joeklow
New Cone
New Cone
Posts: 9
Joined: 10 Aug 2013 23:00

Re: OutOfTree build for Windows/MinGW target?

Postby joeklow » 28 Aug 2013 21:20

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: OutOfTree build for Windows/MinGW target?

Postby Jean-Baptiste Kempf » 02 Sep 2013 18:07

Cool :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests