View Issue Details

IDProjectCategoryView StatusLast Update
0001081FreeCADBugpublic2013-12-14 11:25
Reporteruser701Assigned ToJriegel 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.13 
Summary0001081: FEM can be built only in Windows (CMake)
DescriptionAll the stuff into CMakeLists.txt is into

if (MSVC)
endif(MSVC)
TagsNo tags attached.
FreeCAD Information

Activities

user701

2013-04-03 15:15

  ~0003036

Requires NETGENPlugin, that is built only for windows as well

if (MSVC)
endif(MSVC)

should be removed from src/3rdParty/salomemesh/CMakeLists.txt as well

user701

2013-04-03 15:48

  ~0003037

In Debian, installed version of netgen doesn't include occgeom, so NETGENPlugin is not compilable unless you install manually netgen with OpenCASCADE support.

Also netgen cannot be compiled against OCE...

wmayer

2013-04-04 06:54

administrator   ~0003041

The only system that offers the required packages is Debian experimental. This means to offer this for Ubuntu we have to setup another PPA.
But this still means that then only Ubuntu is supported but none of the other Linux distros out there.

user701

2013-04-04 07:23

  ~0003043

Last edited: 2013-04-04 07:24

I tried to work around the problem...

1.-
I switched on the Fem module compilation
2.-
In Fem/App I modified Fem_LIBS such that if Windows is not present, NETGENPlugin is not required.

The compilation works, but when you try to start the FEM module exist missing symbols (as I expects):

/home/pepe/freecad/free-cad.cmake/lib/StdMeshers.so: undefined symbol: _Z6aptrteidiPiP2R2iS1_RiRS1_S2_RS_S2_

:-(

Seems that we musty wait then, no?

wmayer

2013-11-10 13:25

administrator   ~0003876

FreeCAD now can be built linking to netgen. You therefore have to explicitly set the switch FREECAD_BUILD_FEM_NETGEN and install the package netgen-headers. This is only available from Ubuntu 13.10 on. For older versions you have to compile netgen manually.

Jriegel

2013-11-10 15:44

administrator   ~0003877

No It don't build on Windows anymore....
I have to check why....

wmayer

2013-11-10 17:41

administrator   ~0003878

> No It don't build on Windows anymore....
Caused by these changes? I tested it on Windows (64-bit) and everything still builds fine.

wmayer

2013-11-10 19:27

administrator   ~0003881

When building the 32-bit version on Windows I ran into some linker errors. To solve this you must clean the NetgenPlugin project and build it again.

Jriegel

2013-12-14 11:25

administrator   ~0003938

Werner was right, this bug is fixed...

Related Changesets

FreeCAD: master 66387458

2013-11-10 14:26:30

wmayer

Details Diff
+ fixes 0001081 Affected Issues
0001081
mod - CMakeLists.txt Diff File
add - cMake/FindNETGEN.cmake Diff File
mod - src/3rdParty/salomesmesh/CMakeLists.txt Diff File
mod - src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Mesher.cpp Diff File
mod - src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cpp Diff File
mod - src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cpp Diff File
mod - src/Mod/MeshPart/App/Mesher.cpp Diff File

Issue History

Date Modified Username Field Change
2013-04-03 15:04 user701 New Issue
2013-04-03 15:15 user701 Note Added: 0003036
2013-04-03 15:48 user701 Note Added: 0003037
2013-04-04 06:54 wmayer Note Added: 0003041
2013-04-04 07:23 user701 Note Added: 0003043
2013-04-04 07:24 user701 Note Edited: 0003043
2013-11-10 13:25 wmayer Note Added: 0003876
2013-11-10 13:30 wmayer Changeset attached => FreeCAD Master master 66387458
2013-11-10 13:30 wmayer Assigned To => wmayer
2013-11-10 13:30 wmayer Status new => closed
2013-11-10 13:30 wmayer Resolution open => fixed
2013-11-10 15:44 Jriegel Assigned To wmayer => Jriegel
2013-11-10 15:44 Jriegel Note Added: 0003877
2013-11-10 15:44 Jriegel Status closed => feedback
2013-11-10 15:44 Jriegel Resolution fixed => reopened
2013-11-10 17:41 wmayer Note Added: 0003878
2013-11-10 19:27 wmayer Note Added: 0003881
2013-12-14 11:25 Jriegel Note Added: 0003938
2013-12-14 11:25 Jriegel Status feedback => closed
2013-12-14 11:25 Jriegel Resolution reopened => fixed