Page 1 of 1

VS2005

Posted: Thu Jan 12, 2006 8:46 pm
by huw
Has anyone managed to compile 2.0.x CVS with VS2005?

If so how?

Thanks

Posted: Wed Jan 18, 2006 11:02 pm
by DTRemenak
use the vc8 project. and yeah, I just checked it in today.

Posted: Fri Jan 20, 2006 10:54 pm
by huw
Right thanks. Just took my ages to learn how to compile on Dev-C++.

On Dev-C++ the libraries go in C:\dev-cpp\lib

Where do I put them with Visual Studio?

Thanks

/edit: I think I put the cURL files in the right place.

/edit: snipped old log

Posted: Wed Feb 01, 2006 5:24 pm
by huw
anyone?

Posted: Wed Feb 01, 2006 6:40 pm
by JeffM
you need to download and install the windows SDK, as well as the direct X SDK.

by default the "express" version of VC 2005 does not ship with these. You do not have the full Visual Studio 2005, you have the free express version.

Posted: Fri Feb 03, 2006 8:52 pm
by huw
I assume by Windows SDK you mean the platform sdk?

I'll download them and see what error I get next :lol-old:

Posted: Fri Feb 03, 2006 9:04 pm
by JeffM
yes the platform SDK

you shoudl also make sure you have libCURL and posibly PDCURSES if you plan on building bzadmin

Posted: Sat Feb 04, 2006 2:17 pm
by huw
I have installed the Platform SDK but I am getting the same error.

I am assuming this is because it hasn't added the files to the right place or set the path variable correctly.

I tried the "add pdsdk directorys to Visual studio" link but that didn't seem to work probably because the PDSDK does not yet offically support VS2005.

Any pointers on getting it working?

Posted: Sat Feb 04, 2006 5:18 pm
by JeffM
you probably have to manualy copy the headers and libs into the include and lib dir that your VC2005 express uses.

Posted: Sat Feb 04, 2006 5:32 pm
by huw
Copied the includes / libs.

Are there any problems apart from the one with cURL which I haven't sorted out yet?

/edit: snipped old build log

Posted: Sat Feb 04, 2006 6:13 pm
by JeffM
you won't know, untill you fix the curl problems

Posted: Sat Feb 04, 2006 10:33 pm
by huw
Seem to have fixed the cURL problems but I still haven't manged to compile it 100% yet :(

/edit attached compile log because it went over the message limit
:?

Posted: Sat Feb 04, 2006 10:37 pm
by JeffM
dude, that's way too much text

you are going to have to start finding the exact error messages for yourslef. then asking about just them.

in this case, you don't have the directX SDK, you need that as was stated before

Posted: Sun Feb 05, 2006 4:35 pm
by huw
Ops :oops:

Copied the platform SDK files to the include and lib directory but completely forgot about the directx sdk.

I have copied the directx SDK files which seems to have reduced the files. I still seem to be getting a few errors and lots of warnings.

I have attached the full compile log and just the section with the errors.

I seem to have done something wrong as there are still loads of errors.

IGNORE: /edit: I am going to delete the current files and add some new ones. Updating the CVS has fixed a load of things but left other things broken

/edit2: attached new compile log

Posted: Thu Feb 09, 2006 1:33 pm
by huw
I read the updated readme.win32 which showed me how to link the Platform SDK and DirectX SDK properly (I must have gone seriously wrong before :oops: )

This was a build of the 2.0 branch. Almost everything has gone fine.

========== Build: 0 succeeded, 3 failed, 17 up-to-date, 0 skipped ==========

I installed PDcurses.

Here is the compile log for the sections that failed

Posted: Sun Feb 19, 2006 1:07 pm
by huw
Can anyone help? :(

Posted: Wed Feb 22, 2006 12:46 pm
by huw
I have managed to get bzadmin to compile.

In the latest CVS the additional dependencies are:

Code: Select all

ws2_32.lib
winmm.lib
odbc32.lib
odbccp32.lib
libcurl.lib
A page in the latest readme.win32 links to a microsoft page about integrating the Platform SDK with VS2005. It talks about editing a file to add the default dependancies.

For some reason the bzflag vc8 project didn't have some of these additional dependancies.

The additional dependancy line now reads:

Code: Select all

ws2_32.lib
winmm.lib
odbc32.lib
odbccp32.lib
libcurl.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
I am sure that only some of those additonal files are required but adding them does allow bzadmin to compile successfully.

UPDATE: adding the libs to bzflag and bzfs allow them to compile fine as well. Could a dev please post here when CVS has been updated so that the required libs are included by default?

Thanks

Posted: Wed Feb 22, 2006 1:20 pm
by huw
<IGNORE>The installer appears to use NSIS 1 (rather than 2 :? ).

Maybe it is version 2. Both version 1 and version2 give errors also version 2 gives less errors.

</IGNORE>

The errors are missing html files like:

Code: Select all

  File ..\..\..\man\bzflag.html

Code: Select all

File ..\..\..\man\bzfs.html

Code: Select all

File ..\..\..\man\bzw.html

Code: Select all

File: "..\..\..\man\bzadmin.html" -> no files found.

I have to run it manually. Is it meant to be part of the compile chain?

Posted: Wed Feb 22, 2006 4:42 pm
by JeffM
those are only used to build installers, you don't need them to run.

we usualy make the installers by hand, not using the internal project ( it dosn't work anymore )

Posted: Wed Feb 22, 2006 6:01 pm
by huw
Right thats good. Is there any chance a more modern installer script could be uploaded or at least one that just packages bzflag / bzfs?

Also have the dependency changes been committed to CVS or am I the only with experiencing the problem?

Posted: Wed Feb 22, 2006 9:25 pm
by DTRemenak
Default dependencies should not be added to the project's "additional dependencies". They are defaults, we just use them. If your compiler is not set up with the correct defaults, set it up properly. You won't be able to compile *anything* nontrivial (not just bzflag) without them.

Posted: Wed Feb 22, 2006 9:42 pm
by huw
Looks like I had checked the dependencies in corewin.vsprops rather than corewin_express.vsprops.

That problems fixed now, thanks.

Any chance a working installer script could be added to CVS that just bundles bzflag and bzfs (with the relevant graphics and dlls)?

Posted: Wed Feb 22, 2006 10:46 pm
by JeffM
blast007 made a new nsis script, it will be used for 2.2 with all the needed graphcis. DLLs are not put in CVS, but are ether built, or pulled by the builder from his system.

building a postable release installer is not 100% automatic.

Posted: Sun Feb 26, 2006 6:20 pm
by huw
Maybe a MSI script should be used for 2.2?

Could be integrated into the main build sequence :wink: