Topic: Compiler Errors on Raspbian
DanRasp![]() Topic Opener |
Posted at:
2020-12-01, 20:00 UTC+1.0
Hi All! After trying the debian packaged Build of Widelands (which is 19) I was very disappointed whith a pointer speed of 0.3 FPS (which was not solveable via configuration). Some folks recommended to build an earlier version which should not be OpenGL-dependend especially Build 18. I tried 10 times or the like until i got all the libs necessary only to end compile.sh with a "was terminated" message after some minor faults and 98% compiled... But what really annoys me - is that it's almost the same with build 17 as follows: I do not suppose that all available builds have syntax errors the like, but I'm not that deep into to correct this myself, any ideas? bash output:
Edited:
2020-12-02, 10:51 UTC+1.0
![]() ![]() |
niektory![]() |
Posted at:
2020-12-01, 20:24 UTC+1.0
Put
![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-12-01, 21:19 UTC+1.0
Well build17 was released in april 2012. I gues it would be pretty hard to get this to compile on modern compilers/build environments, as headers and dependencies especially from our third party packages most probably have changed much since then. I think I remember even @Nordfriese had difficuties getting an old buiold to compile properly today. ![]() ![]() |
Nordfriese![]() |
Posted at:
2020-12-02, 10:29 UTC+1.0
Moin DanRasp and welcome to the forum It is true that libraries and compilers change so rapidly that code often fails to compile with a compiler toolchain that is a few years newer than the code itself, so b17 would be hard to get working already.
(which is very outdated as well, the current version is 21)
In build21, there's a new option whether or not to use SDL mouse cursor. I would recommend that you get build21 and try out whether toggling this option solves the problem ![]() ![]() |
GunChleoc![]() |
Posted at:
2020-12-02, 12:23 UTC+1.0
Try this branch: https://github.com/widelands/widelands/tree/build17 I compiled it like that with Ubuntu 18.04. Busy indexing nil values ![]() ![]() |
DanRasp![]() Topic Opener |
Posted at:
2020-12-03, 17:26 UTC+1.0
Thanx in advance... A new compilation is running now... starting as usual r -> Release mode selected -- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Disabled Unit Tests
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- signals
-- Using compiler flags: -O3 -DNDEBUG
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so i am curious... ![]() ![]() |
DanRasp![]() Topic Opener |
Posted at:
2020-12-04, 07:17 UTC+1.0
this worked perfectly, thanks a lot! ![]() ![]() |
DanRasp![]() Topic Opener |
Posted at:
2020-12-05, 21:41 UTC+1.0
today i tried build 21, result: ^[[Cvirtual memory exhausted: Nicht genügend Hauptspeicher verfügbar virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar src/wui/CMakeFiles/wui.dir/build.make:62: die Regel für Ziel „src/wui/CMakeFiles/wui.dir/actionconfirm.cc.o“ scheiterte make[2]: [src/wui/CMakeFiles/wui.dir/actionconfirm.cc.o] Fehler 1 make[2]: Es wird auf noch nicht beendete Prozesse gewartet... src/wui/CMakeFiles/wui.dir/build.make:110: die Regel für Ziel „src/wui/CMakeFiles/wui.dir/building_statistics_menu.cc.o“ scheiterte make[2]: [src/wui/CMakeFiles/wui.dir/building_statistics_menu.cc.o] Fehler 1 CMakeFiles/Makefile2:42114: die Regel für Ziel „src/wui/CMakeFiles/wui.dir/all“ scheiterte make[1]: [src/wui/CMakeFiles/wui.dir/all] Fehler 2 Makefile:138: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 pi@raspberrypi:~/Downloads/widelands-build21 $ whatching cpu load i guess it compiled several things in parallel, i hope one can prevent this saving memory... ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-12-05, 22:08 UTC+1.0
you might try to invoke compile.sh with the -j option specifiying the processorcores to be used. ![]() ![]() |
DanRasp![]() Topic Opener |
Posted at:
2020-12-06, 09:58 UTC+1.0
Thanks! meanwhile found out myself too... so i lowered the memory split and set -j 1 now running, past the point it stopped yesterday - interesting fact: codecheck looks differently now, with checksums shown ![]() ![]() |