[Error] cannot find -ldemo_shared



  • I am currently using the newest version of Qt which is Qt Creator 2.3.1 Based on Qt 4.7.4 (32 bit) Built on Sep 21 2011 at 11:16:49. However, when I want to test the sample application of affine transformation. It just doesn't want to run. It says something like this:

    @
    :-1: error: cannot find -ldemo_shared
    :-1: error: collect2: ld returned 1 exit status
    @

    Any help ?



  • It's a little late, but I ran across the same issue, in case someone else has trouble too.

    The issue I had was when I tried to compile the Qt Demos, the system was unable to find "private/qpixmapdata_p.h" in arthurwidgets, which is part of the shared library, which caused the error.

    In my case, it seems to be an issue with the paths I have set, so I found the file and the absolute file path to the qpixmapdata_p.h file and was able to compile fine.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.