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. Symbol not found: _iconv
QtWS25 Last Chance

Symbol not found: _iconv

Scheduled Pinned Locked Moved Solved General and Desktop
linkerloaderruntime errorruntimeerrorruntime
7 Posts 2 Posters 5.4k 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on last edited by TheFlyingMooseMan
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • SGaistS SGaist

        Hi,

        How did you install Qt ?

        T Offline
        T Offline
        TheFlyingMooseMan
        wrote on last edited by TheFlyingMooseMan
        #3

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

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

          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
          0
          • SGaistS SGaist

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

            T Offline
            T Offline
            TheFlyingMooseMan
            wrote on last edited by
            #5

            @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
            0
            • T Offline
              T Offline
              TheFlyingMooseMan
              wrote on last edited by
              #6

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

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

                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
                0

                • Login

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