#pentagram@irc.freenode.net logs for 21 Sep 2004 (GMT)

Archive Today Yesterday Tomorrow
Pentagram homepage

[00:21:30] --- sbx|afk is now known as sbx
[01:08:14] --> dwn has joined #pentagram
[01:13:18] <-- Kirben has left IRC (Read error: 54 (Connection reset by peer))
[04:08:52] --> Kirben has joined #pentagram
[04:08:52] --- ChanServ gives channel operator status to Kirben
[04:45:00] <-- sbx has left IRC ("casts gate travel")
[04:54:31] --> Sheng_Gradilla has joined #pentagram
[04:55:13] <Sheng_Gradilla> :)
[05:19:45] * Sheng_Gradilla is away: No estoy
[05:26:23] --> brian- has joined #pentagram
[05:29:00] <brian-> when i run ./configure it's telling me i don't have sdl
[05:29:09] <brian-> if anyone is awake
[05:29:41] <servus> And do you have SDL?
[05:30:36] <brian-> yes
[05:30:53] <brian-> in /usr/local/bin
[05:31:04] <servus> What is your Linux/BSD/etc distribution?
[05:31:11] <brian-> i'm using cygwin
[05:31:24] <servus> Oh... good luck :-)
[05:31:27] <brian-> hehe
[05:31:33] <servus> Seriously though, get the sdl-1.2 dev files.
[05:31:39] <brian-> got em
[05:31:52] <brian-> well
[05:31:57] <brian-> sdl-1.2.7
[05:32:15] <servus> The "development libraries" section from this page http://www.libsdl.org/download-1.2.php
[05:32:42] <servus> Probably need the Win32 mingw files, I think...
[05:32:47] <brian-> i downloaded SDL-devel-1.2.7-mingw32.tar.gz
[05:33:02] <brian-> and i installed it to /usr/local/bin
[05:33:11] <brian-> actually it did that automatically
[05:33:15] <servus> Hmm.
[05:33:28] <servus> Can I see the lines near the `configure' error?
[05:33:47] <brian-> checking for sdl-config... /usr/local/bin/sdl-config
[05:33:48] <brian-> checking for SDL - version >= 1.2.0... no
[05:33:48] <brian-> *** Could not run SDL test program, checking why...
[05:33:48] <brian-> *** The test program failed to compile or link. See the file config.log for the
[05:33:48] <brian-> *** exact error that occurred. This usually means SDL was incorrectly installed
[05:33:48] <brian-> *** or that you have moved SDL since it was installed. In the latter case, you
[05:33:50] <brian-> *** may want to edit the sdl-config script: /usr/local/bin/sdl-config
[05:33:52] <brian-> configure: error: *** SDL version 1.2.0 not found!
[05:34:00] <brian-> it finds the config
[05:34:07] <brian-> then tests version and fails
[05:34:18] <brian-> the dll is in /usr/local/bin also
[05:34:44] <servus> Does your /usr/local/bin/sdl-config actually exist?
[05:35:11] <brian-> yes
[05:41:15] <servus> sdl-config --version --libs --static-libs --cflags
[05:41:19] <servus> Running that should give you no errors.
[05:42:04] <brian-> $ sdl-config --version --libs --static-libs --cflags
[05:42:04] <brian-> 1.2.7
[05:42:04] <brian-> -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows
[05:42:04] <brian-> -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -luser32 -lgdi32 -lwinmm -l
[05:42:04] <brian-> dxguid
[05:42:05] <brian-> -I/usr/local/include/SDL -Dmain=SDL_main
[05:43:04] <brian-> and yet it still fails when it tests the version #
[05:43:21] <servus> ok, one sce
[05:45:10] <servus> Run this: echo -e "#include <SDL/SDL.h>\n int main(){return 0;}" > test.c && gcc test.c `sdl-config --libs --cflags`
[05:45:25] <servus> Give me the output, if any.
[05:46:47] <brian-> $ echo -e "#include <SDL/SDL.h>\n int main(){return 0;}" > test.c && gcc test.c
[05:46:47] <brian-> `sdl-config --libs --cflags`
[05:46:47] <brian-> find -lmingw32
[05:46:47] <brian-> collect2: ld returned 1 exit status
[05:47:16] <servus> Err? What's the find for?
[05:47:37] <brian-> no idea
[05:48:03] <servus> OK, so you're not trying to configure pentagram for mingw are you? I think I see the problem
[05:48:19] <brian-> configure:6739: gcc -o conftest.exe -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main conftest.c -lwinmm -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows >&5/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lmingw32
[05:48:31] <servus> Open up your sdl-config and remove all references to -lmingw32
[05:48:52] <servus> Looks like you don't want it to be configured for mingw32. (I'm not a Cygwin user, sorry, I can't be sure...)
[05:49:00] <servus> Back up your sdl-config first, though!
[05:52:31] <brian-> from config.log
[05:52:32] <brian-> configure:6739: gcc -o conftest.exe -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main conftest.c -lwinmm -L/usr/local/lib -lSDLmain -lSDL -mwindows >&5/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a): undefined reference to `_WinMain@16'collect2: ld returned 1
[05:55:55] <servus> Try taking out the -mwindows
[05:57:31] <brian-> configure:6807: gcc -o conftest.exe -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main conftest.c -lwinmm -L/usr/local/lib -lSDLmain -lSDL >&5/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a): undefined reference to `_WinMain@16'collect2: ld returned 1 exit status
[05:57:41] <brian-> take out -lwinmm? hehe
[05:58:32] <servus> Nah, that shouldn't matter.
[06:22:16] <Kirben> Try compiling pentagram as a Windows native program, using mingw. Cygwin is for compiling unix programs.
[06:24:29] <servus> Shows what I know about Cygwin :-).
[06:24:34] <servus> Then he should use mingw32?
[06:25:29] <Kirben> Yes
[06:29:37] <brian-> ok i'll try that
[06:29:45] <brian-> i already had cygwin so i thought i'd try
[06:30:20] <dwn> brian-, give colinux a try
[06:31:50] <dwn> or just install some form of unix :P
[06:32:01] <brian-> hehe
[06:32:33] <dwn> ./configure --help|less
[06:33:07] <dwn> does configure have any switches to specify the location of the SDL libs?
[06:33:51] <dwn> well, the mingw files?
[06:35:55] <servus> That's what sdl-config is for, dwn
[07:07:39] <brian-> mount : function not implemented.. wtf
[07:08:35] <servus> Cygwin :-p
[07:13:20] <wjp> the dll is in /usr/local/bin also <-- not the usual place for a dll...
[07:20:17] <servus> Wouldn't it be something/lib?
[07:22:23] <Kirben> dlls always go in bin on windows.
[07:39:54] <wjp> how peculiar
[07:48:27] <brian-> sdl automatically installed it in bin
[07:48:53] <brian-> servus, you mean i can't mount it cause i mounted it in cygwin?
[07:49:16] <brian-> cause i'm using mingw now
[07:50:42] <brian-> mount: /usr/pentagram: Function not implemented
[07:50:49] <brian-> what the fucking fuck is going on here
[07:51:53] <servus> I thought you were going to stop trying to use Cygwin for this.
[07:52:06] <servus> AFAIK, Pentagram compiles to a native Win32 program, with a little fussing.
[07:59:03] --> brian__ has joined #pentagram
[07:59:03] <-- brian- has left IRC (Read error: 54 (Connection reset by peer))
[07:59:13] <brian__> i'm using mingw
[08:01:20] <brian__> mount: /usr/pentagram: Function not implemented
[08:01:35] <brian__> oops meant to post the whole thing
[08:01:35] <brian__> $ mount c:/pentagram /usr/pentagram
[08:01:36] <brian__> mount: /usr/pentagram: Function not implemented
[08:01:45] <brian__> maybe i'm an idiot but shouldn't that work
[08:04:14] <servus> Try c:\?
[08:06:53] <brian__> not enough parameters lol
[08:07:24] <brian__> arguments*
[08:07:24] <brian__> $ mount c:\ /usr/pentagram
[08:07:24] <brian__> mount: not enough arguments
[08:11:35] <servus> Try mount c:\pentagram /usr/pentagram
[08:12:52] <brian__> function not implemented
[08:13:04] <brian__> i installed mingw + msys... is that right?
[08:21:20] --> brian- has joined #pentagram
[08:21:20] <-- brian__ has left IRC (Read error: 104 (Connection reset by peer))
[08:21:36] <brian-> damn cable
[08:32:05] <-- servus has left IRC (Read error: 110 (Connection timed out))
[08:36:43] --> servus has joined #pentagram
[09:05:19] --> Fingolfin has joined #pentagram
[09:05:19] --- ChanServ gives channel operator status to Fingolfin
[09:26:28] --> Dominus has joined #pentagram
[09:26:30] --- ChanServ gives channel operator status to Dominus
[09:26:58] <Dominus> hi
[09:27:11] <Dominus> brian-: in msys you don't need to mount
[09:27:27] <Dominus> just cd to to the dir with the pentagram sources
[09:27:43] <Dominus> e.g. cd /c/usr/pentagram
[09:28:03] <Dominus> with c being the c: drive
[09:29:02] <Dominus> then make -f makefile.mingw
[09:29:21] <-- Dominus has left IRC (Client Quit)
[09:31:37] <brian-> ah cool thanks
[09:31:44] <brian-> even though you left
[09:31:45] <brian-> lol
[09:44:27] --> brianhj_ has joined #pentagram
[09:44:27] <-- brian- has left IRC (Read error: 104 (Connection reset by peer))
[09:44:35] --- brianhj_ is now known as brian-
[09:45:13] <brian-> ok i got past ./configure
[09:45:40] <brian-> when i try to make i get: /bin/sh: ./genrules.pl: No such file or directory
[10:22:49] --> Colourless has joined #Pentagram
[10:22:58] --- ChanServ gives channel operator status to Colourless
[10:42:14] <-- Darke has left IRC (Read error: 110 (Connection timed out))
[11:12:20] --> Darke has joined #pentagram
[12:01:43] --> Dominus has joined #pentagram
[12:01:45] --- ChanServ gives channel operator status to Dominus
[12:02:11] <Dominus> hi again :-)
[12:02:13] <Dominus> brian-: you still here?
[12:02:28] <Dominus> brian-: with msys/mingw you don't need to go through the ./configure stuff
[12:03:06] <Dominus> just go into the pentagram cvs dir in msys and type "make -f makefile.mingw"
[12:03:29] <Dominus> Kirben does a fine job of keeping that makefile up to date
[12:05:26] <Dominus> also for such programs that requirte you to go through the ./configure (and so on) steps, download the Msys-Developer-Toolkit
[12:06:12] <Dominus> and the Msys snapshot, all found on http://sourceforge.net/project/showfiles.php?group_id=2435
[12:07:33] <Dominus> but for pentagram you don'T need this
[12:07:53] <Dominus> compiling dosbox requires those, though
[12:31:25] <-- Dominus has left IRC ("Gitarren-Gott Selbstbewichser")
[13:20:48] --> Fl00der has joined #pentagram
[14:27:48] * Sheng_Gradilla is back (gone 09:08:01)
[14:55:29] <-- Fingolfin has left IRC ("42")
[15:02:06] <-- Sheng_Gradilla has left IRC ("Terminando cliente")
[15:11:34] <brian-> In file included from kernel/Kernel.cpp:25:
[15:11:34] <brian-> filesys/IDataSource.h:26:23: SDL_rwops.h: No such file or directory
[15:11:45] <brian-> after i do:
[15:11:50] <brian-> make -f makefile.mingw
[15:17:54] <brian-> SDL_rwops.h is in /local/include/SDL
[15:19:18] <-- Kirben has left IRC ("System Meltdown")
[15:24:46] <wjp> what does "sdl-config --cflags" return?
[15:25:06] <brian-> $ sdl-config --cflags
[15:25:06] <brian-> -I/usr/local/include/SDL -Dmain=SDL_main
[15:25:23] <wjp> so it expects the SDL header files in /usr/local/include/SDL
[15:26:29] <brian-> hey don't look at me... sdl make put them in /local/include/SDL
[15:26:30] <brian-> lol
[15:27:12] <brian-> so do i edit sdl-config?
[15:27:23] <brian-> or how can set it the include dir
[15:27:47] <brian-> -it
[15:39:25] <brian-> $ sdl-config --cflags
[15:39:25] <brian-> -I/local/include/SDL -Dmain=SDL_main
[15:39:38] <brian-> and it still can't find SDL_rwops.h
[16:10:13] <wjp> oh, interesting; Makefile.mingw doesn't seem to be using sdl-config
[16:10:19] <wjp> I wonder why
[16:10:38] <wjp> you probably have to edit lines 11 and 12 of Makefile.mingw
[16:10:48] <Fl00der> well because there is nobody on exult channel I ask it here
[16:11:03] <Fl00der> Can I change Window Resolution on exult somehow? :P
[16:11:11] <brian-> yes
[16:11:14] <wjp> yes, look in the in-game video menu
[16:11:18] <brian-> lol
[16:11:24] <Fl00der> ah
[16:11:25] <Fl00der> lol
[16:11:30] <Fl00der> that was too easy :)
[16:11:57] <brian-> ok so what do i change those lines to?
[16:12:16] <wjp> the first one should have -I/local/include/SDL
[16:12:26] <brian-> oh duh, ok
[16:12:42] <wjp> the second would probably start with -L/local/lib or something
[16:14:16] <brian-> filesys/IDataSource.h:26:23: SDL_rwops.h: No such file or directory
[16:14:20] <brian-> wtf
[16:14:38] <brian-> ### Modify these paths
[16:14:38] <brian-> SDL_CFLAGS=-I/local/include/SDL
[16:14:38] <brian-> SDL_LIBS=-L/local/lib -lSDLmain -lSDL -lSDL_ttf
[16:15:18] <wjp> so what was the exact compile line that gave that error?
[16:15:40] <brian-> kernel/Kernel.cpp:25
[16:16:04] <wjp> no, the compile command line; the one starting with g++
[16:16:19] <brian-> g++ -O2 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_INTP=4 -I./conf -I./convert -I./filesys -I./graphics -I./graphics/fonts -I./gumps -I./kernel -I./misc -I./tools/compile -I./tools/disasm -I./tools/flexpack -I./tools/fold -I./usecode -I./world -I./world/actors -I./gumps/widgets -I./games -I./audio -I./audio/midi -I./audio/timidity -I./sdl/include -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DUSE_FMOPL_MIDI -DUSE_SDLTTF -c -o kernel/Kernel.o kernel/
[16:16:39] <brian-> -I./sdl/include that it?
[16:16:41] <wjp> -I./sdl/include <-- did you save the Makefile?
[16:16:52] <brian-> yeah
[16:18:07] <brian-> oh fuck
[16:18:21] <brian-> i was in my other pentagram folder
[16:18:22] <brian-> hold on
[16:19:14] <brian-> woot it's building
[16:23:26] <brian-> In file included from gumps/widgets/TextWidget.cpp:31:
[16:23:26] <brian-> graphics/fonts/TTFont.h:26:21: SDL_ttf.h: No such file or directory
[16:23:56] <brian-> is that something i gotta download?
[16:24:45] <wjp> or you can remove the "-DUSE_SDLTTF" from the CPPFLAGS= line
[16:24:58] <wjp> and -lsdl_ttf from the SDL_LIBS= line
[16:25:19] <wjp> SDL_ttf is not particularly useful for anything in pentagram at this point
[16:25:26] <wjp> so it's optional
[16:25:59] <brian-> k
[16:28:41] <brian-> g++.exe: cannot specify -o with -c or -S and multiple compilations
[16:28:41] <brian-> make: *** [gumps/widgets/TextWidget.o] Error 1
[16:44:03] <wjp> compile command line that gave the error?
[16:46:07] <brian-> g++ -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_INTP=4 -I./conf -I./convert -I./filesys -I./graphics -I./graphics/fonts -I./gumps -I./kernel -I./misc -I./tools/compile -I./tools/disasm -I./tools/flexpack -I./tools/fold -I./usecode -I./world -I./world/actors -I./gumps/widgets -I./games -I./audio -I./audio/midi -I./audio/timidity -I/local/include/SDL -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DUSE_FMOPL_MIDI CXXFLAGS=-O2 -c -o gumps/widgets/TextWid
[16:47:06] <wjp> the line got cut off: the last thing I saw was "-o gumps/widgets/TextWid"
[16:47:21] <brian-> -o gumps/widgets/TextWidget.o gumps/widgets/TextWidget.cpp
[16:47:36] <wjp> what's that CXXFLAGS=-O2 doing in there?
[16:47:49] <wjp> did you remove a linebreak somewhere?
[16:47:57] <brian-> no.. heh
[16:48:25] <brian-> CXXFLAGS=-O2
[16:48:26] <wjp> oh, remove the trailing backslash on the line before the -DUSE_SDLTTF
[16:48:42] <brian-> ahhh
[16:49:14] <brian-> thanks
[16:51:29] <brian-> omg i built it
[16:54:16] <brian-> holy shit it works
[16:55:33] <brian-> Back woman!
[18:57:05] <-- Fl00der has left IRC ()
[18:57:23] --> sbx has joined #pentagram
[20:24:41] <-- Colourless has left IRC ("casts improved invisibility")
[22:33:22] --> Kirben has joined #pentagram
[22:33:22] --- ChanServ gives channel operator status to Kirben
[23:12:05] <-- servus has left IRC (Read error: 110 (Connection timed out))
[23:13:18] --> watt has joined #pentagram
[23:13:18] --- ChanServ gives channel operator status to watt
[23:13:42] <watt> looks like brian was having some windowy building fun!
[23:13:46] <watt> Hi guys
[23:15:13] <watt> kinda makes me wonder if pentagram can currently be built in cygwin.. I don't think I try though. Msys + Mingw is far better IMHO... I like actual native binaries.
[23:15:53] <watt> Although, cygwin's compiler does have an option somewhere for true native windows apps, but I can't remember it
[23:16:49] <watt> and it probably wouldn't work nicely with SDL for cygwin
[23:27:42] <sbx> who is brian?
[23:32:51] <watt> evidently a pentagram user now :-)
[23:33:11] <watt> Other than that I have no idea.
[23:33:34] <watt> maybe we should ask brian :-)]
[23:47:55] <sbx> oh!
[23:47:57] <sbx> hi brian-