# Unable to resolve @rpath not found

**URL:** https://discourse.cmake.org/t/unable-to-resolve-rpath-not-found/5325
**Category:** Usage
**Tags:** os:macos
**Created:** [March 29, 2022, 9:09pm UTC](https://discourse.cmake.org/t/unable-to-resolve-rpath-not-found/5325 "2022-03-29T21:09:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gary](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.cmake.org/u/Gary)
#### Post date: [March 29, 2022, 9:09pm UTC](https://discourse.cmake.org/t/unable-to-resolve-rpath-not-found/5325/1 "2022-03-29T21:09:20Z")

</div>

I’m trying to compile WSJT-X for MacOS 12.3. Environment includes Xcode, Macports, Cmake 3.22.3 and QT 5.15.2. I use the Cmake GUI to configure and generate build files. WSJT-X builds without errors when I use the make command in Terminal. But when I use the make install command, I get the following during bundle fixup:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic:  
can’t open file: @rpath/QtSql.framework/Versions/5/QtSql (No such file or  
directory)

I’ve googled and tried a number of Cmake commands to resolve including CMAKE\_INSTALL\_RPATH pointing right at the missing file  
CMAKE\_INSTALL\_REQUIRED\_LIBRARIES point to the correct path and  
CMAKE\_BUILD\_WITH\_INSTALL\_RPATH TRUE

but its a no go. Any suggestions as to how to resolve would be greatly appreciated.

You can probably tell that I’m a NOOB

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 31, 2022, 1:56pm UTC](https://discourse.cmake.org/t/unable-to-resolve-rpath-not-found/5325/2 "2022-03-31T13:56:05Z")

</div>

Is it using `fixup_bundle`? It has a problem on macOS where it assumes there is only one rpath entry and it doesn’t implement inheriting the value either.

Cc: @kyle.edwards

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.cmake.org/u/Gary)
#### Post date: [March 31, 2022, 5:36pm UTC](https://discourse.cmake.org/t/unable-to-resolve-rpath-not-found/5325/3 "2022-03-31T17:36:15Z")

</div>

## Yes its using fixup\_bundle: – fixup\_bundle: preparing…

warning: cannot resolve item ‘@rpath/QtSql.framework/Versions/5/QtSql’

Is there a way to resolver?..Thanks for responding!
