[FFmpeg-trac] #282(build system:open): undefined reference to `_avdevice_register_all'
FFmpeg
trac at avcodec.org
Mon Sep 12 09:11:56 CEST 2011
#282: undefined reference to `_avdevice_register_all'
-------------------------------------+-------------------------------------
Reporter: KSHawkEye | Owner: michael
Type: defect | Status: open
Priority: critical | Component: build
Version: git | system
Keywords: undefined | Resolution:
reference avdevice_register_all | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by KSHawkEye):
A possible solution can be found here:
http://sourceforge.net/mailarchive/message.php?msg_id=28070146
Here is a patch that can fix the issue but I have '''NOT''' been able to
test if this breaks the build for Linux.
{{{
--- ./libavdevice/avdevice.h.orig 2011-09-12 02:57:25.891985547
-0400
+++ ./libavdevice/avdevice.h 2011-09-12 03:07:37.140582012 -0400
@@ -41,12 +41,12 @@
/**
* Return the LIBAVDEVICE_VERSION_INT constant.
*/
-unsigned avdevice_version(void);
+__declspec(dllexport) unsigned avdevice_version(void);
/**
* Return the libavdevice build-time configuration.
*/
-const char *avdevice_configuration(void);
+__declspec(dllexport) const char *avdevice_configuration(void);
/**
* Return the libavdevice license.
@@ -57,7 +57,7 @@
* Initialize libavdevice and register all the input and output devices.
* @warning This function is not thread safe.
*/
-void avdevice_register_all(void);
+__declspec(dllexport) void avdevice_register_all(void);
#endif /* AVDEVICE_AVDEVICE_H */
}}}
I'm open to a different solution to this problem, but would really like to
get this bug closed.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/282#comment:24>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list