Palaiologos Posted May 5, 2018 Report Share Posted May 5, 2018 Hello, It seems that I'm incorrectly compiling code. After the 'makeĀ -j3' command per the build instructions for debian, ModIo.cpp errors appear which I assume means the compiling was unsuccessful. There are a few added screen shot attachments as well if it helps. Thanks for your time in advance. Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 5, 2018 Report Share Posted May 5, 2018 That's probably because the libsodium in your package manager is too old. I can't remember the exact version number but it should be superior to 1.0.0.14 Quote Link to comment Share on other sites More sharing options...
elexis Posted May 5, 2018 Report Share Posted May 5, 2018 Too old or not installed. Check the Build Instructions page for the required minimum version. 1 Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 5, 2018 Author Report Share Posted May 5, 2018 (edited) libsodium-stable-2018-05-05.tar.gz 29-Apr-2018 15:48 "On all versions except Ubuntu 18.04, you will need to install libsodium manually This tarball was the one that I first extracted. Ā Edited May 5, 2018 by Palaiologos Forgot to mention Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 5, 2018 Report Share Posted May 5, 2018 So you habe installed libsodium manually? If so check if you still have the system libsodium package installed. (You should remove that) Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 5, 2018 Author Report Share Posted May 5, 2018 Yes, correct @Imarok. Here is Synaptic results. libsodium 1.0.8-5 Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 6, 2018 Report Share Posted May 6, 2018 So now (after removing the system one) it works? Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 6, 2018 Author Report Share Posted May 6, 2018 @Imarok 23 hours ago, Palaiologos said: libsodium-stable-2018-05-05.tar.gz ļ»æ 29-Apr-2018 15:48 So, what your saying is to do an auto-removal of the libsodium.tar in my above post? or all libsodium packages that are seen in synaptic? 20 hours ago, Imarok said: sļ»æystem libsodļ»æium package Which one would that be exactly? Apologies for confusion here. Also, I made sure to take into consideration per the build instructions that it was the most recent or required version, as @elexis and @stanislas69 have also pointed out in regards to. Quote Link to comment Share on other sites More sharing options...
elexis Posted May 6, 2018 Report Share Posted May 6, 2018 Did you run clean-workspaces.sh after installing/updating libsodium? Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 6, 2018 Report Share Posted May 6, 2018 Just remove/uninstall all libsodium you have on your machine, then install only the newest one manually. Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 6, 2018 Author Report Share Posted May 6, 2018 @elexis 1 hour ago, elexis said: Did you run clean-workspaces.sh after installing/updating libsodium? ļ»æ Ā Yes, was not fully thorough when providing the initially posted screen-shots showing various terminal commands etc., didn't include that part, but with libsodium installed, ran './clean-workspaces.sh'Ā as @(-_-) had first suggested in theĀ '0ad/build/workspaces' folder and followed that with apt update all packages and still the same errors persist in the same ModIo.cpp location. @Imarok 1 hour ago, Imarok said: Just remove/uninstall all libsodium you have on your machine, then install only the newest one manually. ļ»æ Ok, will do. Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 6, 2018 Author Report Share Posted May 6, 2018 @ffffffff Are you being sincere or sarcastic? Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 6, 2018 Report Share Posted May 6, 2018 1 hour ago, ffffffff said: maybe need after sudo make install LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" binaries/system/pyrogenesis& to start just mentioning was my god case Yeah, that could do the same as my suggestion. (Assuming it does what it looks like...) Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 6, 2018 Author Report Share Posted May 6, 2018 @Imarok @ffffffff 12 minutes ago, Imarok said: maybe need after sudo make install LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" binaries/system/pyrogenesis& ļ»æ I should be adding this along with the libsodium tarball? @Imarok Uninstalled, reinstalled. Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 6, 2018 Report Share Posted May 6, 2018 4 hours ago, Palaiologos said: @Imarok @ffffffff I should be adding this along with the libsodium tarball? @Imarok Uninstalled, reinstalled. Did it work? Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 7, 2018 Author Report Share Posted May 7, 2018 @Imarok Yes, in which the ModIo.cpp errors are now no longer appearing and compiling seems to complete itself. No, when it comes to this part of the process as shown in the second screenshot of original posting, which at first I had assumed were somehow correlated with the ModIo.cpp errors... Testing Run the automated tests to verify that everything works as expected like this: cd ../../.. binaries/system/test Running If everything went well, compiling the code worked and all tests passed, it's finally time to run the game: binaries/system/pyrogenesis @ffffffff 18 hours ago, ffffffff said: after sodium lib compile in sodium source folder (make...) sudo make uninstall in the sodium source folder. and install again with sudo make install. then start again compile of 0ad in 0ad source folder. if it same error try LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" make in gcc folder of 0ad ļ»æ Followed up with... Quote Link to comment Share on other sites More sharing options...
mapkoc Posted May 7, 2018 Report Share Posted May 7, 2018 Did you try to include this path instead? /usr/local/lib/sodium Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 7, 2018 Report Share Posted May 7, 2018 9 hours ago, ffffffff said: first u dont need sudo to make, only when make install, so make without sudo and then sudo make install then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/"Ā make means it must stand before make as it setting an environmental variable for make. He doesn't need any inlude paths, as compiling works now. @Palaiologos have you done update-workspace before? (Without sudo) Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 8, 2018 Author Report Share Posted May 8, 2018 @Imarok @mapkoc @ffffffff Ā 13 hours ago, Imarok said: have you done update-workspace before? Yes, without sudo On 5/6/2018 at 10:11 AM, ffffffff said: was my god case Is this an expression in coding? 20 hours ago, mapkoc said: Did you try to include this path instead? /usr/local/lib/sodiumļ»æļ»æ 23 hours ago, ffffffff said: make without sudo and then sudo make install then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/"ļ»æļ»æ 23 hours ago, ffffffff said: first u dont need sudo to make, only when make install Thanks, learned something new. Ā Ā Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 8, 2018 Report Share Posted May 8, 2018 16 minutes ago, Palaiologos said: Is this an ļ»æexpressionļ»æ in coding?ļ»æļ»æļ»æļ»æ No, that is the white Gaussian noise Ā @ffffffffĀ sometimes emits. I think you need to do make clean and cleanworkspace with sudo and after that updateworkspace and make without sudo. (Already heard 10,000 days? ;P) Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 8, 2018 Author Report Share Posted May 8, 2018 23 minutes ago, Imarok said: No, that is the white Gaussian noiseļ»æ Ā @ffffffffĀ sometimes emits. Heh (begins to aimlessly read up on Information Theory) 24 minutes ago, Imarok said: I think you need to do make clean and cleanworkspace with sudo and after that updateworkspace and make without sudo. ļ»æļ»æ Will be sure to mess that up somehow. 26 minutes ago, Imarok said: (Already heard 10,000 daysļ»æ? ;P) ļ»æ Fan too I presume? Felt appropriate to get through sudo this, no sudo this, sudo that, sudo here, sudo there, sudo, Sudo! SUDO!! Appreciate your help. Ā Quote Link to comment Share on other sites More sharing options...
mapkoc Posted May 11, 2018 Report Share Posted May 11, 2018 You can skip compiling tests with make pyrogenesis. My system has /usr/include/sodium.h /usr/include/sodium/core.h ... /usr/lib/libsodium.so /usr/lib/libsodium.so.23 /usr/lib/pkgconfig/libsodium.pc look at the paths Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted May 16, 2018 Author Report Share Posted May 16, 2018 On 5/7/2018 at 7:05 AM, ffffffff said: LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" Ā On 5/7/2018 at 9:36 AM, mapkoc said: Did you try to include this path instead? /usr/local/lib/sodiumļ»æ "Depending on where the software is being installed, you might need escalated permissions for this step so you can copy files to system directories. Using sudo will often do the trick" Ā "The tarball you download usually doesnāt include a finished Makefile. Instead it comes with a template called Makefile.in and the configure script produces a customised Makefile specific to your system." Essentially, we are trying to merge the libsodium package into the proper filesystem? Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 16, 2018 Report Share Posted May 16, 2018 Is compiling still not working for you? If so remember to always state: What are you trying to do? What have you done? What works? In what way and how does it work not? Quote Link to comment Share on other sites More sharing options...
Imarok Posted May 16, 2018 Report Share Posted May 16, 2018 1 hour ago, ffffffff said: i had to do also (after install) sudo ln -s /usr/local/lib/libsodium.so.18.4.0 /usr/local/lib/libsodium.so.23 or sudo ln -s /usr/local/lib/libsodium.so /usr/local/lib/libsodium.so.23 but then from 0ad source folder LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" binaries/system/pyrogenesis works u can also go to 0ad ppa and download libsodium from within the next few days when a23 released ricotz is going to upload correct sodium package to ppa for ubuntus Afaik all that is NOT needed if you have installed libsodium only manually and don't have any other version around. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.