Results 1 to 3 of 3

Thread: Problems with QtCreator

  1. #1
    Join Date
    Jan 2012

    Problems with QtCreator

    Hi, i just installed QtCreator to use it mainly with opencv.
    I'm used to program opencv in Osx with Xcode and i have a couple of problems:

    When i launch QtCreator i have these error messages:

    Cannot overwrite file /home/wedontplay/.config/Nokia/toolChains.xml: Permission denied

    Cannot overwrite file /home/wedontplay/.config/Nokia/qtcreator/default.qws: Permission denied

    Could not save session to file /home/wedontplay/.config/Nokia/qtcreator/default.qws

    And after a while QtCreator just disappears and reappears.
    Where do you think is the problem? It seems a permission problem but i can't figure out how to solve it as i'm new to ubuntu.
    Also i don't see the Qt icon with the others in the dashboard.

    i can't figure the way to tell Qt where my libraries are, it locates correctly the header files but not the libraries, i'm using this:

    #where the OpenCV header files are
    INCLUDEPATH += /usr/local/include \
    #where my libraries are
    LIBS += -L/usr/local/lib \
    \ \ \ \ \ \ \ \ \ \ \ \

  2. #2
    Join Date
    Oct 2007
    Lubuntu 12.10 Quantal Quetzal

    Re: Problems with QtCreator

    Quote Originally Posted by Wedontplay View Post
    Cannot overwrite file /home/wedontplay/.config/Nokia/toolChains.xml: Permission denied
    Check that your home directory is on a drive that supports the file permission system of Linux. A FAT or NTFS drive will not do here.

    Then, if that doesn't work, consider just deleting (better: Rename) the "Nokia" directory. If you didn't do anything important with QTCreator yet, then you can best start afresh. Errors like this can occur if your updated your Ubuntu version and still have personal configuration files for older versions of the application.

    Quote Originally Posted by Wedontplay View Post
    #where my libraries are
    LIBS += -L/usr/local/lib \ \ \ \ \ \ \ \ \ \ \ \ \
    The "-l" flags passed as-they-are to the linker. Here, you wrote down pretty much the names of the library files. The point is that the linker automatically adds ".so" if you want dynamic linking, and ".a" if you want static linking, so your file name shouldn't contain the extension already. As a rule of thumb, parameters that you pass by "-l" should be such that the ".a" library file that you use when statically linking would also be found. For "opencv_gpu", for example, there is only one .a file: "/usr/lib/libopencv_gpu.a", thus you specify "-lopencv_gpu" for the linker. The same holds for the other libraries.
    Last edited by Zugzwang; May 21st, 2012 at 12:52 PM.

  3. #3
    Join Date
    Sep 2006

    Re: Problems with QtCreator

    I had the exact same issue. I don't understand what was wrong but uninstalling QtCreator and then re-installing it via the ubuntu software center application worked for me...
    Best of luck

    Generally confused



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts