<html><head><meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Hello,</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">I have a quick question, that I hope someone can answer quickly.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">I am trying to add the NASA cxform library to my reader (ParaView 3.98 RC1) so I can do some transformation, but I can running into some problems.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">I have the following CMake files:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Project:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div><div><font class="Apple-style-span" face="Calibri,sans-serif">CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">PROJECT("Enlil Reader 2.0.1")</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">#SET(ParaView_DIR /Users/sysop/Developer/pv/build)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">SET(ParaView_DIR /Volumes/Data/Development/ParaView-src/git-version/build-2Nov12)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">#SET(ParaView_DIR /Volumes/Data/Development/ParaView/git-clean/build-13595/)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> set(CMAKE_CXX_FLAGS "-O3") ## Optimize</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> set(CMAKE_EXE_LINKER_FLAGS "-s") ## Strip binary</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">FIND_PACKAGE(ParaView REQUIRED)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">INCLUDE(${PARAVIEW_USE_FILE})</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">ADD_SUBDIRECTORY(cxform-0.71)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">Find_Library(cxform REQUIRED)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">include_directories(cxform-0.71)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">Add_Executable(cxtest cxform-0.71/main.c)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">target_link_libraries(cxtest cxform)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">ADD_PARAVIEW_PLUGIN(vtkEnlilReader "2.0.1"</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> SERVER_MANAGER_XML vtkEnlilReader.xml</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> SERVER_MANAGER_SOURCES vtkEnlilReader.cxx</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> SOURCES DateTime.C</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> GUI_RESOURCE_FILES vtkEnlilGUI.xml)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">SET(KIT_LIBS cxform vtkNetCDF_cxx)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">Target_LINK_LIBRARIES(vtkEnlilReader ${ParaView_LIBRARIES} ${KIT_LIBS})</font></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">================================================================</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">And my Library CMAKE file:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div><div><font class="Apple-style-span" face="Calibri,sans-serif">CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">PROJECT("CXForm - Enlil")</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"><br></font></div><div><font class="Apple-style-span" face="Calibri,sans-serif">add_library(</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> cxform</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> STATIC</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> cxform-auto.c</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> cxform-manual.c</font></div><div><font class="Apple-style-span" face="Calibri,sans-serif"> )</font></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">================================================================</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">My test executable links fine,and runs fine, but the plugin gives me the following error:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#0000aa;">12:38:31: Running steps for project Enlil Reader 2.0.1...</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0000aa;">12:38:31: Starting: "/usr/bin/make" </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">-- Configuring done</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">-- Generating done</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">-- Build files have been written to: /Volumes/Data/Development/vtkPlugins/PV4-201-build</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">[ 11%] Built target cxform</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">[ 17%] Built target cxtest</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">[ 23%] Generating qrc_vtkEnlilReader.cxx</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Scanning dependencies of target vtkEnlilReader</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">[ 29%] Building CXX object CMakeFiles/vtkEnlilReader.dir/qrc_vtkEnlilReader.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Linking CXX shared library libvtkEnlilReader.dylib</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">Undefined symbols for architecture x86_64:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> "gregorian_calendar_to_jd(int, int, int, int, int, int)", referenced from:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> vtkEnlilReader::calculateArtifacts() in vtkEnlilReader.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> "date2es(int, int, int, int, int, int)", referenced from:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> vtkEnlilReader::calculateArtifacts() in vtkEnlilReader.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> "vtkRenderingMatplotlib_AutoInit_Construct()", referenced from:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> global constructors keyed to _Z38vtkEnlilReadervtkEnlilReaderInterfacesvin vtkEnlilReader_Plugin.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> global constructors keyed to _ZN21vtkEnlilReader_Plugin18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPvin moc_vtkEnlilReader_Plugin.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> "vtkRenderingMatplotlib_AutoInit_Destruct()", referenced from:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> ___tcf_7 in vtkEnlilReader_Plugin.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> ___tcf_5 in moc_vtkEnlilReader_Plugin.cxx.o</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">ld: symbol(s) not found for architecture x86_64</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">collect2: ld returned 1 exit status</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">make[2]: *** [libvtkEnlilReader.dylib] Error 1</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">make[1]: *** [CMakeFiles/vtkEnlilReader.dir/all] Error 2</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">make: *** [all] Error 2</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; color:#aa0000;">12:38:32: The process "/usr/bin/make" exited with code 2.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">Error while building/deploying project Enlil Reader 2.0.1 (target: Desktop)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">When executing step 'Make'</span><!--EndFragment--></p></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Can someone tell me how to properly link to my library?</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Josh</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><div><div><div><img src="cid:DD991949-2449-49DA-97DD-0219C5774392" type="image/png"></div></div><div>Joshua J. Murphy</div><div>Computer Scientist</div><div>Laboratory for Atmospheric and Space Physics</div><div>University of Colorado, Boulder</div><div><br></div></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div></body></html>