Begginer issues

This forum is about all development around libVLC.
Moffatt
New Cone
New Cone
Posts: 2
Joined: 10 Feb 2009 17:42

Begginer issues

Postby Moffatt » 10 Feb 2009 17:57

Hi. I'm having trouble getting http://wiki.videolan.org/LibVLC_Tutorial to compile. I'm using Cygwin on Vista.

I copied the include folder into a seperate folder with my C file next to the include/vlc folder, changed the #include <vlc/vlc.h> to #include "vlc/vlc.h" and made equivalent changes in vlc.h.

When I run "cc example.c -lvlc -o example" i get these errors:

/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xe): undefined reference to `_libvlc_exception_raised'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x1d): undefined reference to `_libvlc_exception_get_message'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x9e): undefined reference to `_libvlc_exception_init'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xb8): undefined reference to `_libvlc_new'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xe0): undefined reference to `_libvlc_media_new'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x100): undefined reference to `_libvlc_media_player_new_from_media'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x119): undefined reference to `_libvlc_media_release'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x12b): undefined reference to `_libvlc_media_player_play'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x154): undefined reference to `_libvlc_media_player_stop'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x15f): undefined reference to `_libvlc_media_player_release'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x16a): undefined reference to `_libvlc_release'
collect2: ld returned 1 exit status

What do I need to do differently to get this to work? I assume I'm doing something completly wrong. I'm in the process of writing an app that needs to compile on multiple platforms.

Moffatt
New Cone
New Cone
Posts: 2
Joined: 10 Feb 2009 17:42

Re: Begginer issues

Postby Moffatt » 19 Feb 2009 21:05

bump.

here is my directory structure if it helps.

Code: Select all

.: mmx.h vlc_es.h vlc_osd.h sample.c vlc_es_out.h vlc_pgpkey.h vlc vlc_events.h vlc_playlist.h vlc_access.h vlc_filter.h vlc_plugin.h vlc_acl.h vlc_fixups.h vlc_rand.h vlc_aout.h vlc_gcrypt.h vlc_services_discovery.h vlc_arrays.h vlc_httpd.h vlc_sout.h vlc_bits.h vlc_image.h vlc_stream.h vlc_block.h vlc_input.h vlc_strings.h vlc_block_helper.h vlc_interface.h vlc_threads.h vlc_charset.h vlc_intf_strings.h vlc_tls.h vlc_codec.h vlc_iso_lang.h vlc_update.h vlc_codec_synchro.h vlc_keys.h vlc_url.h vlc_codecs.h vlc_main.h vlc_variables.h vlc_common.h vlc_md5.h vlc_vlm.h vlc_config.h vlc_messages.h vlc_vod.h vlc_config_cat.h vlc_meta.h vlc_vout.h vlc_configuration.h vlc_modules.h vlc_window.h vlc_demux.h vlc_mtime.h vlc_xml.h vlc_devices.h vlc_network.h vlc_epg.h vlc_objects.h ./vlc: deprecated.h libvlc_media_list.h mediacontrol.h libvlc.h libvlc_structures.h mediacontrol_structures.h libvlc_events.h libvlc_vlm.h vlc.h
I really need help on this. I think the problem is that i have no .dll or .c files. Where would I get these? I can't get the application source to compile. It locks up during the configure-vlc.sh script described by http://wiki.videolan.org/Win32CompileCygwin with this message

Code: Select all

+ ACLOCAL_ARGS='-I m4 ' + test -d extras/contrib/bin ++ uname -s + test .CYGWIN_NT-6.0 = .Darwin + pkg-config --version + PKGCONFIG=yes + export AUTOPOINT + test '' + AUTOPOINT=autopoint + autopoint --dry-run --force + AUTOPOINT=true + echo + set +x generating modules/**/Makefile.am ........................................................................... + echo + echo + cp -f INSTALL INSTALL.git + autoreconf --install --force --verbose -I m4 4 [main] perl 2456 C:\cygwin\bin\perl.exe: *** fatal error - unable to remap C:\cygwin\lib\perl5\5.10\i686-cygwin\ auto\File\Glob\Glob.dll to same address as parent(0x860000) != 0x14C0000

finger
New Cone
New Cone
Posts: 2
Joined: 28 Jul 2009 15:34

Re: Begginer issues

Postby finger » 28 Jul 2009 15:51

You have to replace in libvlc.h and other files the declarations like:

//VLC_PUBLIC_API void libvlc_exception_init( libvlc_exception_t *p_exception );
typedef void (VLC_PUBLIC_API * _libvlc_exception_init)(libvlc_exception_t *p_exception);
_libvlc_exception_init libvlc_exception_init;


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 56 guests