Comments (4)
i was change that - MakeFlowFromClientSecretsPath -> MakeFlowFromClientSecretsJson Method.
And then i saw that Success Build
from google-api-cpp-client.
Hi asjgi -
Thanks for posting these workarounds, to get samples to compile. The only one that didn't work when I tried was the last.
To be more explicit, in src/samples/calendar_sample_main.cc, I replaced one instance of MakeFlowFromClientSecretsPath with MakeFlowFromClientSecretsJson.
The error message was unchanged (see below). Is there something else involved?
To take the first error first, there is a get_start (per google_calendar_api::Event::get_start) declared (but not defined) in event.h; the time_period.h get_start is defined and looks similar/same, but that is google_calendar_api::TimePeriod::get_start, not Event.
Thanks again.
CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function googleapis::Display(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::Event const&)': calendar_sample_main.cc:(.text+0x998): undefined reference to
google_calendar_api::Event::get_start() const'
calendar_sample_main.cc:(.text+0x9d0): undefined reference to google_calendar_api::Event::get_start() const' calendar_sample_main.cc:(.text+0xa70): undefined reference to
google_calendar_api::Event::get_end() const'
calendar_sample_main.cc:(.text+0xaa8): undefined reference to google_calendar_api::Event::get_end() const' CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function
googleapis::CalendarSample::Run()':
calendar_sample_main.cc:(.text+0x2a84): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x2b07): undefined reference to
google_calendar_api::Event::mutable_end()'
calendar_sample_main.cc:(.text+0x2ce8): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x2d6b): undefined reference to
google_calendar_api::Event::mutable_end()'
calendar_sample_main.cc:(.text+0x2f76): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x300d): undefined reference to
google_calendar_api::Event::mutable_end()'
CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function void googleapis::DisplayList<google_calendar_api::CalendarList, google_calendar_api::CalendarListEntry>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::CalendarList const&)': calendar_sample_main.cc:(.text._ZN10googleapis11DisplayListIN19google_calendar_api12CalendarListENS1_17CalendarListEntryEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_[_ZN10googleapis11DisplayListIN19google_calendar_api12CalendarListENS1_17CalendarListEntryEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_]+0xdd): undefined reference to
google_calendar_api::CalendarList::get_items() const'
CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function void googleapis::DisplayList<google_calendar_api::Events, google_calendar_api::Event>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::Events const&)': calendar_sample_main.cc:(.text._ZN10googleapis11DisplayListIN19google_calendar_api6EventsENS1_5EventEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_[_ZN10googleapis11DisplayListIN19google_calendar_api6EventsENS1_5EventEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_]+0xdd): undefined reference to
google_calendar_api::Events::get_items() const'
collect2: error: ld returned 1 exit status
src/samples/CMakeFiles/calendar_sample.dir/build.make:97: recipe for target 'bin/calendar_sample' failed
make[2]: *** [bin/calendar_sample] Error 1
CMakeFiles/Makefile2:817: recipe for target 'src/samples/CMakeFiles/calendar_sample.dir/all' failed
make[1]: *** [src/samples/CMakeFiles/calendar_sample.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
from google-api-cpp-client.
Events::get_items() api is not implemented. Thats the reason for this error.
May be JSonCpp library has got updated.
from google-api-cpp-client.
Fixed.
from google-api-cpp-client.
Related Issues (20)
- Can't build: struct mg_callbacks callbacks_; isn't defined HOT 3
- Calendar sample program does not work well, HOT 1
- Mac build fails if space in path HOT 1
- Support for account default credentials HOT 1
- Update prepare_dependencies.py download paths HOT 3
- Please provide some examples.
- glog-0.3.3.tar.gz into glog-0.3.3
- Mismatch between functions that take StringPieces and functions that take strings causes runtime errors. HOT 1
- Failure Building Clients for Other APIs HOT 2
- Retry when Status Code 403 Forbidden HOT 1
- First upload to GCS always times out HOT 3
- undefined reference to `googleapis::client::New .... HOT 1
- Latest downloaded generated bigquery code is incompatible with latest framework code HOT 1
- does this work on windows? HOT 1
- Incompatible dependencies when linking HOT 2
- HAVE_UGO_PERMISSIONS and HAVE_FSTAT64 always fail HOT 1
- Tons of depreciation warnings during compile HOT 1
- More samples needed HOT 2
- Error on 'exp' type handling in ID Token HOT 7
- std::cout missing #include <iostream> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-api-cpp-client.