cmake error detecting opencascade files on Fedora [FIXED]

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
Kunda1
Veteran
Posts: 12575
Joined: Thu Jan 05, 2017 9:03 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
freman
Veteran
Posts: 1779
Joined: Tue Nov 27, 2018 10:30 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by freman »

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 .
User avatar
Kunda1
Veteran
Posts: 12575
Joined: Thu Jan 05, 2017 9:03 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by Kunda1 »

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:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
ryryss
Posts: 8
Joined: Tue Sep 07, 2021 1:31 am

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by ryryss »

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

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")
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. :roll:
first time was to modify cmakelist to auto add new python file in freecad project.
User avatar
freman
Veteran
Posts: 1779
Joined: Tue Nov 27, 2018 10:30 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by freman »

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

Code: Select all

get_filename_component (OpenCASCADE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
file (REAL_PATH ${OpenCASCADE_INSTALL_PREFIX} OpenCASCADE_INSTALL_PREFIX)
Fedora seem to modify the upstream makefile. Are you saying this fails Ubantu as well ?
User avatar
Kunda1
Veteran
Posts: 12575
Joined: Thu Jan 05, 2017 9:03 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by Kunda1 »

@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:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
freman
Veteran
Posts: 1779
Joined: Tue Nov 27, 2018 10:30 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by freman »

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.
User avatar
uwestoehr
Veteran
Posts: 4097
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by uwestoehr »

freman wrote: Thu May 26, 2022 2:57 pm 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 ).
Thanks!
(I also think this is the right place to document it.)
User avatar
freman
Veteran
Posts: 1779
Joined: Tue Nov 27, 2018 10:30 pm

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by freman »

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
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.
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.

https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds

This page should tell you how to use the source code it offers.
User avatar
uwestoehr
Veteran
Posts: 4097
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany

Re: cmake error detecting opencascade files on Fedora [FIXED]

Post by uwestoehr »

freman wrote: Thu May 26, 2022 5:47 pm 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.
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.
Post Reply