View Issue Details

IDProjectCategoryView StatusLast Update
0001348AssemblyBugpublic2014-05-12 15:15
ReporterConte91 Assigned ToJriegel 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSArch linux 
Product Versiontrunk 
Summary0001348: Assembly module does not include OCC_LIBRARY_DIR in CMakeLists.txt
DescriptionAssembly module does not use OCC_LIB_DIR to link correctly Opencascade libraries. Thus the application won't compile if libraries are not in standard ld paths like /usr/lib.
Steps To ReproduceTry to compile the application having OpenCascade installed in a directory different from /usr (e.g. /opt/opencascade)
Additional InformationOS: Linux
Platform: 64-bit
Version: 0.14.3133 (Git)
Branch: makepkg
Hash: 45c2731b15ea9119b7ddcd33a19339541ffac8c3
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.6.0

Patch attached.
TagsNo tags attached.
FreeCAD Information

Activities

Conte91

2014-01-08 23:45

reporter  

fix-occ-library-dir.patch (718 bytes)   
diff --git a/src/Mod/Assembly/App/CMakeLists.txt b/src/Mod/Assembly/App/CMakeLists.txt
index f157a4a..8ce1b36 100644
--- a/src/Mod/Assembly/App/CMakeLists.txt
+++ b/src/Mod/Assembly/App/CMakeLists.txt
@@ -21,6 +21,7 @@ include_directories(
 
 )
 
+link_directories(${OCC_LIBRARY_DIR})
 set(Assembly_LIBS
     ${ODE_LIBRARIES}
     ${OCC_LIBRARIES}
diff --git a/src/Mod/Assembly/Gui/CMakeLists.txt b/src/Mod/Assembly/Gui/CMakeLists.txt
index 47a111f..89b0896 100644
--- a/src/Mod/Assembly/Gui/CMakeLists.txt
+++ b/src/Mod/Assembly/Gui/CMakeLists.txt
@@ -20,6 +20,7 @@ include_directories(
     ${EIGEN3_INCLUDE_DIR}
 )
 
+link_directories( ${OCC_LIBRARY_DIR})
 set(AssemblyGui_LIBS
     #${ODE_LIBRARIES}
     Assembly
fix-occ-library-dir.patch (718 bytes)   

Jriegel

2014-01-20 18:29

administrator   ~0004110

which branch, master or jriegel/dev-assembly ?

Conte91

2014-01-20 21:41

reporter   ~0004111

jriegel/dev-assembly, sorry for not specifying it in the bug report!

Jriegel

2014-04-27 14:29

administrator   ~0004584

fixed in jriegel/dev-assembly branch

Issue History

Date Modified Username Field Change
2014-01-08 23:45 Conte91 New Issue
2014-01-08 23:45 Conte91 File Added: fix-occ-library-dir.patch
2014-01-20 10:41 wmayer Assigned To => Jriegel
2014-01-20 10:41 wmayer Status new => assigned
2014-01-20 18:29 Jriegel Note Added: 0004110
2014-01-20 18:29 Jriegel Status assigned => feedback
2014-01-20 21:41 Conte91 Note Added: 0004111
2014-01-20 21:41 Conte91 Status feedback => assigned
2014-04-27 14:29 Jriegel Note Added: 0004584
2014-04-27 14:29 Jriegel Status assigned => resolved
2014-04-27 14:29 Jriegel Resolution open => fixed
2014-05-12 15:15 yorik Status resolved => closed