<div dir="ltr"><div style>Hi,</div><div style><br></div><div style>I succeeded to run the Vortex library on VxWorks 6.8 operating system and it is working fine.</div><div style>At first, we need to patch the Axl library like below to compile on VxWorks environment.</div>
<div style>The third parameter "0" for "open" might be ignored with O_RDONLY but it needs for compiling on VxWorks.</div><div style>Later I will send my patches for Vortex library to the Vortex mailing list.</div>
<div style><br></div><div><div>diff --git a/axl/src/axl_stream.c b/axl/src/axl_stream.c</div><div>index f313c6f..628321e 100644</div><div>--- a/axl/src/axl_stream.c</div><div>+++ b/axl/src/axl_stream.c</div><div>@@ -536,7 +536,7 @@ axlStream * axl_stream_new (const char * stream_source, int stream_size,</div>
<div> <span class="" style="white-space:pre">   </span>if (file_path != NULL || (fd_handler > 0)) {</div><div> <span class="" style="white-space:pre">           </span>if (fd_handler < 0) {</div><div> <span class="" style="white-space:pre">                  </span>/* a file handle */</div>
<div>-<span class="" style="white-space:pre">                   </span>if ((fd = open (file_path, O_RDONLY)) < 0) {</div><div>+<span class="" style="white-space:pre">                   </span>if ((fd = open (file_path, O_RDONLY, 0)) < 0) {</div><div>
 <span class="" style="white-space:pre">                              </span>axl_log (LOG_DOMAIN, AXL_LEVEL_CRITICAL, "unable to open file a the location provided: %s, check location and permissions.", file_path);</div><div> </div><div> <span class="" style="white-space:pre">                                </span>axl_error_new (-1, "unable to read file provided", NULL, error);</div>
</div><div><br></div><div style>FYI, My axl_config.h settings for VxWorks are:</div><div>#undef AXL_OS_UNIX<br></div><div><div>#define AXL_OS_VXWORKS (1)</div><div>#undef AXL_HAVE_VASPRINTF</div></div><div><br></div><div style>
Best Regards,</div><div style>Chitora</div><div style><br></div></div>