How to use Mozilla NSS in QTt-Project (on Windows)?
-
Hi there,
someone out there who can tell me in detail how i can use Mozilla NSS Library in a QT-Project? An how did i use the included libraries in my project?
Have i to use and import the header files in my Project or only to link the compiled DLL-Files? And how and which header files i have to include?
My main target is Windows (64 Bit), but if there are some important hings i have to know when using Unix or Mac, please tell me these, too.Sorry for this question, but i'm not very familiar with using such external libraries and so on. So it would be very helpful to get a little example of code and a detailed explanation how i have to use the NSS library. Thanks a lot!! :)
-
Hi,
If you are using Qt Creator you can follow this guide.
-
yes i know this guide, but the guide ist superficial for me.
Have i to include the compiled DLL-Libraries? Or the uncompiled Header-Files?
An how did i use the included libraries in my project? -
What do you mean by it's superficial ? With that you have everything set to start using a 3rdparty library.
Also, are you asking for sample code for NSS ? If so there are some here provided by Mozilla.
-
yes but have i to link against the header-files of NSS or should / must i compile the NSS library first and then link against the compiled NSS-DLL-library files?
Thanks for the Link with the example code.
-
Build the NSS library, link against the .lib file (not the dll) and include the headers
-
No but looking at the doc it's just a call to make: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_Sources_Building_Testing
-
thanks, i will takeat look thereand try it out.
-
i compiled nss successfully and tried to do a little test (see here: https://developer.mozilla.org/de/docs/Mozilla/Projects/NSS/nss_sample_code/NSS_Sample_Code_sample4)
I linked the nss3.lib dynamically by adding them as external library.
But inside the folder which results when compiling nss there is no "nss.h" header file?
From where did i get them? And there are other missing headers? -
@Opa114 The header files should be in the nss source code directory
-
thanks :)
7/12