<span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" size="4">I switched to a .pro file and qmake for building the plugin. </font></span><div>
<span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" size="4"><br>
</font></span></div><div><span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" size="4">qmake -project outputs a src_qmake.pbproj file that i rename to src_qmake.xcodeproj.<br>
<br></font></span></div><div><span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" size="4">I cannot launch src_qmake.xcodeproj, it complains about incompatible </font></span><span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); font-size: large; ">project version.</span><div>
<div><span class="Apple-style-span" style="color: rgb(54, 53, 52); font-family: Verdana, 'DejaVu Sans', Geneva, sans-serif; line-height: 11px; background-color: rgb(255, 255, 255); "><font class="Apple-style-span" size="4"><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; word-wrap: break-word; ">
<br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; word-wrap: break-word; ">any mac PV users/developers out there? thanks</p>
</font></span><div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><font class="Apple-style-span" color="#660000" face="garamond, serif">N</font></div><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt">
<div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><br><span style="font-family:arial;font-size:small"></span></div></div></div></div><br>
<br><br><div class="gmail_quote">On Tue, Oct 4, 2011 at 10:45 PM, nikos yiotis <span dir="ltr"><<a href="mailto:nikos.yiotis@gmail.com">nikos.yiotis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
My plugin builds OK if i choose a static library, but of course i cannot load it into PV.<br><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div>
Can anyone decipher the message below when i choose to build a shared lib, that is *.dylib?<br>Thanks<br><br></div></span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:medium"><h1 style="font-family:arial, sans-serif;font-size:16px;margin-top:12px;margin-right:5px;margin-bottom:5px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;color:rgb(34, 34, 34);background:inherit;border-right:inherit">
<span style="padding-right:10px">Paraview 3.10.1 using Qt 4.7.4 on Mac OS OX 10.6.8 | gcc 4.2.1 | CMake 2.8-2</span></h1></span><div class="im"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div>
<br></div><div><i>Linking CXX shared library libZ.dylib</i></div><div><i>Undefined symbols for architecture x86_64:</i></div><div><i> "typeinfo for pqPVAnimationWidget", referenced from:</i></div><div><i> pqZ::GetTimeSteps() in pqZ.cpp.o</i></div>
<div><i>ld: symbol(s) not found for architecture x86_64</i></div></span> <br clear="all"></div><font color="#888888"><div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><font color="#660000" face="garamond, serif">N</font></div>
<div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><br><span style="font-family:arial;font-size:small"></span></div>
</div></div></div></font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Oct 4, 2011 at 12:41 PM, nikos yiotis <span dir="ltr"><<a href="mailto:nikos.yiotis@gmail.com" target="_blank">nikos.yiotis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="color:rgb(54, 53, 52);font-family:Verdana, 'DejaVu Sans', Geneva, sans-serif;font-size:13px;line-height:11px;background-color:rgb(255, 255, 255)"><p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">
Hi,</p><p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">i am working on a Paraview Plugin that adds a new Qt progress bar type to the standard ParaView toolbar. I try to build the plugin as a stand-alone, that is the plugin is not included in Paraview build but out of source. Note that the plugin builds and works fine on linux x86_64 (load/unload at runtime).</p>
<p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">
I ‘ve included /Developer/Tools/Qt to my <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">PATH</span> for Qt/Paraview binaries and included the libraries i need in LD_LIBRARY_PATH | <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">DYLD</span>_LIBRARY_PATH (<span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">LIBRARY</span>_PATH is <br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
blank, not sure if i have to care about this). While trying to link the plug-in with a makefile i get:</p><p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">
Linking <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">CXX</span> shared library libZeo.dylib<br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
Undefined symbols for architecture x86_64: “typeinfo for pqPVAnimationWidget”, referenced from: pqZeo::GetTimeSteps() in pqZeo.cpp.o<br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
ld: symbol(s) not found for architecture x86_64</p><p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">
Now, pqPVAnimationWidget is related to ParaView, but i believe that <br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
QList<double> pqZeo::GetTimeSteps() {…}<br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">makes it relevant to mention the issue here.</p>
<p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">The first idea (although irrelevant i am afraid) is to configure the CMakeCache file</p>
<p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">//Build architectures for <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">OSX</span><br style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">CMAKE</span>_OSX_ARCHITECTURES:STRING=x86_64</p><p style="margin-top:5px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:10px;padding-left:0px;font-size:12px;word-wrap:break-word">
I switched to Qt 4.7.4, qmake query outputs:</p></span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div><div>QT_INSTALL_PREFIX:/</div>
<div>QT_INSTALL_DATA:/usr/local/Qt4.7</div><div>QT_INSTALL_DOCS:/Developer/Documentation/Qt</div><div>QT_INSTALL_HEADERS:/usr/include</div><div>QT_INSTALL_LIBS:/Library/Frameworks</div><div>QT_INSTALL_BINS:/Developer/Tools/Qt</div>
<div>QT_INSTALL_PLUGINS:/Developer/Applications/Qt/plugins</div><div>QT_INSTALL_IMPORTS:/Developer/Applications/Qt/imports</div><div>QT_INSTALL_TRANSLATIONS:/Developer/Applications/Qt/translations</div><div>QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt</div>
<div>QT_INSTALL_EXAMPLES:/Developer/Examples/Qt/</div><div>QT_INSTALL_DEMOS:/Developer/Examples/Qt/Demos</div><div>QMAKE_MKSPECS:/usr/local/Qt4.7/mkspecs</div><div>QMAKE_VERSION:2.01a</div><div>QT_VERSION:4.7.4</div></div>
<div><br></div></span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">I don't think there is sth wrong with my Qt installation.</span><br>
</span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div><ul><li style="margin-left:15px">I can only build Paraview 3.10.1 and my plug-in with Xcode 4.0 (instead of makefiles i used before) only if i leave BUILT_SHARED_LIBS off, which is of no practical merit since the plugin is static (*.a) and cannot be loaded to Paraview. When i switch BUILT_SHARED_LIBS to on though, i get the exact same message i was getting before (failure while linking)</li>
</ul><div><br></div><div><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div><i>Linking CXX shared library libZ.dylib</i></div><div><i>Undefined symbols for architecture x86_64:</i></div>
<div><i> "typeinfo for pqPVAnimationWidget", referenced from:</i></div><div><i> pqZ::GetTimeSteps() in pqZ.cpp.o</i></div><div><i>ld: symbol(s) not found for architecture x86_64</i></div><div><i><br>
</i></div></span></div><div><div><ul><li style="margin-left:15px">When I am trying to build the Paraview 3.12.0-RC2 version, i cannot even build the ParaView.xcodeproj. Cmake GUI 2.8-2 gives me: </li></ul></div><div><div>
Could NOT find /Users/nikos/Documents/codin_SRC/test/paraview/Paraview_3.12.0/ParaView-3.12.0-RC2/CMake/.paraview.version which is mandatory if Git is not found either.</div><div><br></div><div>CMake Error at CMake/ParaViewDetermineVersion.cmake:68 (message):</div>
<div> Failed to determine source version correctly.</div><div>Call Stack (most recent call first):</div><div> CMakeLists.txt:70 (determine_version)</div></div><div><br>If i manually configure the CMakeLists.txt (which is a bad idea) the procedure hangs to CMakeLists.txt:70 (determine_version) again.</div>
<div><br></div></div></div></span><div><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div><div><div><ul><li style="margin-left:15px">
When I am trying to build the git version on Xcode, leaving aside the vtk warnings like in tif_unix,c "cast to pointer from integer of different size, </li></ul>it builds only a few dylibs and *not* ParaView.app. When i run it it hangs to the tests below that i successfully pass </div>
</div></div></span><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><div><div><div><p>( 0. TestArraySerialization</p><p>
1. TestArrayDenormalized )</p><p>Has anyone successfully built PV (3.10.1 or RC or the git version) and her own plugins with Xcode 4.0?<br></p></div></div></div></span><span style="color:rgb(54, 53, 52);font-family:Verdana, 'DejaVu Sans', Geneva, sans-serif;font-size:12px;line-height:11px;background-color:rgb(255, 255, 255)">Let me know if you have any hints, cheers</span>
</div><div><span style="color:rgb(54, 53, 52);font-family:Verdana, 'DejaVu Sans', Geneva, sans-serif;font-size:12px;line-height:11px;background-color:rgb(255, 255, 255)"><br></span></div><font color="#888888">
<div><span style="color:rgb(54, 53, 52);font-family:Verdana, 'DejaVu Sans', Geneva, sans-serif;font-size:12px;line-height:11px;background-color:rgb(255, 255, 255)"><br></span></div>
<div><span style="color:rgb(54, 53, 52);font-family:Verdana, 'DejaVu Sans', Geneva, sans-serif;font-size:12px;line-height:11px;background-color:rgb(255, 255, 255)">N</span></div>
</font></blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>