View previous topic :: View next topic |
Author |
Message |
Reiner6 n00b
Joined: 14 Aug 2016 Posts: 35
|
Posted: Tue Nov 21, 2017 5:35 pm Post subject: Problem with Freecad |
|
|
So i've been trying to install freecad for a while, but i always get this error and i haven't been able to fin what to do next
Code: | [ 45%] Built target FreeCADGui
make[1]: Leaving directory '/var/tmp/portage/media-gfx/freecad-0.16.6712/work/freecad-0.16.6712_build'
make: *** [Makefile:128: all] Error 2
* ERROR: media-gfx/freecad-0.16.6712::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-gfx/freecad-0.16.6712::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/freecad-0.16.6712::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-gfx/freecad-0.16.6712/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/freecad-0.16.6712/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/freecad-0.16.6712/work/freecad-0.16.6712_build'
* S: '/var/tmp/portage/media-gfx/freecad-0.16.6712/work/FreeCAD-0.16.6712'
>>> Failed to emerge media-gfx/freecad-0.16.6712, Log file:
>>> '/var/tmp/portage/media-gfx/freecad-0.16.6712/temp/build.log'
* Messages for package media-gfx/freecad-0.16.6712:
* ERROR: media-gfx/freecad-0.16.6712::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-gfx/freecad-0.16.6712::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/freecad-0.16.6712::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-gfx/freecad-0.16.6712/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/freecad-0.16.6712/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/freecad-0.16.6712/work/freecad-0.16.6 |
here is the info on my build, if anyone can help me i will appreciate it
https://paste.pound-python.org/show/Qvwfmykx5KdLTeDLRO5H/ |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30885 Location: here
|
Posted: Tue Nov 21, 2017 5:43 pm Post subject: |
|
|
You should post also /var/tmp/portage/media-gfx/freecad-0.16.6712/temp/build.log _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
radio_flyer Guru
Joined: 04 Nov 2004 Posts: 317 Location: Northern California
|
Posted: Tue Nov 21, 2017 5:47 pm Post subject: |
|
|
Honestly, I'm not sure FreeCAD should even be in the tree. During those rare times when I can actually get the package to compile I find that later it segfaults regularly during runtime. The source code for FreeCAD is still very much at a beta level of development and needs to be treated as such. When I run applications like that I find it best to simply download and compile the latest tarballs myself, with full debugging turned on, and to be prepared to send plenty of bug reports, backtraces and patches back upstream.
As for the actual issue you're running into, you'll need to post more information such as the build log. |
|
Back to top |
|
|
Reiner6 n00b
Joined: 14 Aug 2016 Posts: 35
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30885 Location: here
|
Posted: Tue Nov 21, 2017 5:56 pm Post subject: |
|
|
Code: | # Andreas Sturmlechner <asturm@gentoo.org> (16 Nov 2017)
# Depends on dead Qt4WebKit. Masked for removal in 30 days. Bug #620702
<media-gfx/freecad-0.17 |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Tue Nov 21, 2017 6:26 pm Post subject: |
|
|
Code: | ../../lib/libFreeCADApp.so: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../lib/libFreeCADApp.so: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'
collect2: error: ld returned 1 exit status
|
These errors are most commonly due to not recompiling the system when switching to gcc-5; in this case looks like boost wasn't compiled (among more likely several others). |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30885 Location: here
|
Posted: Tue Nov 21, 2017 6:50 pm Post subject: |
|
|
ct85711 is right. But remeber to copy ebuild in your local overlay because in 30 days package will be dropped from official portage tree _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Reiner6 n00b
Joined: 14 Aug 2016 Posts: 35
|
Posted: Tue Nov 21, 2017 8:41 pm Post subject: |
|
|
so now the version i get is not freecad-0.16.6712 but freecad-9999, i read the bug report, and not sure what's going on other than 0.17 will fix the issue with qt4, but other than that no idea where to go next
buildlog:
https://paste.pound-python.org/show/gfNRbMhfOP4nLsXn2Bb5/ |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8935
|
Posted: Tue Nov 21, 2017 8:51 pm Post subject: |
|
|
No freecad version currently in tree is going to survive. 0.17 would theoretically be able to stay but that is not out yet and live does not build at all anyway. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30885 Location: here
|
Posted: Tue Nov 21, 2017 8:52 pm Post subject: |
|
|
No version 9999 ebuild depend again to qt4 but freecad git version is ready for qt5 (indeed exist a AUR package for freecad qt5) _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Tue Nov 21, 2017 9:49 pm Post subject: |
|
|
Quote: | -- Check for medfile (libmed and libmedc) ...
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find MEDFile (missing: MEDFILE_INCLUDE_DIRS MEDFILE_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cMake/FindMEDFile.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:712 (find_package)
|
Doing a quick search on the error message, I found this forum post for freecad indicating what is wrong (missing dependency).
https://forum.freecadweb.org/viewtopic.php?t=17986
In short, the dependency that is missing, is that you need libmed (not available in portage, but found a could instances of in some overlays). |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30885 Location: here
|
Posted: Wed Nov 22, 2017 6:51 am Post subject: |
|
|
ct85711 wrote: | In short, the dependency that is missing, is that you need libmed (not available in portage, but found a could instances of in some overlays). |
In sci overlay is present _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
JackHunt n00b
Joined: 21 Aug 2016 Posts: 47 Location: Oxfordshire, England
|
Posted: Wed Nov 22, 2017 8:32 pm Post subject: |
|
|
radio_flyer wrote: | Honestly, I'm not sure FreeCAD should even be in the tree. During those rare times when I can actually get the package to compile I find that later it segfaults regularly during runtime. The source code for FreeCAD is still very much at a beta level of development and needs to be treated as such. When I run applications like that I find it best to simply download and compile the latest tarballs myself, with full debugging turned on, and to be prepared to send plenty of bug reports, backtraces and patches back upstream.
As for the actual issue you're running into, you'll need to post more information such as the build log. |
I second this. I never did manage to get the thing to build properly. Maybe there should be an ebuild for the binary version that they distribute on their website.
I may make one actually, now I think of it. |
|
Back to top |
|
|
sprino n00b
Joined: 04 Feb 2018 Posts: 8 Location: Italy
|
Posted: Sun Feb 04, 2018 4:32 pm Post subject: |
|
|
Hello,
i also have a problem installing freecad.
I should still study a lot of portage and the gentoo system ...
what hce i did was give this command:
Code: | emerge --ask freecad |
and this is the result:
Code: | emerge: there are no ebuilds to satisfy "dev-qt/qtwebkit:4".
(dependency required by "media-gfx/freecad-9999::gentoo" [ebuild])
(dependency required by "freecad" [argument]) |
I also tried to give the command --autounmask-write and dispatch-conf but the result is always the same.
Thanks so much,
Rino. _________________ Theory is when everything is known and nothing works. The practice is when everything works and nobody knows why. We have put together the theory and the practice: there is nothing that works ... and nobody knows why!
A.Einstein. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8935
|
Posted: Sun Feb 04, 2018 4:35 pm Post subject: |
|
|
freecad is currently hardmasked in tree with qtwebkit:4 dependency unsatisfied since it was removed from tree.
Your only hope is work towards porting to qt5; https://bugs.gentoo.org/622726 |
|
Back to top |
|
|
sprino n00b
Joined: 04 Feb 2018 Posts: 8 Location: Italy
|
Posted: Sun Feb 04, 2018 5:32 pm Post subject: |
|
|
Ok,
so it fails to satisfy dependency because freecad uses qt4 while gentoo has only qt5.
So I should tell my system to import qt4, and the link you sent me explains this bug and the resolution is in the following file:
[*] modified ebuild to build freecad with qt-5
How can I apply this change?
Can you give me some guidance?
Forgive my ignorance...
Thanks so much,
Rino. _________________ Theory is when everything is known and nothing works. The practice is when everything works and nobody knows why. We have put together the theory and the practice: there is nothing that works ... and nobody knows why!
A.Einstein. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8935
|
Posted: Fri Mar 02, 2018 10:35 pm Post subject: |
|
|
0.17_pre-r1 was patched to build without Qt4Webkit, please test. |
|
Back to top |
|
|
jserink Veteran
Joined: 30 Jan 2004 Posts: 1008
|
Posted: Thu Mar 22, 2018 8:47 am Post subject: |
|
|
ct85711 wrote: | Code: | ../../lib/libFreeCADApp.so: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../lib/libFreeCADApp.so: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'
collect2: error: ld returned 1 exit status
|
These errors are most commonly due to not recompiling the system when switching to gcc-5; in this case looks like boost wasn't compiled (among more likely several others). |
Good tip!
Just building freecad_0.17_pre-r1 and got a similar error but had not rebuilt boost or boost-build since moving to gcc 6. Did so and freecad built fine.
Thank for that.
Cheers,
John |
|
Back to top |
|
|
|