mayo的编译
Build instructions for Windows MSVC
Mayo requires Qt ≥ 5.10 and OpenCascade ≥ 7.3.0
To get Mayo source code from GitHub you will need Git for Windows
Preparation
Let's agree with some variables that must be adapted to your workspace:
Name | Description | Example |
---|---|---|
MSVC |
Microsoft Visual Studio ≥ 2017 | |
OCCDIR |
Folder of OpenCascade, containing adm , inc , src , ... |
D:\libs\OpenCASCADE-7.5.0-vc14-64\opencascade-7.5.0 |
QTDIR |
Folder of Qt, containing bin , doc , include , ... |
D:\libs\Qt\5.15.0\msvc2017_64 |
WORKDIR |
Folder of the workspace where to get and build Mayo | D:\dev\myprojects |
Then follow this procedure before building:
- Open x64 Native Tools Command Prompt for MSVC
- Type:
call "%OCCDIR%\env.bat"
REM Warning: OpenCascade's env.bat overwrites QTDIR environment variable and sets another location
set QTDIR="path_to_your_Qt_root_directory_here"
set PATH="%QTDIR%\bin;%PATH%"
cd %WORKDIR%
git clone https://github.com/fougue/mayo.git
cd mayo
mkdir build && cd build
Build from command-line
qmake ..\mayo.pro
nmake all
Run Mayo with release\mayo.exe
Or build from Visual Studio
qmake -t vcapp ..\mayo.pro
This will create project mayo.vcxproj
that you can open with Visual Studio to build and run Mayo.
Before executing Visual Studio make sure %QTDIR%\bin
is in PATH
and %OCCDIR%\env.bat
was called.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix