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: Tue Jun 07, 2005 1:12 pm
Location: Germany
Contact:

Cant build latest CVS

Post by mandrake1983 » Tue Aug 30, 2005 5:42 am

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
Knight
Knight
Posts: 1746
Joined: Sat Aug 07, 2004 11:47 am
Location: Germany->Bavaria

Post by Matt » Tue Aug 30, 2005 6:37 am

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: Tue Jun 07, 2005 1:12 pm
Location: Germany
Contact:

Post by mandrake1983 » Tue Aug 30, 2005 2:20 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Aug 30, 2005 3:06 pm

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

Post by mandrake1983 » Wed Aug 31, 2005 5:41 am

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: Tue Jun 07, 2005 1:12 pm
Location: Germany
Contact:

Post by mandrake1983 » Tue Sep 13, 2005 5:42 am

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Sep 13, 2005 10:10 am

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

Post by mandrake1983 » Tue Sep 13, 2005 12:53 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Sep 13, 2005 1:50 pm

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: Tue Jun 07, 2005 1:12 pm
Location: Germany
Contact:

Post by mandrake1983 » Tue Sep 13, 2005 2:30 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Sep 13, 2005 2:57 pm

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: Tue Jun 07, 2005 1:12 pm
Location: Germany
Contact:

Post by mandrake1983 » Wed Sep 14, 2005 5:12 am

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
Warrior
Warrior
Posts: 507
Joined: Sun Dec 05, 2004 9:01 pm
Location: Germany
Contact:

Post by maci » Wed Sep 14, 2005 7:16 am

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Wed Sep 14, 2005 8:50 am

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