简体   繁体   中英

Error building Static Library with OpenCV and Xcode on C++

I'm trying to build a DLL library for Unity3D (in 32-bit) but first of all I want to make a .a static library to make a C++ Wrapper for C#.

Well, this is what I've done.

  1. I've built OpenCV unchecking BUILD_SHARED_LIBS in order to get the STATIC LIBS , with architecture i386 .
  2. I've made my static library code and built it, Linking the static libraries that I needed (I really import them all because I'm having errors and I want to know if it's an error lib-based):

在此处输入图片说明

(included from /lib/ and /3rdparty/lib/ )

  1. I'm linking my library and header in a new project (Command Line Tool) in order to test my new static library, but my errors are:

在此处输入图片说明

( pastebin link )

Well, I have no idea what's wrong.

This is my settings on the static library:

在此处输入图片说明

This is my settings on my test Command Line Tool (for testing my library)

在此处输入图片说明

Does anyone have idea about this?

Thank you very much in advance.

Regards.


EDIT: tried to manipulate the static libraries for 64 bits as well but nothing happened.

解决方案是删除库路径中的几个路径,因为它弄乱了一些库。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM