This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with QT to compile

Tags: None
(comma "," separated)
zilion
Registered Member
Posts
2
Karma
0

Problem with QT to compile

Tue Jun 28, 2016 10:57 pm
I'm using FreeBSD, displays error when compiling ...
This message: Could NOT find QTCore. (Yes, I have all coreslib and others)

System information:
FreeBSD 11-Current amd64
KDE Plasma 5

CMAKE Log Error:
Determining if the Q_WS_X11 exist failed with the following output:
Change Dir: /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/gmake" "cmTC_2a76a/fast"
gmake[5]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_2a76a.dir/build.make CMakeFiles/cmTC_2a76a.dir/build
gmake[6]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2a76a.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/local/include/qt5 -O2 -pipe -march=sandybridge -fstack-protector -fno-strict-aliasing -o CMakeFiles/cmTC_2a76a.dir/CheckSymbolExists.c.o -c /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'Q_WS_X11'
return ((int*)(&Q_WS_X11))[argc];
^
1 error generated.
gmake[6]: *** [CMakeFiles/cmTC_2a76a.dir/build.make:66: CMakeFiles/cmTC_2a76a.dir/CheckSymbolExists.c.o] Error 1
gmake[6]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
gmake[5]: *** [Makefile:126: cmTC_2a76a/fast] Error 2
gmake[5]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'

File /usr/ports/x11/kgamma/work/.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: /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/gmake" "cmTC_8895a/fast"
gmake[5]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_8895a.dir/build.make CMakeFiles/cmTC_8895a.dir/build
gmake[6]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8895a.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/local/include/qt5 -O2 -pipe -march=sandybridge -fstack-protector -fno-strict-aliasing -o CMakeFiles/cmTC_8895a.dir/CheckSymbolExists.c.o -c /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'Q_WS_WIN'
return ((int*)(&Q_WS_WIN))[argc];
^
1 error generated.
gmake[6]: *** [CMakeFiles/cmTC_8895a.dir/build.make:66: CMakeFiles/cmTC_8895a.dir/CheckSymbolExists.c.o] Error 1
gmake[6]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
gmake[5]: *** [Makefile:126: cmTC_8895a/fast] Error 2
gmake[5]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'

File /usr/ports/x11/kgamma/work/.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: /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/gmake" "cmTC_b5555/fast"
gmake[5]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_b5555.dir/build.make CMakeFiles/cmTC_b5555.dir/build
gmake[6]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b5555.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/local/include/qt5 -O2 -pipe -march=sandybridge -fstack-protector -fno-strict-aliasing -o CMakeFiles/cmTC_b5555.dir/CheckSymbolExists.c.o -c /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'Q_WS_QWS'
return ((int*)(&Q_WS_QWS))[argc];
^
1 error generated.
gmake[6]: *** [CMakeFiles/cmTC_b5555.dir/build.make:66: CMakeFiles/cmTC_b5555.dir/CheckSymbolExists.c.o] Error 1
gmake[6]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
gmake[5]: *** [Makefile:126: cmTC_b5555/fast] Error 2
gmake[5]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'

File /usr/ports/x11/kgamma/work/.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: /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/gmake" "cmTC_8ace4/fast"
gmake[5]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_8ace4.dir/build.make CMakeFiles/cmTC_8ace4.dir/build
gmake[6]: Entering directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8ace4.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/local/include/qt5 -O2 -pipe -march=sandybridge -fstack-protector -fno-strict-aliasing -o CMakeFiles/cmTC_8ace4.dir/CheckSymbolExists.c.o -c /usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'Q_WS_MAC'
return ((int*)(&Q_WS_MAC))[argc];
^
1 error generated.
gmake[6]: *** [CMakeFiles/cmTC_8ace4.dir/build.make:66: CMakeFiles/cmTC_8ace4.dir/CheckSymbolExists.c.o] Error 1
gmake[6]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'
gmake[5]: *** [Makefile:126: cmTC_8ace4/fast] Error 2
gmake[5]: Leaving directory '/usr/ports/x11/kgamma/work/.build/CMakeFiles/CMakeTmp'

File /usr/ports/x11/kgamma/work/.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
}



All packages are installed. QT 4 and QT 5 (Full)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar