Re: [tsc-devel] Did you build SFML from source...

Quintus | Sun, 18 Oct 2015 09:17:56 UTC

datahead <…r@f…> writes:
> @Quintus, did you build SFML from source or pull it from a repository?

Remember I use ArchLinux; I always have the most recent version
available without having to build it from source.

> I get build errors when building TSC from the feature sfml branch, and
> I'm guessing it's because Ubuntu 12 does not have the most recent
> version of SFML posted (not substantiated but a logical hypothesis).
> I came across a forum, though, that seemed to suggest that SFML in
> general was not up to date for Ubuntu and that Ubuntu users should
> always build from source.

I wouldn’t say that you always need to build it from source if it is
good enough.

> I suppose I should upgrade Ubuntu, though I'll have to put TSC on halt
> until I do all the backups and get it done once I start this.

I think we had this discussion about your old Ubuntu 12 before :-). So
yes, you should probably do this. Or build SFML from source. I don’t
remember exactly which version of SFML I wrote the port against, but it
was probably the one that was current when I branched off the SFML port
branch with commit 3771687d2933e8414dc7968fbd545ec04825840c. That commit
has a timestamp of 2015-03-29. So by consulting SFML’s ChangeLog and
release dates:

* http://www.sfml-dev.org/changelog.php
* https://github.com/SFML/SFML/releases

This means that I used SFML 2.2 originally. As SFML doesn’t introduce
too many breaking changes in their minor releases, it should suffice if
you have SFML 2 at least. However, SFML 1.x *is* too old and *will not
work*, because 2.0 was a heavily breaking major release of SFML.

Also, please note that the SFML team provides precompiled Linux binaries
for download:

  http://www.sfml-dev.org/download/sfml/2.3.2/

If you don’t want to compile from source for whatever reason, that might
be more comfortable to you.

> These are the TSC errors (top portion):

You cleared your build directory before trying to build the SFML port?
The build flags are different (most notably SFML requires -std=c++11)
and it may thus have problems if old build files are floating around.

Vale,
Quintus

-- 
#!/sbin/quintus
Blog: http://www.guelkerdev.de

GnuPG key: F1D8799FBCC8BC4F