Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-08-25 19:30:45



Reply to topic  [ 5 posts ] 
Compiling on Ubuntu 20.04 
Author Message

Joined: 2020-07-08 23:18:37
Posts: 34
Reply with quote
I want to compile the viewer with optimizations for my system. I think I have all the necessary prerequisites since I'm also attempting to compile Firestorm. When I run the build script, I get an error when it tries to download the prebuilt openssl from http://sldev.free.fr/libraries/. The version on that page is openssl-1.0.2t-linux64-20191205.tar.bz2. However, what gets downloaded to the /var/tmp/.../install.cache directory is openssl-1.0.2u-linux64-20200409.tar.bz2, an empty file.


2020-07-17 00:28:08
Profile

Joined: 2009-03-17 18:42:51
Posts: 6043
Reply with quote
Ah, sorry... I made some cleanup on the site after the deprecation of the viewer v1.26.24 by v1.28.0, but I removed the wrong version of that library (and did not notice for my own builds since, once downloaded, the libraries stay cached in /var/tmp/)...

I re-uploaded OpenSSL v1.0.2u. The viewer will compile fine now.


2020-07-17 09:16:03
Profile WWW

Joined: 2020-07-08 23:18:37
Posts: 34
Reply with quote
Thanks for fixing that. Now on to the next hurdle...

...
Code:
[ 30%] Linking CXX static library libllplugin.a
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
[ 30%] Built target llplugin
[ 30%] Building CXX object llcommon/CMakeFiles/llcommon.dir/llprocessor.cpp.o
[ 30%] Linking CXX static library libllxml.a
[ 31%] Building CXX object llcommon/CMakeFiles/llcommon.dir/llqueuedthread.cpp.o
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
[ 31%] Built target llxml
/home/redacted/src/linden/indra/llcommon/llprocesslauncher.cpp: In member function ‘S32 LLProcessLauncher::launch()’:
/home/redacted/src/linden/indra/llcommon/llprocesslauncher.cpp:207:10: error: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Werror=unused-result]
  207 |   ::chdir(mWorkingDir.c_str());
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/redacted/src/linden/indra/llcommon/llprocesslauncher.cpp:228:11: error: ignoring return value of ‘int fchdir(int)’, declared with attribute warn_unused_result [-Werror=unused-result]
  228 |   ::fchdir(current_wd);
      |   ~~~~~~~~^~~~~~~~~~~~
[ 31%] Building CXX object llmessage/CMakeFiles/llmessage.dir/llcorehttpoperation.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [llcommon/CMakeFiles/llcommon.dir/build.make:544: llcommon/CMakeFiles/llcommon.dir/llprocesslauncher.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
Scanning dependencies of target llappearance
[ 31%] Building CXX object llmessage/CMakeFiles/llmessage.dir/llcorehttpoprequest.cpp.o
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
make[2]: Entering directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
[ 31%] Building CXX object llappearance/CMakeFiles/llappearance.dir/llavatarappearance.cpp.o
[ 31%] Building CXX object llmessage/CMakeFiles/llmessage.dir/llcorehttpopsetget.cpp.o
[ 31%] Building CXX object llmessage/CMakeFiles/llmessage.dir/llcorehttpopsetpriority.cpp.o
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
make[1]: *** [CMakeFiles/Makefile2:747: llcommon/CMakeFiles/llcommon.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 31%] Building CXX object llmessage/CMakeFiles/llmessage.dir/llcorehttpoptions.cpp.o
...
[ 41%] Linking CXX static library libllappearance.a
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
[ 41%] Built target llappearance
[ 41%] Linking CXX static library libllmessage.a
make[2]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
[ 41%] Built target llmessage
make[1]: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
make: *** [Makefile:84: all] Error 2
make: Leaving directory '/home/redacted/src/linden/indra/viewer-linux-x86_64-release'
Error: the command 'make' exited with status 2


:?:


2020-07-17 13:14:04
Profile

Joined: 2009-03-17 18:42:51
Posts: 6043
Reply with quote
linden/doc/LinuxBuildHowto.txt:
Quote:
a.- If your version of gcc/clang spews warnings and aborts the compilation
(seen when using compiler versions that are not among the tested ones: see
paragraph 1), then you can force the compilation, not treating warnings as
errors with: ./buildlinux.sh [--clang] --ignore-warnings


2020-07-17 14:01:32
Profile WWW

Joined: 2020-07-08 23:18:37
Posts: 34
Reply with quote
Viewer successfully built with optimizations. 8-)


2020-07-17 17:32:37
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.