Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Help with building CoolVLViewer under Arch Linux http://sldev.free.fr/forum/viewtopic.php?f=6&t=1644 |
Page 1 of 1 |
Author: | g0rd0ngrfr33mailgr [ 2016-07-10 16:56:20 ] | |||||||||
Post subject: | Help with building CoolVLViewer under Arch Linux | |||||||||
Greetings, Henri. In order to build the viewer under Linux, one needs to (a) force the use of gcc 4.9 (I know you recommend 4.6 and I will try that, but I'm afraid I haven't even reached the point yet), and (b) force the use of python 2. In order to accomplish this, I have made this patch. However, the compilation stops at the very beginning, when it's trying to download the libraries, with the following error:
I am not a programmer, just a user, so I am thinking that perhaps something in my patch is wrong. Could you offer some help please? |
Author: | Henri Beauchamp [ 2016-07-10 18:24:58 ] | ||||||||||||||||||||||||||||||||||||
Post subject: | Re: Help with building CoolVLViewer under Arch Linux | ||||||||||||||||||||||||||||||||||||
This is a problem with Python, obviously. I don't know how Arch Linux works, but on RedHat derivatives, there's an "alternatives" command which allows to pick up the version of various programs (such as gcc and python), and you type:
/usr/bin/python -> /etc/alternatives/python /etc/alternatives/python -> /usr/bin/python2 This way, when you invoke '/usr/bin/python', it's /usr/bin/python2 which gets executed, and only the links in /etc/alternatives need to be changed to choose which python version to use. Things with gcc are more complex, because 'alternatives' also changes the links to 'cc', 'g++', 'c++', 'cpp', etc... If you don't have an equivalent of the 'alternatives' utility in Arch Linux, then you still can use your patch, but you missed the indra/cmake/Python.cmake file. Change line 41 to read:
Also, in your patch you wrongly spelled "CMAKE_C_COMPILER" as "CMAKE_C_COMPILE". Alternatively, you may (as "root") type from a terminal:
Then compile the viewer, and revert the changes once done:
|
Author: | g0rd0ngrfr33mailgr [ 2016-07-11 11:46:21 ] | |||||||||
Post subject: | Re: Help with building CoolVLViewer under Arch Linux | |||||||||
Thank you, Henri, for your help. Especially for noticing my typo. There is no "environment" utility as such, but there are tricks to change the environment, however I would rather avoid it and just patch the code, since this is to be put in a compiling and packaging script. The updated patch is here, however I am afraid the result is still the same (quoting only the relevant bit). I changed the relevant lines (a bit before and after 41) of indra/cmake/Python.cmake, I even tried putting your changes in place.
|
Author: | Henri Beauchamp [ 2016-07-11 12:26:38 ] |
Post subject: | Re: Help with building CoolVLViewer under Arch Linux |
This (the 'print' syntax error) is still a problem with the usage of python v3 as the default python engine, while normally, v2 is the default in all Linux distros (in which you have to explicitly invoke 'python3' to use Python v3). Please, try the trick I gave you (i.e. changing /usr/bin/python to point to python v2 instead of v3): you'll not get it to work otherwise. I suggest you complain to your distro maker for not providing a standard development environment, or at the very least, an easy way to configure it. |
Author: | Henri Beauchamp [ 2016-07-11 20:08:04 ] | |||||||||
Post subject: | Re: Help with building CoolVLViewer under Arch Linux | |||||||||
Try this patch (apply with 'patch -p1 -s <full_path_name_of_the_patch' from inside the linden/ directory of the sources) to the original sources of the Cool VL Viewer v1.26.18.14 or v1.26.19.16.
On you system, use as follow:
It should work, this time, even on Arch Linux... |
Author: | g0rd0ngrfr33mailgr [ 2016-07-12 13:39:16 ] | ||||||||||||||||||
Post subject: | Re: Help with building CoolVLViewer under Arch Linux | ||||||||||||||||||
Thank you very much! It did work!
Now, however, I get errors of the type
but I will try with gcc 4.6 as advised within the next days and report back. Again, thank you. |
Author: | Henri Beauchamp [ 2016-07-12 13:49:43 ] |
Post subject: | Re: Help with building CoolVLViewer under Arch Linux |
It looks like an issue with your libstdc++ library headers... Very strange, and not an issue with the viewer sources themselves, apparently (which compile fine with gcc v4.9.2 here). |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |