40723150 cad2019

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • 環境設定
    • SSH
    • Batch Command
  • Develop
  • Tool
    • Solvespace
      • Solvespace 編譯
      • Solvespace 操作
      • STL
    • V-rep
    • Webots
    • NX12
      • CH1 引言
      • CH2 入門
  • w15
  • w16
  • W17 個人任務
  • 期末報告
Solvespace << Previous Next >> Solvespace 操作

Solvespace 編譯

先將 Y:\portablegit\bin\sh.exe 改名為 sh_rename_for_solvespace.exe

re sh.exe sh_rename_for_solvespace.exe

*p.s.  re 是重新命名的指令

git version 查驗 git 版本 ( 需要git 2.13 版本以上 )

git clone --recurse-submodules https://github.com/solvespace/solvespace.git solvespace

*p.s. 使用  git clone --recurse-submodules 取得所有子模組資料,clone 前請先確認

是否有重複檔名的資料,並耐心等候取得資料,以確保檔案完整性

上述指令同:

git clone https://github.com/solvespace/solvespace.git 

cd solvespace

git submodule init

git submodule update

編輯 Y:\tmp\solvespace\extlib\angle\CMakeLists.txt 將 713 行和 714行註解掉,像底下這樣

#list(APPEND ANGLE_DEFINITIONS
#"-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ \"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }")
endif()

*p.s.  漏掉此步驟,否則後續編譯會有錯誤

到 Y:\tmp\solvespace\extlib\libpng 目錄底下新建名為 build目錄

cd solvespace 

cd extlib

cd libpng

mkdir build

cd build

cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release

mingw32-make

重新命名 Y:\tmp\solvespace\extlib\libpng\build\libpng.dll.a 改名為 libpng_static.a 並且複製到 Y:\msys64\mingw64\lib

回到 Y:\tmp\solvespace 目錄下新建名為 build目錄

mkdir build

cd build

cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release

mingw32-make

完成以上編譯後執行 Y:tmp\solvespace\build\bin\solvespace.exe   ,若能成功執行就能確定完成 Solvespace 編譯


W7

在about裡插入This is Solvespace compiled by 學號 (40723150)


Solvespace << Previous Next >> Solvespace 操作

Copyright © All rights reserved | This template is made with by Colorlib