[opensuse-factory] Qt in KDE:Qt problems
Hi, listmates, Recently I updated my 12.3 to K:R:411 with all of its Qt packages. (The Qt related packages in 411 are aggregated from KDE:Qt project) Then I need to local build some stuff. https://github.com/csslayer/kmoefm But cmake fails at a simple: find_package(KDE4 required) and suspect: CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1294 (message): Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation (try passing --reduce-exports to configure). /usr/share/cmake/Modules/FindKDE4.cmake:95 (find_package) CMakeLists.txt:6 (find_package) which is not true. Because our Qt did compiled with that gcc-c++ flag. https://build.opensuse.org/package/rawlog/KDE:Qt/libqt4/openSUSE_12.3/x86_64 (grep "-fvisibility=hidden") Futher, in build/CMakeFiles/CMakeError.log: error: ‘Q_WS_WIN’ undeclared (first use in this function) error: ‘Q_WS_QWS’ undeclared (first use in this function) error: ‘Q_WS_MAC’ undeclared (first use in this function) undefined reference: ‘pthread_create’ cannot find -lpthreads which is really weird, because Q_WS_* is the basic env test for any Qt...and pthread is a basic Linux function coming from glibc-devel installed. But... I make a package on OBS: https://build.opensuse.org/package/show/home:MargueriteSu/kmoefm download the 12.3 srpm, `rpmbuild --rebuild` it, no problem at all. I think the rebuild environment is exactly the same environment of your local build while now the outputs are different. Can any experienced guys with 12.3 & 411 please cmake the `kmoefm` project and examine what happened? Greetings Marguerite -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Marguerite Su writes:
error: ‘Q_WS_WIN’ undeclared (first use in this function) error: ‘Q_WS_QWS’ undeclared (first use in this function) error: ‘Q_WS_MAC’ undeclared (first use in this function) undefined reference: ‘pthread_create’ cannot find -lpthreads
which is really weird, because Q_WS_* is the basic env test for any Qt...and pthread is a basic Linux function coming from glibc-devel installed.
But not in -lpthreads. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, Andreas,
On Tue, Aug 27, 2013 at 5:55 PM, Andreas Schwab
which is really weird, because Q_WS_* is the basic env test for any Qt...and pthread is a basic Linux function coming from glibc-devel installed.
But not in -lpthreads.
You mean...I have to uninstall gblic-devel? Or...? Marguerite -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tuesday 2013-08-27 12:12, Marguerite Su wrote:
Hi, Andreas,
On Tue, Aug 27, 2013 at 5:55 PM, Andreas Schwab
wrote: which is really weird, because Q_WS_* is the basic env test for any Qt...and pthread is a basic Linux function coming from glibc-devel installed.
But not in -lpthreads.
You mean...I have to uninstall gblic-devel? Or...?
Or just typing in the proper library name. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Jan Engelhardt
-
Marguerite Su