2009/5/5 Florent Lagaye <[email protected]>:
> Thanks for the answer. There was really an INCLUDE(CPack) command don't know
> why it didn't get shiped with the mail. I was really using UseRPMTools, I
> changed that.
OK.
> Here's my new CMakeLists.txt:
[...]
Looks good.
[...]
> [100%] Built target viewer4d
> Run CPack packaging tool...
> CPack: Create package using RPM
> CPack: Install projects
> CPack: - Run preinstall target for: viewer4d
> CPack: - Install project: viewer4d
> CPack: Compress package
> CPack: Finalize package
> CPack Error: Problem copying the package:
> /local_scratch/lagaye/viewer4d/bin.release/_CPack_Packages/Linux/RPM/viewer4d-1.0.0-Linux.rpm
> to /local_scratch/lagaye/viewer4d/bin.release/viewer4d-1.0.0-Linux.rpm
> CPack Error: Error when generating package: viewer4d
> make: *** [package] Erreur 1
strange.
Does it work with with other CPack generator like, DEB, ZIP, TGZ ?
>
> Thanks what is it I miss ? I found the following error log in
> "my_build_dir/_CPack_Packages/Linux/RPM/rpmbuild.err" :
I'm running out of time for looking into it now.
I'll have a look tonight.
However would try 2 things:
1) Run CPack RPM in debug mode using
cd /to/build/dir
cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM
Then send me the output.
2) Add SET(CPACK_SET_DESTDIR ON)
to your CMakeLists.txt before INCLUDE(CPack)
the option is necessary if you use "absolute install path"
which is not your case but I wonder if it could change something.
3) What is your Linux distro (with version)
it has been reported RPM trouble with recent Fedora distrib'.
Give me the rpm commands version too:
rpm --version
rpmbuild --version
> Sorry, my locale is French, so some messages are in French, but I bet you're
> French too ?
Yes I am no problem :-)
More investigation tonight...
--
Erk
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake