Ubuntu install issues

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Ubuntu install issues

Post by Jee-Bee »

I have now installed ubuntu on my mac (dual boot) and allmost everything is running. I think i have even the FEM working.
There are now two issues

1) most important when i go to the part workbench FreeCAD stops working. i wanna now why but i can't find the log file. Where is placed this??
2) i have tried installed area thing for path module but still freecad can't find him. so probably at the wrong place. what is the location where i have to install the area stuff?

thanks
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu install issues

Post by triplus »

Jee-Bee wrote:I have now installed ubuntu on my mac (dual boot) and allmost everything is running. I think i have even the FEM working.
There are now two issues

1) most important when i go to the part workbench FreeCAD stops working. i wanna now why but i can't find the log file. Where is placed this??
2) i have tried installed area thing for path module but still freecad can't find him. so probably at the wrong place. what is the location where i have to install the area stuff?

thanks
How did you install FreeCAD and how did you install libarea.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Ubuntu install issues

Post by Jee-Bee »

triplus wrote:How did you install FreeCAD and did you install libarea.
In my setup i have this build up
\Home\FreeCAD\FreeCAD-git
\Home\FreeCAD\build
\Home\FreeCAD\libarea

than cmake what does a bit strange:

Code: Select all

jbubuntu@jbubuntu-MacBook:~/FreeCAD/libarea$ cmake
cmake version 2.8.12.2
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Options
  -C <initial-cache>          = Pre-load a script to populate the cache.
  -D <var>:<type>=<value>     = Create a cmake cache entry.
  -U <globbing_expr>          = Remove matching entries from CMake cache.
  -G <generator-name>         = Specify a build system generator.
  -T <toolset-name>           = Specify toolset name if supported by
                                generator.
  -Wno-dev                    = Suppress developer warnings.
  -Wdev                       = Enable developer warnings.
  -E                          = CMake command mode.
  -i                          = Run in wizard mode.
  -L[A][H]                    = List non-advanced cached variables.
  --build <dir>               = Build a CMake-generated project binary tree.
  -N                          = View mode only.
  -P <file>                   = Process script mode.
  --find-package              = Run in pkg-config like mode.
  --graphviz=[file]           = Generate graphviz of dependencies, see
                                CMakeGraphVizOptions.cmake for more.
  --system-information [file] = Dump information about this system.
  --debug-trycompile          = Do not delete the try_compile build tree.
                                Only useful on one try_compile at a time.
  --debug-output              = Put cmake in a debug mode.
  --trace                     = Put cmake in trace mode.
  --warn-uninitialized        = Warn about uninitialized values.
  --warn-unused-vars          = Warn about unused variables.
  --no-warn-unused-cli        = Don't warn about command line options.
  --check-system-vars         = Find problems with variable usage in system
                                files.
  --help-command cmd [file]   = Print help for a single command and exit.
  --help-command-list [file]  = List available listfile commands and exit.
  --help-commands [file]      = Print help for all commands and exit.
  --help-compatcommands [file]= Print help for compatibility commands.
  --help-module module [file] = Print help for a single module and exit.
  --help-module-list [file]   = List available modules and exit.
  --help-modules [file]       = Print help for all modules and exit.
  --help-custom-modules [file]= Print help for all custom modules and exit.
  --help-policy cmp [file]    = Print help for a single policy and exit.
  --help-policies [file]      = Print help for all policies and exit.
  --help-property prop [file] = Print help for a single property and exit.
  --help-property-list [file] = List available properties and exit.
  --help-properties [file]    = Print help for all properties and exit.
  --help-variable var [file]  = Print help for a single variable and exit.
  --help-variable-list [file] = List documented variables and exit.
  --help-variables [file]     = Print help for all variables and exit.
  --copyright [file]          = Print the CMake copyright and exit.
  --help,-help,-usage,-h,-H,/?= Print usage information and exit.
  --help-full [file]          = Print full help and exit.
  --help-html [file]          = Print full help in HTML format.
  --help-man [file]           = Print full help as a UNIX man page and exit.
  --version,-version,/V [file]= Show program name/version banner and exit.

Generators

The following generators are available on this platform:
  Unix Makefiles              = Generates standard UNIX makefiles.
  Ninja                       = Generates build.ninja files (experimental).
  CodeBlocks - Ninja          = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
  Eclipse CDT4 - Ninja        = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles
                              = Generates Eclipse CDT 4.0 project files.
  KDevelop3                   = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.
  Sublime Text 2 - Ninja      = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                              = Generates Sublime Text 2 project files.
than make what run without problems.
after that i restart FreeCAD and goes to path module it still gives the area error
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu install issues

Post by triplus »

First of all if you ask for help at least provide feedback after for future reference. As for your questions in this thread.
1) most important when i go to the part workbench FreeCAD stops working. i wanna now why but i can't find the log file. Where is placed this??
That probably happened as you didn't follow all the needed steps on Wiki when manually compiling FreeCAD:

http://www.freecadweb.org/wiki/?title=C ... and_Ubuntu

If you want to manually compile FreeCAD take your time and learn what you did wrong. Run manually compiled FreeCAD from the place you compiled it by running ./bin/FreeCAD after make has finished. As for system wide installation for now use daily PPA:

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad
2) i have tried installed area thing for path module but still freecad can't find him. so probably at the wrong place. what is the location where i have to install the area stuff?
You can wait (probably a few days) and you won't have to do anything anymore manually as libarea will be installed as part of FreeCAD package update from daily PPA:

viewtopic.php?f=15&t=11811

But if you still want to do it now probably this makes the most sense. Install needed dependency first:

Code: Select all

sudo apt-get install libboost-python-dev
After do:

Code: Select all

cd
git clone https://github.com/Heeks/libarea.git
cd libarea
cmake .
make
sudo make install
Start FreeCAD and try out the Path WB.

Additional info. As libarea doesn't have make uninstall target save the output of make install command as you might want to remove the installed files manually once libarea will be installed automatically when installing FreeCAD from daily PPA.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Ubuntu install issues

Post by sgrogan »

It's better to

Code: Select all

git clone https://github.com/danielfalck/libarea.git
and then as triplus posted
This is the modified version of the original that FreeCAD is actually using (modified to remove license issues)
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu install issues

Post by triplus »

sgrogan wrote:It's better to

Code: Select all

git clone https://github.com/danielfalck/libarea.git
and then as triplus posted
This is the modified version of the original that FreeCAD is actually using (modified to remove license issues)
Yes you are correct and that is the repository that should be used.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Ubuntu install issues

Post by Jee-Bee »

triplus wrote:

Code: Select all

That probably happened as you didn't follow all the needed steps on Wiki when manually compiling FreeCAD:

http://www.freecadweb.org/wiki/?title=CompileOnUnix#Debian_and_Ubuntu
...
sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad
didn't know this i think i missed that
triplus wrote:viewtopic.php?f=15&t=11811

But if you still want to do it now probably this makes the most sense. Install needed dependency first:

Code: Select all

sudo apt-get install libboost-python-dev
After do:

Code: Select all

cd
git clone https://github.com/Heeks/libarea.git
cd libarea
cmake .
make
sudo make install
i did exept the `.` i didn't saw that on one of the printscreens (another topic…)
sgrogan wrote:It's better to

Code: Select all

git clone https://github.com/danielfalck/libarea.git
and then as triplus posted
This is the modified version of the original that FreeCAD is actually using (modified to remove license issues)
I try
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Ubuntu install issues

Post by Jee-Bee »

thanks it works!!
Jee-Bee wrote: 1) most important when i go to the part workbench FreeCAD stops working. i wanna now why but i can't find the log file. Where is placed this??
Only The Part WB still fails when i go through there...
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Ubuntu install issues

Post by triplus »

Jee-Bee wrote:thanks it works!!
Jee-Bee wrote: 1) most important when i go to the part workbench FreeCAD stops working. i wanna now why but i can't find the log file. Where is placed this??
Only The Part WB still fails when i go through there...
It crashes if you switch to Part WB? Or what exactly happens? You are talking about FreeCAD installed from daily PPA?

Code: Select all

freecad -l
And log file will be located here:

Code: Select all

/home/username/.FreeCAD/FreeCAD.log
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Ubuntu install issues

Post by Jee-Bee »

triplus wrote:It crashes if you switch to Part WB? Or what exactly happens? You are talking about FreeCAD installed from daily PPA?
Yes indeed. FreeCAD crash when i switch to Part WB

Code: Select all

OS: Ubuntu 14.10
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.5228 (Git)
Build type: Release
Branch: master
Hash: 9b476e140d981281b47995fc6c98815c7feba507
Python version: 2.7.8t
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.0
I thought i had installed a 64 bit version...
triplus wrote:

Code: Select all

freecad -l
Does nothing... FreeCAD doesn't start.
triplus wrote:

Code: Select all

/home/username/.FreeCAD/FreeCAD.log
Thanks except is isn't there
Post Reply