Having trouble compiling snes source code

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
pichichi010
Posts: 172
Joined: Thu Dec 29, 2011 5:41 pm

Re: Having trouble compiling snes source code

Post by pichichi010 » Wed May 15, 2013 11:53 am

Not in the bin folder, I checked.

I am running the search function but I remember having several game.smc files around lol


yeah no output.


This thing does't want to be compiled!

User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: Having trouble compiling snes source code

Post by thefox » Wed May 15, 2013 12:04 pm

Some other step of the build probably failed.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi

pichichi010
Posts: 172
Joined: Thu Dec 29, 2011 5:41 pm

Re: Having trouble compiling snes source code

Post by pichichi010 » Wed May 15, 2013 12:10 pm

Still get the Discarding empty section ".rodata1".

The log looks good for everything else.


Installed a clean copy and nothing.


C:\snessdk\christmas>call compsnd.bat

C:\snessdk\christmas>path=path;tools\

C:\snessdk\christmas>del spc700.bin

C:\snessdk\christmas>pre spc700.asm

C:\snessdk\christmas>bass -arch=table -o spc700.bin spc700.s

C:\snessdk\christmas>rem pause

C:\snessdk\christmas>del spc700.s

C:\snessdk\christmas>call makeres.bat

C:\snessdk\christmas>path=path;tools\

C:\snessdk\christmas>del gfx\*.chr

C:\snessdk\christmas>del gfx\*.pal

C:\snessdk\christmas>snesbmp gfx\intro.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\title.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\back1.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\back2.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\back3.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\back4.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\back5.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\backmenu.bmp -b -256 -s32

C:\snessdk\christmas>snesbmp gfx\backdone.bmp -b -256 -s16

C:\snessdk\christmas>snesbmp gfx\gameover.bmp -b -256

C:\snessdk\christmas>snesbmp gfx\tileset.bmp -b

C:\snessdk\christmas>snesbmp gfx\flares.bmp -b

C:\snessdk\christmas>snesbmp gfx\leds.bmp -b

C:\snessdk\christmas>snesbmp gfx\spr16.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_stand.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_walk.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_throw.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_jump.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_hit.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_make.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_lose.bmp -b

C:\snessdk\christmas>snesbmp gfx\hero_alt.bmp -b

C:\snessdk\christmas>snesbmp gfx\ufo1.bmp -b

C:\snessdk\christmas>snesbmp gfx\ufo2.bmp -b

C:\snessdk\christmas>snesbmp gfx\ufo2_alt.bmp -b

C:\snessdk\christmas>call compile.bat

Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Re: Having trouble compiling snes source code

Post by Shiru » Wed May 15, 2013 4:19 pm

Discarding empty section ".rodata1"
This one is an irrelevant message, it is just a warning that there is an empty section defined in the code. You can remove this message by deleting first three lines of the data.asm.

pichichi010
Posts: 172
Joined: Thu Dec 29, 2011 5:41 pm

Re: Having trouble compiling snes source code

Post by pichichi010 » Wed May 15, 2013 5:25 pm

Yeah I went and deleted it and well it was nothing.

User avatar
thefox
Posts: 3141
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: Having trouble compiling snes source code

Post by thefox » Wed May 15, 2013 11:54 pm

My guess is the Python optimizing step is failing. Maybe it's not finding Python in the path, or .py files haven't been associated to run with Python.

BTW the PATH setting is wrong in all the batch files. It is:

Code: Select all

path=path;tools\
It should be:

Code: Select all

path=%path%;tools\
Also try changing:

Code: Select all

..\bin\816-opt.py game.ps1 > game.s
to:

Code: Select all

python ..\bin\816-opt.py game.ps1 > game.s
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi

pichichi010
Posts: 172
Joined: Thu Dec 29, 2011 5:41 pm

Re: Having trouble compiling snes source code

Post by pichichi010 » Mon May 20, 2013 4:43 am

Everything is working now, With Ramsis edits, and Shiru helped me and replaced the "Lib" folder of the SNES SDK with another version he had.

Solved everything.

Thanks, problem resolved.

User avatar
zhengyaxin_8bit
Posts: 7
Joined: Fri Jun 12, 2009 10:28 am
Contact:

Re: Having trouble compiling snes source code

Post by zhengyaxin_8bit » Sat Jun 22, 2019 12:55 pm

Hi pichichi010
Can you send a correct vesion to my email 632618534@qq.com.
I can't complier this project.
I love tv game

Post Reply