I'm trying to get a V-Ray repo started at work so I can start making some custom texture plugins. I'm working with Linux CentOS Linux release 7.4.1708 (Core), Maya 2018.4.P07, V-Ray Next for Maya, update 1 (v4.12.01.29159), building with rez.
I'm trying to start with a simple example, the Fresnel texture plugin, but it seems that any .so library I point to in CMakeLists.txt isn't getting found when I load my plugin from Maya's plug-in manager:
This only crops up when I use .so libraries (libVRaySDKLibrary.so in this case) - .a libraries don't give me any error messages.
The following is a simplified CMakeLists.txt, which only has one .so library, which gives me the above error (sorry, can't upload files from work so have to dump it here):
Any advice on this would be hugely appreciated, please let me know if there are any details I missed out.
I'm trying to start with a simple example, the Fresnel texture plugin, but it seems that any .so library I point to in CMakeLists.txt isn't getting found when I load my plugin from Maya's plug-in manager:
Code:
// Error: file: /library/rez/ext_packages/app_maya/2018.4.7.2/platform-linux/ext/scripts/others/pluginWin.mel line 290: Unable to dynamically load : /net_home/shane.simms/local_packages/testing/0.0.1/platform- linux/app_maya-2018/plugins/testing.so libVRaySDKLibrary.so: cannot open shared object file: No such file or directory // // Error: file: /library/rez/ext_packages/app_maya/2018.4.7.2/platform-linux/ext/scripts/others/pluginWin.mel line 290: libVRaySDKLibrary.so: cannot open shared object file: No such file or directory (testing) //
The following is a simplified CMakeLists.txt, which only has one .so library, which gives me the above error (sorry, can't upload files from work so have to dump it here):
Code:
CMAKE_MINIMUM_REQUIRED(VERSION 3.3) set(CMAKE_VERBOSE_MAKEFILE ON) # this is the cmake module used to build maya plugins include($ENV{DEVKIT_LOCATION}/cmake/pluginEntry.cmake) include_directories(/net_home/shane.simms/git/testing/include) include_directories(/net_home/shane.simms/git/testing/vraymaya/texfresnel/) include_directories(/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/include) # set project set(PROJECT_NAME testing) set(CMAKE_STATIC_LIBRARY_PREFIX "") # set SOURCE_FILES set( SOURCE_FILES vray/vray_texfresnel/tex_fresnel.cpp vraymaya/texfresnel/maya_pluginmain.cpp vraymaya/texfresnel/maya_tex_fresnel.cpp ) set(treeparser_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libtreeparser_s.a") set(plugman_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libplugman_s.a") set(jpeg_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libjpeg_s.a") set(partio_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libpartio_s.a") set(VRaySDKLibrary_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libVRaySDKLibrary.so") # so set(imagesamplers_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libimagesamplers_s.a") set(putils_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libputils_s.a") set(tiff_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libtiff_s.a") set(bmputils_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libbmputils_s.a") set(meshes_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libmeshes_s.a") set(rayserver_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/librayserver_s.a") set(vrmat_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libvrmat_s.a") set(alembic_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libalembic_s.a") set(glvm_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libglvm_s.a") set(vrscene_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libvrscene_s.a") set(libpng_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/liblibpng_s.a") set(meshinfosubdivider_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libmeshinfosubdivider_s.a") set(osdCPU_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libosdCPU_s.a") set(pimglib_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libpimglib_s.a") set(openexr_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libopenexr_s.a") set(vutils_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libvutils_s.a") set(geolib_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libgeolib_s.a") set(pnet_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libpnet_s.a") set(ptex_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libptex_s.a") set(curl_s_PATH "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libcurl_s.a") set(VRAYMAYA_LIB "/library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib") # add_executable(main vraymaya/texfresnel/maya_pluginmain.cpp) # target_link_libraries(main /library/rez/ext_packages/vray_maya/4.12.01.29159.0/platform-linux/app_maya-2018/vray/lib/libplugman_s.a) set( LIB_DIRS ${VRAYMAYA_LIB} ) # Load libraries link_directories(${LIB_DIRS}) # set required libraries set( LIBRARIES OpenMaya Foundation treeparser_s plugman_s resman_s jpeg_s partio_s VRaySDKLibrary # so imagesamplers_s putils_s tiff_s bmputils_s meshes_s rayserver_s vrmat_s alembic_s glvm_s vrscene_s libpng_s meshinfosubdivider_s osdCPU_s pimglib_s openexr_s vutils_s geolib_s pnet_s ptex_s curl_s ) # Build the plugin build_plugin() # install the plugins install( TARGETS testing DESTINATION plugins ) install( FILES shaders/vraytexfresnel.txt DESTINATION shaders ) # rez-2.18 onwards doesn't provide a default install target # we have to provide a phony one install(CODE "")
Comment