[pjsip] Visual Studio 2010 support

Miljenko Cvjetko mcvjetko at holisticware.net
Wed Feb 8 05:19:38 EST 2012


Howdy!

Update on this issue - see inline pls.

On 2012.02.07 06:19, Jörg Schwarzenberg wrote:
> Hi!
>
>> How far is support for Visual Studio 2010?
>
> On Sat, 22 Oct 2011 ruiyun.wen at gmail.com posted his vs2010 project 
> files for 1.10 in this mailing list.
>
> He said: "No completed test, but build fine."
>
> For the 2.x branch nothing has been posted yet.
Yesterday and today I have managed to write several batch scripts (msdos 
+ utils like msxsl.exe)
for conversion from vs8 (VS2005) to vs10 (vs2010).
Conversion is almost automagic ( 4 times doubleclick) and works for both 
versions 1.12 and
2.0 beta.
There are few steps that must be made manually after opening solutions 
(adding paths for DirectX SDK).

Today I'll write small writeup how to do conversion.
All 4 scripts should be in the same directory where zips are.

Issues to tackle:

  * warning MSB8012 (those might not be a problem - still investigating)
    MSB8012:
    $(TargetPath) and Linker's OutputFile property value does not match
    http://blogs.msdn.com/b/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide.aspx
  * DirectX SDK
  * warning MSB4211
    .\PJSIP\pjproject-1.12\build\vs\pjproject-vs8-win32-common-defaults.props;

    The property "TargetCPU" is being set to a value for the first time,
    but it was already consumed
    at
    ".\PJSIP\pjproject-1.12\build\vs\pjproject-vs8-common-defaults.props".
    this one causes
  * preserving original vs2005 (vs8) solutions

TODOs:

  * preserving original vs2005 (vs8) solutions
  * writeup

------------------------------------------------------------------------------------------------------
HowTo


unzip-sources.bat
     unzip sources

backup-vcproj-files.bat
     foreach (File f = *.vcrpoj in folders)
     {
       copy(f, f.mc++.vcproj);
     }

remove-mobile-platforms-from-csproj-files.bat
     remove-mobile-dependencies.xslt
     requirements: c:\bin\msxsl.exe

pjsip-prepare.bat
     copies
         config-site-sample.h
         to
         config-site.h


Import

2.0
Errors:
Error    80    error LNK1104: cannot open file 'dxguid.lib'    
D:\SRC\HolisticWare\HolisticWare_VoIP\PJSIP\pjproject-2.0-beta\pjsip-apps\build\LINK    
samples
Error    82    error MSB3073: The command "nmake /NOLOGO /S /f 
Samples-vc.mak BUILD_MODE=debug VC_VER=8 /a" exited with code 2.    
C:\Program 
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets    43    
6    samples
Error    81    error U1077: '"c:\Program Files\Microsoft Visual Studio 
10.0\VC\bin\cl.EXE"' : return code '0x2'    
D:\SRC\HolisticWare\HolisticWare_VoIP\PJSIP\pjproject-2.0-beta\pjsip-apps\build\NMAKE    
samples

1.12
Errors:
Error    78    error LNK1181: cannot open input file 'dxguid.lib'    
D:\SRC\HolisticWare\HolisticWare_VoIP\PJSIP\pjproject-1.12\pjsip-apps\build\LINK    
sample_debug
Error    79    error MSB6006: "link.exe" exited with code 1181.    
C:\Program 
Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets    
275    6    sample_debug


Manual stuff!!!

Solution:
     add Path to dxguid.lib


------------------------------------------------------------------------------------------------------
regards

mel

>
>
> Best Regards
> Jörg
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


-- 
Miljenko Cvjetko dipl.ing. ET
	Direktor/CEO
	Projektant rjes(enja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://www.holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120208/dbac479f/attachment.html>


More information about the pjsip mailing list