There are more errors later but I think this ‘incomplete type’ is the cause. I can post full error log if necessary.
I have installed ROOT on this computer before, I’m actually reinstalling. And my copy of ROOT source code works fine on another computer.
Also, I encountered ‘redefination error’ when I build ROOT without ‘-j4’.
I guess there’s something wrong with my complier, but I don’t know where to start.
I forked ROOT from official repository one mouth ago, the version should be v6.22.
There are some modifications in ‘graf3d’ folder while rest of the codes remain untouched.
The modifications are tested and committed to my forked repository. Then I cloned the modified codes to another computer and tried to build it by
It’s a GitHub mirror to accelerate clone process. I manually compared the “TDatime.h” from gitclone with the one from Github, they are the same.
I am also cloning directly from GitHub now and I think it’s gonna take the whole day. I’ll try this very original source code once the cloning is done.
Indeed, the ROOT in /include/ is of different version. But why does this affect the installation? I don’t understand why it looks for headers in a seemingly irrelevant directory of /include/ instead of the build directory or the source directory.
I thought I could have two ROOT installed at the same time. It is possible to do so? If it is, what am I missing here?
Yes, it should work but depending on how you configured it may or may not cause interferences.
Did you run any “thisroot.sh” command?
What was your cmake comand line for the ROOT build?
I didn’t run any “thisroot.sh” in shell or .bashrc. Cmake command is just like my second reply in this topic. I also removed environment variable ROOTSYS.
I temporarily bypassed this problem by renaming the include/ to something else and run a clean build, it was a successful installation. But I am still hoping to figure out what happen and actually solve the problem since this solution may affect the user who are using the ROOT in include/ (or in some other reasonable directory).