grive2 icon indicating copy to clipboard operation
grive2 copied to clipboard

Missing .timer and .service files after install

Open brainplot opened this issue 5 years ago • 2 comments

Maybe I don't understand the instructions but the .timer and .service files aren't copied over when I run make install. They don't end up in the build folder at all. Here's its content:

build/
├── CMakeCache.txt
├── CMakeFiles
│   ├── 3.15.4
│   │   ├── CMakeCCompiler.cmake
│   │   ├── CMakeCXXCompiler.cmake
│   │   ├── CMakeDetermineCompilerABI_C.bin
│   │   ├── CMakeDetermineCompilerABI_CXX.bin
│   │   ├── CMakeSystem.cmake
│   │   ├── CompilerIdC
│   │   │   ├── a.out
│   │   │   ├── CMakeCCompilerId.c
│   │   │   └── tmp
│   │   └── CompilerIdCXX
│   │       ├── a.out
│   │       ├── CMakeCXXCompilerId.cpp
│   │       └── tmp
│   ├── cmake.check_cache
│   ├── CMakeDirectoryInformation.cmake
│   ├── CMakeOutput.log
│   ├── CMakeTmp
│   ├── Makefile2
│   ├── Makefile.cmake
│   ├── progress.marks
│   └── TargetDirectories.txt
├── cmake_install.cmake
├── grive
│   ├── CMakeFiles
│   │   ├── CMakeDirectoryInformation.cmake
│   │   ├── grive_executable.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── CXX.includecache
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.internal
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── src
│   │   │       └── main.cc.o
│   │   └── progress.marks
│   ├── cmake_install.cmake
│   ├── grive
│   └── Makefile
├── install_manifest.txt
├── libgrive
│   ├── btest
│   ├── CMakeFiles
│   │   ├── btest.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── CXX.includecache
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.internal
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── test
│   │   │       └── btest
│   │   │           ├── JsonValTest.cc.o
│   │   │           ├── UnitTest.cc.o
│   │   │           └── ValTest.cc.o
│   │   ├── CMakeDirectoryInformation.cmake
│   │   ├── grive.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── cmake_clean_target.cmake
│   │   │   ├── CXX.includecache
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.internal
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── src
│   │   │       ├── base
│   │   │       │   ├── Drive.cc.o
│   │   │       │   ├── Entry.cc.o
│   │   │       │   ├── Feed.cc.o
│   │   │       │   ├── Resource.cc.o
│   │   │       │   ├── ResourceTree.cc.o
│   │   │       │   ├── State.cc.o
│   │   │       │   └── Syncer.cc.o
│   │   │       ├── bfd
│   │   │       │   ├── Backtrace.cc.o
│   │   │       │   ├── Debug.cc.o
│   │   │       │   └── SymbolInfo.cc.o
│   │   │       ├── drive
│   │   │       │   ├── Entry1.cc.o
│   │   │       │   ├── Feed1.cc.o
│   │   │       │   └── Syncer1.cc.o
│   │   │       ├── drive2
│   │   │       │   ├── Entry2.cc.o
│   │   │       │   ├── Feed2.cc.o
│   │   │       │   └── Syncer2.cc.o
│   │   │       ├── http
│   │   │       │   ├── Agent.cc.o
│   │   │       │   ├── CurlAgent.cc.o
│   │   │       │   ├── Download.cc.o
│   │   │       │   ├── Header.cc.o
│   │   │       │   ├── ResponseLog.cc.o
│   │   │       │   ├── StringResponse.cc.o
│   │   │       │   └── XmlResponse.cc.o
│   │   │       ├── json
│   │   │       │   ├── JsonParser.cc.o
│   │   │       │   ├── JsonWriter.cc.o
│   │   │       │   ├── ValBuilder.cc.o
│   │   │       │   ├── Val.cc.o
│   │   │       │   └── ValResponse.cc.o
│   │   │       ├── protocol
│   │   │       │   ├── AuthAgent.cc.o
│   │   │       │   └── OAuth2.cc.o
│   │   │       ├── util
│   │   │       │   ├── ConcatStream.cc.o
│   │   │       │   ├── Config.cc.o
│   │   │       │   ├── Crypt.cc.o
│   │   │       │   ├── DateTime.cc.o
│   │   │       │   ├── Exception.cc.o
│   │   │       │   ├── File.cc.o
│   │   │       │   ├── log
│   │   │       │   │   ├── CommonLog.cc.o
│   │   │       │   │   ├── CompositeLog.cc.o
│   │   │       │   │   ├── DefaultLog.cc.o
│   │   │       │   │   └── Log.cc.o
│   │   │       │   ├── MemMap.cc.o
│   │   │       │   ├── OS.cc.o
│   │   │       │   ├── SignalHandler.cc.o
│   │   │       │   ├── StdStream.cc.o
│   │   │       │   └── StringStream.cc.o
│   │   │       └── xml
│   │   │           ├── Node.cc.o
│   │   │           ├── NodeSet.cc.o
│   │   │           ├── String.cc.o
│   │   │           └── TreeBuilder.cc.o
│   │   └── progress.marks
│   ├── cmake_install.cmake
│   ├── libgrive.a
│   └── Makefile
└── Makefile

28 directories, 112 files

When I try to run these commands:

# 'google-drive' is the name of your Google Drive folder in your $HOME directory
systemctl --user enable grive-timer@$(systemd-escape google-drive).timer
systemctl --user start grive-timer@$(systemd-escape google-drive).timer
systemctl --user enable grive-changes@$(systemd-escape google-drive).service
systemctl --user start grive-changes@$(systemd-escape google-drive).service

it says that the unit files are missing. Am I supposed to copy them myself from the source tree? I see a CMakeLists.txt in the systemd directory so I supposed they would end up in the CMAKE_BINARY_DIR as per the script but that's not what's happening. Here's the list of files that do get installed.

grive /usr/
grive /usr/bin/
grive /usr/bin/grive
grive /usr/share/
grive /usr/share/man/
grive /usr/share/man/man1/
grive /usr/share/man/man1/grive.1.gz

I'm sorry in case I misinterpreted the instructions. As for the rest, the program seems to be working as intended, if I run it from the designated Drive folder directly.

brainplot avatar Oct 05 '19 05:10 brainplot

I install the debian way (dpkg-buildpackage + sudo dpkg -i) and there it ends up in the right systemd dir. I'm not good enough with cmake to give any advice here :-(

jankatins avatar Oct 20 '19 21:10 jankatins

Faced this same issue as well by using "make install". @jankatins: Can you check which files ended up where in the systemd folder?

samikrc avatar Aug 28 '20 05:08 samikrc