Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Qt4 cmake module - problems with freecad
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
widlokm
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2007
Posts: 75
Location: Poland

PostPosted: Thu Apr 12, 2018 1:02 pm    Post subject: [Solved] Qt4 cmake module - problems with freecad Reply with quote

Hello,
I'm trying to do a local build of freecad-0.17 on my PC and I'm completely lost with cmake Qt configuration.
I have qt:4 installed and I am trying to configure freecad with ccmake to use Qt4. The problem is that ccmake complains about Qt4 libraries not found (function find_package(Qt4) in CMakeLists.txt). However when I prepare ebuild for stable freecad-0.17 in local portage overlay (that also use Qt4) it builds OK.

What "magic" ebuilds use to point cmake to right Qt version? Directory /usr/lib/cmake/Qt5 exist, cmake/Qt4 does not, but this does not stop ebuild from working correctly. Ebuild uses "cmake-utils_src_configure" function, is this the key? And how can I do it myself?

Thank You,
Michael Widlok


Last edited by widlokm on Mon Apr 16, 2018 6:55 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30908
Location: here

PostPosted: Thu Apr 12, 2018 1:07 pm    Post subject: Reply with quote

https://harishnavnit.wordpress.com/2014/03/24/handling-multiple-versions-of-qt/
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
widlokm
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2007
Posts: 75
Location: Poland

PostPosted: Mon Apr 16, 2018 6:59 am    Post subject: Reply with quote

Thank You fedeliallalinea, it worked.
What surprise mi most is that I've spent some time on looking for the solution, while never fount this article...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum