Article 5841Q [SOLVED] linphone cmake / qt5 / python compilation environment on slackware

[SOLVED] linphone cmake / qt5 / python compilation environment on slackware

by
slac-in-the-box
from LinuxQuestions.org on (#5841Q)
Hello Slackware Forum

I use linphone everyday, and the slackbuild for it now fails. So while I wait for a response from the slackbuild maintainer, I thought I would try to build an updated more recent version of linphone-desktop for slackware.

Reading the documentation, step 2 of "Set your environment" says

Quote:
You have to set the environment variable Qt5_DIR to point to the path containing the cmake folders of Qt5, and the PATH to the Qt5 bin. Example:
Qt5_DIR="~/Qt/5.12.5/gcc_64/lib/cmake"
PATH="~/Qt/5.12.5/gcc_64/bin/:$PATH"
Where are these "cmake folders of qt5 in slackware64-current's install of qt5-5.15.1?

I did find this folder: /usr/lib64/qt5/mkspecs/features/data/cmake ,and exported it as the value of Qt5_DIR, and used /usr/lib64/qt5/bin for the value of PATH

I made a build directory and changed directories to it. I accepted the default options with "cmake .."

And then, when trying "cmake --build . --target all" it says "Configuring Incomplete, errors occurred", and reports "'pystache' python module not found", even though, I had already performed "pip install pystache"...

Oh... that was because pystache got configured for python3, but the linphone build tried to use python2.

I changed the symbolic link in /usr/bin for python to point to python3.8 instead of python2.7, and then:

it worked :)

Case closed before even finishing the post... but I'll post it anyways, in case it helps someone somewhere sometime.latest?d=yIl2AUoC8zA latest?i=EPpzizTfqZI:rAskTWXF4Gc:F7zBnMy latest?i=EPpzizTfqZI:rAskTWXF4Gc:V_sGLiP latest?d=qj6IDK7rITs latest?i=EPpzizTfqZI:rAskTWXF4Gc:gIN9vFwEPpzizTfqZI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments