Compilation error when compiling for Windows

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
NoshBar
New Cone
New Cone
Posts: 6
Joined: 26 Nov 2003 11:06

Compilation error when compiling for Windows

Postby NoshBar » 05 Dec 2003 11:10

Ok.

So I've done _exactly_ (as well as using my own ideas - pah) as the INSTALL.win32 file says... I've tried to cross compile VLC on Linux, and I've tried using the MingW and MSYS packages too (with all the additional libs)...
<EDIT> I've tried using vlc-0.6.2 and the test 7 release </EDIT>

I've tried using the bootstrap as the install doc says, I've tried just configuring it and making it...
The configure works fine, it's when I make that the below happens.

Could the person who compiles the Windows release, or ANYONE who has successfully, PLEASE oh PLEASE tell me how they did it?

The error that happens on both Linux and on Windows using MingW is with libintl.h as follows:

<EDIT> The ssize_t error only came up after trying to skip the bootstrap and just configuring, so don't focus on that... </EDIT>

In file included from ../../include/vlc/vlc.h:121,
from file.c:27:
../../include/vlc_common.h:112: conflicting types for `ssize_t'
c:/mingw/include/sys/types.h:119: previous declaration of `ssize_t'
In file included from ../../include/vlc/vlc.h:121,
from file.c:27:
../../include/vlc_common.h:698:24: libintl.h: No such file or directory
make[4]: *** [libaccess_file_plugin_a-file.o] Error 1
make[4]: Leaving directory `/home/dirk/vlc-0.6.2/modules/access'
make[3]: *** [all-access_file] Error 1
make[3]: Leaving directory `/home/dirk/vlc-0.6.2/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dirk/vlc-0.6.2/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dirk/vlc-0.6.2'
make: *** [all] Error 2

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 05 Dec 2003 12:07

You have the libintl.h error because you didn't install the gettext package.

You should still be able to compile vlc by using the --with-included-gettext option for ./configure.

And make sure you are using a recent snapshot of vlc (0.7.0-test1 or even cvs) because the ssize_t problem has been fixed in there (it appeared after an update to cygwin/mingw).

NoshBar
New Cone
New Cone
Posts: 6
Joined: 26 Nov 2003 11:06

Postby NoshBar » 05 Dec 2003 13:06

Hey man!

Thanks for providing stuff that works! Kindaaa......
Seriously, I'm going to write a frikkin' doc on things you _should_ know about VLC, but everyone assumes you know...

Ok, was compiling happily... everything was roxoring...
Then.

gcc.exe: intl/libintl.a: No such file or directory
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/home/dirk/vlc-0.7.0-test1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dirk/vlc-0.7.0-test1'
make: *** [all] Error 2

Ok, now I TRIED compiling gettext in MingW... and I got an error there too... *sigh*.

BUT, thank you so much for your help, I'll try get gettext compiling as that is OBVIOUSLY what is wrong... ahem. Thanks.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 05 Dec 2003 13:09

Happy writing :)
Don't use PMs for support questions.

NoshBar
New Cone
New Cone
Posts: 6
Joined: 26 Nov 2003 11:06

Postby NoshBar » 05 Dec 2003 15:30

Sheeeeeeez!

Ok. So I FINALLY got VLC and gettext compiling...

I needed to get gettext working because there's no libintl.a file in the vlc-intl folder... soooo I got gettext compiling just to the point where it makes that file...(then dies, but who has to know that?) copied it to the vlc folder... and badda bing!

So yeah, anyone who cares, I'll be writing a step-by-step process on how to compile VLC for n00bs... 'cos man... as a n00b, doing this from scratch was pretty damn frustrating.

But I'm so happy.

How many people are interested in step-by-step guides? And would there be any merit in posting patched versions of source to compile easily for anyone?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 05 Dec 2003 20:21

Please expand on the existing documentation...
i.e. the INSTALL.win32 file
Don't use PMs for support questions.

Guest

Postby Guest » 06 Dec 2003 12:02

Ok, well it's kinda lengthy, but I'll post the formatted and plain text version tonight, and you guys can decide what to do with it...

It's pretty damn thorough... so it might need it's own file :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 37 guests