Jump to content
funtoo forums
  • 0
Sign in to follow this  
causes

Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)

Question

I'm trying to write ebuild for screencloud[1]. I have already dependencies solved and with source the configuration succeeds:

 

Found PythonLibs: /usr/lib64/libpython2.7.so (found version "2.7.8")

 

While emerging the ebuild i get this error:

 

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "2.6")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPythonLibs.cmake:210 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:222 (find_package)

 

Here is the current ebuild:

 

# Distributed under the terms of the GNU General Public License v2

EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )

inherit cmake-utils python-r1

DESCRIPTION="screenshot sharing tool"
HOMEPAGE="https://github.com/olav-st/screencloud"
SRC_URI="https://github.com/olav-st/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="
        dev-libs/quazip
        x11-libs/libqxt
        dev-python/PyQtMobility
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}/${PN}"

 

How can i fix the python configure step?

 

[1] https://github.com/olav-st/screencloud

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I got it fixed with:

src_configure(){
        python_foreach_impl cmake-utils_src_configure
}

 

But now it fails like this:

 

In file included from /var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud/src/audionotifier
.cpp:15:0:
/var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud/src/audionotifier.h:19:24: fatal error:
 QAudioOutput: No such file or directory
 #include <QAudioOutput>
                        ^
compilation terminated.
CMakeFiles/screencloud.dir/build.make:930: recipe for target 'CMakeFiles/screencloud.dir/src/audionotifier.cpp.o' faile
d
make[2]: *** [CMakeFiles/screencloud.dir/src/audionotifier.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud/src/systemtrayico
n.h:40:0,
                 from /var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud/src/systemtrayico
n.cpp:15:
/var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud/src/audionotifier.h:19:24: fatal error:
 QAudioOutput: No such file or directory
 #include <QAudioOutput>
                        ^
compilation terminated.
CMakeFiles/screencloud.dir/build.make:907: recipe for target 'CMakeFiles/screencloud.dir/src/systemtrayicon.cpp.o' fail
ed
make[2]: *** [CMakeFiles/screencloud.dir/src/systemtrayicon.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud-python2_7'
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/screencloud.dir/all' failed
make[1]: *** [CMakeFiles/screencloud.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-gfx/screencloud-1.1.6/work/screencloud-1.1.6/screencloud-python2_7'
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

 

:-(

Share this post


Link to post
Share on other sites
  • 0

You can try:

eselect python set python2.7

prior to the emerge.  Then remember to set it back to 3.3 when finished.

 

Else you might try python-updater, never hurts, often fixes obscure python-related problems.

Some ebuilds just don't automatically select the right version, I had that problem with compiz.  Solved with this:

pkg_setup() {
python_set_active_version 2
}

And then you have to add python to the INHERIT line.

Just shots in the dark you understand, not saying I know the problem.  Onnea

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...