0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VisibleSimセットアップ備忘録

Last updated at Posted at 2022-07-26

インストール

git clone https://github.com/ProgrammableMatterProject/VisibleSim.git
cd VisibleSim
git submodule init
git submodule update
  • 次に必要なパッケージをインストール
    Linuxのひと
sudo apt-get install build-essential
sudo apt-get install freeglut3-dev
sudo apt-get install libglew-dev
sudo apt-get install sbcl
sudo apt-get install libmuparser-dev

# [Optional]
sudo apt-get install doxygen # for html documentation 
sudo apt-get install ffmpeg # for video export
sudo apt-get install libsfml-dev # for BlinkyBlocks sound simulation

Macのひと

brew install freeglut
brew install glew
brew install sbcl
brew install muparser

[Optional]
brew install ffmpeg # for video export
brew install sfml # for BlinkyBlocks sound simulation
  • サンプルがcppで書かれているのでビルドしたいのだが、その前にビルド対象となるソースコードを指定する
VisibleSim/applicationsSrc/Makefile
- SUBDIRS = myApp
+ SUBDIRS = C3DRotate hexanodes_demo meld reconfCatoms3DMultilayer scaffolding_pyramid_async simpleColorC2D csgCatoms3D lightWalkCatoms3D musicPlayer robot02 scaffolding_pyramid_sync c2d_demo datomsRotate maxFlowSC nodes2D_demo sbReconf simpleColorSC sinkSource c2srCatoms2D distanceSC reconfCatoms3D scaffolding_cube simpleColorBB simpleColorSB molding datomsTestbed gameOfLife rainbow tetris

subdirs: $(SUBDIRS)

# autoinstall not needed anymore
$(SUBDIRS):
	@mkdir -p ../applicationsBin/$@
	@echo "Checking $@ block code"
	@$(MAKE) -C $@ APPDIR=../../applicationsBin/$@ GLOBAL_INCLUDES="$(GLOBAL_INCLUDES)" GLOBAL_LIBS="$(GLOBAL_LIBS)" GLOBAL_CCFLAGS="$(GLOBAL_CCFLAGS)"
...
  • 最後にリポジトリのルートからmakeしてあげる
VisibleSim/
make
  • VisibleSim/applicationsBin配下に実行可能ファイルが生成されているので好きな奴を起動してみる(結構動かないやつも多い)
VisibleSim/applicationsBin/lightWalkCatoms3D/lightWalk/
./lightWalk 

こんな感じで表示される
image.png

この状態でrを押すと動く
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?