#175694 - MichaelMossman - Tue Jan 18, 2011 1:08 pm
In all the examples and tutorials, I have never seen a makefile which allowed the emulator of choice to be automatically RUN after compilation, in the same way that BUILD and CLEAN are used.
Is there some deep-lying technical reason for this or is it just that nobody has considered it necessary ?
I am not that good with makefiles and I would appreciate any help from the more experience developers.
Thanks, Mike
#175696 - sverx - Tue Jan 18, 2011 1:53 pm
No 'Run' in makefile, I usually define a Tool in programmer notepad.
Go under Tools -> Options -> Tools and you can define yours.
I did 'run in no$gba':
Code: |
command: C:\no$gba\NO$GBA.EXE
folder: C:\no$gba
parameters: $(ProjectPath)$(ProjectName)
shortcuts: ALT + 0 |
and similarily also 'run in DeSmuME'...
so you build and later run the resulting .nds in the emulator. Easy :)
#175700 - MichaelMossman - Tue Jan 18, 2011 4:11 pm
Thank you, sverx
That nearly worked but I must have done something wrong.
NO$GBA loaded but came up with a message "Cartridge Not Found".
#175702 - MichaelMossman - Tue Jan 18, 2011 5:34 pm
OK, I think I've got it ?
I went int NO$GBA and in the File menu I clicked on Reset Cartridge. This seems to have done the trick.
#175705 - MichaelMossman - Tue Jan 18, 2011 8:01 pm
Maybe that didn't work so well, after all.
I now get to open in the correct folder but NO$GBA still won't recognise the file but keeps looking for a previous nds file which it has opened before, albeit in a different folder.
So, I still need help please.
#175715 - sverx - Thu Jan 20, 2011 4:06 pm
Did you rename your project in Programmer's Notepad? It should be the name of your .nds file...
Also deactivate 'capture output' in the Tools -> Console I/O tabs.
#175717 - relminator - Thu Jan 20, 2011 4:43 pm
sverx wrote: |
Did you rename your project in Programmer's Notepad? It should be the name of your .nds file...
Also deactivate 'capture output' in the Tools -> Console I/O tabs. |
That and this:
http://greatflash.co.uk/index.php?PHPSESSID=b4edc1775c8986612d60c3b391a2810a&topic=72.0
Anyways, since I discovered CodeLite, I never wanted to use any other editor. It even beats out MSVS's editor IMO.
_________________
http://rel.betterwebber.com
#175719 - MichaelMossman - Fri Jan 21, 2011 12:03 pm
Thank you once again.
Problem solved due to basic error.
I renamed the folder and I renamed the .pnproj file but I omitted to change the project name in the Project window of Programmers Notepad.
What fooled me was that the project name was shown as 'template' and I just didn't realise that this was actually supposed to be the Project Name - I thought it was just a generic word to describe the project hierarchy shown below.
Its always the silly things that catch us out !