Grive / grive

an open source Linux client for Google Drive
http://www.lbreda.com/grive/start
GNU General Public License v2.0
1.59k stars 377 forks source link

Grive and Raspberry Pi -- Configuring incomplete, errors occurred! Please help! #233

Open mesmariusz opened 10 years ago

mesmariusz commented 10 years ago

root@raspberrypi:/home/pi# sudo apt-get install git cmake build-essential libgcrypt11-dev libjson0-dev libcurl4-openssl-dev libexpat1-dev libboost-filesystem-dev libboost-program-options-dev binutils-dev libyajl-dev Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe binutils-dev jest już w najnowszej wersji. build-essential jest już w najnowszej wersji. cmake jest już w najnowszej wersji. git jest już w najnowszej wersji. libboost-filesystem-dev jest już w najnowszej wersji. libboost-program-options-dev jest już w najnowszej wersji. libcurl4-openssl-dev jest już w najnowszej wersji. libexpat1-dev jest już w najnowszej wersji. libgcrypt11-dev jest już w najnowszej wersji. libjson0-dev jest już w najnowszej wersji. Zostaną zainstalowane następujące NOWE pakiety: libyajl-dev 0 aktualizowanych, 1 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych. Konieczne pobranie 31,8 kB archiwów. Po tej operacji zostanie dodatkowo użyte 127 kB miejsca na dysku. Kontynuować [T/n]? t Pobieranie:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libyajl-dev armhf 2.0.4-2 [31,8 kB] Pobrano 31,8 kB w 1s (17,1 kB/s) Wybieranie wcześniej niewybranego pakietu libyajl-dev. (Odczytywanie bazy danych ... 103826 plików i katalogów obecnie zainstalowanych.) Rozpakowywanie pakietu libyajl-dev (z .../libyajl-dev_2.0.4-2_armhf.deb) ... Konfigurowanie pakietu libyajl-dev (2.0.4-2) ... root@raspberrypi:/home/pi# cd ~ root@raspberrypi:~# git clone git://github.com/Grive/grive.git fatal: destination path 'grive' already exists and is not an empty directory. root@raspberrypi:~# cd grive root@raspberrypi:~/grive# cmake . -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found libgcrypt: -L/lib/arm-linux-gnueabihf -lgcrypt -- Found JSON-C: /usr/lib/arm-linux-gnueabihf/libjson.so -- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.26.0") -- Found EXPAT: /usr/lib/arm-linux-gnueabihf/libexpat.so (found version "2.1.0") CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1194 (message): Unable to find the requested Boost libraries.

Boost version: 1.49.0

Boost include path: /usr/include

The following Boost libraries could not be found:

boost_unit_test_framework

Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): libgrive/CMakeLists.txt:9 (find_package)

-- Found libbfd: /usr/lib/libbfd.so -- Found libiberty: /usr/lib/libiberty.a -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.7") -- Boost version: 1.49.0 -- Found the following Boost libraries: -- program_options -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt4: /usr/bin/qmake (found version "4.8.2") -- Boost version: 1.49.0 -- Configuring incomplete, errors occurred!

mesmariusz commented 10 years ago

PS. Tried follow instruction: http://www.stuffaboutcode.com/2013/03/raspberry-pi-google-drive-grive.html?showComment=1392823538955#c1692170240941319038

Result above

mesmariusz commented 10 years ago

Sollution:

