Cafu trunk on ArchLinux with GCC 4.7.1

Get technical support about the C++ source code and about Lua scripts for maps, entities, GUIs, the console, materials, etc. Also covered are the Cafu libraries and APIs, as well as compiling, linking, and the build system.
Post Reply
sycoso
Posts: 13
Joined: 2012-09-18, 21:23

Cafu trunk on ArchLinux with GCC 4.7.1

Post by sycoso » 2012-09-21, 20:26

Hello Carsten and everyone else,

I tried to build Cafu trunk on ArchLinux with GCC 4.7.1 and figured out I needed the patch I attached to build it.
Attachments
fixBuildLinux.diff
(1.8 KiB) Downloaded 170 times
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Post by Carsten » 2012-09-21, 21:43

:thanks:
I suspect that you removed -Werror because there were even more reports by the GCC 4.7 compiler?

Scorphame experienced the same issues a few days ago, and I believe we walked through all the warnings (treated as errors) as well: http://www.cafu.de/forum/viewtopic.php?p=5287#p5287

The first who sends me a complete patch that works with leaving -Werror in gets a huge thanks from me and the patch applied to the official repository immediately. :-D
Best regards,
Carsten
sycoso
Posts: 13
Joined: 2012-09-18, 21:23

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Post by sycoso » 2012-09-22, 16:13

Yes; thanks for pointing out the other thread. I attached the patch that worked for me!

Btw: YAY, COOKIES :bash:
Attachments
fixLinuxBuild.diff
(2.97 KiB) Downloaded 163 times
sycoso
Posts: 13
Joined: 2012-09-18, 21:23

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Post by sycoso » 2012-09-23, 15:08

One more comment: I would add the following line to SConstruct to preserve colors (if existing):

envCommon['ENV']['TERM'] = os.environ['TERM']
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Post by Carsten » 2012-09-23, 16:44

sycoso wrote:Yes; thanks for pointing out the other thread. I attached the patch that worked for me!
Thanks to you and Scorphame for the work, patch is applied! :thanks:
Btw: YAY, COOKIES :bash:
Cookies?? :?
envCommon['ENV']['TERM'] = os.environ['TERM']
Well... this breaks the Windows build.
This could of course be fixed, e.g. with

Code: Select all

if 'TERM' in os.environ:
    envCommon['ENV']['TERM'] = os.environ['TERM']
But still I wonder where the colors originally come from? GCC? SCons?
I tried this here (under Ubuntu), but with or without this, I see no colors at all.
Best regards,
Carsten
sycoso
Posts: 13
Joined: 2012-09-18, 21:23

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Post by sycoso » 2012-09-23, 17:33

Well, you DO get colors with clang :lol:
And when people use colorgcc they get color, too. Well, maybe we should just let people do that on their own when they want colors...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests