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
Forum Updated to NodeBB v4.3 + New Features

Symbol not found: _iconv

Scheduled Pinned Locked Moved Solved General and Desktop
linkerloaderruntime errorruntimeerrorruntime
7 Posts 2 Posters 5.4k 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on 31 Jul 2016, 16:10 last edited by TheFlyingMooseMan 8 Apr 2016, 04:49
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 31 Jul 2016, 17:33 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 31 Jul 2016, 18:45
      0
      • S SGaist
        31 Jul 2016, 17:33

        Hi,

        How did you install Qt ?

        T Offline
        T Offline
        TheFlyingMooseMan
        wrote on 31 Jul 2016, 18:45 last edited by TheFlyingMooseMan
        #3

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 31 Jul 2016, 21:31 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 1 Aug 2016, 04:54
          0
          • S SGaist
            31 Jul 2016, 21:31

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

            T Offline
            T Offline
            TheFlyingMooseMan
            wrote on 1 Aug 2016, 04:54 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 1 Aug 2016, 13:30 last edited by
              #6

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 1 Aug 2016, 22:08 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

                1/7

                31 Jul 2016, 16:10

                • Login

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