Help with re-compileing

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Ziacle
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri Aug 06, 2004 12:10 am

Help with re-compileing

Post by Ziacle » Fri Aug 06, 2004 12:17 am

Ok, this is a simple question, but I dont knw the best way to describe it.

I want to be able to recompile without having to create a new directory for the contents of the zip file.

I'm using a trial version of VS.net (I normally program with VS 5, so this is likely a feature issue of VS.net that I dont know about).

I unzip the MQsource zip into a directory, and then compile (as per the manual) and everything works fine. But when I do this, something (unknown to me) gets set in that source directory, so that if I make changes to the soruce (add plugin, ect) and then re-compile MQ, it doenst recompile everything, it just remakes about half the files, (doesnt remake the mq2.exe and lots of others).

Basically, if I have compiled from a directory before, what build options do I change to make it do a full recompile again?. I've tried clean build, and rebuild all, but neiter will recreate the mq2.exe and other files.

The only way I can get around this is do make a new directory from the mqsource.zip and start from scratch. I would like to be able to simply copy my current source directory (that I know works), add a plugis/make changes, and recompile EVERYTHING withotu having to unzip the source zip again.

Sorry if this sounds complicated, it's not. I just made it drawn-out to avoid pointless responses, or stuff like RTFM.

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Fri Aug 06, 2004 1:14 am

Do Rebuild, or do a Clean before you Build.
Don't feel bad, common problem for those who don't play with compilers much.

AndyZaft
orc pawn
orc pawn
Posts: 20
Joined: Thu Jun 24, 2004 1:42 pm

Post by AndyZaft » Fri Aug 06, 2004 11:39 am

recreate the mq2.exe and other files.
Like what other files? Btw, MQ2.exe won't be compiled since you don't have source for that, so don't delete it by hand, make clean won't remove it either.

Only things should be appearing after compile is 13+ DLL files and for every DLL there is a EXP, LIB, MAP and PDB file, which are used by the compiler and linker.

Ziacle
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri Aug 06, 2004 12:10 am

Post by Ziacle » Fri Aug 06, 2004 3:10 pm

What do you mean by
MQ2.exe won't be compiled since you don't have source for that, so don't delete it by hand
Umm, I do have the source for it, thats the whole point :).

As for the other files, I didnt compare them 1 by 1, but theres a totoal of 6 files that are missing.

Doing a rebuild and a clean doesnt seem to work, it was one of the first thigns I tried.

Maby I can just update the DLL files, but I just know I'm going to end up getting errors lol.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri Aug 06, 2004 3:16 pm

You do not have the source for macroquest2.exe.

You only build DLLs.

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Fri Aug 06, 2004 3:16 pm

If a clean build or a rebuild doesn't fix it, you need to redownload the macroquest zip.

And no, you don't have the source for macroquest2.exe. You have the source for mq2main.dll which macroquest2.exe uses.

AndyZaft
orc pawn
orc pawn
Posts: 20
Joined: Thu Jun 24, 2004 1:42 pm

Post by AndyZaft » Fri Aug 06, 2004 4:25 pm

Do tell where did you get the mq2.exe source, so Lax can change the auth method if it's true.

Btw if you add a plugin there is no reason to recompile the whole solution, just add the new plugin source to the tree, then compile that one project alone in Release and copy one single DLL over where you use MQ from. Well unless it creates more than one DLLs, that should work.

Caladine
a hill giant
a hill giant
Posts: 164
Joined: Fri Feb 13, 2004 9:29 pm

Post by Caladine » Mon Aug 09, 2004 11:53 am

There's no need for an mq2.exe source - it's only an injector for the MQ DLLs.