root@raspberrypi:~/grive# sudo apt-get install libboost1.50-all Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe Uwaga, wybieranie libboost1.50-all-dev dla wyrażenia "libboost1.50-all" Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane: libboost-filesystem1.49.0 libboost-program-options1.49.0 libboost-system1.49.0 Aby je usunąć należy użyć "apt-get autoremove". Zostaną zainstalowane następujące dodatkowe pakiety: gccxml libboost-chrono1.50-dev libboost-chrono1.50.0 libboost-date-time1.50-dev libboost-date-time1.50.0 libboost-exception1.50-dev libboost-exception1.50.0 libboost-filesystem1.50-dev libboost-filesystem1.50.0 libboost-graph-parallel1.50-dev libboost-graph-parallel1.50.0 libboost-graph1.50-dev libboost-graph1.50.0 libboost-iostreams1.50-dev libboost-locale1.50-dev libboost-locale1.50.0 libboost-math1.50-dev libboost-math1.50.0 libboost-mpi-python1.50-dev libboost-mpi-python1.50.0 libboost-mpi1.50-dev libboost-mpi1.50.0 libboost-program-options1.50-dev libboost-program-options1.50.0 libboost-python1.50-dev libboost-python1.50.0 libboost-random1.50-dev libboost-random1.50.0 libboost-regex1.50-dev libboost-regex1.50.0 libboost-serialization1.50-dev libboost-serialization1.50.0 libboost-signals1.50-dev libboost-signals1.50.0 libboost-system1.50-dev libboost-system1.50.0 libboost-test1.50-dev libboost-test1.50.0 libboost-thread1.50-dev libboost-thread1.50.0 libboost-timer1.50-dev libboost-timer1.50.0 libboost-wave1.50-dev libboost-wave1.50.0 libboost1.50-dev libibverbs-dev libibverbs1 libicu-dev libopenmpi-dev libopenmpi1.3 libtorque2 mpi-default-dev openmpi-common Sugerowane pakiety: graphviz libboost1.50-doc xsltproc doxygen default-jdk fop icu-doc Następujące pakiety zostaną USUNIĘTE: libboost-filesystem-dev libboost-filesystem1.49-dev libboost-program-options-dev libboost-program-options1.49-dev libboost-system1.49-dev libboost1.49-dev Zostaną zainstalowane następujące NOWE pakiety: gccxml libboost-chrono1.50-dev libboost-chrono1.50.0 libboost-date-time1.50-dev libboost-date-time1.50.0 libboost-exception1.50-dev libboost-exception1.50.0 libboost-filesystem1.50-dev libboost-filesystem1.50.0 libboost-graph-parallel1.50-dev libboost-graph-parallel1.50.0 libboost-graph1.50-dev libboost-graph1.50.0 libboost-iostreams1.50-dev libboost-locale1.50-dev libboost-locale1.50.0 libboost-math1.50-dev libboost-math1.50.0 libboost-mpi-python1.50-dev libboost-mpi-python1.50.0 libboost-mpi1.50-dev libboost-mpi1.50.0 libboost-program-options1.50-dev libboost-program-options1.50.0 libboost-python1.50-dev libboost-python1.50.0 libboost-random1.50-dev libboost-random1.50.0 libboost-regex1.50-dev libboost-regex1.50.0 libboost-serialization1.50-dev libboost-serialization1.50.0 libboost-signals1.50-dev libboost-signals1.50.0 libboost-system1.50-dev libboost-system1.50.0 libboost-test1.50-dev libboost-test1.50.0 libboost-thread1.50-dev libboost-thread1.50.0 libboost-timer1.50-dev libboost-timer1.50.0 libboost-wave1.50-dev libboost-wave1.50.0 libboost1.50-all-dev libboost1.50-dev libibverbs-dev libibverbs1 libicu-dev libopenmpi-dev libopenmpi1.3 libtorque2 mpi-default-dev openmpi-common 0 aktualizowanych, 54 nowo instalowanych, 6 usuwanych i 0 nieaktualizowanych. Konieczne pobranie 31,6 MB archiwów. Po tej operacji zostanie dodatkowo użyte 91,2 MB miejsca na dysku. Kontynuować [T/n]? t Pobieranie:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gccxml armhf 0.9.0+cvs20120420-4 [3754 kB] Pobieranie:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtorque2 armhf 2.4.16+dfsg-1+deb7u2 [109 kB] Pobieranie:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libicu-dev armhf 4.8.1.1-12+deb7u1 [5514 kB] Pobieranie:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libicu-dev armhf 4.8.1.1-12+deb7u1 [5514 kB] Pobieranie:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost1.50-dev armhf 1.50.0-1 [9317 kB] Pobieranie:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-system1.50.0 armhf 1.50.0-1 [32,3 kB] Pobieranie:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-chrono1.50.0 armhf 1.50.0-1 [37,0 kB] Pobieranie:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-chrono1.50-dev armhf 1.50.0-1 [45,2 kB] Pobieranie:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-date-time1.50.0 armhf 1.50.0-1 [43,7 kB] Pobieranie:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-serialization1.50.0 armhf 1.50.0-1 [187 kB] Pobieranie:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-serialization1.50-dev armhf 1.50.0-1 [341 kB] Pobieranie:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-date-time1.50-dev armhf 1.50.0-1 [52,0 kB] Pobieranie:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-exception1.50.0 armhf 1.50.0-1 [27,6 kB] Pobieranie:14 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-exception1.50-dev armhf 1.50.0-1 [28,2 kB] Pobieranie:15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-filesystem1.50.0 armhf 1.50.0-1 [61,8 kB] Pobieranie:16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-system1.50-dev armhf 1.50.0-1 [34,5 kB] Pobieranie:17 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-filesystem1.50-dev armhf 1.50.0-1 [76,9 kB] Pobieranie:18 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-test1.50.0 armhf 1.50.0-1 [242 kB] Pobieranie:19 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-test1.50-dev armhf 1.50.0-1 [705 kB] Pobieranie:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-graph-parallel1.50-dev armhf 1.50.0-1 [116 kB] Pobieranie:21 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libibverbs1 armhf 1.1.6-1 [30,9 kB] Pobieranie:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopenmpi1.3 armhf 1.4.5-1 [1206 kB] Pobieranie:23 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-mpi1.50.0 armhf 1.50.0-1 [61,7 kB] Pobieranie:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-graph-parallel1.50.0 armhf 1.50.0-1 [87,6 kB] Pobieranie:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-graph1.50-dev armhf 1.50.0-1 [176 kB] Pobieranie:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-regex1.50.0 armhf 1.50.0-1 [383 kB] Pobieranie:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-graph1.50.0 armhf 1.50.0-1 [124 kB] Pobieranie:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-regex1.50-dev armhf 1.50.0-1 [639 kB] Pobieranie:29 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-iostreams1.50-dev armhf 1.50.0-1 [81,0 kB] Pobieranie:30 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-thread1.50.0 armhf 1.50.0-1 [65,1 kB] Pobieranie:31 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-locale1.50.0 armhf 1.50.0-1 [288 kB] Pobieranie:32 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-locale1.50-dev armhf 1.50.0-1 [553 kB] Pobieranie:33 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-math1.50.0 armhf 1.50.0-1 [315 kB] Pobieranie:34 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-math1.50-dev armhf 1.50.0-1 [1221 kB] Pobieranie:35 http://mirrordirector.raspbian.org/raspbian/ wheezy/main openmpi-common all 1.4.5-1 [101 kB] Pobieranie:36 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libibverbs-dev armhf 1.1.6-1 [81,4 kB] Pobieranie:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopenmpi-dev armhf 1.4.5-1 [2363 kB] Pobieranie:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopenmpi-dev armhf 1.4.5-1 [2363 kB] Pobieranie:39 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mpi-default-dev armhf 1.0.1 [3610 B] Pobieranie:40 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-mpi1.50-dev armhf 1.50.0-1 [119 kB] Pobieranie:41 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-python1.50.0 armhf 1.50.0-1 [317 kB] Pobieranie:42 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-mpi-python1.50.0 armhf 1.50.0-1 [536 kB] Pobieranie:43 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-mpi-python1.50-dev armhf 1.50.0-1 [36,3 kB] Pobieranie:44 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-program-options1.50.0 armhf 1.50.0-1 [160 kB] Pobieranie:45 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-program-options1.50-dev armhf 1.50.0-1 [269 kB] Pobieranie:46 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-python1.50-dev armhf 1.50.0-1 [481 kB] Pobieranie:47 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-random1.50.0 armhf 1.50.0-1 [31,5 kB] Pobieranie:48 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-random1.50-dev armhf 1.50.0-1 [30,4 kB] Pobieranie:49 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-signals1.50.0 armhf 1.50.0-1 [59,6 kB] Pobieranie:50 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-signals1.50-dev armhf 1.50.0-1 [77,8 kB] Pobieranie:51 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-thread1.50-dev armhf 1.50.0-1 [84,9 kB] Pobieranie:52 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-timer1.50.0 armhf 1.50.0-1 [34,0 kB] Pobieranie:53 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-timer1.50-dev armhf 1.50.0-1 [34,1 kB] Pobieranie:54 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-wave1.50.0 armhf 1.50.0-1 [252 kB] Pobieranie:55 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost-wave1.50-dev armhf 1.50.0-1 [548 kB] Pobieranie:56 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libboost1.50-all-dev armhf 1.50.0-1 [27,8 kB] Pobrano 27,4 MB w 13min 0s (35,1 kB/s) Rozpakowywanie szablonów dla pakietów: 100% (Odczytywanie bazy danych ... 103841 plików i katalogów obecnie zainstalowanych.) Usuwanie pakietu libboost-filesystem-dev ... Usuwanie pakietu libboost-filesystem1.49-dev ... Usuwanie pakietu libboost-program-options-dev ... Usuwanie pakietu libboost-program-options1.49-dev ... Usuwanie pakietu libboost-system1.49-dev ... Usuwanie pakietu libboost1.49-dev ... Przetwarzanie wyzwalaczy pakietu man-db... Wybieranie wcześniej niewybranego pakietu gccxml. (Odczytywanie bazy danych ... 93811 plików i katalogów obecnie zainstalowanych.) Rozpakowywanie pakietu gccxml (z .../gccxml_0.9.0+cvs20120420-4_armhf.deb) ... Wybieranie wcześniej niewybranego pakietu libboost1.50-dev. Rozpakowywanie pakietu libboost1.50-dev (z .../libboost1.50-dev_1.50.0-1_armhf.deb) ... Wybieranie wcześniej niewybranego pakietu libboost-system1.50.0.

