<span class="Apple-style-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); ">Given that my configuration for static/dynamic builds of the plugin is the same, </span><span class="Apple-style-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); ">how is it possible that the plugin </span><span class="Apple-style-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); ">builds </span><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" color="#363534" face="Verdana, 'DejaVu Sans', Geneva, sans-serif"><span class="Apple-style-span" style="font-size: 12px; line-height: 11px;">successfully as a </span></font></span><span class="Apple-style-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); ">static lib, </span><span class="Apple-style-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); ">whereas it fails as a shared lib? </span><br clear="all">
<div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><font color="#660000" face="garamond, serif"><span style="font-size:13px"><span style="font-size:small">Nikos Yiotis | </span>Graphics Software Engineer | +44 (0) 7541 875124 | </span><span style="line-height:15px"><a href="http://uk.linkedin.com/in/yiotis" target="_blank">linkedin</a></span></font></div>
<div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><span style="font-family:arial;font-size:small"><div dir="ltr"></div></span><div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt">
<br><br><span style="font-family:arial;font-size:small"></span></div></div></div></div><br>
<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 5:23 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;">
thanks Mike, i compile everything though<br clear="all"><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"><span style="font-size:13px"><span style="font-size:small">Nikos Yiotis | </span>Graphics Software Engineer | <a href="tel:%2B44%20%280%29%207541%20875124" value="+447541875124" target="_blank">+44 (0) 7541 875124</a> | </span><span style="line-height:15px"><a href="http://uk.linkedin.com/in/yiotis" target="_blank">linkedin</a></span></font></div>
<div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt"><span style="font-family:arial;font-size:small"><div dir="ltr"></div></span><div dir="ltr"><div style="padding-top:10px;padding-right:0pt;padding-bottom:5px;padding-left:0pt">
<br><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 Wed, Oct 5, 2011 at 5:14 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It looks like from the initial linker error that some function is NOT included in the 64 bit compile of ParaView? Are you compiling everything or using your own versions of libZ?<br>
___________________________________________________________<br>
Mike Jackson Principal Software Engineer<br>
BlueQuartz Software Dayton, Ohio<br>
<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
<div><div></div><div><br>
On Oct 5, 2011, at 12:05 PM, nikos yiotis wrote:<br>
<br>
> I switched to a .pro file and qmake for building the plugin.<br>
><br>
> qmake -project outputs a src_qmake.pbproj file that i rename to src_qmake.xcodeproj.<br>
><br>
> I cannot launch src_qmake.xcodeproj, it complains about incompatible project version.<br>
><br>
> any mac PV users/developers out there? thanks<br>
> N<br>
><br>
><br>
><br>
><br>
> On Tue, Oct 4, 2011 at 10:45 PM, nikos yiotis <<a href="mailto:nikos.yiotis@gmail.com" target="_blank">nikos.yiotis@gmail.com</a>> wrote:<br>
> My plugin builds OK if i choose a static library, but of course i cannot load it into PV.<br>
> Can anyone decipher the message below when i choose to build a shared lib, that is *.dylib?<br>
> Thanks<br>
><br>
> Paraview 3.10.1 using Qt 4.7.4 on Mac OS OX 10.6.8 | gcc 4.2.1 | CMake 2.8-2<br>
><br>
> Linking CXX shared library libZ.dylib<br>
> Undefined symbols for architecture x86_64:<br>
> "typeinfo for pqPVAnimationWidget", referenced from:<br>
> pqZ::GetTimeSteps() in pqZ.cpp.o<br>
> ld: symbol(s) not found for architecture x86_64<br>
><br>
> N<br>
><br>
><br>
><br>
><br>
> On Tue, Oct 4, 2011 at 12:41 PM, nikos yiotis <<a href="mailto:nikos.yiotis@gmail.com" target="_blank">nikos.yiotis@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> 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).<br>
><br>
> I ‘ve included /Developer/Tools/Qt to my PATH for Qt/Paraview binaries and included the libraries i need in LD_LIBRARY_PATH | DYLD_LIBRARY_PATH (LIBRARY_PATH is<br>
> blank, not sure if i have to care about this). While trying to link the plug-in with a makefile i get:<br>
><br>
> Linking CXX shared library libZeo.dylib<br>
> Undefined symbols for architecture x86_64: “typeinfo for pqPVAnimationWidget”, referenced from: pqZeo::GetTimeSteps() in pqZeo.cpp.o<br>
> ld: symbol(s) not found for architecture x86_64<br>
><br>
> Now, pqPVAnimationWidget is related to ParaView, but i believe that<br>
> QList<double> pqZeo::GetTimeSteps() {…}<br>
> makes it relevant to mention the issue here.<br>
><br>
> The first idea (although irrelevant i am afraid) is to configure the CMakeCache file<br>
><br>
> //Build architectures for OSX<br>
> CMAKE_OSX_ARCHITECTURES:STRING=x86_64<br>
><br>
> I switched to Qt 4.7.4, qmake query outputs:<br>
><br>
> QT_INSTALL_PREFIX:/<br>
> QT_INSTALL_DATA:/usr/local/Qt4.7<br>
> QT_INSTALL_DOCS:/Developer/Documentation/Qt<br>
> QT_INSTALL_HEADERS:/usr/include<br>
> QT_INSTALL_LIBS:/Library/Frameworks<br>
> QT_INSTALL_BINS:/Developer/Tools/Qt<br>
> QT_INSTALL_PLUGINS:/Developer/Applications/Qt/plugins<br>
> QT_INSTALL_IMPORTS:/Developer/Applications/Qt/imports<br>
> QT_INSTALL_TRANSLATIONS:/Developer/Applications/Qt/translations<br>
> QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt<br>
> QT_INSTALL_EXAMPLES:/Developer/Examples/Qt/<br>
> QT_INSTALL_DEMOS:/Developer/Examples/Qt/Demos<br>
> QMAKE_MKSPECS:/usr/local/Qt4.7/mkspecs<br>
> QMAKE_VERSION:2.01a<br>
> QT_VERSION:4.7.4<br>
><br>
> I don't think there is sth wrong with my Qt installation.<br>
> • 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)<br>
><br>
> Linking CXX shared library libZ.dylib<br>
> Undefined symbols for architecture x86_64:<br>
> "typeinfo for pqPVAnimationWidget", referenced from:<br>
> pqZ::GetTimeSteps() in pqZ.cpp.o<br>
> ld: symbol(s) not found for architecture x86_64<br>
><br>
> • 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:<br>
> 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.<br>
><br>
> CMake Error at CMake/ParaViewDetermineVersion.cmake:68 (message):<br>
> Failed to determine source version correctly.<br>
> Call Stack (most recent call first):<br>
> CMakeLists.txt:70 (determine_version)<br>
><br>
> If i manually configure the CMakeLists.txt (which is a bad idea) the procedure hangs to CMakeLists.txt:70 (determine_version) again.<br>
><br>
> • 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,<br>
> it builds only a few dylibs and *not* ParaView.app. When i run it it hangs to the tests below that i successfully pass<br>
> ( 0. TestArraySerialization<br>
><br>
> 1. TestArrayDenormalized )<br>
><br>
> Has anyone successfully built PV (3.10.1 or RC or the git version) and her own plugins with Xcode 4.0?<br>
><br>
> Let me know if you have any hints, cheers<br>
><br>
><br>
> N<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>