Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6722405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:26:36+00:00 2026-05-26T09:26:36+00:00

My Mac OS X plugin includes some frameworks that use Qt. These frameworks create

  • 0

My Mac OS X plugin includes some frameworks that use Qt. These frameworks create a UI that displays jpegs using Qt’s jpeg plugin dylib.

I use install_name_tool to set @rpath in my plugin so that it can be located anywhere. The host application finds and loads my frameworks fine, but the Qt jpeg plugin dylib won’t then load at runtime.

The Qt jpeg plugin’s id is:

@rpath/qt/plugins/imageformats/libqjpeg.dylib

Its dependent Qt shared library list is:

@rpath/QtGui.framework/Versions/4/QtGui
@rpath/QtCore.framework/Versions/4/QtCore

When I set QT_DEBUG_PLUGINS to 1, the output from Console is:

QFactoryLoader::QFactoryLoader() looking at "/Users/Robin/MyPlugin.plugin/Contents/Frameworks/qt/plugins/imageformats/libqjpeg.dylib" 
"Cannot load library /Users/Robin/MyPlugin.plugin/Contents/Frameworks/qt/plugins/imageformats/libqjpeg.dylib: " 
not a plugin`

If I replace @rpath in the list of dependent libraries with hardcoded locations, everything works fine, but my plugin can’t then be located anywhere.

This problem appears to be on Snow Leopard, but not Lion. I’m using Qt 4.6.3.

Any suggestions / advice appreciated on how I get libqjpeg loading successfully. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:26:37+00:00Added an answer on May 26, 2026 at 9:26 am

    I fixed this by adding an rpath path name to QtCore using install_name_tool:

    install_name_tool -add_rpath @loader_path/../../.. QtCore.framework/Versions/4/QtCore
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a C++ plugin in Mac OS X using the Carbon framework (yeah,
Using Mac OS X 10.6.2, Eclipse SDK 3.5.2. I installed the Android plugin, following
We have a browser plugin that has recently been ported to the Mac. During
I'm using Eclipse-plugin to develop Android applications on mac. I've got a project and
I'm implementing a Photoshop plugin on the Mac, and I'm doing it using Cocoa.
I am trying to create an installer for a Internet Plugin on Mac OS
This basic npapi plugin is written in C. I'm developing on Mac and using
In the Eclipse plugin I am developing, I am querying some Prolog files that
I used the cocoa of MAC to develop a plugin with safari , I
i installed eclipse/galileo on mac x 10.5. i'm trying to install subversion plugin, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.