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:

NameDescriptionExample
MSVC Microsoft Visual Studio ≥ 2017  
OCCDIR Folder of OpenCascade, containing admincsrc, ... D:\libs\OpenCASCADE-7.5.0-vc14-64\opencascade-7.5.0
QTDIR Folder of Qt, containing bindocinclude, ... 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:

  1. Open x64 Native Tools Command Prompt for MSVC
  2. 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.

posted @   unicornsir  阅读(243)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示