Page 1 of 1

Compilation (from Github)

Posted: Mon Dec 03, 2018 3:42 pm
by Gootjes
Hi all,

I am getting the following error trying to compile the engine subdirectory (engine/) following the tutorial here: https://dev.jamovi.org/info_project-structure.html . I cloned the latest version from github (jamovi/jamovi).

I am getting an error as can be seen below.

Did I forget a flag?

Code: Select all

make -C engine all
make[1]: Entering directory '/home/me/Projects/Jamovi-dev/jamovi/engine'
mkdir -p .
g++ -c -o jamovi.pb.cc.o jamovi.pb.cc  -std=c++11 -I. -I.//../../include -I.//../../../include -I.//../server/jamovi/common -I.//../../../lib/R/include -I.//../../modules/base/R/RInside/include -I.//../../modules/base/R/Rcpp/include
In file included from /usr/include/bits/types/stack_t.h:23,
                 from /usr/include/signal.h:303,
                 from /usr/include/sys/param.h:28,
                 from /usr/include/google/protobuf/stubs/port.h:64,
                 from /usr/include/google/protobuf/stubs/common.h:46,
                 from jamovi.pb.h:9,
                 from jamovi.pb.cc:4:
jamovi.pb.h:1515:22: error: expected unqualified-id before '__null'
   static const Other NULL =
                      ^~~~
jamovi.pb.cc:1724:44: error: expected unqualified-id before '__null'
 const AnalysisOption_Other AnalysisOption::NULL;
                                            ^~~~
make[1]: *** [Makefile:116: jamovi.pb.cc.o] Error 1
make[1]: Leaving directory '/home/me/Projects/Jamovi-dev/jamovi/engine'
make: *** [Makefile:2: all] Error 2

Re: Compilation (from Github)

Posted: Mon Dec 03, 2018 10:45 pm
by jonathon
hey,

hmm, this is unexpected. it looks like there's a compatibility issue with your toolchain. either you're using something very new, or something very old?

that jamovi.pb.cc file is generated by protocol buffers, so it looks to be a compatibility mismatch between your protocol buffers, and your compiler.

i'll have a bit of a look into it, but you'll probably have more success, knowing what versions of gcc, etc. you're using.

do you want to join our slack? that'll be the easiest way to figure this out.

cheers

jonathon

Re: Compilation (from Github)

Posted: Tue Dec 04, 2018 1:40 pm
by Gootjes
Yes I want to join the Jamovi slack. I sent you an email at contact@jamovi.org