Page 1 of 1

Cant build latest CVS

Posted: 30 Aug 2005, 04:42
by mandrake1983
Hi guys,

ive been trying to build the latest CVS version for a few days now (under windows), but my DevC++ keeps reporting errors.

Do you still keep the .dev File up to date? Or maybe is there a unreleased new DevPack?

Can anyone pls assist??

regards,
mandrake

Posted: 30 Aug 2005, 05:37
by Matt
I've just tried it with the latest cvs and DevCpp5Beta and it works.

You can find a stripped upxed win32 build 20050830/7:34am GMT+2 here:

http://matt.gu5.info/tmw/tmw.exe

Posted: 30 Aug 2005, 13:20
by mandrake1983
Well thanks Matt, but i still wonder why it wont build on my pc... it always did!

Also, when opening the .dev -File my Dev tells me that the "configlistener.cpp" file is not found an removes it from the project... strange isnt it?

perhaps i will get the complete source as a new paket and try again...

Matt, do you use the DevPack from http://themanaworld.homeip.net/ ??
What else could i be doing wrong (it worked last week)?

regards,
mandrake

Posted: 30 Aug 2005, 14:06
by ElvenProgrammer
I forgot to update the project, I just committed it. Hope this helps.

Posted: 31 Aug 2005, 04:41
by mandrake1983
Hey Mr. Elven :shock:

I dont know what you did, but it works now... i still get the "configlistener.cpp not found" error, but it doesnt affect the result any more. I can build the project now as usual!

Thanks a lot! :D

regards,
mandrake

Posted: 13 Sep 2005, 04:42
by mandrake1983
Hello again,

can anyone please update the .dev-File on the CVS?? I cant build using my Dev-C++..

Or can, alternatively, anyone please tell me how to build the CVS Version from the command line (like "make" or so...??) without using the Dev-C++??

(I'm running Windows XP)

regards,
mandrake

Posted: 13 Sep 2005, 09:10
by ElvenProgrammer
Can you please post the error you get?

Posted: 13 Sep 2005, 11:53
by mandrake1983
Sure I can.

Following Files are resported as not found when starting Dev-C++:
packet.h
messagein.h
messageout.h
messagein.cpp
messageout.cpp
packet.cpp

Then, when trying to build it, there is a linker error with somewhat of SDL. It says:

Code: Select all

 
 cannot find -lSDL_net 
  ld returned 1 exit status 
  [Build Error]  [tmw.exe] Error 1 
It seems that i dont have the latest resources, but there arent new ones on http://themanaworld.homeip.net/

As I usually used the Dev-Pack from http://themanaworld.homeip.net/, now I will try the one from sourceforge and see whether it works...

regards,
mandrake

Posted: 13 Sep 2005, 12:50
by ElvenProgrammer
Ok this is my fault since I committed the changes to HEAD instead than into SDL_NET_TEST branch. About the missing files, you shouldn't care about them. Just go to project options -> parameters and remove -lSDL_net in the linker list.

Posted: 13 Sep 2005, 13:30
by mandrake1983
Hi Again,

ok, i removed the parameter. now it starts building the exe, but then comes to another error:

\tmw\obj\gui.o In function `ZN3GuiC1EP8Graphics':
[Linker error] undefined reference to `vtable for SDLImageLoader'
[Linker error] undefined reference to `vtable for SDLImageLoader'
\tmw\obj\gui.o In function `ZN3GuiC2EP8Graphics':
[Linker error] undefined reference to `vtable for SDLImageLoader'
[Linker error] undefined reference to `vtable for SDLImageLoader'
\tmw\obj\gui.o ld returned 1 exit status
\tmw\Makefile.win [Build Error] [tmw.exe] Error 1

Isnt there perhaps a way to build it without using Dev?? Like with a command line or so??

regards,
mandrake

Posted: 13 Sep 2005, 13:57
by ElvenProgrammer
Ok I updated the Dev-Cpp project file in the HEAD tag as well, so just get latest CVS and you should be ok.

There are some ways to compile tmw using command line: for example you can just mingw32-make -f makefile.win (but that's the same Dev-Cpp does, so why bothering). Or you could use msys (a unix like environment for mingw) and follow the instructions you can find in the INSTALL file, but I'm not sure if it will work, I didn't test it yet. Or if you really like danger, go and try to compile it with cygwin.

Posted: 14 Sep 2005, 04:12
by mandrake1983
Good morning everybody,

Code: Select all

39 tmw\src\being.cpp In file included from src/being.cpp 
29 tmw\src\net\network.h SDL_net.h: No such file or directory. 
tmw\Makefile.win [Build Error]  [obj/being.o] Error 1 
This is what I get today... 8)
I mean its not a problem as its CVS, but a running version would be nice, wouldnt it? :lol:

Have a nice day!

regards,
mandrake

Posted: 14 Sep 2005, 06:16
by maci
argh again and again the same thing...

when you install the devpak it sais sth like

be sure to add the path to your sdl.h to your c++ includes

Posted: 14 Sep 2005, 07:50
by ElvenProgrammer
hmmm no this is another kind of problem, it seems that the SDL_NET_TEST branch was already merged with the HEAD one, that means we have to add SDL_net as a dependency, I'll update my DevPak later today. Or if you want just get this one:

http://hotaru.dotsrc.org/files/SDL_net- ... hot.DevPak

And the CVS version should be working, even better. If you don't know how to fix these easy issues or don't want to have problems during compilation, don't use CVS which is marked as unstable and get a release from our download page. :lol: