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. error : no such file or directory : 'source/libtomcrypt/mac/libtomcrypt.a'
Forum Updated to NodeBB v4.3 + New Features

error : no such file or directory : 'source/libtomcrypt/mac/libtomcrypt.a'

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Where exactly is that library on your machine ?
    How are you passing the path to it ?

    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
    0
    • A Offline
      A Offline
      Amritaaa
      wrote on last edited by
      #3

      I generated the static library for libtomcrypt on Mac and copied libtomcrypt.a inside my project folder in the path - source/libtomcrypt/mac/libtomcrypt.a.

      Also in my .pro file I added below lines -

      macx{
      LIBS += source/libtomcrypt/mac/libtomcrypt.a
      } else {
      LIBS += source/libtomcrypt/win/libtomcrypt.a
      }
      INCLUDEPATH += source/libtomcrypt/headers

      After runnung qmake, I gave 'build' which is throwing an error - no such file or directory : 'source/libtomcrypt/mac/libtomcrypt.a'

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        What if you use LIBS += $$PWD/source/libtomcrypt/mac/libtomcrypt.a ?

        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
        0
        • A Offline
          A Offline
          Amritaaa
          wrote on last edited by
          #5

          I tried giving only for mac --

          LIBS += $$PWD/source/libtomcrypt/mac/libtomcrypt.a
          INCLUDEPATH += source/libtomcrypt/headers

          It gives me some other error now -- Library not found for -lssl
          -- linker command failed with exit code 1 (use -v to see invocation)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #6

            Where are your OpenSSL libraries installed ?

            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
            0
            • A Offline
              A Offline
              Amritaaa
              wrote on last edited by
              #7

              its installed here - /usr/local/Cellar/openssl/1.0.2p

              I just did brew install openssl to confirm if I have installed openssl or not, I noticed few other things in the terminal logs -

              1. This formula is keg-only, which means it was not symlikned into /usr/local, because apple has deprecated use of openssl in favor of its own TLS and crypto libraries.
              2. For compilers to find this software you may need to set :
                LDFLAGS : - L/usr/local/opt/openssl/lib
                CPPFLAGS: - L/use/local/opt/openssl/include

              Do I need to set these flage? If yes, where and which file do I need to add this change?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8
                1. Yes, that's what Qt is using for some releases now: the SecureTransport framework.
                2. That should be in the LIBS and INCLUDESvariables.

                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
                0
                • A Offline
                  A Offline
                  Amritaaa
                  wrote on last edited by
                  #9
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    You do realise that you are already using LIBS and INCLUDEPATH in your .pro file ?

                    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
                    0
                    • A Offline
                      A Offline
                      Amritaaa
                      wrote on last edited by
                      #11

                      Oh yes, I have added that in .pro file. I am sorry for the stupid question.
                      But do you have any idea why it still gives error - library not found for -lssl?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Please show your complete .pro file.

                        And where exactly is your libssl located and if you use the links from /usr/local/opt check that they are pointing to something valid.

                        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
                        0
                        • A Offline
                          A Offline
                          Amritaaa
                          wrote on last edited by Amritaaa
                          #13
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            Amritaaa
                            wrote on last edited by Amritaaa
                            #14

                            To ensure the existence of libssl

                            1. " ls -l /usr/local/opt/openssl" gives the output -

                                       lrwxr-xr-x 1 katopz admin 24 Aug 20 15:21 /usr/local/opt/openssl -> ../Cellar/openssl/1.0.2p
                              
                            2. "whereis openssl" gives output -
                              /usr/bin/openssl

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              I don’t see any line pointing to /use/local/opt for the includes nor the libraries.

                              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
                              0
                              • A Offline
                                A Offline
                                Amritaaa
                                wrote on last edited by Amritaaa
                                #16

                                I have added those library files inside my project folder and folder structure is like -

                                source ---> openssl ----> mac ---->x64 , libcrypto.a , libssl.a
                                (inside x64 folder also 2 files ae there - libcrypto.a , libssl.a )

                                In .pro file it is mentioned like -

                                macx{
                                INCLUDEPATH += ./source/openssl
                                ./source/openssl/mac

                                LIBS += -L./source/openssl/mac/x64 -lssl \
                                        -L./source/openssl/mac/x64 -lcrypto
                                

                                }

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  Then you should rather use $$PWD to ensure you have the correct full path.

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

                                  A 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Then you should rather use $$PWD to ensure you have the correct full path.

                                    A Offline
                                    A Offline
                                    Amritaaa
                                    wrote on last edited by
                                    #18

                                    @SGaist : Tried $$PWD as well,, didn't help..

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #19

                                      Do you see any of these paths in the generated Makefile ?

                                      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
                                      0

                                      • Login

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