![]() Set(CMAKE_INSTALL_RPATH "/opt/homebrew/lib/R/4.1/site-library/Rcpp/libs/ /opt/homebrew/lib/R/4.1/site-library/RInside/libs/") I started reading and I realized that I should add the RPATH on macOS and I added these in an attempt to add the RPATH to the binary. Reason: tried: 'Rcpp.so' (no such file), '/usr/local/lib/Rcpp.so' (no such file), '/usr/lib/Rcpp.so' (no such file), '/Users/amabdol/Projects/JASP/jasp-desktop/build/Rcpp.so' (no such file), '/usr/local/lib/Rcpp.so' (no such file), '/usr/lib/Rcpp.so' (no such file) Now, the problem is when I build everything and run the Engine, I see that the Engine cannot find the Rcpp.so, dyld: Library not loaded: Rcpp.so So, for R-Interface I have: target_link_libraries(Īnd $ are set by find_library as follow, so that they point to my system Rcpp.so and RInside.so. I pull some of those packages via the find_package and some via the pkg_check_modules (e.g., libR) and link them together. and finally the Engine is a STATIC library linked to Common, and R-Interface.R-Interface is a STATIC library linked to Common, libR, libRcpp, and libRInside.Common is a STATIC library linked to BOOST, libJSON and libArchive.I’m trying to build an executable, Engine, which is linked to a few static libraries and some system libraries as follow. ![]() I think I read quite some blogposts, etc but I still cannot get it right, and I hope someone could help me a bit. I’m really struggling with the RPATH issues on macOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |