[sldev] cannot open file 'OpenJPEG.lib'
Anna Gulaev
annagulaev at gmail.com
Sun Nov 18 15:10:01 PST 2007
On 11/18/07, Anna Gulaev <annagulaev at gmail.com> wrote:
>
> Robin Cornelius wrote:
> >
> > Anna Gulaev wrote:
> > > MSVCRT.lib(MSVCR71.dll) : error LNK2005: _strtol already defined in
> > > LIBCMTD.lib(strtol.obj)
> > >
> > > (and a whole lot more like this).
> >
>
>
> > ...you may need to set/play with the "no default libs" settings
> > , or exclude default library, i forget the exact name, but its there as
> > a project setting in the link/linker tabs i believe.
>
>
> Thanks Robin, it looks like the compiler agrees with you. After many of
> those errors I got these warnings:
>
> LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
> LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
>
> Being new to Windows, I'm off to the oracle at google to figure out what
> the hell it means :-)
>
> I seem to have gotten through the openjpeg thing by swapping the release
> library into the debug version.
>
No joy. I found that the newview Property Pages > Linker > Input > Ignore
Specific Libraries entry contained this:
msvcrtd;libcd.lib;
Now, since I swapped in the release version of openjpeg I figured I'd have
to add msvcrt to the list. That eliminated one of the LNK4098 errors I was
getting, but now I get alot of 4217's and 4049's, like this:
libcurl.lib(escape.obj) : warning LNK4217: locally defined symbol _strtol
imported in function _curl_easy_unescape
libcurl.lib(mprintf.obj) : warning LNK4217: locally defined symbol _strtol
imported in function _dprintf_IsQualifierNoDollar
libcurl.lib(parsedate.obj) : warning LNK4049: locally defined symbol _strtol
imported
and a number of unresolved, like this:
libcurl.lib(file.obj) : error LNK2019: unresolved external symbol
__imp__close referenced in function _Curl_file_done
OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol
__imp__close
And if I add libcmt to the ignore list, I get rid of the other 4098 and pick
up a bunch more 4217's. And if I use /NODEFAULTLIB (by selecting Yes for
Ignore All Default Libraries) all hell breaks loose.
I could procede by ignoring the warnings and moving onto yet some other
errors, but I really think there is something more fundamentally wrong.
Why is it there are so many "you might have to"s and "in certain versions
of"s and "it's reported that"s and "a workaround"s in the instructions for
building this? Are we not all building the same damned thing? It's not like
I hobbled together some random compiler bits and libraries off some p2p
networks. I have VS 2003, which LL uses, and I downloaded exactly what was
specified using the links provided.
Is this normal for Windows development?
Grrr.
Should I re-evaluate the decision to swap in the release version of openjpeg
into the debug library folder? Why has nobody else reported that
OpenJPEG.lib does not exist in the debug version?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20071118/13c59d9d/attachment.htm
More information about the SLDev
mailing list