Emuforums.com

Go Back   Emuforums.com > Miscellaneous Emulation > SDLEmu Official Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

WON'T YOU JOIN US?
You are not a registered member and
are viewing this site as a guest.
Registration is simple and FREE.
Join this CrowdGather community today.
Registration offers the following perks:

» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging

join

Reply
 
Thread Tools Display Modes
Old January 12th, 2011, 02:14   #1
Sam_Bushman
Registered User
 
Join Date: Jan 2011
Location: USA/Ohio
Posts: 4
Having issues compiling VJ 1.0.7

Hello,
I am trying to compile Virtual Jaguar 1.0.7 from source (modifying gpu.cpp line 77 to set doGPUDis = true) so I may use it for testing homebrew jaguar software. When I attempt to compile VJ, an error occurs when compiling sdlemu_config.cpp. Below is a copy of what GCC says:

src/sdlemu_config.cpp: In function 'const char* sdlemu_getval_string(const char*
, const char*)':
src/sdlemu_config.cpp:119:45: error: 'strcmp' was not declared in this scope
src/sdlemu_config.cpp: In function 'int sdlemu_getval_int(const char*, int)':
src/sdlemu_config.cpp:130:45: error: 'strcmp' was not declared in this scope
src/sdlemu_config.cpp:132:27: error: 'atoi' was not declared in this scope
src/sdlemu_config.cpp: In function 'int sdlemu_getval_bool(const char*, int)':
src/sdlemu_config.cpp:143:45: error: 'strcmp' was not declared in this scope
src/sdlemu_config.cpp:145:27: error: 'atoi' was not declared in this scope
make: *** [obj/sdlemu_config.o] Error 1

I am using GCC version 4.5.0 on Windows XP Media Center Edition with minGW and MSIS. Just to try to move along the compiling, I tried altering the include statements at the top of the file as follows:
#include <string> became #include <string.h>
#include <stdlib.h> was added
Not that I thought an include statement would have been forgotten on a release version...but rather I am sort of desperate After these modifications GCC failed to recognise Token() and Value() as members of the token_list class in the sdlemu_config.cpp file, so I reverted my changes. Does anyone have any ideas to what may be going wrong?

Thanks a bunch,
Sam Bushman

Last edited by Sam_Bushman; January 12th, 2011 at 02:24..
Sam_Bushman is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old January 14th, 2011, 16:55   #2
Shamus
Emu author
 
Shamus's Avatar
 
Join Date: Jul 2003
Location: Ur-th
Posts: 325
If I could make a recommendation here, I would advise you to look at compiling revision 299 from source as 1.0.7 has some problems that were missed before it was released (sad, but true). To check it out, you would do:
Code:
svn co -r 299 http://shamusworld.gotdns.org/svn/virtualjaguar/trunk .
Code committed after r299 has major architectural changes and it doesn't compile or run properly at the moment.

BTW, you should be able to get Subversion packages for MinGW; not 100% sure since it's been a long time since I've developed in a Windows environment.
Shamus is offline   Reply With Quote
Old January 15th, 2011, 02:07   #3
Shamus
Emu author
 
Shamus's Avatar
 
Join Date: Jul 2003
Location: Ur-th
Posts: 325
Actually, what's missing is <stdio.h> from that file. Seems every iteration of GCC get more and more strict with what it includes and what it doesn't...
Shamus is offline   Reply With Quote
Old January 19th, 2011, 06:36   #4
Sam_Bushman
Registered User
 
Join Date: Jan 2011
Location: USA/Ohio
Posts: 4
Hey Shamus,
I sent a private message to you about this, but I'm having issues accessing the repository on your SVN. It seems to require a valid username and password to check out. I have tried multiple svn clients (including vanilla SVN) and all require the credentials. Posts on the Virtual jaguar thread had one individual indicate such an issue but it sounded like he alleviated the issue by using a different SVN client. Posts #136 - #138 seem to discuss this. I downloaded that svn client, but got the same results with that install's svn binary. I guess beyond the issues with credentials, I'm curious at what the difference is between SlikSVN's SVN client and any other.

Cheers and thanks,
Sam
Sam_Bushman is offline   Reply With Quote
Old January 19th, 2011, 16:43   #5
Shamus
Emu author
 
Shamus's Avatar
 
Join Date: Jul 2003
Location: Ur-th
Posts: 325
Did you try https instead of http? I just checked the repo premissions and they look OK. It could be that it's expecting https for anonymous users. Let me know if that does the trick or not.

I think r299 might not compile with GCC 4.5--if that's the case, I'll fix in the repo and then HEAD will compile correctly again.
Shamus is offline   Reply With Quote
Old January 20th, 2011, 04:19   #6
Sam_Bushman
Registered User
 
Join Date: Jan 2011
Location: USA/Ohio
Posts: 4
I changed the "http" in the address to "https" per your suggestion and I am now downloading the repository. thx! Lets see if it will compile...
Sam_Bushman is offline   Reply With Quote
Old January 20th, 2011, 06:42   #7
Sam_Bushman
Registered User
 
Join Date: Jan 2011
Location: USA/Ohio
Posts: 4
alrighty, after a few healthy hours of trying to compile libcdio (which btw, 0.81 seems to compile in msis for winXP) and adding fixes to various make files and source files I have gotten r299 of virtual jaguar compiled and running smooth. I was even able to add back in a hack a jagware poster had done to the 1.0.7 version to allow for bjl roms (.bin extension was used and the start address was $4000). Woohoo! Thanks for the help Shamus. You guys are great.
Sam_Bushman 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

Forum Jump

All times are GMT +1. The time now is 02:58.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.