I'm trying to integrate a library into my Qt project; specifically, this one: http://trac.osgeo.org/proj/
I would like to link statically, so I downloaded the zipped source and extracted. I then compiled the library in a Cygwin environment (I'm on a Windows platform) and consequently got my static library objects.
Now I tried linking to them, but something odd happened.
First when I ran it from Qt Creator, the program terminated immediately with an error code. So I tried running the executable from the debug directory, and it complained about missing Cygwin DLLs, specifically cygproj-0.dll and cygwin1.dll. Why do I need these libraries in my Qt project, when I'm not explicitly linking to them? Is it because the library I AM linking to was compiled in a Cygwin environment? Is there a way around this?
So I copied over the necessary DLLs, but now when I run my executable, I can see that it appears in Task Manager, but just appears to be eating up CPU cycles (takes up 50% on my dual-core system.)
I know there's nothing wrong with the libraries themselves, because if I write a very simple, minimalistic program (no using Qt, but just a simple C-program with a mainline) and link to the library, it runs just fine.
Any idea what's going on?
Bookmarks