Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Build ( MacOS) #151

Closed
KeithSloan opened this issue Sep 10, 2022 · 6 comments
Closed

Error on Build ( MacOS) #151

KeithSloan opened this issue Sep 10, 2022 · 6 comments
Assignees
Labels
build error Compilation and linking errors
Milestone

Comments

@KeithSloan
Copy link

In file included from ../mayo/src/base/application.cpp:7:
In file included from ../mayo/src/base/application.h:9:
../mayo/src/base/application_ptr.h:9:10In file included from :../mayo/src/base/application_item.cpp :7:
fatal errorIn file included from : ../mayo/src/base/application_item.h:9:
In file included from ../mayo/src/base/document.h:9:
../mayo/src/base/application_ptr.h:9:10: fatal error: 'TDocStd_Application.hxx'
file not found
'TDocStd_Application.hxx'
file not found
#include <TDocStd_Application.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~
#include <TDocStd_Application.hxx>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [application_item.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [application.o] Error 1
keithsloan@Keiths-iMac-2 mayo_build

@HuguesDelorme
Copy link
Member

Hello @KeithSloan
What steps did you follow to build Mayo ?
Have you looked at https://github.com/fougue/mayo/wiki/Build-instructions-for-macOS ?

@grexe
Copy link

grexe commented Sep 13, 2022

same error here on both develop and master branches.
On Mac ARM64, followed the instructions, Qt and Cascade installed and detected, the file is indeed not there.

fatal error: 'TDocStd_Application.hxx' file not found

env:

% echo $CASCADE_CELLAR_DIR
/opt/homebrew/Cellar/opencascade
% echo $CASCADE_VERSION
7.6.3
% echo $CASCADE_BASE_DIR
/opt/homebrew/Cellar/opencascade/7.6.3

MacOS versions:

Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64

Latest Monterey update from today: v12.6 (21G115)

@HuguesDelorme
Copy link
Member

Hello @grexe and @KeithSloan
Please have a look at the discussion from this message: #67 (comment)
Make sure path /opt/homebrew/Cellar/opencascade/7.6.3/include/opencascade exists and contains *.hxx files ?
Can I ask you both to post in this thread the result of the command brew info opencascade on your machine ?
I will try to handle more specific cases about opencascade versions.
Thanks!

@HuguesDelorme HuguesDelorme self-assigned this Sep 13, 2022
@HuguesDelorme HuguesDelorme added this to the version/0.7.0 milestone Sep 13, 2022
@HuguesDelorme HuguesDelorme added the build error Compilation and linking errors label Sep 13, 2022
@HuguesDelorme
Copy link
Member

HuguesDelorme commented Sep 14, 2022

Hello again @KeithSloan and @grexe
The build instructions for macOS were fixed(see the updated wiki)
Run these commands:

cd mayo-build
CASCADE_BASE_DIR=`brew info opencascade | grep -E -i --only-matching --max-count=1 "^(/[a-z\.\-_0-9]+)+"`
qmake ../mayo CASCADE_INC_DIR=$CASCADE_BASE_DIR/include/opencascade CASCADE_LIB_DIR=$CASCADE_BASE_DIR/lib
make -j2

The GitHub CI for macOS was also fixed(see action)

Let me know if that fixes also the issue on your side so we can close this issue

@grexe
Copy link

grexe commented Sep 16, 2022

ok the build runs through now and I can launch the application (app icon is blank though).
However when trying to load a sample STEP file from nist.gov, namely this one, and opening nist_ftc_06_asme1_rd.stp, I only get a black canvas.

The same file opens fine with e.g. CAD Assistant, which also uses OpenCascade.

@HuguesDelorme
Copy link
Member

Hello @grexe
Thanks for your feedback
Discussion about runtime problem goes on in #155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build error Compilation and linking errors
Projects
None yet
Development

No branches or pull requests

3 participants