Kuzi,<br><br>I rememeber that Laurent Montel has fixed X11 depencies to SlideShow and ImageViewer, when we have started KDE4 port. Look svn log for details.<br><br>I think it&#39;s only relevant of Linux and Qt4 which need X11. Under Win32 we can adapt compilation/liking rules (I will do it). After to have re-order file compilation for your plugin, you can see that all files compile fine excepted last one viewerwidget.cpp.<br>
<br>Generating viewerwidget.moc<br>Generating plugin_viewer.moc<br>Scanning dependencies of target kipiplugin_imageviewer<br>[ 71%] Building CXX object kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/kipiplugin_imageviewer_automoc.obj<br>
[ 71%] Building CXX object kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/texture.obj<br>In file included from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\texture.h:28,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\texture.cpp:53:<br>
C:/KDE4/include/QtOpenGL/qgl.h:111: warning: inline function `const char* qGLVersion()&#39; declared as dllimport: attribute ignored<br><br>[ 71%] Building CXX object kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/timer.obj<br>
[ 71%] Building CXX object kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/plugin_viewer.obj<br>In file included from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.h:28,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\plugin_viewer.cpp:46:<br>C:/KDE4/include/QtOpenGL/qgl.h:111: warning: inline function `const char* qGLVersion()&#39; declared as dllimport: attribute ignored<br>
<br>[ 71%] Building CXX object kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/viewerwidget.obj<br>In file included from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.h:28,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.moc:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:27:<br>
C:/KDE4/include/QtOpenGL/qgl.h:111: warning: inline function `const char* qGLVersion()&#39; declared as dllimport: attribute ignored<br><br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp: In member function `virtual void KIPIviewer:<br>
:ViewerWidget::initializeGL()&#39;:<br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:168: error: `GL_TEXTURE_RECTANGLE_ARB&#39; was no<br>t declared in this scope<br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp: In member function `void KIPIviewer::ViewerW<br>
idget::drawImage(KIPIviewer::Texture*)&#39;:<br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:276: error: `GL_TEXTURE_RECTANGLE_NV&#39; was not<br>&nbsp;declared in this scope<br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp: In member function `void KIPIviewer::ViewerW<br>
idget::downloadTex(KIPIviewer::Texture*)&#39;:<br>C:\Users\gilles\Documents\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:453: error: `GL_TEXTURE_RECTANGLE_NV&#39; was not<br>&nbsp;declared in this scope<br>make[2]: *** [kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/viewerwidget.obj] Error 1<br>
make[1]: *** [kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/all] Error 2<br>make: *** [all] Error 2<br><br>I think that your plugin can be compiled and linking under win32 after few tunes. Let&#39;s me hear...<br>

<br>Gilles<br><br><div class="gmail_quote">2008/10/22 Markus Leuthold <span dir="ltr">&lt;<a href="mailto:kusi@forum.titlis.org">kusi@forum.titlis.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Gilles Caulier wrote:<br>
&gt;<br>
&gt; I can do it for you. See below after to have commented X11 depency<br>
&gt; with imageviewer:<br>
</div>thank you!<br>
<div><div></div><div class="Wj3C7c"><br>
&gt;<br>
&gt; [ 50%] Built target kipiplugins<br>
&gt; [ 50%] Building CXX object<br>
&gt; kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/viewerwidget.obj<br>
&gt; In file included from<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.h:28,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.moc:10,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:27:<br>
&gt; C:/KDE4/include/QtOpenGL/qgl.h:111: warning: inline function `const<br>
&gt; char* qGLVersion()&#39; declared as dllimport: attribute<br>
&gt; &nbsp;ignored<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:<br>
&gt; In member function `virtual void KIPIviewer::Viewe<br>
&gt; rWidget::initializeGL()&#39;:<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:168:<br>
&gt; error: `GL_TEXTURE_RECTANGLE_ARB&#39; was not decl<br>
&gt; ared in this scope<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:<br>
&gt; In member function `void KIPIviewer::ViewerWidget:<br>
&gt; :drawImage(KIPIviewer::Texture*)&#39;:<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:276:<br>
&gt; error: `GL_TEXTURE_RECTANGLE_NV&#39; was not decla<br>
&gt; red in this scope<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:<br>
&gt; In member function `void KIPIviewer::ViewerWidget:<br>
&gt; :downloadTex(KIPIviewer::Texture*)&#39;:<br>
&gt; C:\KDE4\src\devel\graphics\kipi-plugins\imageviewer\viewerwidget.cpp:453:<br>
&gt; error: `GL_TEXTURE_RECTANGLE_NV&#39; was not decla<br>
&gt; red in this scope<br>
&gt; make[2]: ***<br>
&gt; [kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/viewerwidget.obj]<br>
&gt; Error 1<br>
&gt; make[1]: ***<br>
&gt; [kipi-plugins/imageviewer/CMakeFiles/kipiplugin_imageviewer.dir/all]<br>
&gt; Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt; Note : GLU and OPenGL are properly detected here (SlideShow plugin<br>
&gt; which depand of this compile fine).<br>
&gt;<br>
&gt; Gilles<br>
</div></div>looks like the value GL_TEXTURE_RECTANGLE_ARB is defined elsewhere on a<br>
windows system. A quick glance on my computer at work at<br>
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\gl<br>
doesn&#39;t seem to contain any OGL extensions. Oh well, M$.... I need to<br>
investigate further at home<br>
<br>
Kusi<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
Kde-imaging mailing list<br>
<a href="mailto:Kde-imaging@kde.org">Kde-imaging@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-imaging" target="_blank">https://mail.kde.org/mailman/listinfo/kde-imaging</a><br>
</div></div></blockquote></div><br>