<div dir="ltr"><div>Hello all,<br><br></div><div>I'm assuming this is the place to post issues for the x264 library code.<br><br></div><div>I'm making a shared library which uses libx264.so. I encountered the following two issues:<br><br><br></div><div>1. build succeeds, but the end application gives the following error:<br><br>  OSError: /home/wim/projects/cogisen/qt_workspaces/libs/libx264.so.148: undefined symbol: cli_input<br><br></div><div>On tracing the issues, I see that the following is defined in input/input.h:<br><br>   extern cli_input_t cli_input;<br><br></div><div>The only place this variable is defined, is in main() of x264.c, which rightly is outside of <br></div><div>the shared library.<br><br></div><div>The question is: Can this extern declaration be removed from the shared library build?<br><br></div><div>I have no need for the cli target and in fact specified '--disable-cli' on the configure command line. This does not affect the above error in any way.<br><br><br></div><div>2. In order to circumvent previous, I added this to my code:<br><br>    #include "input/input.h"<br>    cli_input_t cli_input;<br><br></div><div>Which led to the following error during compile:<br><br>.../common/rectangle.h: In function ‘void x264_macroblock_cache_rect(void*, int, int, int, uint32_t)’:<br>.../common/rectangle.h:30:18: error: invalid conversion from ‘void*’ to ‘uint8_t* {aka unsigned char*}’ [-fpermissive]<br>     uint8_t *d = dst;<br>                  ^<br>src/./<a href="http://subdir.mk:23">subdir.mk:23</a>: recipe for target 'src/./main.o' failed<br><br></div><div>I requet you to change the following:<br><br></div><div>common/rectangle.h, line 30,<br></div><div>from:<br>    uint8_t *d = dst;<br>to:<br>    uint8_t *d = (uint8_t *) dst;<br> <br></div><div><br><br></div><div>I understand that this is due to the very strict checks I enabled on my project. However, I'd rather see this line changed (for the benefit of all) than lower the checking level to compensate for this.<br></div><div><br></div><div><br>Thanks,<br><br></div>Wim Rijnders<br></div>