Hi,

I managed to set up my KDE workplace using the kdesrc_build script in the
end. There are still a couple of modules which reported some errors, but
the most important ones as mentioned in the HOWTOs installed successfully.

Now, I'm trying to build a small project with QtCreator to verify whether
everything works or not and I got over another error which I don't know how
to solve or what exactly causes it.

So I cloned the project ktimer because I saw it is pretty small. Then I
followed the steps (
http://techbase.kde.org/Getting_Starte/Using_an_IDE_with_KDE4#QtCreator )
in order to load an existing project in QtCreator and I have the following
CMakeError.log file ( attached ). As far as I know, it doesn't simply find
a couple of variables which should be, I guess, included from some library.

What makes me more confuse is that I have qt installed and I think those
variables are part of its libraries but those compilations doesn't find
them.

Thank you very much!
Determining if the Q_WS_X11 exist failed with the following output:
Change Dir: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2662169773/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2662169773.dir/build.make CMakeFiles/cmTryCompileExec2662169773.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2662169773.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt5    -o CMakeFiles/cmTryCompileExec2662169773.dir/CheckSymbolExists.c.o   -c /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_X11’ undeclared (first use in this function)
   return ((int*)(&Q_WS_X11))[argc];
                   ^
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTryCompileExec2662169773.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2662169773/fast] Error 2

File /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

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

Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3203077664/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3203077664.dir/build.make CMakeFiles/cmTryCompileExec3203077664.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3203077664.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt5    -o CMakeFiles/cmTryCompileExec3203077664.dir/CheckSymbolExists.c.o   -c /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_WIN’ undeclared (first use in this function)
   return ((int*)(&Q_WS_WIN))[argc];
                   ^
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTryCompileExec3203077664.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3203077664/fast] Error 2

File /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#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: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2503831420/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2503831420.dir/build.make CMakeFiles/cmTryCompileExec2503831420.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2503831420.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt5    -o CMakeFiles/cmTryCompileExec2503831420.dir/CheckSymbolExists.c.o   -c /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_QWS’ undeclared (first use in this function)
   return ((int*)(&Q_WS_QWS))[argc];
                   ^
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTryCompileExec2503831420.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2503831420/fast] Error 2

File /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#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: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3865009543/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3865009543.dir/build.make CMakeFiles/cmTryCompileExec3865009543.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3865009543.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt5    -o CMakeFiles/cmTryCompileExec3865009543.dir/CheckSymbolExists.c.o   -c /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_MAC’ undeclared (first use in this function)
   return ((int*)(&Q_WS_MAC))[argc];
                   ^
/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTryCompileExec3865009543.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3865009543/fast] Error 2

File /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#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
}

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3088080610/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3088080610.dir/build.make CMakeFiles/cmTryCompileExec3088080610.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3088080610.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec3088080610.dir/CheckSymbolExists.c.o   -c /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3088080610
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3088080610.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec3088080610.dir/CheckSymbolExists.c.o  -o cmTryCompileExec3088080610 -rdynamic 
CMakeFiles/cmTryCompileExec3088080610.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3088080610] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3088080610/fast] Error 2

File /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

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

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2189963987/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2189963987.dir/build.make CMakeFiles/cmTryCompileExec2189963987.dir/build
make[1]: Entering directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2189963987.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2189963987.dir/CheckFunctionExists.c.o   -c /usr/local/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2189963987
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2189963987.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2189963987.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2189963987 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2189963987] Error 1
make[1]: Leaving directory `/home/calin/kde/src/ktimer-build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2189963987/fast] Error 2


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to