Bug #2407
closedCMake tries to install src/Wt/Auth/CMakeFiles into /usr/include/Wt/Auth/CMakeFiles, which causes "cannot copy file /root/WebDrawProject/wt-3.3.1/src/Wt/Auth/CMakeFiles to /usr/include/Wt/Auth/CMakeFiles",and the installation failed
0%
Description
I think there is something wrong with the CMakeLists.txt.
In the generated file src/Wt/Auth/cmake_install.cmake,I can find this in the line 36 (I took this file from another machine,they means the same thing):
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Wt/Auth" TYPE FILE FILES
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/AuthModel"
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/Identity"
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/UpdatePasswordWidget"
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/FormBaseModel"
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/FacebookService"
"/Entertain/rpmbuild/BUILD/wt-3.3.1/src/Wt/Auth/CMakeFiles" Look at this line
.....
Which means installing the CMakeFiles directory into /usr/include/Wt/Auth, I guess.
And this caused the following error :
CMake Error at src/Wt/Auth/cmake_install.cmake:36 (FILE):
file INSTALL cannot copy file
"/root/WebDrawProject/wt-3.3.1/src/Wt/Auth/CMakeFiles" to
"/usr/include/Wt/Auth/CMakeFiles".
Call Stack (most recent call first):
src/Wt/cmake_install.cmake:238 (INCLUDE)
src/cmake_install.cmake:80 (INCLUDE)
cmake_install.cmake:49 (INCLUDE)
I manually removed the line of installing CMakeFiles,and solved this error.
Then I solved similar errors in these files:
src/Wt/Payment/cmake_install.cmake:36
src/Wt/Auth/Dbo/cmake_install.cmake:36
src/Wt/Http/cmake_install.cmake:36
src/Wt/Json/cmake_install.cmake:36
src/Wt/Dbo/cmake_install.cmake:102
src/Wt/Dbo/cmake_install.cmake:74
src/Wt/Auth/Dbo/cmake_install.cmake:36
Maybe you have to tweak the corresponding CMakeLists.txt files.
I will upload a log file of my ssh session. Just drag to the end of the file to see the error message.
Files
Updated by Koen Deforche about 11 years ago
- Status changed from New to Resolved
Hey,
It seems you have done an 'in-tree' build which indeed does not work.
You need to create a separate build directory. This has the additional benefit that it is easy to redo the build or to have several builds alongside each other:
$ cd wt-3.3.x
$ mkdir build
$ cd build
$ cmake -D... ../
$ make
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed