Closed jcameron-sso closed 1 year ago
Hi, the answer is yes, there is a discussion of how to get a build working on Ubuntu 22.04 and Fedora 36 in the Starlink Users mailing list at: https://www.jiscmail.ac.uk/cgi-bin/wa-jisc.exe?A0=STARLINK. The thread is "Fedora 36 compilation problem".
I'll extract the instructions here for easier reference.
Changes to the main repository:
diff --git a/thirdparty/kitware/vtk/Makefile.am b/thirdparty/kitware/vtk/Makefile.am
index 7cd0f193fe..1c437004d9 100644
--- a/thirdparty/kitware/vtk/Makefile.am
+++ b/thirdparty/kitware/vtk/Makefile.am
@@ -63,6 +63,7 @@ all:
-D VTK_USE_INFOVIS:BOOL=OFF \
-D VTK_USE_MANGLED_MESA:BOOL=OFF \
-D VTK_USE_VIEWS:BOOL=OFF \
+ -D CMAKE_CXX_STANDARD=11 \
. && \
$(MAKE) )
diff --git a/thirdparty/kitware/vtk/configure.ac b/thirdparty/kitware/vtk/configure.ac
index fa94812a4b..19bfa3af76 100644
--- a/thirdparty/kitware/vtk/configure.ac
+++ b/thirdparty/kitware/vtk/configure.ac
@@ -55,7 +55,7 @@ dnl make in the VTK directory. Remove cmConfigure.h file as that
dnl maybe from a full build and include components that are not to be
dnl used during a bootstrap (cmELF for instance).
(
- cmd="cd cmake && rm -f Source/cmConfigure.h && ./bootstrap";\
+ cmd="cd cmake && rm -f Source/cmConfigure.h && ./bootstrap --no-qt-gui --system-curl";\
echo $cmd; \
eval $cmd
)
Update some sub-projects:
cd thirdparty/eso/skycat/skycat
git checkout master
git pull
cd thirdparty/kitware/vtk/cmake
git checkout master
git pull
Think that will all work. You may need to clean up some things to get these fully working. As I said on the thread in the support lists these fixes cannot currently be added to the main repository as they stop builds on the main supported systems.
Thanks. I had missed that mailing list, found another one instead.
thirdparty/eso/skycat/skycat
did not budge, looks like it was already there.
I also got "cannot compile a C program!" from /daophot
which was solved by export CC=gcc
. After that, restarting from clone, applying your changes, and removing the target tree, everything built. This was on Ubuntu 22.04 x86_64.
You mentioned supported systems. What is the nature and extent of support, and how much does it cost? I'm making a software bill of materials and that would be handy information to have in there.
Good to hear you got things built. It occurred to me that I may as well push a branch with these updates, so I've now
done that. It is called fc36-updates
.
As for support etc. The only official support is provided from the EAO, who also do the binary releases (which is what I mean when speaking of supported systems, just those that EAO use and build releases on), so they would need to speak about that, if they can. I have nothing to do with that.
Thanks. I've compared my local deployment branch with fc36-updates
, and only have whitespace changes in the vtk/Makefile.am
, so it looks fine. I'll close the issue now.
On Ubuntu 22.04, at 8b280cae8b, a
make world
fails with errors. Perhaps a later CMake source is required.