Hi Corentin!
Corentin Desfarges wrote:
Hi all,
I'm currently working on the packaging of fw4spl (an open source
framework) and I got this CMake error when I use "pbuilder" :
> CMake Error: Could not open file for write in copy operation
/usr/bin/qt.conf.tmp
> CMake Error: : System Error: Permission denied
> CMake Error at SrcLib/core/fwGuiQt/CMakeLists.txt:12 (configure_file):
> configure_file Problem configuring file
In order to get efficient help, you should really provide a little bit
more information, e.g. the lines mentioned in the error message or a URL
to your source package. I finally found it in debian-med and pulled it.
The line in question says:
configure_file("${CMAKE_CURRENT_LIST_DIR}/bin/qt.conf"
"${CMAKE_CURRENT_BINARY_DIR}/qt.conf")
where CMAKE_CURRENT_BINARY_DIR is "/usr/bin".
But configuring files directly to installation locations (like your
"/usr/bin") is a bad idea. This requires superuser powers at
configuration time - which you usually don't have. Instead, just
configure it to the build directory, use it there and install it later
using CMake's installation commands:
http://www.cmake.org/Wiki/CMake:Install_Commands
Btw. I think your package is also missing a build dependency to
"libqt4-opengl-dev".
Cheers,
Martin
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]