Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeCAD fails to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Mon Oct 21, 2013 3:09 am    Post subject: FreeCAD fails to emerge Reply with quote

Attempting to emerge freecad eventually results in the following compile error:

Code:

/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/FreeCAD-0.12.5284/src/Mod/Part/App/TopoShapeSolidPyImp.cpp:107:17: error: 'OuterShell' is not a member of           'BRepTools'
make[2]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/TopoShapeSolidPyImp.cpp.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build'
make[1]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs..../usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build/        CMakeFiles


I am using gcc (Gentoo 4.7.3 p1.2, pie-0.5.5) 4.7.3 and ~amd64 in make.conf.
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Mon Oct 21, 2013 6:51 am    Post subject: Reply with quote

What version of opencascade have you installed and selected?
Maybe try to install freecad-0.13.1830.ebuild
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Mon Oct 21, 2013 5:32 pm    Post subject: Reply with quote

slis wrote:
What version of opencascade have you installed and selected?
Maybe try to install freecad-0.13.1830.ebuild


Code:

$ equery list opencascade
 * Searching for opencascade ...
[IP-] [  ] sci-libs/opencascade-6.6.0:6.6.0


I will try freecad-0.13.1830.ebuild.
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Tue Oct 22, 2013 7:53 pm    Post subject: Reply with quote

I get the following problem when I try to emerge freecad-0.13.1830:

Code:

--2013-10-22 21:30:53--  http://doc.coin3d.org/Coin/coin.tag
Resolving doc.coin3d.org... 88.87.56.183
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:33:01--  (try: 2)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:35:11--  (try: 3)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:37:21--  (try: 4)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:39:32--  (try: 5)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:41:45--  (try: 6)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

--2013-10-22 21:43:58--  (try: 7)  http://doc.coin3d.org/Coin/coin.tag
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: Connection timed out.
Retrying.

...


I've tried to use mirrorselect to use a different mirror, but this server seems to be chosen independently of the MIRROR variable.
Back to top
View user's profile Send private message
wazoo42
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 165

PostPosted: Tue Oct 22, 2013 8:26 pm    Post subject: Reply with quote

It appears that coin3d docs are stored elsewhere now. I had to get the coin.tag.gz from an ubuntu install, copy it over, and then find out that it was just a modified install directory. I band-aided this with a symlink.

Code:

ln -s /usr/share/doc/coin-3.1.3-r2 /usr/share/doc/libcoin60-doc


Sadly, this doesn't get me terribly far as I still get errors from git and lots from cmake regarding qt libraries (both listed in bugs.gentoo.org).
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1234
Location: Burgas, Bulgaria

PostPosted: Sun Nov 03, 2013 1:50 am    Post subject: Reply with quote

wazoo42,

Thx for explaining coin3d part. That was my only problem. The rest is simple.
Btw you don't need install anything from Ubuntu. Just do: emerge --ask coin

First you have to build Opencascade Community Edition:

Code:
#!/bin/sh

env-update && source /etc/profile

cd /ptg/tmp
git clone git://github.com/tpaviot/oce oce

cd /ptg/tmp/oce
cmake .
make

find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

make install


then FreeCAD itself:
Code:
#!/bin/sh

env-update && source /etc/profile

cd /ptg/tmp
git clone git://git.code.sf.net/p/free-cad/code free-cad-code

emerge --keep-going -N dev-lang/python dev-util/cmake sys-apps/findutils \
freetype sys-libs/zlib virtual/fortran dev-libs/boost dev-lang/swig dev-qt/qtgui \
dev-qt/qtopengl dev-qt/qtsvg dev-qt/qtwebkit dev-qt/qtxmlpatterns \
dev-python/PyQt4 dev-cpp/eigen dev-games/ode dev-libs/xerces-c dev-python/pivy \
media-libs/coin media-libs/SoQt app-admin/eselect-python

ln -s /usr/share/doc/coin-3.1.3-r2 /usr/share/doc/libcoin60-doc
export COIN3D_INCLUDE_DIR=/usr/include/coin

cd /ptg/tmp/free-cad-code
cmake .               
make                   

find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

make install


and that is it.

P.S. If COIN3D_INCLUDE_DIR is still undefined set it directly in CMakeCache.txt

P.P.S. Now the question how to make package out of it and install like any other program.
_________________
Lefsha
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Mon Nov 04, 2013 6:32 am    Post subject: Reply with quote

That may be a good idea to prepare opencascade-oce ebuild. How do you think?
Back to top
View user's profile Send private message
lefsha
Veteran
Veteran


