Dev-C++ question

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Dev-C++ question

Post by emptythought »

How do you compile projects that do not have a .dev file? The examples had them and that'd load the whole project, but if I wated to try and compile, say Genesis Plus, how would I do that?

The examples compiled just fine.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

There may be an easier way to do this, but I just start a new Dev-C++ project and import all the source files. Then, I look at the makefile if there is one, and make sure I'm linking the right libs and whatnot, and if I did all of that correctly it usually compiles. You may be able to do it without using the IDE, but what I described usually works for me.
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

OneThirty8 wrote:There may be an easier way to do this, but I just start a new Dev-C++ project and import all the source files. Then, I look at the makefile if there is one, and make sure I'm linking the right libs and whatnot, and if I did all of that correctly it usually compiles. You may be able to do it without using the IDE, but what I described usually works for me.
If you try that with Genesis Plus / DC, you will feel pain. Much pain. It uses two makefiles, one of which compiles the M68k emulator as a library, and the other of which compiles the main emulator. You also need to copy a load of preprocessor flags, include directories, and stuff like that.
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has thanked: 0
Been thanked: 0

Post by OneThirty8 »

BlackAura wrote:
OneThirty8 wrote:There may be an easier way to do this, but I just start a new Dev-C++ project and import all the source files. Then, I look at the makefile if there is one, and make sure I'm linking the right libs and whatnot, and if I did all of that correctly it usually compiles. You may be able to do it without using the IDE, but what I described usually works for me.
If you try that with Genesis Plus / DC, you will feel pain. Much pain. It uses two makefiles, one of which compiles the M68k emulator as a library, and the other of which compiles the main emulator. You also need to copy a load of preprocessor flags, include directories, and stuff like that.
Ouch. Never mind then. :oops:
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

If you pre-compile the m68k library, you should be fine, but you won't get it with a single project file very easily with the way the sources are currently set up.
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

I didn't think that the Dev-C++ setup would be such a pain. What would be a good setup to have on a Windows machine?

I was kind of worried about disk space, that's the reason why I chose Dev-C++ over anything else.

Are there any tutorials for setting up a CYGWIN enviornment, because I don't exactly know what I'm doing.
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

Oh yes, compiling sb elses work (done in linux or cygwin with kos) with Dev-Cpp is a pain in the a*s. As BlackAura, me too, I am trying to compile Genesis Plus but in vain. I have created the .dev file manually (..writing all the filenames and they are way too many, in fact sometimes my machine hangs just when parsing them! :lol: ). The compilation never succeded, all I get is many linker errors.

