Compiling issue dde-file-manager
Tofloor
poster avatar
raistlin84
deepin
2017-10-09 16:28
Author
Hello to everyone!

I'm trying to compile dde-file-manager fom ubuntu 16.04 but I get this error:

  1. make[1]: Leaving directory '/root/dde-file-manager-master/vendor/src/deepin-tool-kit/build/dutil'
  2. cd dwidget/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /root/dde-file-manager-master/vendor/src/deepin-tool-kit/dwidget/dwidget.pro CONFIG+=staticlib LIB_INSTALL_DIR=/root/dde-file-manager-master/vendor/lib INCLUDE_INSTALL_DIR=/root/dde-file-manager-master/vendor/include -o Makefile ) && make -f Makefile install
  3. make[1]: Entering directory '/root/dde-file-manager-master/vendor/src/deepin-tool-kit/build/dwidget'
  4. make[1]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libQt5PlatformSupport.a', needed by 'libdtkwidget.a'.  Stop.
  5. make[1]: Leaving directory '/root/dde-file-manager-master/vendor/src/deepin-tool-kit/build/dwidget'
  6. Makefile:108: recipe for target 'sub-dwidget-install_subtargets' failed
  7. make: *** [sub-dwidget-install_subtargets] Error 2
  8. + cd /root/dde-file-manager-master/vendor
  9. Package dtkwidget was not found in the pkg-config search path.
  10. Perhaps you should add the directory containing `dtkwidget.pc'
  11. to the PKG_CONFIG_PATH environment variable
  12. No package 'dtkwidget' found
  13. Package dtkwidget was not found in the pkg-config search path.
  14. Perhaps you should add the directory containing `dtkwidget.pc'
  15. to the PKG_CONFIG_PATH environment variable
  16. No package 'dtkwidget' found

  17. process translations/dde-file-manager.ts
  18. Updating 'translations/dde-file-manager.qm'...
  19.     Generated 0 translation(s) (0 finished and 0 unfinished)
  20.     Ignored 267 untranslated source text(s)

  21. process translations/dde-file-manager_zh_CN.ts
  22. Updating 'translations/dde-file-manager_zh_CN.qm'...
  23.     Generated 267 translation(s) (267 finished and 0 unfinished)
  24. Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
  25. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
  26. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
Copy the Code


I've already compiled dtkcore without problem, but when I try to compile dtkwidget i get:
  1. ~/dtkwidget/build# make
  2. cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /root/dtkwidget/src/src.pro -o Makefile ) && make -f Makefile
  3. Project ERROR: dframeworkdbus development package not found
  4. Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
  5. make: *** [sub-src-make_first-ordered] Error 3
Copy the Code



So I've thought i need dde-qt-dbus-factory too, but when I try:
  1. ~/dde-qt-dbus-factory/build# make
  2. cd tools/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /root/dde-qt-dbus-factory/tools/tools.pro -o Makefile ) && make -f Makefile
  3. make[1]: Entering directory '/root/dde-qt-dbus-factory/build/tools'
  4. cd qdbusxml2cpp/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /root/dde-qt-dbus-factory/tools/qdbusxml2cpp/qdbusxml2cpp.pro -o Makefile ) && make -f Makefile
  5. make[2]: Entering directory '/root/dde-qt-dbus-factory/build/tools/qdbusxml2cpp'
  6. g++ -c -m64 -pipe -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../../tools/qdbusxml2cpp -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus/5.5.1 -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus/5.5.1/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o qdbusxml2cpp.o ../../../tools/qdbusxml2cpp/qdbusxml2cpp.cpp
  7. ../../../tools/qdbusxml2cpp/qdbusxml2cpp.cpp:45:42: fatal error: private/qdbusintrospection_p.h: No such file or directory
  8. compilation terminated.
  9. Makefile:332: recipe for target 'qdbusxml2cpp.o' failed
  10. make[2]: *** [qdbusxml2cpp.o] Error 1
  11. make[2]: Leaving directory '/root/dde-qt-dbus-factory/build/tools/qdbusxml2cpp'
  12. Makefile:42: recipe for target 'sub-qdbusxml2cpp-make_first' failed
  13. make[1]: *** [sub-qdbusxml2cpp-make_first] Error 2
  14. make[1]: Leaving directory '/root/dde-qt-dbus-factory/build/tools'
  15. Makefile:43: recipe for target 'sub-tools-make_first' failed
  16. make: *** [sub-tools-make_first] Error 2
Copy the Code


Can someone help me?
Thx to all.
Reply Favorite View the author
All Replies
raistlin84
deepin
2017-10-09 17:04
#1
I've successfully built dde-qt-dbus-factory but now compiling dtkwidget I got sever error like this:
  1. /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:144:49: note:   template argument deduction/substitution failed:
  2. In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:74:0,
  3.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37,
  4.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41,
  5.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40,
  6.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qthread.h:37,
  7.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QThread:1,
  8.                  from ../../src/util/dthumbnailprovider.h:21,
  9.                  from ../../src/util/dthumbnailprovider.cpp:18:
  10. /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:103:5: note:   â€˜const QMimeType’ is not derived from ‘const QPair’
  11.      Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
  12.      ^
  13. In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:39:0,
  14.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:39,
  15.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QFileInfo:1,
  16.                  from ../../src/util/dthumbnailprovider.h:22,
  17.                  from ../../src/util/dthumbnailprovider.cpp:18:
  18. /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:102:34: note: candidate: template uint qHash(const T&, uint)
  19. template inline uint qHash(const T &t, uint seed)
  20.                                   ^
  21. /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:102:34: note:   template argument deduction/substitution failed:
  22. In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:74:0,
  23.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37,
  24.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41,
  25.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40,
  26.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qthread.h:37,
  27.                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QThread:1,
  28.                  from ../../src/util/dthumbnailprovider.h:21,
  29.                  from ../../src/util/dthumbnailprovider.cpp:18:
  30. /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:103:5: note:   candidate expects 2 arguments, 1 provided
  31.      Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
  32.      ^
  33. Makefile:1866: recipe for target 'dthumbnailprovider.o' failed
  34. make[1]: *** [dthumbnailprovider.o] Error 1
  35. make[1]: Leaving directory '/root/dtkwidget/build/src'
  36. Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
  37. make: *** [sub-src-make_first-ordered] Error 2
Copy the Code
Reply View the author
raistlin84
deepin
2017-10-09 19:49
#2
Ok, now I'm using QT 5.7.1, no more 5.5.1, and actually it's compiling without issue.
Reply View the author
zhangjide
deepin
2017-10-09 20:03
#3
See the "debian/control" file,Install or build all "Build-Depends"
There are many packages that you need to compile yourself manually(Compile the latest tag)
Reply View the author