Hi Jacek, MSVC cannot currently compile the capnp tools (compiler and compiler plugins). When VS2017 comes out, I expect we will be able to port them, but in the meantime, you can use MinGW to build the tools. The process basically goes like:
- put MinGW x86_64 tools on the path - build capnproto with MinGW. You can use autotools for this if you have an MSYS environment or are cross-compiling from Linux, or you can use CMake with -DBUILD_TESTING=OFF. - put the resulting capnp binaries on the path - build capnproto with MSVC and CMake with -D EXTERNAL_CAPNP=ON. The compilation errors you encountered are from from the version mismatch of using the 0.5.3 compiler. With a MinGW-built compiler, they will go away. Hopefully that's enough to get you started! I can provide more detail later. Harris On Feb 6, 2017 5:08 AM, <[email protected]> wrote: > One of bugs example which I encountered are as follow: > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(46): > error C2131: expression did not evaluate to a constant > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(46): > note: failure was caused by non-constant arguments or reference to a > non-constant symbol > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(46): > note: see usage of 'capnp::schemas::s_98808e9832e8bc18' > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(63): > error C2131: expression did not evaluate to a constant > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(63): > note: failure was caused by non-constant arguments or reference to a > non-constant symbol > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(63): > note: see usage of 'capnp::schemas::s_814e90b29c9e8ad0' > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(84): > error C2131: expression did not evaluate to a constant > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(84): > note: failure was caused by non-constant arguments or reference to a > non-constant symbol > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(84): > note: see usage of 'capnp::schemas::s_bb0b2bd4bdc3693d' > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(99): > error C2131: expression did not evaluate to a constant > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(99): > note: failure was caused by non-constant arguments or reference to a > non-constant symbol > > c:\qtsrc\external\capnproto\samples\addressbook\addressbook.capnp.h(99): > note: see usage of 'capnp::schemas::s_f934d9b354a8a134' > > > First of them is from 45-47 rows in adddressbook.capnp.h: > > > #if !CAPNP_LITE > > static constexpr ::capnp::_::RawBrandedSchema const* brand = > &schema->defaultBrand; > > #endif // !CAPNP_LITE > > The other are very similiar. So I think you are very close to hunt every > compilation bugs! > > good luck and best regards > Jacek > > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
