Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8510971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:51:25+00:00 2026-06-11T03:51:25+00:00

I am trying to build OpenCASCADE on Mac, but I am not having any

  • 0

I am trying to build OpenCASCADE on Mac, but I am not having any luck.

I downloaded it from Github in tar.gz, but I am really new to Mac and I am stuck.

Can anybody explain what should be my next step?

(I found some terminal commands what I should use, but I am not familiar with them. So if it is the right way to build OpenCASCADE on Mac please write down the terminal commands with details. Thank you!)

EDIT:

I understood the command line commands now from the link below. I understood it before too, but I was mistaken, because my main problem was, that I didn’t had gcc installed (XCode does not installs gcc automatically…). So anyways, now finally I can run the cmake command. It starts but it ends with this:

CMake Error at /Applications/CMake
2.8-9.app/Contents/share/cmake-2.8/Modules/FindX11.cmake:420 (MESSAGE): Could not find X11 Call Stack (most recent call first):
CMakeLists.txt:313 (FIND_PACKAGE)

Anybody have any idea what to do? I tryed to search this too here, and google…and I found some “solutions” but those didn’t work for me.

EDIT EDIT:

The solution for the last edit is that Mountain Lion doesn’t install X11. So open up an app that uses X11 or Xquartz and it will install automatically.

Unfortunetly it still doesn’t work. My next error message is the following after the make command in terminal:

In file included from
/Users/davidbirkas/Documents/tpaviot-oce-6c9a06a/src/AlienImage/AlienImage_X11XWDAlienData.cxx:14:
/Users/davidbirkas/Documents/tpaviot-oce-6c9a06a/inc/Aspect_XWD.hxx:5:12:
fatal error:
‘X11/XWDFile.h’ file not found
# include
^ 1 error generated. make[2]: * [adm/cmake/TKService/CMakeFiles/TKService.dir/_/_/__/src/AlienImage/AlienImage_X11XWDAlienData.cxx.o]
Error 1 make1:

[adm/cmake/TKService/CMakeFiles/TKService.dir/all] Error 2 make: *
*
[all] Error 2

Any ideas how to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:51:27+00:00Added an answer on June 11, 2026 at 3:51 am

    I spent a little time on this and I think I have it. Here is what I did step by step:

    Preparation phase:

    • Installing Xcode (with command line tools) = Apple developer site
      // If Xcode doesn’t install gcc, than you can still download it from the developer site as Command Line Tools for Xcode.

    • Installing Cmake (with command line tools) = Google
      // You can download it from the official site with a .dmg/.pkg file extension. Easy install.

    • X11 under Mountain Lion “changed” to Xquartz. Probably it is not installed by default, but it is easy to check it. Just go to the folder “Application” and start the X11 app. If X11/Xquartz is not installed than it will install automatically!

    • Installing FTGL = MacPorts = Google
      // Download MacPorts from their official site, install it with the installer, than write this to the terminal:

    sudo port install ftgl

    • Download OCE and extract it (.OCE-0.9.0.tar.gz file) = https://github.com/tpaviot/oce/wiki/Download

    Installing phase:

    I. Open Terminal.

    II. Run this command
    // This will set the proper PATH.

    ln -s /opt/X11/include/X11 /usr/local/include/X11

    III. Than from the Terminal go to the directory where you extracted the OCE file (the original extracted file name should be: tpaviot-oce-6c9a06a).

    IV. Than write these commands:
    // You make a build directory to the extracted OCE folder.

    mkdir build 
    cd build
    

    V. After this you give out the cmake command:

    cmake -DOCE_INSTALL_PREFIX:PATH=$HOME/OCE  \
        -DOCE_WITH_FREEIMAGE:BOOL=ON \
        -DOCE_WITH_GL2PS:BOOL=ON \
        -DOCE_DRAW:BOOL=ON \
        ..
    

    VI. And at the end the make commands:

    make
    make install/strip
    

    If you did everything exactly like this, than it should work!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying Build For Archiving application (from Titanium Mobile) with xCode 4.4, but
I'm trying build a regex that will replace any characters not of the format:
Trying to build my android project with Buildr (Apache), but can't find any info
Im trying to build a 'last user login' script but im not sure how
I'm trying build a method which returns the shortest path from one node to
I'm trying build an App Engine connected Android application and am having some problems
I'm trying build a MVC framework, but I'm confused about manage themes. Well... I
Trying to build out an exception if move.UserId does not equal currentUserId then Redirect
I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
Trying to build dynamic output from json and using jq/template tmpl display rows/columns. Somehow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.