Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Error] cannot find -ldemo_shared
Qt 6.11 is out! See what's new in the release blog

[Error] cannot find -ldemo_shared

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      landrew
      wrote on last edited by
      #2

      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.

      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