Hi to all:

I need help with this. Can you give me a step by step procedure to compile lcms in visual studio 2005 c++? I tries so many options unsuccessfully. I search the web, but I did not find a solution. The problem is with the tifflib.lib and the libjpeg.lib libraries. I didn't have those libraries, therefore the compiler gave a  "cannot open file ..." error. I look for those libraries online, but I don't know how to integrate the files to the lcms project. Any help will be really appreciated.

Thanks,
Hector
PS. I compiled the program in linux without any problems, but I really need to work on VS. :-(


This is my last compilation
1>------ Build started: Project: tifficc, Configuration: Debug Win32 ------
2>------ Build started: Project: tiffdiff, Configuration: Debug Win32 ------
2>Linking...
1>Linking...
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strncmp already defined in LIBCMT.lib(strncmp.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _vfprintf already defined in LIBCMT.lib(vfprintf.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fprintf already defined in LIBCMT.lib(fprintf.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _floor already defined in LIBCMT.lib(floor_pentium4.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _sprintf already defined in LIBCMT.lib(sprintf.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __read already defined in LIBCMT.lib(read.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __write already defined in LIBCMT.lib(write.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __lseek already defined in LIBCMT.lib(lseek.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __close already defined in LIBCMT.lib(close.obj)
2>MSVCRT.lib(MSVCR80.dll) : error LNK2005: __open already defined in LIBCMT.lib(open.obj)
2>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>..\..\bin\tiffdiff.exe : fatal error LNK1169: one or more multiply defined symbols found
1>libtiff.lib(tif_close.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _TIFFCleanup
1>libtiff.lib(tif_dirinfo.obj) : warning LNK4049: locally defined symbol _strncmp imported
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol _malloc imported in function __TIFFmalloc
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol _free imported in function __TIFFfree
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol _realloc imported in function __TIFFrealloc
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol _vfprintf imported in function _unixWarningHandler
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol __iob imported in function _unixWarningHandler
1>libtiff.lib(tif_unix.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _unixWarningHandler
1>libtiff.lib(tif_dirinfo.obj) : warning LNK4049: locally defined symbol _fprintf imported
1>libtiff.lib(tif_fax3.obj) : warning LNK4217: locally defined symbol _fprintf imported in function __TIFFFax3fillruns
1>libtiff.lib(tif_predict.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _fpAcc
1>libtiff.lib(tif_aux.obj) : warning LNK4217: locally defined symbol _floor imported in function _TIFFDefaultTransferFunction
1>libtiff.lib(tif_dirinfo.obj) : warning LNK4217: locally defined symbol _sprintf imported in function __TIFFCreateAnonFieldInfo
1>OLDNAMES.lib(read.obi) : warning LNK4049: locally defined symbol __read imported
1>OLDNAMES.lib(write.obi) : warning LNK4049: locally defined symbol __write imported
1>OLDNAMES.lib(lseek.obi) : warning LNK4049: locally defined symbol __lseek imported
2>Build log was saved at "file://c:\Documents and Settings\Maxhec\My Documents\Academics\PhD\Thesis\Color Management\Programming\lcms-1.16\Projects\VC2005\tiffdiffDebug\BuildLog.htm"
1>OLDNAMES.lib(close.obi) : warning LNK4049: locally defined symbol __close imported
1>OLDNAMES.lib(open.obi) : warning LNK4049: locally defined symbol __open imported
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__read referenced in function __tiffReadProc
1>OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp__read
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__write referenced in function __tiffWriteProc
1>OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp__write
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__lseek referenced in function __tiffSeekProc
1>OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp__lseek
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__close referenced in function __tiffCloseProc
1>OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp__close
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__fstat referenced in function __tiffSizeProc
1>OLDNAMES.lib(fstat.obi) : error LNK2001: unresolved external symbol __imp__fstat
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__open referenced in function _TIFFOpen
1>OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol __imp__open
1>libtiff.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp___wopen referenced in function _TIFFOpenW
1>libtiff.lib(tif_fax3.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_lzw.obj) : error LNK2019: unresolved external symbol __imp___assert referenced in function _TIFFInitLZW
1>libtiff.lib(tif_dumpmode.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_predict.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_write.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_read.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_dirinfo.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_luv.obj) : error LNK2001: unresolved external symbol __imp___assert
1>libtiff.lib(tif_dirinfo.obj) : error LNK2019: unresolved external symbol __imp__qsort referenced in function _TIFFMergeFieldInfo
1>libtiff.lib(tif_dirinfo.obj) : error LNK2019: unresolved external symbol __imp__bsearch referenced in function _TIFFFindFieldInfo
1>libtiff.lib(tif_dirinfo.obj) : error LNK2019: unresolved external symbol __imp___lfind referenced in function _TIFFFindFieldInfoByName
1>libtiff.lib(tif_luv.obj) : error LNK2019: unresolved external symbol __imp__rand referenced in function _LogL16fromY
1>OLDNAMES.lib(fstat.obi) : error LNK2001: unresolved external symbol __imp___fstat32
1>..\..\bin\tifficc.exe : fatal error LNK1120: 13 unresolved externals
2>tiffdiff - 14 error(s), 1 warning(s)
1>Build log was saved at "file://c:\Documents and Settings\Maxhec\My Documents\Academics\PhD\Thesis\Color Management\Programming\lcms-1.16\Projects\VC2005\tifficcDebug\BuildLog.htm"
1>tifficc - 27 error(s), 18 warning(s)
3>------ Build started: Project: jpegicc, Configuration: Debug Win32 ------
3>Linking...
3>LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
3>Build log was saved at "file://c:\Documents and Settings\Maxhec\My Documents\Academics\PhD\Thesis\Color Management\Programming\lcms-1.16\Projects\VC2005\JPEGIccDebug\BuildLog.htm"
3>jpegicc - 1 error(s), 0 warning(s)
4>------ Build started: Project: Python, Configuration: Debug Win32 ------
4>Performing Custom Build Step
4>'swig' is not recognized as an internal or external command,
4>operable program or batch file.
4>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
4>Build log was saved at "file://c:\Documents and Settings\Maxhec\My Documents\Academics\PhD\Thesis\Color Management\Programming\lcms-1.16\Projects\VC2005\PythonDebug\BuildLog.htm"
4>Python - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 6 up-to-date, 0 skipped ==========

--
begin:vcard
fn:Hector J. Santos-Villalobos
n:Santos-Villalobos;Hector J.
org:Purdue University;Electrical and Computer Engineering
adr:;;465 Northwestern Ave. #516;West Lafayette;IN;47907-2035;USA
email;internet:[EMAIL PROTECTED]
title:Graduate Student
tel;cell:787-466-4460
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to