New TBrowser doesn't worked now for macos

Apologies for the confusion. Initially I asked about a solution regarding the building from source, but it evolved into fixing a problem I had with including TSpectrum when using a pre-compiled binary, and that was indeed resolved with @pcanal 's help. However, I am afraid the building from source issue did not get resolved and I did not pursue it further, as @eguiraud recommended to use one of the precompiled binaries if possible.

Now I am having issues again with the precompiled binary since it seems I cannot use the old TBrowser due to an issue with the libraries expected by the pre-compiled version and the libraries that I have on my computer. Apologies for the inconveniences.

According tto the MacOS and the CLT versions you have, the simple recipe I gave you to build ROOT from sources should work. Did you try exactly that ?

I followed precisely the steps, that is:

$ git clone https://github.com/root-project/root.git
$ mkdir build
$ cd build
$ cmake ../root
$ make -j8

right?

But I still get the same issue.

Yes that should work. It does for me on my mac. But the error you get does not seesms to come from ROOT: You have:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/curses.h:2918:
/opt/local/include/unctrl.h:61:54: error: conflicting types for 'unctrl'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);

There is several posts on the forum mentionning unctrl. May be on of them can help. Otherwise I have no clue what your problem could be.

Thanks a lot. Seeing some of the posts, I figured that maybe the best approach would be to uninstall ncurses. That led me to notice that my macports was out of date (i haven’t used it in years since nowadays i use homebrew). After installing the macports version compatible with Sequoia 15, not only did it compile, I was also able to compile with c++20 standard. That required that I use the built-in tbb module (found out thanks to this post: Compiling root with c++20). So to summarise, what I did:

  • Update macports to version compatible with Sequoia 15 (download the installer from their web site)
  • Migrate my ports (doing sudo port -v selfupdate && sudo port upgrade outdated)
  • Install ROOT from the Git HEAD:
    • git clone https://github.com/root-project/root.git
    • mkdir root-build root-install
    • cd root-build
    • cmake -Dbuiltin_glew=ON -Dbuiltin_gif=ON -Dbuiltin_png=ON -Dbuiltin_tbb=ON -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_INSTALL_PREFIX=../root-install ../root
    • cmake --build . --target install -j8

That said, as nicely as it all works, I still have my old TBrowser crashing with the exact same message. As you can see, I am already using -Dbuiltin_gif=ON as suggested in Issue with root on Mac Sequoia (still?) - #8 by cxwx1 and -Dbuiltin_png=ON to ensure it is used for ROOT compilation as pointed out by @linev , but I obtain the same crash as before.
Just to be sure, in /path/to/root-install/etc/system.rootrc, I set the browser parameter as Browser.Name: TRootBrowser. Is there a mistake here perhaps? Or do I need to use an additional built-in package ? Sorry to still bother with these very specific issues. Thanks a lot for all the patience.

Adding to this, I also tried to run root --web=off and is exactly the same issue so it can’t be an issue with the naming in system.rootrc

I’m not sure how to solve this, but -Dbuiltin_gif=ON may worked, just using the builtin gif lib.

I did indeed include it but it seems to not have worked for me unfortunately. I also included -Dbuiltin_png=ON just to be sure, but that also did not fix it.

Edit:
I have an update: if I run root with sudo, I am able to see the TBrowser without issue. I am not quite sure yet what the problem with my environment is (possibly an issue with my terminal), but I can confirm it is possible to make it work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.