cmake error detecting opencascade files on Fedora [FIXED]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: cmake error detecting opencascade files on Fedora [FIXED]
Compile_on_Linux probably
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: cmake error detecting opencascade files on Fedora [FIXED]
Yeah, well I've put a note in there but I don't have time to do battle with the formatting/markup requirements to get a separate paragraph.
If you know anything about that wiki, feel free to pretty it up .
If you know anything about that wiki, feel free to pretty it up .
Re: cmake error detecting opencascade files on Fedora [FIXED]
Thanks. I'll look in to it.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: cmake error detecting opencascade files on Fedora [FIXED]
i use ubantu to compile freecad and use all day to slove this problme.
do it like following:
1、make install DESTDIR=/home/occ_7.5_path
2、open freecad/cMake/FindOpenCasCade.cmake
3、add this code to file header
4、delete /usr/.../opencasecade/*.cmake (if have)
5、sudo cmake freecad
i think we can use this method to change the path of other 3rd lib
i am not sure, this is my second time using cmake.
first time was to modify cmakelist to auto add new python file in freecad project.
do it like following:
1、make install DESTDIR=/home/occ_7.5_path
2、open freecad/cMake/FindOpenCasCade.cmake
3、add this code to file header
Code: Select all
set (OCC_FOUND "/home/occ_7.5_path")
set (OCC_INCLUDE_DIR "/home/occ_7.5_path/opencascade/include")
set (OCC_FOUND "/home/occ_7.5_path/lib")
5、sudo cmake freecad
i think we can use this method to change the path of other 3rd lib
i am not sure, this is my second time using cmake.
first time was to modify cmakelist to auto add new python file in freecad project.
Re: cmake error detecting opencascade files on Fedora [FIXED]
It's a shame that this is not more easily found . This is the fix I provided for Fedora.
https://bugzilla.redhat.com/show_bug.cgi
Fedora seem to modify the upstream makefile. Are you saying this fails Ubantu as well ?
https://bugzilla.redhat.com/show_bug.cgi
Code: Select all
get_filename_component (OpenCASCADE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
file (REAL_PATH ${OpenCASCADE_INSTALL_PREFIX} OpenCASCADE_INSTALL_PREFIX)
Re: cmake error detecting opencascade files on Fedora [FIXED]
@uwestoehr where should this be added in the docs ? is there a more appropriate place than Compile on Linux?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: cmake error detecting opencascade files on Fedora [FIXED]
I've put that note at the top of Fedora build notes and put details of the cmake hack there explicitly. ( Jeez is that wiki editor crap for this sort of thing ).
If this issue is confirmed to affect Ubantu as well that should be added there too.
If this issue is confirmed to affect Ubantu as well that should be added there too.
Re: cmake error detecting opencascade files on Fedora [FIXED]
My complaint is that the route from freecadweb.org to the build instructions is not clear enough. I passed there several times without finding it.
We get easily to https://www.freecadweb.org/downloads.php but then the "development" section does not even mention source code, it just links to weekly builds.
It is just tucked away in the page footer section that there is a link to building from source.
I would think it is more logical and clearer to provide a link in the "Development" section
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
This page should tell you how to use the source code it offers.
We get easily to https://www.freecadweb.org/downloads.php but then the "development" section does not even mention source code, it just links to weekly builds.
It is just tucked away in the page footer section that there is a link to building from source.
I would think it is more logical and clearer to provide a link in the "Development" section
It even links to the source code but does NOT tell you where the build instructions are . This lead me to go to the download link by which time you think you are on the right track but don't have a link to the build instructions.FreeCAD's development is always active! Do you want to check out the latest development release? For MacOS, Windows, Linux (AppImage) and source code, see the FreeCAD weekly builds page.
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
This page should tell you how to use the source code it offers.
Re: cmake error detecting opencascade files on Fedora [FIXED]
The info chain is either this:
- https://www.freecadweb.org/index.php
- there the menu Contribute -> How to help?
- there section https://wiki.freecadweb.org/Help_FreeCAD#Program.21
Or this way:
- https://www.freecadweb.org/index.php
- there the menu Contribute -> Wiki
- there section https://wiki.freecadweb.org/Main_Page#The_hubs
It is not via download because download addresses users/testers.