However I managed to compile xrick (got the source from Ian's site) with a manually created .dev file.

What I have concluded is that Dev-Cpp is ideal for using it when you want to create something from scratch, when you create your own game, not when porting or trying to compile sb else's code.
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

elefas wrote:...in fact sometimes my machine hangs just when parsing them!
Yup. Same here.

I think I'll give xRick a try.

I think I'll try to setup CYGWIN or something else. But just for starters, Dev-C++ doesn't seem all that bad.

I need to learn how to compile before I start trying to code anything.
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

fackue wrote: I think I'll give xRick a try.
If you want I can give you the .dev and dreamcast.mak files. It compiled ok for me but didn't try it on my dc (no coders cable, no empty cd-rs...). Just tell me in case you need it or something doesn't work in your attempt.

One idea: I think it would be nice if everybody in the forum who uses Dev-Cpp as a development tool, posted in a thread the .dev and .mak files he used for his project. It would be beneficial for all of us. If you find this idea helpfull why not giving it a try?
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

Oh man, xRick gave me a ton of errors. Did you change anything in the makefile? All I did was add "All known files" to the project and compiled.

Also, in your compiler options, what settings do you have? All my settings are set to "No."
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

Darn,
Well take a look at these:

dreamcast.mak

Code: Select all

LIBS2 = $(patsubst startup.o, ,$(LIBS)) 
BIN2 = $(patsubst %.elf,%.el2,$(BIN)) 
RBIN = $(patsubst %.elf,%.bin,$(BIN)) 
FBIN = 1st_read.bin 

romdisk.img : 
	genromfs -f romdisk.img -d romdisk -v 

romdisk.o : romdisk.img 
	bin2o romdisk.img romdisk romdisk.o 

all-before : romdisk.o
   
$(BIN2) : $(BIN) 
	$(CC) startup.o $(LINKOBJ) -o $(BIN2) $(LIBS2) -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm  -lmp3 -lm -lk++ 

Strip : $(BIN2) 
	sh-elf-strip $(BIN2) 

$(RBIN) : Strip 
	sh-elf-objcopy -O binary  $(BIN2) $(RBIN) 

all-after : $(RBIN) 
	scramble $(RBIN) $(FBIN)

	rm $(BIN)
	rm $(RBIN)
	rm $(BIN2)
and...take a deep breath....

xrick.dev

Code: Select all

[Project]
FileName=xrick.dev
Name=xrick
UnitCount=44
Type=1
Ver=1
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=dreamcast.mak
Compiler=-Wall -g -ml -m4-single-only -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls -fno-exceptions -fno-operator-names -fno-rtti_@@_-D_arch_dreamcast_@@_-D_XBOX_@@_-DUNZIP_SUPPORT_@@_-DNOASM_@@_-DSDD1_DECOMP_@@_-DCPU_SHUTDOWN_@@_-DSPC700_SHUTDOWN_@@_
CppCompiler=-Wall -g -ml -m4-single-only -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls -fno-exceptions -fno-operator-names -fno-rtti_@@_-D_arch_dreamcast_@@_-D_XBOX_@@_-DUNZIP_SUPPORT_@@_-DNOASM_@@_-DSDD1_DECOMP_@@_-DCPU_SHUTDOWN_@@_-DSPC700_SHUTDOWN_@@_
Linker=-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000_@@_startup.o romdisk.o_@@_-lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm  -lmp3 -lm -lkallisti -lgcc -limageload_@@_
IsCpp=0
Icon=
ExeOutput=
ObjectOutput=
OverrideOutput=1
OverrideOutputName=XRick.elf
HostApplication=
Folders=
CommandLine=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=1
CompilerSettings=000000000100100000

[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0

[Unit1]
FileName=dreamcast.mak
Compile=0
Link=0
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit2]
FileName=Fading.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit3]
FileName=xrick.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit4]
FileName=control.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit5]
FileName=system.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit6]
FileName=unzip.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit7]
FileName=dat_ents.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit8]
FileName=dat_maps.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit9]
FileName=dat_picsPC.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit10]
FileName=dat_picsST.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit11]
FileName=dat_screens.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit12]
FileName=dat_snd.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit13]
FileName=dat_spritesPC.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit14]
FileName=dat_spritesST.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit15]
FileName=dat_tilesPC.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit16]
FileName=dat_tilesST.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit17]
FileName=data.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit18]
FileName=devtools.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit19]
FileName=draw.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit20]
FileName=e_bomb.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit21]
FileName=e_bonus.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit22]
FileName=e_box.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit23]
FileName=e_bullet.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit24]
FileName=e_rick.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit25]
FileName=e_sbonus.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit26]
FileName=e_them.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit27]
FileName=ents.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit28]
FileName=game.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit29]
FileName=maps.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit30]
FileName=rects.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit31]
FileName=scr_gameover.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit32]
FileName=scr_getname.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit33]
FileName=scr_imain.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit34]
FileName=scr_imap.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit35]
FileName=scr_pause.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit36]
FileName=scr_xrick.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit37]
FileName=scroller.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit38]
FileName=sysarg.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit39]
FileName=sysevt.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit40]
FileName=sysjoy.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit41]
FileName=syskbd.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit42]
FileName=syssnd.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit43]
FileName=sysvid.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

[Unit44]
FileName=util.c
CompileCpp=0
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Folder=

sorry for the loooong post. I think a thread with .dev files should be opened...

P.S. Remember: It compiled ok, but I haven't tested it on my DC!
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

If I was more experianced I'd probably be able to do this on my own, but those two files worked great. But now I'm getting 1 error.
Compile Log wrote:Executing make...
make.exe -f "C:\WINDOWS\Desktop\xricksrc2\Makefile.win" all
dreamcast.mak:7: *** missing separator. Stop.

Execution terminated
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

You must use tabs in Makefiles. Using spaces for intending doesn't work. The board tends to strip out tabs and replace them with spaces.

Just hit the "Quote" button on elefas' post, and copy the code out of there.
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

Yeap just do as BlackAura said. Those tabs are really nasty. It took me awhile to find out what was wrong with tabs and spaces.

The dreamcast.mak file can be used as a "global" makefile for any project you want to compile. It needs startup.o to be placed in your working directory (just copy it from another project). If it complains about romdisk, just comment the appropriate lines or if this doesn't work just copy a romdisk.o object file from another project to yours.
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

It doesn't give that error anymore, but now it gives 2 different ones.
Compiler Log wrote:Executing make...
make.exe -f "C:\WINDOWS\Desktop\xricksrc2\Makefile.win" all
genromfs -f romdisk.img -d romdisk -v

0 [main] genromfs 16271073 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
998 [main] genromfs 16271073 open_stackdumpfile: Dumping stack trace to GENROMFS.EXE.stackdump
make.exe: *** [romdisk.img] Error 101120

Execution terminated
I didn't even know how to approach this one. :|
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

