Re: [Lcms-user] Getting my feet wet with LittleCMS
An ICC-based CMM for color management
Brought to you by:
mm2
From: <Mar...@li...> - 2014-07-09 06:18:27
|
Hello Roger, The missing headers you report are probably libtiff and libjpeg. Unlike linux, there is no standard installation for those libraries in windows, so I assumed some directories: in particular C:\jpeg-8d and c:\tiff-4.0.2\libtiff You may want to change those in configuration properties, VC++ directories. But anyway those for tifficc and jpegicc and not strictly required for the core CMM. The errors you get are because you are not linking the library with your project. Regarding lcms2.h, you only need to put #include "lcms2.h", you are not supposed to copy the whole file contents. You could try a very simple program to experiment linking. In visual studio you can add a dependency and you got linking automatically. Take a look on any of the projects in the lcms2 solution, linkicc or transicc for example. Please let me know if this worked for you. Regards Marti. Quoting Roger Breton <gr...@vi...>: > Hi Marti and all, > > > > I am running MS VisualStudio2013 on Win 8.1. > > > > I have downloaded lcms2-2.6.zip from Sourceforge. > > > > I have located and opened lcms2.sln within \lcms2-2.6\Projects\VC2012. > > > > There are a few header files that seems to be missing (?) but that's not the > main issue. > > > > In the LittleCMS2.6 tutorial.pdf, on page 7, you write "Any application > using LittleCMS 2 has to include just one header". OK. > > > > Further down, you write "Unlike 1.xx series, all internal functions are no > longer accessible for client applications". OK. > > > > So, on page 57, Sample 1, "How to convert from RGB to CMYK", I select all > the code and copy it into a new Win32 project. > > > > Then I create a new header file in which I paste the whole lcms2.h content. > > > > So far so good. > > > > Then I try to run the program and then I get llena de errors :( > > > > error LNK2019: unresolved external symbol _cmsOpenProfileFromFile referenced > in function _main > > error LNK2019: unresolved external symbol _cmsCloseProfile referenced in > function _main > > error LNK2019: unresolved external symbol _cmsCreateTransform referenced in > function _main > > error LNK2019: unresolved external symbol _cmsDeleteTransform referenced in > function _main > > error LNK2019: unresolved external symbol _WinMain@16 referenced in function > ___tmainCRTStartup > > error LNK1120: 5 unresolved externals c:\users\me\documents\visual studio > > > > > Is there something I have to uncomment for VisualStudio2013? > > Could it be related to the fact that VisualStudio is only offering me a C++ > compiling environment? > > Don't know what to say, Marti. Any help is appreciated. > > > > Muchas gracias / Roger Breton |