Windows 7 编译 PTAM and PTAMM

(0)    TooN\SymEigen.h-->Uncomment

            if(ev[0] > ev[1])
                swap(ev[0], ev[1]);
            if(ev[1] > ev[2])
                swap(ev[1], ev[2]);
            if(ev[0] > ev[1])
                swap(ev[0], ev[1]);
Change to:
            if(ev[0] > ev[1])
                std::swap(ev[0], ev[1]);
            if(ev[1] > ev[2])
                std::swap(ev[1], ev[2]);
            if(ev[0] > ev[1])
                std::swap(ev[0], ev[1]);


(1)    PTAM_PTAMM_Build\libcvd-20100511\build\vc2005:

Build libcvd.sln (VS2010)-->Copyfiles from PTAM_PTAMM_Build\libcvd-20100511\lib to PTAM_PTAMM_Build\lib.

NOTE: In the pnm_src direction of solution, add png.cc and cvdimage.cxx.

(2)    PTAM_PTAMM_Build\gvars3\build\vc2005:

Build gvars3.sln(VS2010) --> Copyfiles from PTAM_PTAMM_Build\gvars3\lib to PTAM_PTAMM_Build\lib.

(3)    Unzip PTAM.zip

Copy all files from PTAM\Build\Win32 to PTAM\ -->Open the project with VS2010 -->Change the include direction (PTAM_PTAMM_Build\include) -->Change the lib direction (PTAM_PTAMM_Build\lib)-->Release Build Solution.

NOTE: 1、blas_win32.lib miss, change to blas_win32_MT.lib; 2、Add the lib ws2_32.lib, otherwise there are some errors,unresolved external symbol__imp__htons@4Debug/CADTest.exe blabla..3、Add the libs of openCV: cv210.lib、cxcore210.lib、highgui210.lib.

Finally,  change the src of VideoSource_Win32_CMU1394.cc, in order to use Webcamera to capture.

Actually, the process of PTAMM is the same with PTAM.

评论 22
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值