Comments (8)
By the way, on Ubuntu 16.04, the missing header comes with package qtbase5-private-dev
. You may need to install it.
I think the presence of the package can be checked in CMake with FIND_PACKAGE(Qt5Core COMPONENTS Private)
but again I am not 100% sure.
from pythonqt.
Hi,
In principle those headers are included with this line: https://github.com/commontk/PythonQt/blob/patched-8/CMakeLists.txt#L155
could you post the cmake
line and the last output of make VERBOSE=1
?
from pythonqt.
Here is the cmake output:
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10")
-- PythonQt: Required Qt components [Core;Widgets]
-- Qt5Core_PRIVATE_INCLUDE_DIRS:
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/adamupdegrove/Downloads/PythonQt/PythonQt-build
I added a print statement and it appears Qt5_Core_PRIVATE_INCLUDE_DIRS is empty.
Here is make VERBOSE=1 output:
[ 28%] Building CXX object CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPYTHONQT_EXPORTS -DPYTHONQT_SUPPORT_NAME_PROPERTY -DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/usr/include/python2.7 -iframework /Users/adamupdegrove/qt-5.4.2/lib -isystem /Users/adamupdegrove/qt-5.4.2/lib/QtCore.framework/Headers -isystem /Users/adamupdegrove/qt-5.4.2/mkspecs/macx-clang -isystem /Users/adamupdegrove/qt-5.4.2/lib/QtWidgets.framework/Headers -isystem /Users/adamupdegrove/qt-5.4.2/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Headers -I/Users/adamupdegrove/Downloads/PythonQt/src -fPIC -fPIC -o CMakeFiles/PythonQt.dir/src/PythonQt.cpp.o -c /Users/adamupdegrove/Downloads/PythonQt/src/PythonQt.cpp
In file included from /Users/adamupdegrove/Downloads/PythonQt/src/PythonQt.cpp:48:
/Users/adamupdegrove/Downloads/PythonQt/src/PythonQtConversion.h:496:23: warning: conversion from string literal to 'char ' is deprecated [-Wc++11-compat-deprecated-writable-strings]
PyObject items = PyMapping_Items(val);
^
/usr/include/python2.7/abstract.h:1354:50: note: expanded from macro 'PyMapping_Items'
#define PyMapping_Items(O) PyObject_CallMethod(O,"items",NULL)
^
/Users/adamupdegrove/Downloads/PythonQt/src/PythonQt.cpp:1951:10: fatal error: 'private/qmetaobjectbuilder_p.h' file not found
#include <private/qmetaobjectbuilder_p.h>
from pythonqt.
I added a print statement and it appears Qt5_Core_PRIVATE_INCLUDE_DIRS is empty.
I think (not sure though) it is Qt5Core_PRIVATE_INCLUDE_DIRS
and not Qt5_Core_PRIVATE_INCLUDE_DIRS
.
from pythonqt.
Yes, it is Qt5Core_PRIVATE_INCLUDE_DIRS and thats what I added the print statement for. I accidentally called it Qt5_CORE in the comment.
I've searched around and it appears this may be a Qt issue. This is my own build of Qt in which I did an out of source build. Based on this discussion https://bugreports.qt.io/browse/QTBUG-37417, it sounds like Qt does not populate the PRIVATE_INCLUDES variable in an out of source build.
from pythonqt.
I've searched around and it appears this may be a Qt issue. This is my own build of Qt in which I did an out of source build. Based on this discussion https://bugreports.qt.io/browse/QTBUG-37417, it sounds like Qt does not populate the PRIVATE_INCLUDES variable in an out of source build.
Then my comment is likely not related.
from pythonqt.
@jmirabel @iltommi Thanks for the help.
Using a downloadable Qt5 distribution from Qt and pointing to that resolves the issue and everything builds fine. So, this seems to be a Qt bug with not setting PRIVATE_INCLUDES correctly in an out of source build.
from pythonqt.
glad you fixed with official qt5.
As reminder,I used qt 5.10.1 installed via brew and it worked as well
from pythonqt.
Related Issues (20)
- Update CMake to handle extensions and install PythonQtScriptingConsole.h HOT 1
- Qt 5.6 support HOT 4
- QSound belongs to QtMultimedia not QtGui
- matplotlib.pyplot.ion() does not work very well HOT 3
- Use Qt_all extension HOT 6
- Problem with Paraview compling
- Update plan? HOT 3
- patched-8 missing Qt private includes HOT 1
- How to deal with multiple py files? HOT 1
- PythonQt_DEBUG=ON generates error, anyone know what I am doing wrong? Ubuntu 17.04 HOT 1
- qt4.8.6 with patched-7 HOT 2
- cross compile with mingw HOT 3
- Support for Python global interpreter lock HOT 2
- Crash if delegate subclass implements displayText HOT 6
- fatal error: private/qmetaobjectbuilder_p.h: No such file or directory for ubuntu 16.04 HOT 3
- Cannot find external simbol: QBasicMutex::QBasicMutex(void) HOT 1
- Error with python 3.7 : Require native threads HOT 1
- How to build PythonQt with PythonQtConfig.cmake?
- State of cmake files HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pythonqt.