Skip to content
ddarriba edited this page Mar 6, 2018 · 6 revisions

Frequently Asked Questions

Linux

ModelTest correctly compiles but cannot execute

ModelTest shows the following error message

error while loading shared libraries: libpll_binary.so.0: cannot open shared object file: No such file or directory

ModelTest cannot resolve PLL modules library. First, locate where libpll was installed (e.g., search for the reported file: "libpll_binary.so.0"). If you ran the build script, the it should be in build/lib directory. Next, set LD_LIBRARY_PATH environment variable to the libpll location. For example:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/lib

I compiled ModelTest GUI in my Linux system, but when I try to run it I get the following message:

bash: ./modeltest−gui: No such file or directory

Most likely the compiler chose a wrong linker. Running ldd command on modeltest-gui binary will probably show /lib/ld64.so. There are 2 solutions for this:

  1. Change build script such that pll is linked dynamically: remove "build_static" from mt_qt_extra_conf.
  2. Use the correct linker: Add -Wl,--dynamic-linker=/lib64/ld-linux-x86-64.so.2 at src/modeltest.pro to the LIBS variable in the pll_static section at the end of the file.

OS X

Note: Solutions here might require the use of HomeBrew. In that case, please visit homebrew site and follow the installation instructions. Typically is just one line you should paste on a terminal.

How can I get QT to work in OS X?:

You need to install qt5:

$ brew install qt5

qmake binary would be located in /usr/local/opt/qt/bin, so either

  1. add it to the path:
$ export PATH="/usr/local/opt/qt/bin:$PATH"
  1. or use the absolute path in modeltest-ng build.sh script:
qmake_bin=/usr/local/opt/qt/bin/qmake   # qmake binary (for GUI)