Then all works fine.

mesmariusz commented 10 years ago

Unfortunaletty. I't cannot to compile succesfully :-(

I'm trying to install grive follow instruction: http://www.stuffaboutcode.com/2013/03/raspberry-pi-google-drive-grive.html.

But finnaly I have got

[b]Linking CXX executable grive ../libgrive/libgrive.a(State.cc.o): In function gr::v1::State::Write(boost::filesystem::path const&) const': State.cc:(.text+0x19bc): undefined reference togr::Json::Json(long const&)' State.cc:(.text+0x1a4c): undefined reference to gr::Json::Json<unsigned long>(unsigned long const&)' State.cc:(.text+0x1b2c): undefined reference togr::Json::Json(long const&)' collect2: ld returned 1 exit status make[2]: * [grive/grive] Błąd 1 make[1]: * [grive/CMakeFiles/grive_executable.dir/all] Błąd 2 make: *\ [all] Błąd 2[/b]

[code] root@raspberrypi:/# cd root root@raspberrypi:~# cd grive root@raspberrypi:~/grive# cmake . -- Found libgcrypt: -L/lib/arm-linux-gnueabihf -lgcrypt -- Found JSON-C: /usr/lib/arm-linux-gnueabihf/libjson.so -- Boost version: 1.50.0 -- Found the following Boost libraries: -- program_options -- filesystem -- unit_test_framework -- system -- Found libbfd: /usr/lib/libbfd.so -- Found libiberty: /usr/lib/libiberty.a -- Boost version: 1.50.0 -- Found the following Boost libraries: -- program_options -- Boost version: 1.50.0 -- Configuring done -- Generating done -- Build files have been written to: /root/grive root@raspberrypi:~/grive# make [ 1%] Building CXX object libgrive/CMakeFiles/grive.dir/src/http/ResponseLog.cc.o [ 3%] Building CXX object libgrive/CMakeFiles/grive.dir/src/http/Download.cc.o [ 5%] Building CXX object libgrive/CMakeFiles/grive.dir/src/protocol/JsonResponse.cc.o [ 7%] Building CXX object libgrive/CMakeFiles/grive.dir/src/protocol/Json.cc.o [ 8%] Building CXX object libgrive/CMakeFiles/grive.dir/src/protocol/AuthAgent.cc.o [ 10%] Building CXX object libgrive/CMakeFiles/grive.dir/src/protocol/OAuth2.cc.o [ 12%] Building CXX object libgrive/CMakeFiles/grive.dir/src/json/JsonWriter.cc.o [ 14%] Building CXX object libgrive/CMakeFiles/grive.dir/src/json/ValResponse.cc.o [ 16%] Building CXX object libgrive/CMakeFiles/grive.dir/src/json/ValBuilder.cc.o [ 17%] Building CXX object libgrive/CMakeFiles/grive.dir/src/json/JsonParser.cc.o [ 19%] Building CXX object libgrive/CMakeFiles/grive.dir/src/json/Val.cc.o [ 21%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/MemMap.cc.o [ 23%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/Config.cc.o [ 25%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/StringStream.cc.o [ 26%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/Crypt.cc.o [ 28%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/File.cc.o [ 30%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/OS.cc.o [ 32%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/SignalHandler.cc.o [ 33%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/StdStream.cc.o [ 35%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/Exception.cc.o [ 37%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/DateTime.cc.o [ 39%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/log/CommonLog.cc.o [ 41%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/log/DefaultLog.cc.o [ 42%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/log/Log.cc.o [ 44%] Building CXX object libgrive/CMakeFiles/grive.dir/src/util/log/CompositeLog.cc.o [ 46%] Building CXX object libgrive/CMakeFiles/grive.dir/src/xml/TreeBuilder.cc.o [ 48%] Building CXX object libgrive/CMakeFiles/grive.dir/src/xml/NodeSet.cc.o [ 50%] Building CXX object libgrive/CMakeFiles/grive.dir/src/xml/Node.cc.o [ 51%] Building CXX object libgrive/CMakeFiles/grive.dir/src/xml/String.cc.o [ 53%] Building CXX object libgrive/CMakeFiles/grive.dir/src/bfd/SymbolInfo.cc.o [ 55%] Building CXX object libgrive/CMakeFiles/grive.dir/src/bfd/Backtrace.cc.o [ 57%] Building CXX object libgrive/CMakeFiles/grive.dir/src/bfd/Debug.cc.o Linking CXX static library libgrive.a [ 82%] Built target grive Scanning dependencies of target btest [ 83%] Building CXX object libgrive/CMakeFiles/btest.dir/test/btest/UnitTest.cc.o [ 85%] Building CXX object libgrive/CMakeFiles/btest.dir/test/btest/ValTest.cc.o [ 87%] Building CXX object libgrive/CMakeFiles/btest.dir/test/btest/JsonValTest.cc.o Linking CXX executable btest [ 87%] Built target btest Scanning dependencies of target grive_executable [ 89%] Building CXX object grive/CMakeFiles/grive_executable.dir/src/main.cc.o Linking CXX executable grive ../libgrive/libgrive.a(State.cc.o): In function gr::v1::State::Write(boost::filesystem::path const&) const': State.cc:(.text+0x19bc): undefined reference togr::Json::Json(long const&)' State.cc:(.text+0x1a4c): undefined reference to gr::Json::Json<unsigned long>(unsigned long const&)' State.cc:(.text+0x1b2c): undefined reference togr::Json::Json(long const&)' collect2: ld returned 1 exit status make[2]: * [grive/grive] Błąd 1 make[1]: * [grive/CMakeFiles/grive_executable.dir/all] Błąd 2 make: *\ [all] Błąd 2 root@raspberrypi:~/grive#[/code]

