Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Symbol not found: _iconv

    General and Desktop
    linker loader runtime error runtimeerror runtime
    2
    7
    4298
    Loading More Posts
    • 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.
    • T
      TheFlyingMooseMan last edited by TheFlyingMooseMan

      Using Qt 5.7 on OS X El Capitan, I get the following error trying to run my app from within Qt Creator:

      dyld: Symbol not found: _iconv
        Referenced from: /usr/lib/libcups.2.dylib
        Expected in: /sw/lib//libiconv.2.dylib
       in /usr/lib/libcups.2.dylib
      The program has unexpectedly finished
      

      However, running the executable from the command line, it is starting up normally and running fine.
      What is puzzling is the reference to the /sw/lib directory, which is created by fink.
      Any idea how to fix this?

      Thanks,
      Roy

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        How did you install Qt ?

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

        T 1 Reply Last reply Reply Quote 0
        • T
          TheFlyingMooseMan @SGaist last edited by TheFlyingMooseMan

          @SGaist From qt-opensource-mac-x64-clang-5.7.0.dmg.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Check the environment variables in the project panel to see if /sw/ is searched before /usr/

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

            T 1 Reply Last reply Reply Quote 0
            • T
              TheFlyingMooseMan @SGaist last edited by

              @SGaist Yup, it was. I replace both DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH from
              /Volumes/Home/roy/tmp/Qt5.7.0/5.7/clang_64/lib:/sw/lib/:/usr/local/lib/:/usr/lib:/sw/lib/
              to
              /Volumes/Home/roy/tmp/Qt5.7.0/5.7/clang_64/lib:/usr/local/lib/:/usr/lib:/sw/lib/

              I then did a Build/Clean All and then a Build/Rebuild Project (just to make sure, not sure if this was really needed).
              And yes, for now, that is working.

              Thanks for the suggestion, @SGaist

              1 Reply Last reply Reply Quote 0
              • T
                TheFlyingMooseMan last edited by

                At this moment, I cannot use Topic Tools and set this topic as solved...

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Because you didn't ask a question. Use the button to "Ask as question" and then you'll have the "Mark as solved" that should appear.

                  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 Reply Quote 0
                  • First post
                    Last post