Currently Online

Latest Posts

Topic: fail to compile amazon on Ubuntu18.04

ektor
Avatar
Joined: 2016-06-16, 09:41
Posts: 75
Ranking
Likes to be here
Location: Occitanie
Posted at: 2020-04-21, 14:14

niektory wrote: @Ektor: Could you download (right click -> save link target as...) this file: FindSDL2.cmake and put it in this folder (overwrite the previous file): /home/david/widelands_amazon_6762/widelands-0a481603a31ac0ae5150c6a45452e39c50ccb63e/cmake/Modules/

I have a little question:

What is the difference between files FindSDL2.cmake, and why ?


Love Peace Happiness

Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 128
Ranking
At home in WL-forums
Location: Poland
Posted at: 2020-04-21, 22:05

The change was just one line, you can see it here: Try to fix packaging for Focal

Widelands uses the SDL2 library, which can be located in different folders on different operating systems. The compilation script couldn't find it on your system. The added line specifies an additional folder to search in.


Top Quote
ektor
Avatar
Joined: 2016-06-16, 09:41
Posts: 75
Ranking
Likes to be here
Location: Occitanie
Posted at: 2020-04-22, 11:51

niektory wrote:

The change was just one line, you can see it here: Try to fix packaging for Focal

Widelands uses the SDL2 library, which can be located in different folders on different operating systems. The compilation script couldn't find it on your system. The added line specifies an additional folder to search in.

OK, thanks :) I have the same problem on an other machine on Ubuntu too, and adding this file don't change anything. Now I understand that I have to find the location of this SDL2 library to make it work... I'll try face-smile.png


Love Peace Happiness

Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 128
Ranking
At home in WL-forums
Location: Poland
Posted at: 2020-04-24, 19:48

There's a better fix now, so if you want to try, download these files:

CMakeLists.txt Put it in widelands-0a481603a31ac0ae5150c6a45452e39c50ccb63e/

cmake/WlFunctions.cmake Put it in widelands-0a481603a31ac0ae5150c6a45452e39c50ccb63e/cmake/

Edited: 2020-04-24, 19:49

Top Quote
WorldSavior
Avatar
Joined: 2016-10-15, 04:10
Posts: 1683
Ranking
One Elder of Players
Location: North of Germany
Posted at: 2020-05-31, 19:19

niektory wrote:

Feel free to ask again if you have any other trouble.

I'm not ektor, but can one fix "Version REVDETECT-BROKEN-PLEASE-REPORT-THIS" ?


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 899
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-05-31, 19:26

Probably – if you describe which method of installation (git, bzr, appveyor, tarball, …) exactly you are using face-wink.png


Top Quote
WorldSavior
Avatar
Joined: 2016-10-15, 04:10
Posts: 1683
Ranking
One Elder of Players
Location: North of Germany
Posted at: 2020-05-31, 19:28

Thanks. I've downloaded a zip from Github, extracted it and run the compile command. Is it a problem that I had also still a bzr build on that machine?


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 899
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-05-31, 19:33

Downloaded ZIPs unfortunately don't contain the git history so the package does not contain any information that makes it possible to detect the version number (see also https://github.com/widelands/widelands/issues/3657)


Top Quote
WorldSavior
Avatar
Joined: 2016-10-15, 04:10
Posts: 1683
Ranking
One Elder of Players
Location: North of Germany
Posted at: 2020-05-31, 19:36

Nordfriese wrote:

Downloaded ZIPs unfortunately don't contain the git history so the package does not contain any information that makes it possible to detect the version number (see also https://github.com/widelands/widelands/issues/3657)

Thanks for the info.

Can one expect further problems from this bug than that the version number is hidden? There shouldn't be any serious, right?

Edited: 2020-05-31, 19:36

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 899
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-05-31, 19:39

Technically "REVDETECT-BROKEN-PLEASE-REPORT-THIS" is as valid a version string as e.g. "r24618[00f7e94@master] (Release)" so there are no problems except

  • when you want to report a bug against that version, or

  • when you want to know whether people in the multiplayer lobby are using the same version.

Other than that everything will work fine.


Top Quote