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

  • SEARCH
  • Home
  • 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 7735469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:30:35+00:00 2026-06-01T07:30:35+00:00

I am creating package using cmake I am having following structure bin/ bin1 lib/

  • 0

I am creating package using cmake

I am having following structure

bin/
    bin1
lib/

    lib1
    lib2

Where lib1 and lib2 are external dynamic library. How can I set RPATH so it will automatically link with lib1 and lib2 ?

  • 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-06-01T07:30:37+00:00Added an answer on June 1, 2026 at 7:30 am

    I’ve been fussing with cmake on this as well. Cmake uses CMAKE_SKIP_BUILD_RPATH for linking at build time and CMAKE_INSTALL_RPATH to set the rpath used when the install target is built. cmake has some good info on using its rpath mechanism:
    http://www.cmake.org/Wiki/CMake_RPATH_handling

    An alternative method is to use ldconfig. I notice that when you build svn(1.6.17), it’s make install target invokes ldconfig to set rpath.

    take a look at $ORIGIN as you’ll need that in your rpath to keep it relative to the binary rather than relative to $PWD.

    Building a simple (hello-world-esque) example of using ld's option -rpath with $ORIGIN

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Folks, We have been using OpenXml APIs found in System.IO.Packaging for creating a package
I'm creating an install package using InnoSetup and installing SQL Server 2005 Express. Here's
I am creating an install package using InstallShield Pro X. The upgrade works properly.
Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I am creating an installation package for a VB6 application using Visual Studio Installer
I'm creating some maps from raster files using the raster package in R. I'd
I'm having trouble creating a sharepoint project with .net 4.0. Using Visual Studio 2010,
Is there a well maintained package available in Python for creating and validating HTML
I'm creating several visual objects in loop: ... Package packet; // a visual packet
I am creating NuGet package and for that I have created Nuspec manifest file.

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.