VS2005

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

VS2005

Post by huw »

Has anyone managed to compile 2.0.x CVS with VS2005?

If so how?

Thanks
User avatar
DTRemenak
General
General
Posts: 625
Joined: Thu Jan 16, 2003 4:54 am
Location: U.S.
Contact:

Post by DTRemenak »

use the vc8 project. and yeah, I just checked it in today.
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
Last edited by huw on Thu Feb 09, 2006 2:18 pm, edited 1 time in total.
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post by huw »

anyone?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post 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.
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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:
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

yes the platform SDK

you shoudl also make sure you have libCURL and posibly PDCURSES if you plan on building bzadmin
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you probably have to manualy copy the headers and libs into the include and lib dir that your VC2005 express uses.
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
Last edited by huw on Thu Feb 09, 2006 1:35 pm, edited 1 time in total.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you won't know, untill you fix the curl problems
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
:?
Attachments
compile.txt
(62.3 KiB) Downloaded 120 times
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post 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
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
Attachments
compilelog.txt
Compile log (v.2)
(76.31 KiB) Downloaded 99 times
errorlog.txt
Error log (v.2)
(69.38 KiB) Downloaded 103 times
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
Attachments
error.txt
(21.59 KiB) Downloaded 102 times
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post by huw »

Can anyone help? :(
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post 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 )
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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?
User avatar
DTRemenak
General
General
Posts: 625
Joined: Thu Jan 16, 2003 4:54 am
Location: U.S.
Contact:

Post 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.
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post 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)?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post 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.
ImageJeffM
User avatar
huw
Private First Class
Private First Class
Posts: 158
Joined: Fri Apr 02, 2004 9:22 am
Location: England

Post by huw »

Maybe a MSI script should be used for 2.2?

Could be integrated into the main build sequence :wink:
Post Reply