Author Topic: Playing with the ObeyBrew tutorials  (Read 2928 times)

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #45 on: June 06, 2012, 10:27:46 PM »
 :wink:

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #46 on: June 11, 2012, 10:34:41 PM »
I haven't used the .bat yet, but the PCE_INCLUDE path is completely eluding me.  I put all the other Bin stuff in the right place and can call it from anywhere.  But then it says it can't find huc.r (or something), so it's obviously not finding the include directory.

I started it in Program Files and after trying every conceivable combination (speech marks around the whole thing and around program files, backslash on the end, pce on the end, etc etc) I made C:\magikit, and the variable currently looks like this:

PCE_INCLUDE
c:\magikit\include

I copypasta'd the include folder into magikit, and it still doesn't find it.  I have no idea what's going on.  Surely it doesn't require a reboot?

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #47 on: June 11, 2012, 11:32:18 PM »
in your project folder you must have the folders :
bin
include

magikit ???

i think it's huc.exe, it must be in bin folder with pceas.exe file .
If you make all step by hand, you must write :

bin\huc.exe my_file.c
bin\pceas.exe my_file.s

And of course, your PCE_INCLUDE path must be correct ..
« Last Edit: June 11, 2012, 11:34:57 PM by touko »

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #48 on: June 11, 2012, 11:49:57 PM »

And of course, your PCE_INCLUDE path must be correct ..

That's it, that's the bit that isn't working.  I can't figure it out!

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #49 on: June 12, 2012, 12:17:54 AM »
you can use this ..
https://rapidshare.com/files/1654205591/project.zip

unzip it.
it creates a folder named  project .
All that you need are incuded .
Put your .c file in this folder, and run compil.bat file.c

A test file was included .
on a dos window, write :

compil.bat test.c
« Last Edit: June 12, 2012, 12:27:03 AM by touko »

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #50 on: June 12, 2012, 12:28:21 AM »
Ok, I can try it, but I'll have to wait till I can get home (no WiFi at work for my netbook).  Thanks Touko

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #51 on: June 12, 2012, 12:36:14 AM »
if you have any problems with it , i 'am here ;-)

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #52 on: June 12, 2012, 02:55:11 AM »
Thanks Touko - I fixed it with another look at the tutorial.

it wanted C:\magikit\include\pce, and suggested doing it from the command line - which worked.  Until I closed the window.

In the end, the same line input as Old Rover suggested, and then a reboot, did work.  So, hello world compiled, and ready to test when I get an emulator!

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #53 on: June 12, 2012, 02:58:06 AM »
ok ;-) .