SetupForMac_EN - CCSEPBVR/CS-IS-PBVR GitHub Wiki

Setting up for Mac environment

Installing the Compiler

To build CS/IS-PBVR in a Linux environment, use gcc (g++), make, and Xcode. If the compiler is not installed, execute the following command in the terminal to install it.

xcode-select --install

Download and install Xcode from the App Store.

Local Image

Install libomp (optional)

libomp is required to build parallelized filter and server programs. The procedure for installing libomp using homebrew is shown.

brew install libomp

When the installation is complete, add the following command to "~/.zshrc".

export PATH=/opt/homebrew/bin:$PATH

Install FBXSDK (optional)

If you want to visualize .fbx format files in a client program, you need to install FBXSDK library. The steps are shown below.

  • Select Download SDK for mac from the official Website to download and extract the fbx2XXXXX_fbxsdk_clang_mac.pkg.tar.
  • Click fbx2XXXXX_fbxsdk_clang_macos.pkg and follow the installer to complete the installation.

Install Assim (optional)

If you want to visualize .3ds format files in a client program, you need to install the Assimp library. The steps are shown below.

  • Download and extract the source code from the Website.
  • In the terminal, navigate to assimp-5.0.0/ and execute the following commands: At this time, you need to set the DEPLOYMENT_TARGET according to your environment
    cd assimp-5.0.0
    cmake -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.4" -DCMAKE_BUILD_TYPE=Release -DASSIMP_BUILD_ZLIB=on -DBUILD_SHARED_LIBS=off CMakeLists.txt
    make -j 16
    

After the build is completed, check that libassimp.a, libIrXML.a, and libzlibstatic.a are generated in assimp-5.0.0/lib.

Installing Qt & QtCreator

Download and run the installer for the open source version of Qt from the Qt official Website. Select the directory where you want to install Qt, check Custom Install, and check the following components on the component selection screen.

  • Qt 6.2.4 > macOS
  • Qt 6.2.4 > Qt Debug Information Files
  • Developer and Designer Tools > Qt Creator
  • Developer and Designer Tools > Qt Creator Debug Symbols
  • Developer and Designer Tools > Qt Creator Plugin Development
  • Developer and Designer Tools > CMake
  • Developer and Designer Tools > Ninja 1.12.0

Local Image

After selecting the component, proceed with the permission permission and shortcut registration settings to start the installation. When the installation is complete, add the following command to "~/.zshrc".

export PATH=/Users/USERNAME/Qt/6.2.4/macos/bin:$PATH
⚠️ **GitHub.com Fallback** ⚠️