That's because dreamcast.mak suppose that you use a romdisk instruction in your code which xrick doesn't. Try to remove from dreamcast.mak any line which contains the word romdisk. As I said in the previous post, if it still complains, just find a romdisk.o file (I can send you one if you don't have) from another project in you working directory and use the original dreamcast.mak (not hte one you removed the lines).
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

Oh my bad, I didn't fully read that post. But I still get errors. I removed the top, I think, 4 lines which contained romdisk in them. This time it gets real far into compiling, but at the end, where it seems like it's about to spit the elf out, I get this:
...
sh-elf-gcc.exe Fading.o xrick.o control.o system.o unzip.o dat_ents.o dat_maps.o dat_picsPC.o dat_picsST.o dat_screens.o dat_snd.o dat_spritesPC.o dat_spritesST.o dat_tilesPC.o dat_tilesST.o data.o devtools.o draw.o e_bomb.o e_bonus.o e_box.o e_bullet.o e_rick.o e_sbonus.o e_them.o ents.o game.o maps.o rects.o scr_gameover.o scr_getname.o scr_imain.o scr_imap.o scr_pause.o scr_xrick.o scroller.o sysarg.o sysevt.o sysjoy.o syskbd.o syssnd.o sysvid.o util.o -o "XRick.elf" -L"c:/dev-cpp/dclib" -ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000 startup.o romdisk.o -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm -lmp3 -lm -lkallisti -lgcc -limageload

Bad command or file name

sh-elf-gcc.exe startup.o Fading.o xrick.o control.o system.o unzip.o dat_ents.o dat_maps.o dat_picsPC.o dat_picsST.o dat_screens.o dat_snd.o dat_spritesPC.o dat_spritesST.o dat_tilesPC.o dat_tilesST.o data.o devtools.o draw.o e_bomb.o e_bonus.o e_box.o e_bullet.o e_rick.o e_sbonus.o e_them.o ents.o game.o maps.o rects.o scr_gameover.o scr_getname.o scr_imain.o scr_imap.o scr_pause.o scr_xrick.o scroller.o sysarg.o sysevt.o sysjoy.o syskbd.o syssnd.o sysvid.o util.o -o XRick.el2 -L"c:/dev-cpp/dclib" -ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000 romdisk.o -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm -lmp3 -lm -lkallisti -lgcc -limageload -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm -lmp3 -lm -lk++

Bad command or file name

sh-elf-strip XRick.el2

sh-elf-strip: XRick.el2: No such file or directory

make.exe: *** [Strip] Error 1

Execution terminated
I looked for the elf, but it wasn't there.
doragasu
DCEmu Cool Poster
DCEmu Cool Poster
Posts: 1048
Joined: Thu May 16, 2002 5:01 pm
Location: Madrid, Spain
Has thanked: 0
Been thanked: 0

Post by doragasu »

You have removed romdisk, but the code maybe uses it:
sh-elf-gcc.exe Fading.o xrick.o control.o system.o unzip.o dat_ents.o dat_maps.o dat_picsPC.o dat_picsST.o dat_screens.o dat_snd.o dat_spritesPC.o dat_spritesST.o dat_tilesPC.o dat_tilesST.o data.o devtools.o draw.o e_bomb.o e_bonus.o e_box.o e_bullet.o e_rick.o e_sbonus.o e_them.o ents.o game.o maps.o rects.o scr_gameover.o scr_getname.o scr_imain.o scr_imap.o scr_pause.o scr_xrick.o scroller.o sysarg.o sysevt.o sysjoy.o syskbd.o syssnd.o sysvid.o util.o -o "XRick.elf" -L"c:/dev-cpp/dclib" -ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000 startup.o romdisk.o -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm -lmp3 -lm -lkallisti -lgcc -limageload

Bad command or file name
User avatar
elefas
DC Developer
DC Developer
Posts: 75
Joined: Thu Jan 22, 2004 2:16 pm
Location: Greece
Has thanked: 0
Been thanked: 0
Contact:

Post by elefas »

Doragasu point was right. So if you haven't solved it yet, edit the .dev file and search for the line:

Code: Select all

Linker=-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000_@@_startup.o romdisk.o_@@_-lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm  -lmp3 -lm -lkallisti -lgcc -limageload_@@_
and just erase romdisk.o

Then edit the dreamcast.mak file and put "#" to the following lines

Code: Select all

#romdisk.img : 
#	genromfs -f romdisk.img -d romdisk -v 

#romdisk.o : romdisk.img 
#	bin2o romdisk.img romdisk romdisk.o 

all-before : #romdisk.o
I have tested it right now on my pc and compiled fine. Be syre to have startup.o in your directory. Good luck
__.:/|D|C|___eLef@s___|S|E|G|A|\:.__
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Post by emptythought »

Ok, I'll try that out. I thought "//" were comments, not "#"... no wonder why it was giving errors when I "commented them out."

Ok, it looks like I need SDL_image.h, which I don't have. I looked inside the SDL folder thats in the dcinclude folder, and it wasn't there. Can I get that from you, elefas?
Post Reply