<div dir="ltr">It should probably be disabled by default when <span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">CMAKE_INSTALL_PREFIX is set (to avoid this error), but it would make sense to make it default if </span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">CMAKE_INSTALL_PREFIX is not set (which requires to install as root)</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">. Don't know if it's easy to do that in cmake though.</span><div>
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">cheers</span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Etienne</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 1:16 PM, Rouzaud Denis <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The libqgis_customwidgets is a new library which allow using specific QGIS widgets directly in Qt Designer (if compiled with Qt4).<br>
Now, this lib needs to be in Qt plugin’s directory to work properly. So this will require to run make as install as root.<br>
<br>
You can disable this by running cmake with -DWITH_CUSTOM_WIDGETS=FALSE<br>
<br>
Regarding the second problem described by Richard it should be fixed. pyuic will not bug anymore, even if QGIS is not installed.<br>
<br>
I don’t know what’s the best default value for this library installation.<br>
But it might be better to reset it to false, if one wants that the default install can be run not being root.<br>
<br>
Cheers,<br>
<br>
Denis<br>
<div class="HOEnZb"><div class="h5"><br>
On 19 May 2014, at 18:08, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br>
<br>
> On 19-05-14 17:08, Radim Blazek wrote:<br>
>> I am getting:<br>
>><br>
>> CMake Error at src/customwidgets/cmake_install.cmake:68 (FILE):<br>
>>  file INSTALL cannot copy file<br>
>>  "/home/radim/devel/qgis/build/output/lib/libqgis_customwidgets.so.2.3.0" to<br>
>>  "/usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so.2.3.0".<br>
>><br>
>> it seems to ignore CMAKE_INSTALL_PREFIX.<br>
><br>
> Hi Radim,<br>
><br>
> I had the same problem. It has something to do with the customwidgets<br>
> from QGIS. Actually making them available for designer.<br>
><br>
> It is just changed from default not install to default install it.<br>
> But (as you) I install only locally, so am not allowed to install .so<br>
> files into the directory.<br>
><br>
> So I ran 'sudo make install', BUT then you get another problem: there is<br>
> a new dependecy now on qgis.gui module (which I do not have globally) so<br>
> this breaks your pyqt. So I would not do this.<br>
><br>
> Denis is aware of the problem, and looking for a solution.<br>
><br>
> (For me part of the solution would be to NOT default do this<br>
> installation into my global system.)<br>
><br>
> Regards,<br>
><br>
> Richard Duivenvoorde<br>
><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>