I found it explained:

https://github.com/Grive/grive/issues/168

so I replaced faulty line inside libgrive/src/drive/State.cc by this:

[code]result.Add( "change_stamp", Json((boost::uint64_t) m_cstamp) ) ; [/code]

But the effect was:

[code]root@raspberrypi:~/grive# make Scanning dependencies of target grive [ 1%] Building CXX object libgrive/CMakeFiles/grive.dir/src/drive/State.cc.o Linking CXX static library libgrive.a [ 82%] Built target grive Linking CXX executable btest [ 87%] Built target btest Scanning dependencies of target grive_executable [ 89%] Building CXX object grive/CMakeFiles/grive_executable.dir/src/main.cc.o Linking CXX executable grive ../libgrive/libgrive.a(State.cc.o): In function gr::v1::State::Write(boost::filesystem::path const&) const': State.cc:(.text+0x19bc): undefined reference togr::Json::Json(long const&)' State.cc:(.text+0x1a4c): undefined reference to `gr::Json::Json(unsigned long const&)' collect2: ld returned 1 exit status make[2]: * [grive/grive] Błąd 1 make[1]: * [grive/CMakeFiles/grive_executable.dir/all] Błąd 2 make: *\ [all] Błąd 2 root@raspberrypi:~/grive# [/code]

Could someone please help me?

I need working sollution for backup my Raspberry Pi folders into Google Drive...

ryanhugh commented 10 years ago

I had the same problem as you and ended up doing this:

http://www.thefanclub.co.za/content/how-install-grive-tools-ubuntu-1204-64bit

However, we need armhf and not amd64, so use these debs instead: http://ftp.us.debian.org/debian/pool/main/y/yajl/libyajl-dev_2.1.0-1_armhf.deb http://ftp.us.debian.org/debian/pool/main/y/yajl/libyajl2_2.1.0-1_armhf.deb http://ftp.us.debian.org/debian/pool/main/j/json-c/libjson0_0.10-1.2_armhf.deb http://ftp.us.debian.org/debian/pool/main/j/json-c/libjson0-dev_0.10-1.2_armhf.deb