compile CCV1.5 with vs2010:error
Posted: 18 February 2013 08:56 AM   [ Ignore ]
Rank
Joined  2013-01-22
Total Posts:  3
New Member

Hi,all.
I want to compile ccv1.5 with VS2010,but some problems prevent me going on these days. I have soved some problems that were metioned in this community such as:
c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2825: ‘_Fty’: must be a class or namespace when followed by ‘::’
c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40) : see reference to class template instantiation ‘std::tr1::_Result_type2<__formal,_Fty,_Arg0,_Arg1>’ being compiled
1> with
1> [
1> __formal=false,
1> _Fty=__w64 unsigned int,
1> _Arg0=std::tr1::_Nil &,
1> _Arg1=std::tr1::_Nil &
1> ]
and PocoFoundationmtd.lib(Exception.obj) : error LNK2019: ...
Now,I have this problem,
oscpackd.lib(UdpSocket.obj) : error LNK2019: 无法解析的外部符号 “__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const “ (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ),该符号在函数 “protected: void __thiscall std::vector<struct std::pair<class PacketListener *,class UdpSocket *>,class std::allocator<struct std::pair<class PacketListener *,class UdpSocket *> >>::_Tidy(void)” (?_Tidy@?$vector@U?$pair@PAVPacketListener@@PAVUdpSocket@@@std@@V?$allocator@U?$pair@PAVPacketListener@@PAVUdpSocket@@@std@@@2@@std@@IAEXXZ) 中被引用
Use a method on site http://stackoverflow.com/questions/10049640/linking-a-static-library-to-my-project-on-visual-studio-2010.But don’t work.
How can I do?Please help me.

Profile
 
 
Posted: 18 February 2013 12:49 PM   [ Ignore ]   [ # 1 ]
Rank
Joined  2011-04-13
Total Posts:  46
New Member

If you want to compile CCV is VS2010 you you would first need to compile all the dependency libraries with VS2010.
example:- Compiling openFrameworks itself on VS2010
Some of them you may find pre-compiled in VS2010 folder found in the respective library folders.
And then add them to the linker settings.

Profile
 
 
Posted: 18 February 2013 01:19 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2011-04-13
Total Posts:  46
New Member

You can try changing Project settings -> Configuration properties -> General -> Platform tool set and to vc90 (visual studio 2010 - vc100. visual studio 2008 - vc90. visual studio 2005 - vc80.)
NOTE: you should have vs2008 installed also.

I have not tried it, but it should work.

Profile
 
 
Posted: 19 February 2013 08:50 PM   [ Ignore ]   [ # 3 ]
Rank
Joined  2013-01-22
Total Posts:  3
New Member
pratik9891 - 18 February 2013 01:19 PM

You can try changing Project settings -> Configuration properties -> General -> Platform tool set and to vc90 (visual studio 2010 - vc100. visual studio 2008 - vc90. visual studio 2005 - vc80.)
NOTE: you should have vs2008 installed also.

I have not tried it, but it should work.

I have compiled the OF with vs2010 independently.I don’t change vc100 to vc90 because there isn’t vs2008 on my computer.And I abserved its setting,changed the setting ..\..\..\addons\ofxOsc\libs\oscpack\lib\vs2008\oscpackd.lib to ..\..\..\addons\ofxOsc\libs\oscpack\lib\vs2010\oscpackd.lib.Yeah,compiling is ok.But,it can’t run.Showing “Because the APP’s setting is not right,it can’t run...” in warning dialog box.Maybe it contacts with some .dll files that it can’t find.I can’t know why,do you know what couses this case?Thank you!

Profile
 
 
Posted: 20 February 2013 12:01 PM   [ Ignore ]   [ # 4 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1499
Administrator

Can you please try this version: https://github.com/nuigroup/ccv15 (for reference we are in process of porting more of our projects to github)

 Signature 

~

Profile
 
 
Posted: 20 February 2013 12:53 PM   [ Ignore ]   [ # 5 ]
Rank
Joined  2011-04-13
Total Posts:  46
New Member

Thanks, the github version works on vs2010!
Is there work going on, on porting CCV 1.5 to linux?

Profile