[sldev] Compile errors of SL viewer 1.20 in VS2005

wuhanzymail wuhanzymail at 163.com
Fri Apr 25 06:47:20 PDT 2008


 Thanks Felix, I think I've already done all of things mentioned in these three links. But the first problem still exists.
 
"linden\indra\lscript\lscript_compile\lex_yy.cpp(2514) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory"
 
 I checked the whole directory of 'linden' and did not find 'unistd.h'. It seems that the lex_yy.cpp is created dynamically when I compile 'lscript_compile_fb'? 
 The problem is located in Ln2516 of lex_yy.cpp
---------------------------------------------------------------------------------
...
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
 * down here because we want the user's section 1 to have been scanned first.
 * The user has a chance to override it with an option.
 */
#include <unistd.h>
#endif
...

---------------------------------------------------------------------------------
 
Is there any other setting of environment I missed? 
 
Ying

在2008-04-25,"Felix Duesenburg" <kfa at gmx.net> 写道:

Hi,

I think you first need to make sure that your build environment is setup
properly. Actually you shouldn't get these include errors then.

http://wiki.secondlife.com/wiki/Microsoft_Visual_Studio
http://wiki.secondlife.com/wiki/Compiling_the_viewer_%28MSVS2005%29
http://wiki.secondlife.com/wiki/Converting_project_files_for_MSVS2005

The last step shouldn't be necessary anymore, but it helps looking there
in case you still run into trouble.

Good luck!

Felix


wuhanzymail wrote:
> Hi,
>  
> This is the first time I compile secondlife viewer using VS2005. I download source code of 1.20 (slviewer-src-Branch_1-20-Viewer-r85643) and try to compile them but get below errors:
>  
> 1>------ Build started: Project: lscript_compile, Configuration: ReleaseNoOpt Win32 ------
> 1>Compiling...
> 1>lex_yy.cpp
> 1>...\linden\indra\lscript\lscript_compile\lex_yy.cpp(2514) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
> 1>Build log was saved at "...\linden\indra\lscript\lscript_compile\ReleaseNoOpt\BuildLog.htm"
> 1>lscript_compile - 1 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> 
>  
>  
> 1>------ Build started: Project: newview, Configuration: ReleaseNoOpt Win32 ------
> 1>Compiling resources...
> 1>.\res\newViewRes.rc(66) : error RC2135 : file not found: icon1.ico
> 1>.\res\newViewRes.rc(224) : error RC2135 : file not found: toolplay.cur
> 1>.\res\newViewRes.rc(225) : error RC2135 : file not found: toolpause.cur
> 1>.\res\newViewRes.rc(226) : error RC2135 : file not found: toolmediaopen.cur
> 1>Build log was saved at "...\linden\indra\newview\ReleaseNoOpt\BuildLog.htm"
> 1>newview - 4 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> 
>  
>  
> 1>------ Build started: Project: win_crash_logger, Configuration: ReleaseNoOpt Win32 ------
> 1>Compiling...
> 1>llcrashloggerwindows.cpp
> 1>...\linden\libraries\include\boost/utility/enable_if.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 1>...\linden\libraries\include\boost/utility/enable_if.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 1>.\llcrashloggerwindows.cpp(102) : error C2440: 'initializing' : cannot convert from 'llutf16string' to 'std::basic_string<_Elem,_Traits,_Ax>'
> 1>        with
> 1>        [
> 1>            _Elem=wchar_t,
> 1>            _Traits=std::char_traits<wchar_t>,
> 1>            _Ax=std::allocator<wchar_t>
> 1>        ]
> 1>        No constructor could take the source type, or constructor overload resolution was ambiguous
> 1>Build log was saved at "...\linden\indra\win_crash_logger\ReleaseNoOpt\BuildLog.htm"
> 1>win_crash_logger - 1 error(s), 2 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> 
>  
> I don't know what's the problems. Would you please give me some suggestions or solutions? I will appreciate for that. Thank you very much!
>  
> Best Regards,
> Ying
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20080425/e4c11308/attachment.htm


More information about the SLDev mailing list