kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.
Other
658 stars 276 forks source link

Compile errors, VS 2015, OF 0.9.8 stable branch. #241

Open fred-dev opened 6 years ago

fred-dev commented 6 years ago

I cannot seem to compile anything with ofxCv (stable branch) and of 0.9.8 release or of github stable branch. I get the same error for all combinations:

1>opencv_core310.lib(persistence.obj) : error LNK2005: "public: static struct CvTypeInfo * CvType::first" (?first@CvType@@2PEAUCvTypeInfo@@EA) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "public: static struct CvTypeInfo * CvType::last" (?last@CvType@@2PEAUCvTypeInfo@@EA) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_type" (?seq_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_tree_type" (?seq_tree_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType seq_graph_type" (?seq_graph_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType sparse_mat_type" (?sparse_mat_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType image_type" (?image_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType mat_type" (?mat_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)
1>opencv_core310.lib(persistence.obj) : error LNK2005: "struct CvType matnd_type" (?matnd_type@@3UCvType@@A) already defined in opencv_core249.lib(persistence.obj)

It seems from the documentation this should just work. I am using the project generator to either add ofxCV to an existing project, or to generate projects for any of the ofxCv examples.

ratmother commented 5 years ago

I am having this problem on 0.10.0 as well.