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. OSX: "Unable to determine parameter value" when linking against own library
Forum Updated to NodeBB v4.3 + New Features

OSX: "Unable to determine parameter value" when linking against own library

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 422 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.
  • X Offline
    X Offline
    x6herbius
    wrote on last edited by
    #1

    I'm having a very perplexing problem when trying to compile an application of mine on OSX El Capitan that uses OpenGL. I have a (currently very small) utils library that's part of my subdirs project and that other modules within the same project use. However, when I link my test application against this library and run it, QApplication never gets past its constructor and the debug console is filled with millions of these messages:

    Unable to determine parameter value. This will likely cause issues with CL context rendering.
    

    The application hangs indefinitely on startup in Cl::valueForDevice until I kill it manually. However, if I don't link against my utils library (and instead copy the files into the respective modules that use them), the application runs fine.

    I can't understand what it would be about the utils library that would cause this problem to happen. Even if I remove all implementation from the library so that it just has the utils_global.h file, it still doesn't work. The only way to get the application to run is to comment out the library reference lines from the .pro file:

    win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../util/release/ -lutil
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../util/debug/ -lutil
    else:unix: LIBS += -L$$OUT_PWD/../util/ -lutil
    
    INCLUDEPATH += $$PWD/../util
    DEPENDPATH += $$PWD/../util
    

    Does anyone have any idea why this might be happening?

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

      Hi,

      Might be a silly idea but, do you maybe have a name clash or something like that happening ?

      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