Difference between revisions of "User:Paula Innis/MSVC2005 viewer compile progress"

From Second Life Wiki
Jump to navigation Jump to search
m (clarification of download vers used & linden\indra\test\llinventory.cpp @63 removed)
(resolved linden\indra\newview\llurlwhitelist.cpp error)
Line 45: Line 45:
*linden\indra\newview\llpaneldirevents.cpp @137,169
*linden\indra\newview\llpaneldirevents.cpp @137,169
  typecast to (S32)utc_time
  typecast to (S32)utc_time
*linden\indra\newview\llurlwhitelist.cpp @42,43
change
  mUrlList ( 0 ),
  mUrlListIter ( 0 )
to
  mUrlList (  ),
  mUrlListIter (  )


----
----
'''I'm left with 2 errors'''
'''I'm left with 1 compiler error'''
linden\indra\test\lldatabase_tut.cpp missing in project test


linden\indra\test\lldatabase_tut.cpp
'''2 compiler warnings'''
missing
*Project: lscript_compile_fb
Building ytab.cpp
indra.y:93.33-45: warning: symbol STATE_DEFAULT redeclared
conflicts: 44 reduce/reduce


linden\indra\newview\llurlwhitelist.cpp @44
*Project: lscript_compile
typecast
ytab.cpp
.\ytab.cpp(1841) : warning C4065: switch statement contains 'default' but no 'case' labels
 
'''a few Linker warnings'''
*2 * LNK4221 (no public symbols found)
bitpack.obj in project llcommon, llrect.obj in project llmath
*34 * LNK4099 in project win_crash_logger to do with the Apache PDBs
 
'''and the linker errors for boost and mozlib'''


Compiler Output:
------ Build started: Project: test, Configuration: ReleaseNoOpt Win32 ------
Compiling...
lldatabase_tut.cpp
c1xx : fatal error C1083: Cannot open source file: '.\lldatabase_tut.cpp': No such file or
directory
Build log was saved at "file://c:\Programming\VC\linden\indra\test\ReleaseNoOpt\BuildLog.htm"
test - 1 error(s), 0 warning(s)
------ Build started: Project: newview, Configuration: ReleaseNoOpt Win32 ------
Compiling...
llurlwhitelist.cpp
c:\programming\vc\linden\indra\newview\llurlwhitelist.cpp(44) : error C2664:
'std::list<_Ty>::_Iterator<_Secure_validation>::_Iterator(
  const std::list<_Ty>::_Iterator<_Secure_validation> &)' :
cannot convert parameter 1 from 'int' to
'const std::list<_Ty>::_Iterator<_Secure_validation> &'
        with
        [
            _Ty=LLString,
            _Secure_validation=true
        ]
        Reason: cannot convert from 'int' to
'conststd::list<_Ty>::_Iterator<_Secure_validation>'
        with
        [
            _Ty=LLString,
            _Secure_validation=true
        ]
        No constructor could take the source type, or constructor overload resolution was
ambiguous
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved
at "file://c:\Programming\VC\linden\indra\newview\ReleaseNoOpt\BuildLog.htm"
newview - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 21 up-to-date, 0 skipped ==========
----
----
[[Common_compilation_problems]]
[[Common_compilation_problems]]

Revision as of 13:47, 9 January 2007

After doing the following in VC2005 Express;


With slviewer-src-20070108c.zip & slviewer-win32-libs-20070108c.zip Plus additional libraries and development environment API's from Compiling_the_viewer_(MS_Windows) (Except that Python version 2.5 was installed)


  • Set 'Treat wchar_t as Built-in Type' to No for (atn least) llcommon,llwindow,llvfs and newview

This will get rid of the character typecast errors with the character set conversion calls (16 to 8 bit etc.)

  • In linden\indra\llcommon\llstringtable.h @ line 103
replace 'std' with 'stdext' (namespace moved)
  • In linden\indra\llcommon\llerror.h & linden\indra\win_updater\updater.cpp

adding something like;

#if LL_WINDOWS
# if (_MSC_VER >= 1400)
#  pragma warning(disable : 4996)
# endif
#endif
  • In linden\indra\llcommon\u64.cpp @line 36
char *aptr to const char *aptr
  • linden\indra\llprimitive\llprimitive.cpp @1200
exception_faces |= ((U64)1 << i);

other typecast fixes - all to do with time:)

  • linden\indra\test\llinventory.cpp @1433
(S32)now
  • linden\indra\llui\llsliderctrl.cpp @218,251
10.0 instead of 10 will do.
  • linden\indra\test\inventory.cpp @63
typecast to (S32)time(NULL)
  • linden\indra\newview\llstartup.cpp @1459
typecast to (S32)now
  • linden\indra\newview\llpaneldirevents.cpp @137,169
typecast to (S32)utc_time
  • linden\indra\newview\llfloaterreporter.cpp @668
typecast to (U32)mcd->mTime
  • linden\indra\newview\llfloaterland.cpp @2609,2878
typecast to (S32)time(NULL)
  • linden\indra\newview\llfloaterbump.cpp @120
typecast to (S32)mcd->mTime
  • linden\indra\newview\viewer.cpp @2510
srand((U32)time(NULL));
  • linden\indra\newview\llpaneldirevents.cpp @137,169
typecast to (S32)utc_time
  • linden\indra\newview\llurlwhitelist.cpp @42,43
change
 mUrlList ( 0 ),
 mUrlListIter ( 0 )
to
 mUrlList (  ),
 mUrlListIter (  )

I'm left with 1 compiler error linden\indra\test\lldatabase_tut.cpp missing in project test

2 compiler warnings

  • Project: lscript_compile_fb

Building ytab.cpp indra.y:93.33-45: warning: symbol STATE_DEFAULT redeclared conflicts: 44 reduce/reduce

  • Project: lscript_compile

ytab.cpp .\ytab.cpp(1841) : warning C4065: switch statement contains 'default' but no 'case' labels

a few Linker warnings

  • 2 * LNK4221 (no public symbols found)

bitpack.obj in project llcommon, llrect.obj in project llmath

  • 34 * LNK4099 in project win_crash_logger to do with the Apache PDBs

and the linker errors for boost and mozlib


Common_compilation_problems