Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use Mozilla NSS in QTt-Project (on Windows)?
QtWS25 Last Chance

How to use Mozilla NSS in QTt-Project (on Windows)?

Scheduled Pinned Locked Moved Unsolved General and Desktop
nsslibrariesmozillawindowsheaderfile
12 Posts 4 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Opa114
    wrote on 22 Sept 2016, 13:46 last edited by A Former User
    #1

    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!! :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Sept 2016, 22:08 last edited by
      #2

      Hi,

      If you are using Qt Creator you can follow this guide.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • O Offline
        O Offline
        Opa114
        wrote on 23 Sept 2016, 10:04 last edited by
        #3

        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?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Sept 2016, 10:15 last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • O Offline
            O Offline
            Opa114
            wrote on 23 Sept 2016, 10:21 last edited by
            #5

            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.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              VRonin
              wrote on 23 Sept 2016, 10:26 last edited by
              #6

              Build the NSS library, link against the .lib file (not the dll) and include the headers

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              2
              • O Offline
                O Offline
                Opa114
                wrote on 23 Sept 2016, 15:02 last edited by
                #7

                thanks, i will try it.
                @VRonin do you have experience in compiling NSS on Windows?

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  VRonin
                  wrote on 23 Sept 2016, 15:09 last edited by
                  #8

                  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

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    Opa114
                    wrote on 26 Sept 2016, 08:28 last edited by
                    #9

                    thanks, i will takeat look thereand try it out.

                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      Opa114
                      wrote on 26 Sept 2016, 11:28 last edited by
                      #10

                      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?

                      J 1 Reply Last reply 26 Sept 2016, 12:02
                      0
                      • O Opa114
                        26 Sept 2016, 11:28

                        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?

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 26 Sept 2016, 12:02 last edited by
                        #11

                        @Opa114 The header files should be in the nss source code directory

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • O Offline
                          O Offline
                          Opa114
                          wrote on 26 Sept 2016, 15:41 last edited by
                          #12

                          thanks :)

                          1 Reply Last reply
                          0

                          10/12

                          26 Sept 2016, 11:28

                          • Login

                          • Login or register to search.
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved