I am trying to build PyQt 5.3.1 on ubuntu 14.04. I need QtWebKit module on it.
I configured it following step
python configure.py -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --sip-incdir=/usr/include/python2.7 --sipdir=/usr/share/sip --enable QtWebKit QtWebKitWidgets
I got following error when I am using make,
$HOME/PyQt-gpl-5.3.1/QtWebKit/sipQtWebKitQWebSettings.cpp:1208:48: error: ‘WebAudioEnabled’ is not a member of ‘QWebSettings’
{sipName_WebAudioEnabled, static_cast<int>(QWebSettings::WebAudioEnabled), 26},
^
make[1]: *** [sipQtWebKitQWebSettings.o] Error 1
make[1]: Leaving directory '$HOME/PyQt-gpl-5.3.1/QtWebKit'
make: *** [sub-QtWebKit-make_first-ordered] Error 2
How can I fix this?
Thanks in advance.
you can install PyQt5 with pip instead of building from source.
try pip install Python-Qt5
Related
I'm following the geodjango docs proj4 section , I have installed proj-7.0.1.tar.gz and proj-datumgrid-1.8.tar.gz , and untar them as in the docs mentioned , but when i try to run make command after directory ./configure it returns
make: *** No targets specified and no makefile found. Stop.
Is there something I have missed? Maybe I have used a wrong version?
Thank you!
I am trying to install RedisGraph on my Macbook Pro. I have clone the repo and in the project directory I ran the make command but I get the following output.
make[2]: *** No targets specified and no makefile found. Stop.
make[1]: *** [../deps/rax/rax.o] Error 2
make: *** [all] Error 2
There's a Makefile in the repo though. If I run make Makefile, I still get
make: Nothing to be done for `Makefile'.
My gcc version:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I am following the steps on this doc. Any help would be greatly appreciated! Not sure if it is related to OS X version of Clang (if I have to change it to a different version).
After cloning the repo, you must clone its submodules with git submodule update --init --recursive . Then make will execute properly.
I got error after executing command make .
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") CMake Error at cmake/Tools.cmake:31 (message): 'pystache' python module
not found Call Stack (most recent call first): CMakeLists.txt:177
(check_python_module)
make[3]: *
[linphone-android/WORK/android-arm64/Stamp/EP_linphone/EP_linphone-configure]
Error 1 make[2]: [CMakeFiles/EP_linphone.dir/all] Error 2 make[1]:
[all] Error 2 make: * [arm64-build] Error 2
I use mac os ,
sh-3.2# python --version
Python 2.7.10
important :
pip3 works but pip command not found!
Update : I found solution with :
brew uninstall python
brew install python#2
Error was because you did not have the module: "pystache".
Make sure you have installed pip
And then, you can:
pip install pystache
Reference:
https://pypi.org/project/pystache/
I am trying to install a c++ compiler on a IBM Power7 with Fedora 26.
In /usr/bin it is installed gcc [(GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)] but it has not the c++ compiler (I tried gcc -lstdc++ but the result is: `
/usr/bin/ld: cannot find -lstdc++
I do not have sudo rights so I have to install everything from source.
I was able to install:
Zlib
Perl
Curl
Git
GNU M4
GMP
MPFR
MPC
EXPAT
APR and APR-UTIL
ISL
but when I try to install locally gcc, after a successfull configure, when I try make I got this error:
configure: error: in `/home/aantonietti/gcc/host-powerpc64-unknown-linux-gnu/gcc':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[2]: *** [Makefile:4333: configure-stage1-gcc] Error 1
make[2]: Leaving directory '/home/aantonietti/gcc'
make[1]: *** [Makefile:23745: stage1-bubble] Error 2
make[1]: Leaving directory '/home/aantonietti/gcc'
make: *** [Makefile:945: all] Error 2
I also tried to install clang++ but it needs tons of other dependecies.
Do you have any hint on how to install just the gcc-c++ compiler?
Why don't you run dnf install gcc-c++? It will install the C++ system compiler bring in linking support for libstdc++ as well.
I am trying to install SRILM on my computer using os linux ubuntu 12.04, the gcc version 4.6.3 and the machine type is i686. at the end of the process it gives result of 2 errors as follows:
-o ../obj/i686/tclmain.o tclmain.cc
tclmain.cc:8:17: fatal error: tcl.h: No such file or directory
compilation terminated.
make[2]: * [../obj/i686/tclmain.o] Error 1
make[2]: Leaving directory /home/supriadi/workspace/srilm/misc/src'
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory/home/supriadi/workspace/srilm'
make: * [World] Error 2
what should I do to fix this problem? thanks friend
You're missing the dev files of tcl. Use
sudo apt-get install tcl-dev tk-dev
You need to install tcl development files.
You can find tcl-dev package for ubuntu 12.04 here https://launchpad.net/ubuntu/precise/+package/tcl-dev
Try this instead of make:
make MACHINE_TYPE=i686-m64 World
or
make NO_TCL=1 MACHINE_TYPE=i686-ubuntu World
In my case this lead me into another error
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such
file or directory
Which I found a fix here, such that:
sudo aptitude install libc6-dev-amd64