tetzank / qmenu_hud

a small menu search program, similar to Unity's HUD
Other
45 stars 3 forks source link

CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message): A required package was not found #8

Closed edouard-lopez closed 6 years ago

edouard-lopez commented 7 years ago

related to #7

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: -std=c++11;-Wl,--as-needed
Id flags: 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: -std=c++11;-Wl,--as-needed
Id flags: -c

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: -std=c++11;-Wl,--as-needed
Id flags: 

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: -std=c++11;-Wl,--as-needed
Id flags: -c

The output was:
No such file or directory

Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /data/apps/qmenu_hud/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e3a64/fast"
/usr/bin/make -f CMakeFiles/cmTC_e3a64.dir/build.make CMakeFiles/cmTC_e3a64.dir/build
make[1]: Entering directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e3a64.dir/CheckSymbolExists.cxx.o
/usr/bin/c++    -I/usr/include/qt4  -std=c++11 -Wl,--as-needed    -o CMakeFiles/cmTC_e3a64.dir/CheckSymbolExists.cxx.o -c /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_WIN’ was not declared in this scope
   return ((int*)(&Q_WS_WIN))[argc];
                   ^
CMakeFiles/cmTC_e3a64.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e3a64.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_e3a64.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e3a64/fast' failed
make: *** [cmTC_e3a64/fast] Error 2

File /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_WIN
  return ((int*)(&Q_WS_WIN))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /data/apps/qmenu_hud/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b4729/fast"
/usr/bin/make -f CMakeFiles/cmTC_b4729.dir/build.make CMakeFiles/cmTC_b4729.dir/build
make[1]: Entering directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b4729.dir/CheckSymbolExists.cxx.o
/usr/bin/c++    -I/usr/include/qt4  -std=c++11 -Wl,--as-needed    -o CMakeFiles/cmTC_b4729.dir/CheckSymbolExists.cxx.o -c /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_QWS’ was not declared in this scope
   return ((int*)(&Q_WS_QWS))[argc];
                   ^
CMakeFiles/cmTC_b4729.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b4729.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_b4729.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_b4729/fast' failed
make: *** [cmTC_b4729/fast] Error 2

File /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_QWS
  return ((int*)(&Q_WS_QWS))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /data/apps/qmenu_hud/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_2398c/fast"
/usr/bin/make -f CMakeFiles/cmTC_2398c.dir/build.make CMakeFiles/cmTC_2398c.dir/build
make[1]: Entering directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_2398c.dir/CheckSymbolExists.cxx.o
/usr/bin/c++    -I/usr/include/qt4  -std=c++11 -Wl,--as-needed    -o CMakeFiles/cmTC_2398c.dir/CheckSymbolExists.cxx.o -c /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_MAC’ was not declared in this scope
   return ((int*)(&Q_WS_MAC))[argc];
                   ^
CMakeFiles/cmTC_2398c.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2398c.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_2398c.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/data/apps/qmenu_hud/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_2398c/fast' failed
make: *** [cmTC_2398c/fast] Error 2

File /data/apps/qmenu_hud/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_MAC
  return ((int*)(&Q_WS_MAC))[argc];
#else
  (void)argc;
  return 0;
#endif
}
tetzank commented 6 years ago

Looks like cmake could not find the compiler. The problem in the title of the issue states that it could not find pkgconf which is required to locate libdbusmenu-qt.

I'm still closing this issue as it's very old by now. If you still face problems, make a comment here or open a new issue.