Joined: 30 Aug 2004
Posts: 1234
Location: Burgas, Bulgaria

PostPosted: Mon Nov 04, 2013 9:48 pm    Post subject: Reply with quote

No doubt it will be great!

Also it will be good if already existing ebuilds would at least be able to compile itself.
Unfortunately that status is not reached yet for many of them.

Personally I have a problem to talk to developers, as we speak totally different languages.
That is why I don't suggest anything any more.

Despite that Gentoo is still on of the very few distros one can use.
That number is reducing almost every single release of systemd or others absolutely necessary
packages. So I am very thankful for what we do have here.
_________________
Lefsha
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Mon Dec 02, 2013 8:08 am    Post subject: Reply with quote

Please take a look and check if it's working for you.

https://bugs.gentoo.org/show_bug.cgi?id=493104

Thanks!
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3120

PostPosted: Thu Jan 16, 2014 2:07 pm    Post subject: Reply with quote

I'm too trying to get freecad. And here's what I get:

Code:
--// snip //--
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build/CMakeFiles  17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
[ 44%] Built target FreeCADGui
make[1]: Leaving directory `/var/tmp/portage/media-gfx/freecad-0.12.5284-r3/work/freecad-0.12.5284_build'
make: *** [all] Error 2
 * ERROR: media-gfx/freecad-0.12.5284-r3::gentoo failed (compile phase):
 *   emake failed

Logs to which emerge points me are huge, but don't show me any obvious reason for failure.

package.accept_keywords snippet:
Code:

# required by media-gfx/freecad-0.12.5284-r3
# required by freecad (argument)
=sci-libs/gts-20121130 ~amd64
# required by dev-python/pivy-0.5_alpha20110303-r1
# required by media-gfx/freecad-0.12.5284-r3
# required by freecad (argument)
=media-libs/SoQt-1.5.0-r1 ~amd64
# required by freecad (argument)
=media-gfx/freecad-0.12.5284-r3 ~amd64
# required by media-gfx/freecad-0.12.5284-r3
# required by freecad (argument)
=dev-python/pivy-0.5_alpha20110303-r1 ~amd64
# required by sci-libs/opencascade-6.6.0
# required by media-gfx/freecad-0.12.5284-r3
# required by freecad (argument)
=app-admin/eselect-opencascade-0 ~amd64
# required by media-gfx/freecad-0.12.5284-r3
# required by freecad (argument)
=sci-libs/opencascade-6.6.0 ~amd64


emerge --info
Code:
emerge --info '=media-gfx/freecad-0.12.5284-r3::gentoo'
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     7661056 total,   2939736 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 16 Jan 2014 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mcx16 -mpopcnt -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mcx16 -mpopcnt -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=7"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss emerald encode exif fam firefox flac fortran gdbm gif gpm gtk iconv imagemagick ipv6 jingle jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session smp spell sse sse2 sse4a ssl startup-notification svg tcpd test-programs tiff truetype udev udisks unicode upower usb v4l video vorbis wxwidgets x264 xcb xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

any ideas?

Also, freecad 0.13 is masked with **, what does this mark mean? I don't see this particular mask in handbook
Back to top
View user's profile Send private message
gcyoung
Apprentice
Apprentice


Joined: 04 Jul 2007
Posts: 170
Location: England

PostPosted: Tue Apr 22, 2014 9:09 pm    Post subject: Freecad failure Reply with quote

In case any of the above are still wanting to install freecad I am posting the following:

I have also spent hours trying to sort out the gentoo problems without success; and wonder if anyone has ever managed to emerge Freecad on Gentoo?

Anyway, I have ended up installing Caelinux on a separate partition. It took about 1/2 hour to do, without any problems, and contains many other modelling, etc., tools besides Freecad.

It's all open source and still developing.
Back to top
View user's profile Send private message
coolparadox
n00b
n00b


Joined: 28 May 2014
Posts: 8
Location: Brazil

PostPosted: Wed May 28, 2014 2:28 am    Post subject: Reply with quote

freecad-0.13.1830-r1 fails to emerge if dev-qt/designer is not installed; build.log snippet (in systems with portage configured for multiple build jobs this failure may be buried somewhere far from log's tail):

Code:
...
In file included from /tmp/portage/media-gfx/freecad-0.13.1830-r1/work/freecad-0.13.1830/src/Gui/Application.cpp:65:0:
/tmp/portage/media-gfx/freecad-0.13.1830-r1/work/freecad-0.13.1830/src/Gui/WidgetFactory.h:28:21: fatal error: QUiLoader: No such file or directory
compilation terminated.
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/Application.cpp.o] Error 1
make[2]: Leaving directory `/tmp/portage/media-gfx/freecad-0.13.1830-r1/work/freecad-0.13.1830_build'
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
...


