PDA

View Full Version : Creating Static libraries in Qt/Mac



nareshqt
2nd May 2008, 12:45
Hi ,

I am trying to create a static library using Qt/Mac.

1) first i created a .pro file using the command qmake -project. Then in the .pro file i assigned TEMPLATE variable to lib and CONFIG to staticlib.

2) i executed qmake command , which created a makefile

3) now when i am trying to execute that makefile using make lot of errors r coming.
the reason is it is not linking with qt files/ libraries.

why this is happening only in case of static libs, for others i.e dylibs and apps it is linking properly.

Can any one give me the solution ?

Thanks & Regards,
knrcse