First time here? Checkout the FAQ!
x
0 votes
by (160 points)
Dear all,

trying to install openCARP via WSL for Windows11, I ran into the error given below when it comes to the installation of meshalyzer.

Can anyone advise how to overcome this problem ?

Best, Philipp

pkuegler@DESKTOP-PQF7A0H:/mnt/c/WINDOWS/system32/meshalyzer$ cmake --build _build
[  1%] Generating HDF5DataBrowser.cxx and HDF5DataBrowser.h
[  1%] Built target create_hdf5_data_browser
[  2%] Building CXX object src/CMakeFiles/meshalyzer.dir/trimesh.cxx.o
[  3%] Building CXX object src/CMakeFiles/meshalyzer.dir/TBmeshWin.cc.o
/mnt/c/WINDOWS/system32/meshalyzer/src/TBmeshWin.cc: In member function ‘void TBmeshWin::read_model(Fl_Window*, const char*, bool, bool)’:
/mnt/c/WINDOWS/system32/meshalyzer/src/TBmeshWin.cc:1246:50: error: ‘class Fl_File_Chooser’ has no member named ‘w’
 1246 |     auto bt = new Fl_Light_Button(0,0,modchooser.w()-10,25,"Merge pkje file");
      |                                                  ^
/mnt/c/WINDOWS/system32/meshalyzer/src/TBmeshWin.cc:1264:7: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
 1264 |       delete bt;
      |       ^~~~~~~~~
gmake[2]: *** [src/CMakeFiles/meshalyzer.dir/build.make:904: src/CMakeFiles/meshalyzer.dir/TBmeshWin.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:153: src/CMakeFiles/meshalyzer.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

1 Answer

0 votes
by (4.0k points)
It seems that some recent changes made to meshalyzer recently broke the compatibility with FLTK v1.3, and that version 1.4 is needed.
We will work on fixing this and updating the documentation, but in the meantime you can install FLTK v1.4 manually:
 tar xvf fltk-1.4.4-source.tar.gz
 cd fltk-1.4.4/
 cmake -S. -B_build
 cmake --build _build --parallel 4
 cd _build/
 sudo make install
Then you can try to recompile meshalyzer. I advise you to delete the _build folder before recompiling, so that the right version of FLTK is found.
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...