Project

General

Profile

Actions

Bug #2407

closed

CMake 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

Added by 太极美术工程狮 狮长 about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/12/2013
Due date:
% Done:

0%

Estimated time:

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

Wt3.3.1InstallError1.log (114 KB) Wt3.3.1InstallError1.log 太极美术工程狮 狮长, 11/12/2013 06:03 AM
Actions #1

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
Actions #2

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF