<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Well,<br>I tried everything, changing the cmake_install_prefix and so on, and lastly I checked the CMakeLists.txt file which took care of the Plugin and there I found a mistake.. a library name spelled incorrectly. I changed that and now I get<br>linker errors which I do not know how to get rid of:<br><br>No rule to make target `/usr/local/unpackaged/libcommon.so', needed by `bin/libVdcWriter.so'. Stop.<br><br>That libcommon.so is a library which is already build, but not by paraview, and I want it to be linked to my code. Here<br>is the CMakeLists.txt:<br><br>INCLUDE(${ParaView_SOURCE_DIR}/CMake/ParaViewPlugins.cmake)<br><br>INCLUDE_DIRECTORIES(<br> ${VTK_INCLUDE_DIR}<br> ${PARAVIEW_INCLUDE_DIRS}<br> ${VTKEXPAT_SOURCE_DIR}<br> )<br><br>FIND_PACKAGE(Qt4)<br>INCLUDE(${QT_USE_FILE})<br><br>FIND_PACKAGE(ParaView REQUIRED)<br> INCLUDE(${PARAVIEW_USE_FILE})<br><br>FIND_PACKAGE(VDC REQUIRED)<br>INCLUDE_DIRECTORIES(${VDC_INCLUDE_DIR})<br><br>FIND_PACKAGE(NETCDF REQUIRED)<br>INCLUDE_DIRECTORIES(${NETCDF_INCLUDE_DIR})<br><br>IF (PARAVIEW_BUILD_QT_GUI)<br> ADD_PARAVIEW_PLUGIN(VdcWriter "1.0"<br> GUI_RESOURCE_FILES GUIVdcWriter.xml<br> SERVER_MANAGER_XML SMVdcWriter.xml<br> SERVER_MANAGER_SOURCES vtkVdcWriter.cxx<br> )<br>ELSE (PARAVIEW_BUILD_QT_GUI)<br> ADD_PARAVIEW_PLUGIN(VdcWriter "1.0"<br> SERVER_MANAGER_XML SMVdcWriter.xml<br> SERVER_MANAGER_SOURCES vtkVdcWriter.cxx<br> )<br>ENDIF (PARAVIEW_BUILD_QT_GUI)<br><br>TARGET_LINK_LIBRARIES(VdcWriter ${EXPAT_LIBRARY} ${NETCDF_LIBRARY} ${COMMON_LIBRARY} ${VDF_LIBRARY}<br><br>I believe that target_link_libraries command is not correct, but how can I link all these libraries to my code?<br><br>thx<br>Natalie<br><br><br><br>> Date: Thu, 15 Jan 2009 10:15:44 -0500<br>> From: burlen.loring@kitware.com<br>> To: nataliehapp@hotmail.com<br>> CC: paraview@paraview.org<br>> Subject: Re: [Paraview] Writer Plugin cannot be loaded<br>> <br>> Natalie Happenhofer wrote:<br>> > Hi!<br>> ><br>> > I have written a Writer-Plugin and after (at last) successfully <br>> > compiling and linking it within Paraview, I tried to load it with the <br>> > PluginManager,<br>> > and in the Paraview/build/bin directory I found my libVdcWriter.so, <br>> > but loading fails. I get the error message: "libVdcWriter.so: no such <br>> > file or directory"<br>> > But the file is in the build/bin - directory, the <br>> > plugin-manager-browser found it!<br>> > Does anyone know what could be the problem here? Is it possible that I <br>> > missed to link something, any library from paraview so that this <br>> > plugin can be loaded?<br>> <br>> It sounds like the dynamic linker/loader , ld, isn't finding your <br>> libVdcWriter.so library. first you can verify by running ldd on your <br>> plugin and searching for "not found". like this:<br>> <br>> ldd /path/to/libMyPlugin.so | grep "not found"<br>> <br>> This will list the libraries that are not found. There are a number of <br>> ways to remedy such an issue. The easiest (especially for debugging <br>> purposes) is to use LD_LIBRARY_PATH on the command line to add locations <br>> to ld's search path. You know where the missing library is located then <br>> you can run paraview like this:<br>> <br>> LD_LIBRARY_PATH=/path/to/missing/lib/folder /path/to/paraview<br>> <br>> or you can export this variable in your shell.<br>> <br>> ><br>> > and by the way, a stupid question: linux .so - files are equivalent to <br>> > windows .dll-files, true? so while I´m loading my plugins as .dlls in <br>> > windows, with linux they have the ending .so, right?<br>> ><br>> > thx a lot,<br>> > Natalie Happenhofer<br>> ><br>> ><br>> ><br>> > ------------------------------------------------------------------------<br>> > ¡Descúbrelo! ¿Qué puedes hacer con el nuevo Windows Live? <br>> > <http://www.microsoft.com/latam/windows/windowslive/><br>> > ------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > ParaView mailing list<br>> > ParaView@paraview.org<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> > <br>> <br>> <br>> -- <br>> Burlen Loring<br>> Kitware, Inc.<br>> R&D Engineer<br>> 28 Corporate Drive<br>> Clifton Park, NY 12065-8662<br>> Phone: 518-371-3971 x137<br>> <br><br /><hr />con amigos y familiares. <a href='http://www.microsoft.com/latam/windows/windowslive/' target='_new'>Descubre todas las formas en que puedes estar en contacto</a></body>
</html>