Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 27, 2013, 22:35   #11
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
Quote:
Originally Posted by Derakon View Post
I suggested making certain that you were using the correct Makefile; it seemed like whatever you were using was failing to define at least one important constant. I don't know if Makefile.std is necessarily the one to use, but the comments at the top indicate it's the right one for Linux. You'd use Makefile.osx for Macs, of course, and Makefile.win for Windows (dunno if that's cygwin/mingw or Visual Studio or what).
I gave Makefile.std a whirl - crash & burn... worse than the first one.


Guess I have to keep playing on Windoze for the meantime...
Spacebux is offline   Reply With Quote
Old June 27, 2013, 23:15   #12
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
Success.

ok, to resolve, I simply added in a number to the empty array in main.c.


Old main.c:42: static const struct module modules[] =


New main.c:42: static const struct module modules[8] =


I still have the warning about line 43, ISO C forbids empty initializer braces
but, compiled all the way through. Yay.
Spacebux is offline   Reply With Quote
Old June 27, 2013, 23:28   #13
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
... almost.

... and, then, make install tripped up in the documentation phase. (I guess I'm the only one still grappling with Linux thesedays.)

make install ...
.
.
.
Entering directory doc.
/bin/sh: rst2html: command not found
Failed to compile ../lib/help/index.txt!

--- Installed python-docutils package ---

Much better. Might want to have "Need python-docutils package installed" listed somewhere in the compile.txt file.
Spacebux is offline   Reply With Quote
Old June 27, 2013, 23:30   #14
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
Unhappy Woohoo!

Seg fault.

Maybe the ISO C warning is more than just a warning....
Spacebux is offline   Reply With Quote
Old June 28, 2013, 02:09   #15
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
Yeah, I think that patching that modules list by just inserting a dummy variable wasn't the right idea. Sure it makes the compile error go away, but it doesn't fix the underlying problem that that error was telling you about. You really need to have at least one of USE_X11, USE_SDL, or USE_GCU defined or else the game won't know how to run.
Derakon is offline   Reply With Quote
Old June 28, 2013, 03:27   #16
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
Quote:
Originally Posted by Derakon View Post
Yeah, I think that patching that modules list by just inserting a dummy variable wasn't the right idea. Sure it makes the compile error go away, but it doesn't fix the underlying problem that that error was telling you about. You really need to have at least one of USE_X11, USE_SDL, or USE_GCU defined or else the game won't know how to run.
Hmmm... leaving it blank is optimal, but the linker doesn't want to fill it with the appropriate value.

I thought the autogen.sh script specified which module to set.

Time to do more research.
Spacebux is offline   Reply With Quote
Old June 28, 2013, 06:05   #17
Blue Baron
Adept
 
Join Date: Apr 2011
Posts: 103
Blue Baron is on a distinguished road
Quote:
Originally Posted by Spacebux View Post
Hmmm... leaving it blank is optimal, but the linker doesn't want to fill it with the appropriate value.

I thought the autogen.sh script specified which module to set.

Time to do more research.
Did you run configure after autogen and before make? something like:
./configure --enable-sdl --with-no-install
Blue Baron is offline   Reply With Quote
Old June 28, 2013, 19:59   #18
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
Quote:
Originally Posted by Blue Baron View Post
Did you run configure after autogen and before make? something like:
./configure --enable-sdl --with-no-install
Not with an --enable-xxx flag. Which would be the appropriate flag for Linux, X11? I'm running the Gnome desktop, so I'm quite sure X11 will work.

........suppose I could give it a whirl and see.
Spacebux is offline   Reply With Quote
Old June 28, 2013, 20:04   #19
Spacebux
Adept
 
Join Date: Apr 2009
Posts: 231
Spacebux is on a distinguished road
no X11 libraries installed...
Spacebux is offline   Reply With Quote
Old June 28, 2013, 21:19   #20
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,391
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Spacebux View Post
[root@mb1 angband-dev]# make
I'm afraid I don't have any help for your issue, but the command snippet you pasted seems to indicate that you're logging in and compiling as the "root" user. I just wanted to say: please don't do that -- it's incredibly unsafe and a single bad makefile can compromise your machine or delete all your files.

Btw, love the machine name .
AnonymousHero is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why compile programs yourself? (Linux) caruso Idle chatter 24 June 27, 2012 02:41
Anyone got a link to the last nightly version that works? TJS Vanilla 10 November 25, 2010 01:31
[O] Error Using Dev-C++ to compile BennyG Variants 8 October 2, 2009 16:51
cygwin 1.7 compile error david3x3x3 Development 0 September 13, 2009 00:03
Compile error - latest Vanilla Angband SVN PaulBlay Development 3 April 19, 2009 21:20


All times are GMT +1. The time now is 23:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.