[Rtk-users] itk rtk lp_solve library conflict with opencv core files

Simon Rit simon.rit at creatis.insa-lyon.fr
Sun May 12 22:11:13 CEST 2024


Hi Fuquan,
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.
Simon

On Fri, May 10, 2024 at 5:45 AM Fuquan Deng <dfq_2022 at 163.com> wrote:

> class CV_EXPORTS_W_SIMPLE FileNode
>
> {
>
> public:
>
>     //! type of the file storage node
>
>     enum
>
>     {
>
>         NONE      = 0, //!< empty node
>
>         INT       = 1, //!< an integer
>
>         REAL      = 2, //!< floating-point number
>
>         FLOAT     = REAL, //!< synonym or REAL
>
>         STR       = 3, //!< text string in UTF-8 encoding
>
>         STRING    = STR, //!< synonym for STR
>
>         SEQ       = 4, //!< sequence
>
>         MAP       = 5, //!< mapping
>
>         TYPE_MASK = 7,
>
>
>         FLOW      = 8,  //!< compact representation of a sequence or
> mapping. Used only by YAML writer
>
>         UNIFORM   = 8,  //!< if set, means that all the collection
> elements are numbers of the same type (real's or int's).
>
>         //!< UNIFORM is used only when reading FileStorage; FLOW is used
> only when writing. So they share the same bit
>
>         EMPTY     = 16, //!< empty structure (sequence or mapping)
>         NAMED     = 32  //!< the node has a name (i.e. it is element of a
> mapping).
>
>
> C2144 D:\opencv\build\include\opencv2\core
> D:\opencv\build\include\opencv2\core\persistence.hpp 490
>
>
> #ifndef HEADER_lp_types
> #define HEADER_lp_types
>
> #ifdef WIN32
>   #include <windows.h>
> #endif
>
> /* Define data types
>    */
> /*
> ------------------------------------------------------------------------- */
> #ifndef LLONG
>   #if defined __BORLANDC__
>     #define LLONG __int64
>   #elif !defined _MSC_VER || _MSC_VER >= 1310
>     #define LLONG long long
>   #else
>     #define LLONG __int64
>   #endif
> #endif
>
> #ifndef COUNTER
>   #define COUNTER LLONG
> #endif
>
> #ifndef REAL
>   #define REAL    double
> #endif
>
> #ifndef REALXP
>
>
>  predefine REAL  of lp_types.h is conflict with
> opencv2\core\persistence.hpp   enum REAL, how to solve this problem??
> how to install and set enviroment of visual studio?
>
>
>
>
>
>
> _______________________________________________
> Rtk-users mailing list
> rtk-users at openrtk.org
> https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20240512/a9af59bc/attachment.htm>


More information about the Rtk-users mailing list