Cant build latest CVS

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Cant build latest CVS

Post 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
~~ drown in the tears of the mandrake ~~
Matt
Grand Knight
Grand Knight
Posts: 1759
Joined: 07 Aug 2004, 10:47
Location: Germany->Bavaria

Post 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
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

I forgot to update the project, I just committed it. Hope this helps.
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Can you please post the error you get?
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post 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.
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post 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.
User avatar
mandrake1983
Peon
Peon
Posts: 43
Joined: 07 Jun 2005, 12:12
Location: Germany

Post 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
~~ drown in the tears of the mandrake ~~
User avatar
maci
Knight
Knight
Posts: 507
Joined: 05 Dec 2004, 20:01
Location: Germany
Contact:

Post 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
ElvenProgrammer wrote:Maci: don't be rude, we're here to help people ;)
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post 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:
Locked