Emuforums.com

Go Back   Emuforums.com > Xbox Emulation > Cxbx Official Discussion
About Us Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old August 8th, 2003   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 4
Visual .NET 2003 compiling...

Can someone write a sticky on how to properly compile cxbx using Visual .NET 2003

Some helpful hints for basic compiling of the code would be nice and if I need to have the XDK installed to properly compile cxbc (which I'm sure is not needed but just asking).

It would be quite helpful to some others as well I'm sure...

Thanks!
bobmyers is offline   Reply With Quote
Old August 8th, 2003   #2 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 5
I can help you with that.

- Get the source from CVS

- Make a directory where you put the sources for cxbx and OpenXDK.
So now you got c:\somedir\cxbx and c:\somedir\openxdk

- Open the cxbx.sln file and answer yes to the question if you want to convert the files.

You now have an environment containing the cxbe, cxbx and cxbxkrnl projects.

- Change the property of the cxbxkrnl project to include (additional) the directory c:\somedir\openxdk\include (Properties -> C/C++ -> General)
- Change the property of the cxbxkrnl project to include (additional) the ddraw.lib library (Properties -> Linker -> Input)

Now you have to change some code:
In the file Mutex.cpp in the routine Lock and Unlock change the calls to InterLockedCompareExchange to use the (LONG) calls.

In the file EmuXOnline.h add the keyword public to the class so all members are accessable like this:

class EmuThis
{
public:
// etc.

Now everything should compile.

Good luck!

Last edited by Dessie; August 10th, 2003 at 16:54.
Dessie is offline   Reply With Quote
Old August 9th, 2003   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks!

3rd year of computer science and I'd like to fool around and/or help the project over time.
bobmyers is offline   Reply With Quote
Old August 9th, 2003   #4 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 4
Ok it seems it's not enough unless I misunderstood a step. Everything performed as you specified. I assume this is ok to post.

Here's the compile errors/warnings...

Cxbe warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library

Cxbx error result returned from 'c:\*OMITTED*\cxbx-0.7.7b-source\cxbx\bin\bat00001d.bat'.

CxbxKrnl error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "void __cdecl XTL::EmuD3DInit(struct Xbe::Header *,unsigned long)" (?EmuD3DInit@XTL@@YAXPAUHeader@Xbe@@K@Z)

CxbxKrnl fatal error LNK1120: 1 unresolved externals
bobmyers is offline   Reply With Quote
Old August 10th, 2003   #5 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 5
Re: Visual .NET 2003 compiling...

Quote:
Originally Posted by bobmyers
Ok it seems it's not enough unless I misunderstood a step. Everything performed as you specified. I assume this is ok to post.

Here's the compile errors/warnings...

Cxbe warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library

Cxbx error result returned from 'c:\*OMITTED*\cxbx-0.7.7b-source\cxbx\bin\bat00001d.bat'.

CxbxKrnl error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "void __cdecl XTL::EmuD3DInit(struct Xbe::Header *,unsigned long)" (?EmuD3DInit@XTL@@YAXPAUHeader@Xbe@@K@Z)

CxbxKrnl fatal error LNK1120: 1 unresolved externals
Ok, sorry in the new version caustik has added something which requires a library to be added. My mistake

You can ignore the first warning, maybe i will look how to get rid of it, but it is not fatal (just not flawless)

The error about the unresolved symbol is easily fixed by adding the ddraw.lib to the additional dependencies in cxbxkrnl. I will change the former reply so that step is added.
Dessie is offline   Reply With Quote
Old August 10th, 2003   #6 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 4
Excelent!

The direct draw library did the trick.

No warnings or errors after this step in Visual Studio. This is by default the "trace" version.

Thanks again.
bobmyers is offline   Reply With Quote
Old August 11th, 2003   #7 (permalink)
Registered User
 
duke's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 101
Re: Visual .NET 2003 compiling...

how would u get it to compile on something like bloodshed c++
duke is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:07.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5