Last modified 4 years ago Last modified on 2013-11-13 21:57:27

Windows Build

To compile from scratch

Requirements bin only edition:

Pygame: pygame-1.9.2pre.win-amd64-py2.7.exe works http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

Web.py: Unzip the package from webpy.org and move the web/ folder to your x3d folder

DEFINES for windows build:

  • NOMINMAX
  • EIGEN_DONT_ALIGN_STATICALLY

Older info

Tried with Visual Studio 10 on Windows 7. Install H3D 2.1.1 from install package to C:\H3D. Build the source H3DUtil, HAPI and H3D using "cmake ." in respective build folder. Download MedX3D source and do the same with that. Build H3DLoad in H3DAPI. Then build forssim using cmake file below. That should more or less be it. To run the client you need pycurl. Binaries can be found here: http://pycurl.sourceforge.net/download/ There is some "as" thing in client.py, remove that if you run python 2.5.

Here is a working CMakeLists.txt

cmake_minimum_required(VERSION 2.6.0)
project(forssim)

# Version of forssim
SET( FORSSIM_MAJOR_VERSION 0 )
SET( FORSSIM_MINOR_VERSION 3 )
SET( FORSSIM_PATCH_VERSION 0 )

configure_file (
  "${PROJECT_SOURCE_DIR}/../src/config.h.in"
  "${PROJECT_BINARY_DIR}/config.h"
  )

include_directories("${PROJECT_BINARY_DIR}" "C:/H3D/MedX3D/include"  "C:/H3D/H3DUtil/include" "C:/H3D/H3DAPI/include" "C:/H3D/HAPI/include" "C:/H3D/External/include" "C:/H3D/External/include/pthread" )
link_directories("C:/H3D/lib" "C:/H3D/External/lib" )

add_library(forssim SHARED ../src/ADrillableNode.cpp               ../src/DrillingStepsNode.cpp           ../src/PartitionModel.cpp
../src/ADrillForce.cpp                  ../src/ForbiddenSegmentationModel.cpp  ../src/PedalNode.cpp
../src/AHapticDrillForce.cpp            ../src/HighlightNode.cpp               ../src/SaveVolume.cpp
../src/AVolumePlaybackNode.cpp          ../src/LoggingNode.cpp                 ../src/StateMachine.cpp
../src/ComposableShadedVolumeStyle.cpp  ../src/MaterialSegmentationModel.cpp   ../src/VolumeModel.cpp
../src/DefaultValues.cpp                ../src/MouseManager.cpp                ../src/Volumes.cpp
)
target_link_libraries (forssim bz2 png z teem H3DAPI_vc10 HAPI_vc10 H3DUtil_vc10 MedX3D_vc10 )
#target_link_libraries (forssim teem H3DAPI HAPI H3DUtil MedX3D )
install (TARGETS forssim DESTINATION lib)