Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 18:10, Ralph Corderoy wrote:

Hi Tim,


‘void* __builtin_memset(void*, int, long unsigned int)’: specified
size between 18446744073709551361 and 18446744073709551615 exceeds
maximum object size 9223372036854775807 [-Wstringop-overflow=]

That does look like a bug.  Let's hope you don't run that bit.  :-)

 $ dc -e 16o18446744073709551361p18446744073709551615p
 FF01
 
 $


Question is, where is the file(s)  that I now need to run the game, if
I type openttd at the cli the old version 1.7.1 starts?

If you didn't give ./configure a --prefix argument then `make install'
will want to place it under /usr/local.

Looking at the makefiles you could try `make run' to run it from here,
right where you built it.

Or, you could try

 mkdir ../openttd-1.8.0-install
 ./configure --prefix="`readlink -e ../openttd-1.8.0-install`"
 make all install
 ../openttd-1.8.0-install/bin/openttd

Cheers, Ralph.

Thank you Ralph, make run let me run it straight off, I also ran sudo 
make install so that it could install it in /usr/local/game which is 
where the previous version had been installed. The only thing I don't 
currently have is sound but I think I can install that as a separate file.



Once again thanks for your help


Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Tim,

> ‘void* __builtin_memset(void*, int, long unsigned int)’: specified
> size between 18446744073709551361 and 18446744073709551615 exceeds
> maximum object size 9223372036854775807 [-Wstringop-overflow=]

That does look like a bug.  Let's hope you don't run that bit.  :-)

$ dc -e 16o18446744073709551361p18446744073709551615p
FF01

$

> Question is, where is the file(s)  that I now need to run the game, if
> I type openttd at the cli the old version 1.7.1 starts?

If you didn't give ./configure a --prefix argument then `make install'
will want to place it under /usr/local.

Looking at the makefiles you could try `make run' to run it from here,
right where you built it.

Or, you could try

mkdir ../openttd-1.8.0-install
./configure --prefix="`readlink -e ../openttd-1.8.0-install`"
make all install
../openttd-1.8.0-install/bin/openttd

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 17:19, Tim wrote:

On 15/04/18 16:41, Ralph Corderoy wrote:

Hi Tim,


mit@prometheus:~/ottd-source/openttd-1.8.0$ ./configure
bash: ./configure: No such file or directory

Are you sure you've downloaded and unpacked a tar file of source rather
than binaries?  I used
https://binaries.openttd.org/releases/1.8.0/openttd-1.8.0-source.tar.xz

 $ sha256sum openttd-1.8.0-source.tar.xz
c2d32d9d736d27202a020027a3729ae763f5432ae6f424891e57a4095eeb087f 
openttd-1.8.0-source.tar.xz

 $ tar xf openttd-1.8.0-source.tar.xz
 $ cd openttd-1.8.0
 $ ls
 bin    Doxyfile    Makefile.lang.in projects
 changelog.txt  findversion.sh  Makefile.msvc readme.txt
 config.lib known-bugs.txt  Makefile.setting.in source.list
 configure  Makefile.bundle.in  Makefile.src.in  src
 COPYING    Makefile.grf.in media
 docs   Makefile.in os
 $

Cheers, Ralph.

Opps, looks like I did download the binaries, now got the source, lets 
see what this brings



Thanks Ralph


Tim


OK, ./configure ran and so did Make, there was only one issue during the 
make and that was this:


In file included from /usr/include/string.h:494:0,
 from /usr/include/c++/7/cstring:42,
 from /home/mit/ottd-source/openttd-1.8.0/src/stdafx.h:85,
 from 
/home/mit/ottd-source/openttd-1.8.0/src/newgrf.cpp:12:

In function ‘void* memset(void*, int, size_t)’,
    inlined from ‘ChangeInfoResult StationChangeInfo(uint, int, int, 
ByteReader*)’ at /home/mit/ottd-source/openttd-1.8.0/src/newgrf.cpp:1975:13:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:71:70: warning: 
‘void* __builtin_memset(void*, int, long unsigned int)’: specified size 
between 18446744073709551361 and 18446744073709551615 exceeds maximum 
object size 9223372036854775807 [-Wstringop-overflow=]

   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));

Which looking at it is an in game setting (rather than a lib file missing)

Question is, where is the file(s)  that I now need to run the game, if I 
type openttd at the cli the old version 1.7.1 starts?



Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 16:41, Ralph Corderoy wrote:

Hi Tim,


mit@prometheus:~/ottd-source/openttd-1.8.0$ ./configure
bash: ./configure: No such file or directory

Are you sure you've downloaded and unpacked a tar file of source rather
than binaries?  I used
https://binaries.openttd.org/releases/1.8.0/openttd-1.8.0-source.tar.xz

 $ sha256sum openttd-1.8.0-source.tar.xz
 c2d32d9d736d27202a020027a3729ae763f5432ae6f424891e57a4095eeb087f  
openttd-1.8.0-source.tar.xz
 $ tar xf openttd-1.8.0-source.tar.xz
 $ cd openttd-1.8.0
 $ ls
 binDoxyfileMakefile.lang.in projects
 changelog.txt  findversion.sh  Makefile.msvcreadme.txt
 config.lib known-bugs.txt  Makefile.setting.in  source.list
 configure  Makefile.bundle.in  Makefile.src.in  src
 COPYINGMakefile.grf.in media
 docs   Makefile.in os
 $

Cheers, Ralph.

Opps, looks like I did download the binaries, now got the source, lets 
see what this brings



Thanks Ralph


Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Tim,

> mit@prometheus:~/ottd-source/openttd-1.8.0$ ./configure
> bash: ./configure: No such file or directory

Are you sure you've downloaded and unpacked a tar file of source rather
than binaries?  I used
https://binaries.openttd.org/releases/1.8.0/openttd-1.8.0-source.tar.xz

$ sha256sum openttd-1.8.0-source.tar.xz
c2d32d9d736d27202a020027a3729ae763f5432ae6f424891e57a4095eeb087f  
openttd-1.8.0-source.tar.xz
$ tar xf openttd-1.8.0-source.tar.xz
$ cd openttd-1.8.0
$ ls
binDoxyfileMakefile.lang.in projects
changelog.txt  findversion.sh  Makefile.msvcreadme.txt
config.lib known-bugs.txt  Makefile.setting.in  source.list
configure  Makefile.bundle.in  Makefile.src.in  src
COPYINGMakefile.grf.in media
docs   Makefile.in os
$

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 12:55, Tim wrote:

On 15/04/18 11:27, Ralph Corderoy wrote:

Hi Hamish,


If you cd into the source and run
 ./configure
it should tell you what you need, if anything.

openttd's ./configure tries to make do with what's available,
disabling features willy-nilly when stuff's missing,
so it's possible to obtain a built executable but it lack the behaviour
one needs.  The `fine' readme.txt describes the dependencies a bit.

