2015년 3월 23일 월요일

2015년 3월 10일 화요일

opengl install windows 32bit

http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip
glut.h -> C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\gl
glut32.lib -> C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib
glut32.dll -> C:\Windows\System32

Octomap for windows

Builiding Octomap 1.6.1 on Windows + Visual Studio 2010 (32 bit)

  • Install Qt library for [Windows + VS2010]
    • Tested Qt Library version 4.8.0 and 4.8.4
  • Build QGLViewer as suggested in the Octomap Github page
  • Configure and Generate OctoMap project using Cmake-gui application
    • You have to use the same Qt library version for step 2 and step 3
    • Ignore the warning messages when generating the Octomap project
  • Open the Octomap-distribution Visual Studio project
  • Change the following dependency names in dynamicedt3d, exampleEDT3D, exampleEDT3Octomap , octovis, octovis-shared project
    • "liboctomap.so.lib"  to "octomap.lib"
    • "liboctomath.so.lib" to "octomath.lib"
  • For octovis-shared project,
    • Add Qt library (e.g. C:/Qt/4.8.4/lib") folder to Additional library directories
    • Add "QtCore4.lib, QtOpenGL4.lib, QtGui4.lib, QtXml4.lib" to Additional depedencies list
  • Add the following function in compare_octree.cpp

    bool isnan(double x) 
    {
        if (!(x >= 0) && !(x <=0))
            return true;
        else
            return false;   
    }
    
  • Edit the following line

    if (std::isnan(kld))
    
    to

    if (isnan(kld))
    
  • Add Qt binary path (e.g. C:/Qt/4.8.4/bin) to your PATH variable
  • Copy QGLViewer2.dll and QGLViewerd2.dll to a system folder (e.g. C:/Windows/System32) or a folder where your application file is located
(https://sites.google.com/site/younghoonleehome/)