Author Topic: HuC on Mac OS X  (Read 1504 times)

FellipeBr

  • Newbie
  • *
  • Posts: 18
HuC on Mac OS X
« on: July 29, 2012, 11:33:10 AM »
Hi there,

Anyone got HuC to run on Mac OS X?
Tried here, accomplished to compile it but it keeps giving me a "Segmentation Fault: 11" when I try to compile a game.

Any help will be appreciated, thanks!

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: HuC on Mac OS X
« Reply #1 on: July 29, 2012, 11:37:22 AM »
Post a screen grab of the text output when you try to run the compiler, and how did you install everything on OSX?
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #2 on: July 29, 2012, 11:43:35 AM »
I just compiled the sources from the HuC website and changed a line where it had a OS verifications.

The only input that it gives is Segmentation Fault: 11.
But, if I try to compile .c file with:

#include "huc.h"

main() {

}

it compiles OK, but if I put any HuC function like set_color() it gives me the Segmentation Fault error.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: HuC on Mac OS X
« Reply #3 on: July 29, 2012, 02:30:24 PM »
did you setup your path variables to have the PCE_INCLUDE directory?

sounds like it can't find the function libraries.

You have to set a PCE_INCLUDE environment variable. 

[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #4 on: July 29, 2012, 02:36:34 PM »
PCE_INCLUDE is setted...
Maybe some problem with the environment variable?
Going to try to hardcode the path to see if it works.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #5 on: July 29, 2012, 02:50:34 PM »
Tried it, same error...
Don't know what it can be, Segmentation Fault is a memory error no?

nodtveidt

  • Guest
Re: HuC on Mac OS X
« Reply #6 on: July 30, 2012, 01:53:50 AM »
Memory access error, yeah.

nodtveidt

  • Guest
Re: HuC on Mac OS X
« Reply #7 on: July 30, 2012, 02:27:43 AM »
What kind of Mac do you have... Motorola-based or Intel-based? HuC might be doing something funky with pointer maths that gcc isn't adjusting for if you've got a Motorola-based Mac.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: HuC on Mac OS X
« Reply #8 on: July 30, 2012, 03:15:39 AM »
Oh man if you've got a Motorororororora, you're probably hosed.


Well, maybe not.

Wasn't there a HuC for Amiga? lol.   Maybe you can build that one and get it working.

Can you show what your environment variable is set to?
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #9 on: July 30, 2012, 05:13:27 AM »
mine is Intel-based, a Macbook Pro of 2010.
Tonight i'm going to post the variables, but they are right because I changed it and then it could not anymore found huc.h.
Going to try to compile the Amiga one to see if it works too

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: HuC on Mac OS X
« Reply #10 on: July 30, 2012, 06:13:10 AM »
If you have an intel machine, you won't have any luck with the Amiga one.

Seg fault means its accessing memory incorrectly.

What version of the source did you rebuild.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #11 on: July 30, 2012, 06:14:04 AM »
The last one, 3.2.1 if I remember correctly.

nodtveidt

  • Guest
Re: HuC on Mac OS X
« Reply #12 on: July 30, 2012, 11:23:48 AM »
Put all the header files in the same directory as the binary and see if you still get the same problems.

FellipeBr

  • Newbie
  • *
  • Posts: 18
Re: HuC on Mac OS X
« Reply #13 on: July 30, 2012, 02:51:06 PM »
Same error, Segmentation Fault 11...
Starting to think about installing windows in here, just to use the compiler  ](*,)

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: HuC on Mac OS X
« Reply #14 on: July 30, 2012, 04:57:16 PM »
Same error, Segmentation Fault 11...
Starting to think about installing windows in here, just to use the compiler  ](*,)

Just use DOSBox :)

There is a DOS version of HuC
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.