Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring libjpeg in Visual Studio 2010

I want to congfigure libjpeg in VS10. I found this guide http://www.leptonica.org/vs2008doc/building-image-libraries.html and downloaded the archive of the library from the same site.The problem is that in the guide is mentioned some file jpeg.sln, but this file is not present in the downloaded archive. I would be happy if someone can help me.

like image 523
NiVeR Avatar asked Sep 28 '12 17:09

NiVeR


1 Answers

Is there a jpeg.prj in the package?

Normally, opening (double-clicking) the .prj file automatically creates a .sln file if one with the same base name isn't already present in that folder.

If there isn't, then do what @HansPassant suggested: Run nmake -f makefile.vc setup-v10 to create the jpeg.sln file.

Note: NMAKE must be in your exec path. If it isn't, go to Start Button > All Programs > Microsoft Visual Studio 10 > Visual Studio Tools > Visual Studio Command Prompt (2010) and then run the above command.

I just tried it. It generates the jpeg.sln file like a charm (along with other necessary files like jpeg.vcxproj etc.)

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jpeg", "jpeg.vcxproj", "{019DBD2A-273D-4BA4-BF86-B5EFE2ED76B1}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Release|Win32 = Release|Win32
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {019DBD2A-273D-4BA4-BF86-B5EFE2ED76B1}.Release|Win32.ActiveCfg = Release|Win32
        {019DBD2A-273D-4BA4-BF86-B5EFE2ED76B1}.Release|Win32.Build.0 = Release|Win32
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal
like image 167
Very Objective Avatar answered Sep 30 '22 08:09

Very Objective