RicoCasta / opencinematools

Automatically exported from code.google.com/p/opencinematools
0 stars 0 forks source link

compile on win32 with mingw #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all, I have successfully compiled opencinematools on linux and I'm
trying to port it on windows I would like to compile all the tools with mingw.
I compiled using this code:

g++ -o mkcpl c:\mkcpl.cpp -L c:\lib\libkumu.lib -L c:\lib\libasdcp.lib -L
c:\lib\libeay32.lib -L c:\lib\libexpat.lib -I c:\header -I c:\header\openssl

I had something like 155 errors like:
undefined reference to `Kumu::XMLElement::XMLElement(char const*)'
undefined reference to `Kumu::XMLElement::SetAttr(char const*, char const*)'
undefined reference to `Kumu::XMLElement::AddChildWithPrefixedContent(char
const*, char const*, char const*)'
undefined reference to `Kumu::XMLElement::AddChildWithContent(char const*,
char const*)'
undefined reference to `Kumu::Timestamp::EncodeString(char*, unsigned int)
const'
undefined reference to `Kumu::XMLElement::AddChildWithContent(char const*,
char const*)'
undefined reference to `ASDCP::JP2K::MXFReader::~MXFReader()'
undefined reference to `ASDCP::JP2K::MXFReader::~MXFReader()'
undefined reference to `ASDCP::PCM::MXFReader::MXFReader()'
undefined reference to `ASDCP::PCM::MXFReader::OpenRead(char const*) const'

and so on.. I think they are all linker errors.. but I don't know why! I
linked all the libraries and headers..
I have a doubt anyway..does mingw support .lib created with MSVC++??
because all the dependencies libraries I used, I downloaded from their
respective binary packages for win.. maybe an incongruence?
I have another question.. can I use .a libraries I compiled in linux on win32?

Thank you very much to all for the help.

Original issue reported on code.google.com by GaNDa...@gmail.com on 8 Jan 2010 at 3:01