This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

(solved) Getting Nesicide to compile example projects.

(solved) Getting Nesicide to compile example projects.
by on (#102354)
Hello all,

I was hoping to get a quick answer on how nesicide is suppose to be initially setup.

I've done this:

1. Install Make (C:\Program Files (x86)\GnuWin32\bin)
2. install CC65 (C:\Program Files (x86)\cc65-snapshot\bin)
3. Install NESICIDE

I can not get any of the examples to compile. (Build failed).


Also I noted these as possible bugs:
#Log to File for build output does not seem to work. (Also it would be cool to be able to copy to clipboard)
#Clean - when using clean project "Build completed successfully" pops up in the output... which obviously is not true.

The last thing I noticed was the about version showed this:
Quote:
Versions of external dependencies:
cc65:
cc65 V2.13.9
SVN version: 5647

ca65
ca65 V2.13.9 - (C) Copyright 1998-2011 Ullrich von Bassewitz
ca65.exe: No input files

ld65
ld65 V2.13.9 - (C) Copyright 1998-2009, Ullrich von Bassewitz
ld65.exe: Error: No object files to link

make



On a side note, is there any tutorials available? Any documentation on the IDE's functions?
Re: Getting Nesicide to compile example projects.
by on (#102358)
Is this NESICIDE 1 or 2?
Re: Getting Nesicide to compile example projects.
by on (#102363)
qbradq wrote:
Is this NESICIDE 1 or 2?


It's what everyone else calls NESICIDE 2.

The OPs problem is GNU Make is not found by NESICIDE. This is a common problem that seems to be related to the GNU Make installer not putting the path to the executable in the user's Windows PATH environment variable. I don't know how to fix that short of adding a kludgy "fix it" option in the environment settings dialog.
Re: Getting Nesicide to compile example projects.
by on (#102366)
I seem to remember that when I installed GNU Make using devkitPro's MSYS installer, it put Make and the rest of MSYS in the PATH. So perhaps you might start recommending this way to get MSYS.
Re: Getting Nesicide to compile example projects.
by on (#102401)
cpow wrote:
qbradq wrote:
Is this NESICIDE 1 or 2?


It's what everyone else calls NESICIDE 2.

The OPs problem is GNU Make is not found by NESICIDE. This is a common problem that seems to be related to the GNU Make installer not putting the path to the executable in the user's Windows PATH environment variable. I don't know how to fix that short of adding a kludgy "fix it" option in the environment settings dialog.

Can't you distribute make with NESICIDE? Probably wouldn't be a bad idea to bundle CC65 as well, at least users would then know the versions are compatible, and if some of the more advanced users want to use an updated version of CC65/make, they can update it themselves.
Re: Getting Nesicide to compile example projects.
by on (#102403)
Yay open source! :D

You could even bundle all the exe's into a bin directory under NESICIDE and call them by relative path (or even wipe out the system path and set it to that directory). That way if someone had other make tools installed (like Borland Make), or other versions of CA65, it wouldn't conflict with anything. And a power user could still install other versions if they wanted.

Um, back to the OP's post though, you're going to need to make sure "make" is in your PATH variable. If you're unsure of how to do this, let us know what version of Windows you're on and I'll step you through it.
Re: Getting Nesicide to compile example projects.
by on (#102407)
qbradq wrote:
Yay open source! :D

You could even bundle all the exe's into a bin directory under NESICIDE and call them by relative path (or even wipe out the system path and set it to that directory). That way if someone had other make tools installed (like Borland Make), or other versions of CA65, it wouldn't conflict with anything. And a power user could still install other versions if they wanted.

Yeah I actually meant bundling the binaries. I think compiling them in would add a lot of complexity to maintaining but wouldn't really benefit the end user much.
Re: Getting Nesicide to compile example projects.
by on (#102409)
thefox wrote:
Yeah I actually meant bundling the binaries. I think compiling them in would add a lot of complexity to maintaining but wouldn't really benefit the end user much.


Compiling them in? Been there, done that, remember? [Well, with my own assembler, not CC65]. Not going back to that...

But the bundle is a good idea. I'll look into it. That'd also be a convenient step toward solving tepples' "I want to run NESICIDE from a thumb-drive" concern.
Re: Getting Nesicide to compile example projects.
by on (#102410)
Big Yay for thumbdrives :D One way you can do that is to install the utilities to your external media, then execute the application from the command line with the correct paths set.
Re: Getting Nesicide to compile example projects.
by on (#102436)
. I now have make set in PATH... I'm still having some issues thought:

"ld65.exe: Error: Input file `nes.lib' not found"

The about still shows:
ca65
ca65 V2.13.9 - (C) Copyright 1998-2011 Ullrich von Bassewitz
ca65.exe: No input files

ld65
ld65 V2.13.9 - (C) Copyright 1998-2009, Ullrich von Bassewitz
ld65.exe: Error: No object files to link

BTW: Thanks for all the replies :)
Re: Getting Nesicide to compile example projects.
by on (#102439)
jshift wrote:
. I now have make set in PATH... I'm still having some issues thought:

"ld65.exe: Error: Input file `nes.lib' not found"



What project are you trying to compile?

jshift wrote:
The about still shows:
ca65
ca65 V2.13.9 - (C) Copyright 1998-2011 Ullrich von Bassewitz
ca65.exe: No input files

ld65
ld65 V2.13.9 - (C) Copyright 1998-2009, Ullrich von Bassewitz
ld65.exe: Error: No object files to link

BTW: Thanks for all the replies :)


That is correct output.
Re: Getting Nesicide to compile example projects.
by on (#102441)
First time was the Russian roulette, also tried alter ego and got this with the batch file for compile which may help:


Quote:
C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>path=path;..\bin\

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>set CC65_HOME=g:\cc65

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>cc65 -Oi game.c
'cc65' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>ca65 crt0.s
'ca65' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>ca65 game.s
'ca65' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>ca65 neslib.s
'ca65' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>ld65 -C nes.cfg -o game.nes crt0.o n
eslib.o game.o nes.lib
'ld65' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jake\Desktop\AlterEgo.tar\AlterEgo>pause
Press any key to continue . . .
Re: Getting Nesicide to compile example projects.
by on (#102444)
jshift wrote:
First time was the Russian roulette, also tried alter ego and got this with the batch file for compile which may help:
Code:
'cc65' is not recognized as an internal or external command,
operable program or batch file.

Those are different problems. NESICIDE is finding cc65 [as evidenced by the error message "No input files". The batch file you ran is not, as evidenced by the error message.

nes.lib is in your cc65 installation. Mine is in C:\Program Files (x86)\cc65-snapshot\lib. CC65 seems to know where this is by default.
Re: Getting Nesicide to compile example projects.
by on (#102829)
Hello...

Just wanted to give an update, I got it to compile :oops: It was my fault... I was messing with the CC65 system variable and forgot to change it back.


Thanks for the help :) hopefully I can contribute to the home brew community.
Re: Getting Nesicide to compile example projects.
by on (#102892)
jshift wrote:
Hello...

Just wanted to give an update, I got it to compile :oops: It was my fault... I was messing with the CC65 system variable and forgot to change it back.


Thanks for the help :) hopefully I can contribute to the home brew community.


I personally believe just using NESICIDE and providing feedback is a big contribution. Keep it up!
Re: Getting Nesicide to compile example projects.
by on (#102898)
slobu wrote:
I personally believe just using NESICIDE and providing feedback is a big contribution. Keep it up!

Thanks slobu, Eugene.S, thefox, jshift, tepples, and others for all the feedback! I am doing what I can to make this thing useful. :D