Difference between revisions of "User:Opensource Obscure/Compiling"
m (→Intro) |
m |
||
Line 1: | Line 1: | ||
[[User:Opensource_Obscure|BACK to User:Opensource_Obscure]] | [[User:Opensource_Obscure|BACK to User:Opensource_Obscure]] | ||
== Pagine utili in questo wiki == | |||
* [[Viewer source]] | |||
* [[Viewer Architecture]] e relativi link | |||
* [[Adding_a_menu_item]] | |||
* [[UI_Widgets]] | |||
* [[UI_Floaters]] | |||
* [[Adding_a_dialog]] | |||
* [[User:Dzonatas_Sol/Cross_compiling_the_viewer_(i686-mingw32)]] | |||
== Intro == | == Intro == | ||
Line 5: | Line 15: | ||
cd indra/ | cd indra/ | ||
./develop.py | ./develop.py | ||
== Customization == | == Customization == | ||
viewer-linux-i686-relwithdebinfo/CMakeCache.txt --> per sostituire "(Developer)" nel floater '''About Second Life''' | viewer-linux-i686-relwithdebinfo/CMakeCache.txt --> per sostituire "(Developer)" nel floater '''About Second Life''' | ||
== SpaceNavigator == | == SpaceNavigator == | ||
Line 43: | Line 55: | ||
cd indra/viewer-linux-i686/ | cd indra/viewer-linux-i686/ | ||
make | make | ||
== Ombre / Shadows == | == Ombre / Shadows == | ||
Line 51: | Line 64: | ||
50 150 300 | 50 150 300 | ||
and you will find the distance at which shadows show to be increased, be aware tho that they might be a little more rough up close. The other settings I tinkered with, but in the end left at the default...tho you can also increase the amount of blur passes (beware FPS hits), and the strength of the blur and gaussian. | and you will find the distance at which shadows show to be increased, be aware tho that they might be a little more rough up close. The other settings I tinkered with, but in the end left at the default...tho you can also increase the amount of blur passes (beware FPS hits), and the strength of the blur and gaussian. | ||
== Pacchetti da installare == | |||
apt-get install cmake flex bison libglu1-mesa-dev libssl-dev | |||
Come trovare le dipendenze richieste ([https://lists.secondlife.com/pipermail/sldev/2009-March/013050.html vedi qui]) - ESEMPIO con omvviewer: | |||
omvviewer/indra/build/newview>ldd ./omvviewer | |||
Line 77: | Line 98: | ||
* In indra/cmake/00-Common.cmake > Line 183, commentare cosi' ([https://lists.secondlife.com/pipermail/sldev/2009-March/013048.html vedi qui] - [https://lists.secondlife.com/pipermail/sldev/2009-March/013049.html spiegazione]): | * In indra/cmake/00-Common.cmake > Line 183, commentare cosi' ([https://lists.secondlife.com/pipermail/sldev/2009-March/013048.html vedi qui] - [https://lists.secondlife.com/pipermail/sldev/2009-March/013049.html spiegazione]): | ||
set(GCC_WARNINGS "${GCC_WARNINGS} -Werror") | set(GCC_WARNINGS "${GCC_WARNINGS} -Werror") | ||
Revision as of 06:17, 26 March 2009
BACK to User:Opensource_Obscure
Pagine utili in questo wiki
- Viewer source
- Viewer Architecture e relativi link
- Adding_a_menu_item
- UI_Widgets
- UI_Floaters
- Adding_a_dialog
- User:Dzonatas_Sol/Cross_compiling_the_viewer_(i686-mingw32)
Intro
cd indra/ ./develop.py
Customization
viewer-linux-i686-relwithdebinfo/CMakeCache.txt --> per sostituire "(Developer)" nel floater About Second Life
- copiare libndofdev.a in libraries/i686-linux/lib_release_client/
- sostituire DARWIN con DARWIN OR LINUX in indra/cmake/NDOF.cmake
NB: Va inizialmente creato (una tantum) il file /etc/udev/rules.d/41-spacenavigator.rules con questo contenuto:
KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c603", SYMLINK+="input/spacemouse", GROUP="plugdev" KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c623", SYMLINK+="input/spacetraveler", GROUP="plugdev" KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c626", SYMLINK+="input/spacenavigator", GROUP="plugdev"
Cambio di Shortcut per poter nascondere l'interfaccia
Modificare indra/newview/llviewermenu.cpp
FMOD
cd fmodapi375linux/ cp api/inc/* ../linden/libraries/i686-linux/include/ cp api/libfmod-3.75.so ../linden/libraries/i686-linux/lib_release_client/ cp api/libfmod-3.75.so ../linden/libraries/i686-linux/lib_release/ cp api/libfmod-3.75.so ../linden/libraries/i686-linux/lib_debug/
Compilare as usual
cd indra/ ./develop.py build
o
cd indra/viewer-linux-i686/ make
Ombre / Shadows
(vedi qui) - Open up the debug settings, and search for
RenderShadowClipPlanes(?)
Put in values like
50 150 300
and you will find the distance at which shadows show to be increased, be aware tho that they might be a little more rough up close. The other settings I tinkered with, but in the end left at the default...tho you can also increase the amount of blur passes (beware FPS hits), and the strength of the blur and gaussian.
Pacchetti da installare
apt-get install cmake flex bison libglu1-mesa-dev libssl-dev
Come trovare le dipendenze richieste (vedi qui) - ESEMPIO con omvviewer:
omvviewer/indra/build/newview>ldd ./omvviewer
Errori
llcubemap / typedef struct Vertex
[ 31%] Building CXX object llrender/CMakeFiles/llrender.dir/llcubemap.o cc1plus: warnings being treated as errors In file included from ;)/sources/1-21-r99587/linden/indra/llrender/llcubemap.cpp:44: ;)/sources/1-21-r99587/linden/indra/llrender/llrender.h:222: error: ‘typedef’ was ignored in this declaration make[2]: *** [llrender/CMakeFiles/llrender.dir/llcubemap.o] Error 1 make[1]: *** [llrender/CMakeFiles/llrender.dir/all] Error 2 make: *** [all] Error 2
format not a string literal and no format arguments
Se si ottiene questo errore, fare una delle due:
- sostituire in indra/linux_crash_logger/llcrashloggerlinux.cpp :
dialog_text);
con
"%s", dialog_text);
- In indra/cmake/00-Common.cmake > Line 183, commentare cosi' (vedi qui - spiegazione):
set(GCC_WARNINGS "${GCC_WARNINGS} -Werror")