With dev-qt/designer-4.8.5 installed, I managed to successfully emerge media-gfx/freecad-0.13.1830-r1.

Keywords for dependencies:

Code:
$ equery depgraph -A =media-gfx/freecad-0.13.1830-r1
 * Searching for freecad0.13.1830-r1 in media-gfx ...

 * dependency graph for media-gfx/freecad-0.13.1830-r1
 `--  media-gfx/freecad-0.13.1830-r1  ~amd64
   `--  dev-cpp/eigen-3.0.6  amd64
   `--  dev-games/ode-0.12  amd64
   `--  dev-libs/boost-1.52.0-r6  amd64
   `--  dev-libs/libf2c-20110801-r3  amd64
   `--  dev-libs/libspnav-0.2.2  amd64  [X]
   `--  dev-libs/xerces-c-3.1.1-r1  amd64  [icu]
   `--  dev-python/matplotlib-1.3.0  amd64
   `--  dev-qt/qtgui-4.8.5-r1  amd64
   `--  dev-qt/qtopengl-4.8.5  amd64
   `--  dev-qt/qtsvg-4.8.5  amd64
   `--  dev-qt/qtwebkit-4.8.5  amd64
   `--  dev-qt/qtxmlpatterns-4.8.5  amd64
   `--  media-libs/SoQt-1.5.0-r1  [~amd64 keyword]
   `--  media-libs/coin-3.1.3-r2  amd64  [doc]
   `--  sci-libs/gts-20121130  [~amd64 keyword]
   `--  sci-libs/opencascade-6.7.0  [~amd64 keyword]
   `--  sys-libs/zlib-1.2.8-r1  amd64
   `--  virtual/glu-9.0-r1  amd64
   `--  dev-lang/python-2.6.8-r3  amd64
   `--  dev-lang/python-2.7.5-r3  amd64
   `--  dev-lang/python-exec-2.0.1-r1  amd64  [python_targets_python2_6(-)? python_targets_python2_7(-)? python_single_target_python2_6(+)? python_single_target_python2_7(+)?]
   `--  dev-lang/swig-2.0.9  amd64
   `--  sys-devel/make-3.82-r4  amd64
   `--  dev-util/cmake-2.8.12.2  amd64
   `--  sys-apps/findutils-4.4.2-r1  amd64
   `--  virtual/fortran-0  amd64
   `--  dev-qt/assistant-4.8.5  amd64
   `--  dev-python/pycollada-9999  [missing keyword]
   `--  dev-python/pivy-9999  [missing keyword]
   `--  dev-python/PyQt4-4.10.3-r2  amd64  [svg]
   `--  dev-python/pyopencl-9999  [missing keyword]
   `--  dev-python/numpy-1.8.0-r1  amd64
[ media-gfx/freecad-0.13.1830-r1 stats: packages (33), max depth (1) ]


My use flags:
Code:
$ cat /etc/portage/package.use/freecad
media-libs/coin doc threads
sys-devel/llvm clang video_cards_radeon
dev-libs/boost python threads
media-libs/mesa opencl
dev-libs/xerces-c threads
Back to top
View user's profile Send private message
greyspoke
Apprentice
Apprentice


Joined: 08 Jan 2010
Posts: 171

PostPosted: Fri May 30, 2014 7:37 am    Post subject: Reply with quote

Yay! this worked for me too.

You should file a bug for it.
Back to top
View user's profile Send private message
gcyoung
Apprentice
Apprentice


Joined: 04 Jul 2007
Posts: 170
Location: England

PostPosted: Fri May 30, 2014 10:29 am    Post subject: FreeCad Reply with quote

I did manage to get FreeCad installed with Gentoo eventually. I can only guess that it worked because I installed the dependencies in a different order. However, I found later that LibreCad in conjunction with Blender suited me better!
Back to top
View user's profile Send private message
coolparadox
n00b
n00b


Joined: 28 May 2014
Posts: 8
Location: Brazil

PostPosted: Fri Jun 13, 2014 7:22 pm    Post subject: Reply with quote

greyspoke wrote:
Yay! this worked for me too.

You should file a bug for it.


https://bugs.gentoo.org/show_bug.cgi?id=513148 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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