Cheers, Ralph.

Thanks guys, I will go and have a read , and I have no doubt I will be 
back



Tim



OK I have hit my first hic up, if I go

./configure

I get file not found

mit@prometheus:~/ottd-source/openttd-1.8.0$ ./configure
bash: ./configure: No such file or directory

I have tried /bin/bash ./configure but get the same result

Here are the contents of the openttd-1.8.0 folder

mit@prometheus:~/ottd-source/openttd-1.8.0$ ls -1 -F
ai/
baseset/
changelog.txt*
COPYING*
docs/
game/
known-bugs.txt*
lang/
man/
media/
openttd*
readme.txt*
scripts/

I have chmod 777 the openttf-1.8.0 folder

I have checked I have gcc (4.7, 6 & 7) installed, which I do along with 
build essentials which is installed


What am I missing?

Tim



--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 13:37, Ralph Corderoy wrote:

Hi Tim,


 From the same page I linked to earlier but the Debian package for
either Wheezie or Jessie 64bit

https://www.openttd.org/en/download-stable

That says

 Latest release in stable is 1.8.0, released on 2018-04-01 13:07 UTC.

with packages for Debian Jessie and Wheezy.
https://www.debian.org/releases/ says

 Debian 8  Jessie   oldstable
 Debian 9  Stretch  stable released 2017-06-17

So it's puzzling why OpenTTD built against Debian 8 six months after
Debian 9 became the normal stable one.  Perhaps its source isn't
compatible with 9, but you'll find that out!

Have you tried... Are, here we are:
https://www.reddit.com/r/openttd/comments/7eumoh/installing_openttd_on_debian_stretch/
One comment in particular refers to
https://wiki.openttd.org/Compiling_on_(GNU/)Linux_and_*BSD#Manually
that still talks of libpng12-dev, but you know now to use 16 instead.
You may have to research other missing packages in that list in a
similar way.

Cheers, Ralph.

Thanks for the info Ralph, I have been ambling through some of the 
earlier bits you and Hamish sent me. But do I like the comments from 
reddit.com



