Closed schm9596 closed 6 years ago
I was able to build moogli on a fresh docker image of centos-7. However, I had epel repos enabled and I was using cmake3
. I could not get configuration done with default cmake.
# yum install epel-release
# yum update
# yum install cmake3
# cmake3 ..
# make -j4 # parallel build
If this fails let me know. MOOGLI is likely to cause headache. We have success only on Ubuntu/Debian machines with MOOGLI.
Importantly MOOGLI is no longer maintained actively. And there is plan to drop it in favor of matplotlib/d3js which is a work in progress.
I got the same error again after the following:
$ yum install epel-release $ yum update $ yum install cmake3 $ mkdir _build $ cd _build $ cmake3 ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonDev: /usr/bin/python-config
++ Found SIP flags:
CMake Error at CMakeLists.txt:26 (MESSAGE):
++ No PYQT4_SIP_FLAGS found. Can't continue
Download this file https://raw.githubusercontent.com/BhallaLab/moogli/master/moogli/cmake_modules/FindPyQt4.py and run it. Post the output,
$ python FindQt4.py
I used following bash script on a fresh docker image of centos-7.
if [ ! -d moogli ]; then
git clone https://github.com/BhallaLab/moogli --depth 50
fi
sudo yum install epel-release -y
sudo yum install git cmake3 python-devel gcc-c++ -y
sudo yum install sip-devel PyQt4-devel qt4-devel libjpeg-devel PyQt4 -y
sudo yum groupinstall 'Development Tools' -y
(
cd moogli
mkdir -p _build
cd _build
cmake3 .. -DCMAKE_INSTALL_PREFIX=/usr
make -j4
sudo make install
)
python -c 'import moogli'
Build was successful.
After running FindQt4.py I got the following message:
pyqt_version:040a01 pyqt_version_num:264705 pyqt_version_str:4.10.1 pyqt_version_tag:Qt_4_8_4 pyqt_mod_dir:/usr/lib64/python2.7/site-packages/PyQt4 pyqt_sip_dir:/usr/share/sip/PyQt4 pyqt_sip_flags:-x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_8_4 -x Py_v3 -g pyqt_bin_dir:/usr/bin
I've successfully built moogli package for CentOS-7: It should be available here shortly: https://software.opensuse.org//download.html?project=home%3Amoose&package=moogli . Install it from here, Let me know if something breaks.
You can see the build log for CentOS-7 here. to debug your problem. Unfortunately I can't reproduce your error on any of my CentOS-7 environments (cluster, Docker Image, Open Build Service). I guess this problem is local to your machine.
I am closing this ticket but feel free to reopen it.
I am trying to install moose on a Centos 7 machine. I have installed everything successfully up to moogli. I can run examples in the python shell.
I installed all the dependency successfully with: $ sudo yum install sip-devel PyQt4-devel qt4-devel libjpeg-devel PyQt4
Then I entered the following to install moogli in the moogli folder: $ mkdir _build $ cd _build $ cmake ..
I get the following error:
-- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PythonDev: /usr/bin/python-config
++ Found SIP flags: CMake Error at CMakeLists.txt:26 (MESSAGE): ++ No PYQT4_SIP_FLAGS found. Can't continue
I have pyqt4 installed with python 2.7.
Thanks for the help.