<div dir="ltr"><div>Hi Fuquan,</div><div>I don't think it's really an RTK issue. We have copy / pasted the code of lp_solve but the issue is really a problem between lp_solve and opencv. RTK does not need opencv so you could try to use one without the other in your code? An alternative seems to include persistence.hpp first.</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 10, 2024 at 5:45 AM Fuquan Deng <<a href="mailto:dfq_2022@163.com">dfq_2022@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px">class CV_EXPORTS_W_SIMPLE FileNode</p><p style="margin:0px">{</p><p style="margin:0px">public:</p><p style="margin:0px">    //! type of the file storage node</p><p style="margin:0px">    enum</p><p style="margin:0px">    {</p><p style="margin:0px">        NONE      = 0, //!< empty node</p><p style="margin:0px">        INT       = 1, //!< an integer</p><p style="margin:0px"><span style="background-color:rgb(255,245,102)">        REAL      = 2, //!< floating-point number</span></p><p style="margin:0px"><span style="background-color:rgb(255,245,102)">        FLOAT     = REAL, //!< synonym or REAL</span></p><p style="margin:0px">        STR       = 3, //!< text string in UTF-8 encoding</p><p style="margin:0px">        STRING    = STR, //!< synonym for STR</p><p style="margin:0px">        SEQ       = 4, //!< sequence</p><p style="margin:0px">        MAP       = 5, //!< mapping</p><p style="margin:0px">        TYPE_MASK = 7,</p><p style="margin:0px"><br></p><p style="margin:0px">        FLOW      = 8,  //!< compact representation of a sequence or mapping. Used only by YAML writer</p><p style="margin:0px">        UNIFORM   = 8,  //!< if set, means that all the collection elements are numbers of the same type (real's or int's).</p><p style="margin:0px">        //!< UNIFORM is used only when reading FileStorage; FLOW is used only when writing. So they share the same bit</p><p style="margin:0px">        EMPTY     = 16, //!< empty structure (sequence or mapping)</p><div style="margin:0px">        NAMED     = 32  //!< the node has a name (i.e. it is element of a mapping).</div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px"><span style="white-space:pre-wrap">       </span>C2144<span style="white-space:pre-wrap">           </span>D:\opencv\build\include\opencv2\core<span style="white-space:pre-wrap">    </span>D:\opencv\build\include\opencv2\core\persistence.hpp<span style="white-space:pre-wrap">    </span>490<span style="white-space:pre-wrap">             </span></div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px">#ifndef HEADER_lp_types</div><div style="margin:0px">#define HEADER_lp_types</div><div style="margin:0px"><br></div><div style="margin:0px">#ifdef WIN32</div><div style="margin:0px">  #include <windows.h></div><div style="margin:0px">#endif</div><div style="margin:0px"><br></div><div style="margin:0px">/* Define data types                                                         */</div><div style="margin:0px">/* ------------------------------------------------------------------------- */</div><div style="margin:0px">#ifndef LLONG</div><div style="margin:0px">  #if defined __BORLANDC__</div><div style="margin:0px">    #define LLONG __int64</div><div style="margin:0px">  #elif !defined _MSC_VER || _MSC_VER >= 1310</div><div style="margin:0px">    #define LLONG long long</div><div style="margin:0px">  #else</div><div style="margin:0px">    #define LLONG __int64</div><div style="margin:0px">  #endif</div><div style="margin:0px">#endif</div><div style="margin:0px"><br></div><div style="margin:0px">#ifndef COUNTER<span style="background-color:rgb(255,245,102)"></span></div><div style="margin:0px">  #define COUNTER LLONG</div><div style="margin:0px">#endif</div><div style="margin:0px"><br></div><div style="margin:0px"><span style="background-color:rgb(255,245,102)">#ifndef REAL</span></div><div style="margin:0px"><span style="background-color:rgb(255,245,102)">  #define REAL    double</span></div><div style="margin:0px"><span style="background-color:rgb(255,245,102)">#endif</span></div><div style="margin:0px"><br></div><div style="margin:0px">#ifndef REALXP</div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"> predefine REAL  of lp_types.h is conflict with opencv2\core\persistence.hpp   enum REAL, how to solve this problem??</div><div style="margin:0px">how to install and set enviroment of visual studio?</div></div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div style="margin:0px"><br></div><div><br></div></div></div><img style="width: 1px; height: 1px;" src="https://count.mail.163.com/beacon/webmail.gif?type=webmail_mailtrace&guid=pre_43087ba4ded59966b60a645ceba16774">_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:rtk-users@openrtk.org" target="_blank">rtk-users@openrtk.org</a><br>
<a href="https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users</a><br>
</blockquote></div>