I have been informed that I am going out shortly so this has now become 
a later this afternoon\evening project :(



Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Tim,

> From the same page I linked to earlier but the Debian package for 
> either Wheezie or Jessie 64bit
>
> https://www.openttd.org/en/download-stable

That says

Latest release in stable is 1.8.0, released on 2018-04-01 13:07 UTC.

with packages for Debian Jessie and Wheezy.
https://www.debian.org/releases/ says

Debian 8  Jessie   oldstable  
Debian 9  Stretch  stable released 2017-06-17

So it's puzzling why OpenTTD built against Debian 8 six months after
Debian 9 became the normal stable one.  Perhaps its source isn't
compatible with 9, but you'll find that out!

Have you tried... Are, here we are:
https://www.reddit.com/r/openttd/comments/7eumoh/installing_openttd_on_debian_stretch/
One comment in particular refers to
https://wiki.openttd.org/Compiling_on_(GNU/)Linux_and_*BSD#Manually
that still talks of libpng12-dev, but you know now to use 16 instead.
You may have to research other missing packages in that list in a
similar way.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Tim,

> One of the errors I get is
> Dependency is not satisfiable libpng 12-0 (>= 1.2.13-4)
> current installed version is libpng 16-16 version 1.6.34-1

libpng 1.2 isn't available in stable, only oldstable and older.
https://packages.debian.org/search?keywords=libpng12=names=all=all

But openttd in Debian's stable and testing both want libpng 1.6.
https://packages.debian.org/stretch/openttd
https://packages.debian.org/buster/openttd
(These stupid release names!)
So where's the openttd package that you're trying to install coming from?

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 11:27, Ralph Corderoy wrote:

Hi Hamish,


If you cd into the source and run
 ./configure
it should tell you what you need, if anything.

openttd's ./configure tries to make do with what's available,
disabling features willy-nilly when stuff's missing,
so it's possible to obtain a built executable but it lack the behaviour
one needs.  The `fine' readme.txt describes the dependencies a bit.

Cheers, Ralph.


Thanks guys, I will go and have a read , and I have no doubt I will be back


Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Tim

On 15/04/18 11:02, Ralph Corderoy wrote:

Hi Tim,


but the games most recent  version is only available for Debian Jessie
and will not install due to varies dependency issue (which is strange
because it is looking for a lower version of a file than I have
currently installed).

What's the command and error?  Perhaps there's another package still
providing the old one it needs.


should I compile it so that I can just install it and run it, or do I
need to compile it as a deb file?

The former is simpler so I'd start with that.


Apart from build essentials what else to I need to make sure I have
installed on my PC so I can compile the source?

Inside the tar file is readme.txt and section 7 details some of the
things you'll want to have installed, e.g. libpng.  And because you want
to build a program that uses them, rather than just running that
program, you often need a `development' version of the package, e.g.
libpng-dev, given how Debian partition things into packages.

Cheers, Ralph.

One of the errors I get is  Dependency is not satisfiable libpng 12-0 
(>= 1.2.13-4) current installed version is libpng 16-16 version 1.6.34-1



Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Hamish,

> If you cd into the source and run
> ./configure
> it should tell you what you need, if anything.

openttd's ./configure tries to make do with what's available,
disabling features willy-nilly when stuff's missing,
so it's possible to obtain a built executable but it lack the behaviour
one needs.  The `fine' readme.txt describes the dependencies a bit.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Hamish MB
Hi,

If you cd into the source and run

./configure

it should tell you what you need, if anything.

You can use checkinstall (for Debian or Ubuntu) where you would usually run 
make install to make a Debian package.

Then you can easily remove the program with dpkg or apt

Hope this helps,
Hamish
On 15 Apr 2018, at 10:32, Tim 
> wrote:

Morning all

I want to run a particular game on my PC running SolydXK EE (Debian
testing), but the games most recent  version is only available for
Debian Jessie and will not install due to varies dependency issue (which
is strange because it is looking for a lower version of a file than I
have currently installed).  Anyway I have downloaded the source package
(a tar.gz file) and want to know how to produce a program I a can run
but here is the questions, should I compile it so that I can just
install it and run it, or do I need to compile it as a deb file? I know
I can google and find this information about but I am after the
experienced users thoughts about the best options to take and possible
success, I have never tried compiling in my life.

Apart from build essentials what else to I need to make sure I have
installed on my PC so I can compile the source?

The game its self is not a demand (as in process or graphics), the
source can be downloaded from here:
https://www.openttd.org/en/download-stable.


Tim

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Compiling from source?

2018-04-15 Thread Ralph Corderoy
Hi Tim,

> but the games most recent  version is only available for Debian Jessie
> and will not install due to varies dependency issue (which is strange
> because it is looking for a lower version of a file than I have
> currently installed).

What's the command and error?  Perhaps there's another package still
providing the old one it needs.

> should I compile it so that I can just install it and run it, or do I
> need to compile it as a deb file?

The former is simpler so I'd start with that.

> Apart from build essentials what else to I need to make sure I have
> installed on my PC so I can compile the source?

Inside the tar file is readme.txt and section 7 details some of the
things you'll want to have installed, e.g. libpng.  And because you want
to build a program that uses them, rather than just running that
program, you often need a `development' version of the package, e.g.
libpng-dev, given how Debian partition things into packages.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

[Dorset] Compiling from source?

2018-04-15 Thread Tim


Morning all

I want to run a particular game on my PC running SolydXK EE (Debian 
testing), but the games most recent  version is only available for 
Debian Jessie and will not install due to varies dependency issue (which 
is strange because it is looking for a lower version of a file than I 
have currently installed).  Anyway I have downloaded the source package 
(a tar.gz file) and want to know how to produce a program I a can run 
but here is the questions, should I compile it so that I can just 
install it and run it, or do I need to compile it as a deb file? I know 
I can google and find this information about but I am after the 
experienced users thoughts about the best options to take and possible 
success, I have never tried compiling in my life.


Apart from build essentials what else to I need to make sure I have 
installed on my PC so I can compile the source?


The game its self is not a demand (as in process or graphics), the 
source can be downloaded from here: 
https://www.openttd.org/en/download-stable.



Tim


--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR