Recent Changes · Search:

Dispense


µSR

Chapters:

  1. Introduction
  2. The muon
  3. Muon production
  4. Spin polarization
  5. Detect the µ spin
  6. Implantation
  7. Paramagnetic species
  8. A special case: a muon with few nuclei
  9. Magnetic materials
  10. Relaxation functions
  11. Superconductors
  12. Mujpy
  13. Mulab
  14. Musite?
  15. More details

Tips

PmWiki

pmwiki.org

edit SideBar

Musrfit

< PyMinuit, how to install and use it | Index | Notes on musrfit usage >


Re-istalling on 24.04 following Andreas instructions

#checked 
apt-get install libhdf4-dev libhdf5-dev
sudo apt install \
    libx11-dev \
    libxft-dev \
    libxpm-dev \
    libxext-dev \
    zlib1g-dev \
    liblzma-dev \
    liblz4-dev \
    libzstd-dev \
    libssl-dev \
    libfreetype-dev \
    libjpeg-dev \
    libpng-dev \
    libgif-dev
# update root
cd ~/git/root-src/
# add a build and a buildtest rows in vim .git/info/exclude
git fetch origin/latest-stable
git pull origin/latest-stable
\rm -r build
mkdir root_build
cd root_build
# cmake takes few minutes
cmake ../ -Dgminimal=1 -Dasimage=1 -Dmathmore=1 -Dxml=1 -Dpyroot=1 -Dtpython=1 -DCMAKE_INSTALL_PREFIX=../root_exec
# cmake takes hours (next time compile on more cores)
make cmake --build ./ --clean-first
cmake --install ./

Next time

git pull
cd root_build
cmake --build ./ --clean-first # the long one

musrfit compilation with warnings (ignored)

git pull
rm -rf build CMakeCache.txt CMakeFiles
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$ROOTSYS -Dnexus=1 -DHAVE_HDF4=1 -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6 # QT6 otherwise it forces Qt6.5 not available on 24.04
vim src/musredit_qt6/musredit/PMsrHighlighter.cpp
# change lines 97 and 117 from
  // Fix per compatibilità con Qt 6.4.2 su Ubuntu 24.04
  QPalette palette = QGuiApplication::palette();
  bool isDark = palette.color(QPalette::WindowText).lightness() > palette.color(QPalette::Window).lightness();

  if (!isDark) {
      // ... (tutto il codice originale del tema chiaro) ...
  } else if (scheme == Qt::ColorScheme::Dark) { // <-- RIGA 117: L'ERRORE È QUI
      // ... (tutto il codice originale del tema scuro) ...
  }
# to
  QPalette palette = QGuiApplication::palette();
  bool isDark = palette.color(QPalette::WindowText).lightness() > palette.color(QPalette::Window).lightness();
  int scheme = isDark ? 2 : 1; // 1 = Light, 2 = Dark

  if (scheme == 1) {

  } else if (scheme == 2) {
# save quit and compile with 
cmake --build build --clean-first -- -j8

< PyMinuit, how to install and use it | Index | Notes on musrfit usage >

Edit - History - Print - PDF - Recent Changes - Search
Page last modified on October 14, 2026, at 03:29 PM