Localization Legend "Supper the Subtitler" has "joined the club" in being targeted for CD-pressings by bootleg master Tobias/PCEWorks! His projects like Private Eyedol, Galaxy Fräulein Yuna 1 & 2, etc. are now being sold on Chinese factory-pressed CDROMs...
IMG
Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - FellipeBr

#1
Yup, 64 bit here...
It looks like the problem is when it calls the parse() function in main.c
#2
My env variable is set like this:

PCE_INCLUDE=/Volumes/Iceshard/PCEngine/Compiler/include/pce/
I think it's okay because it can grab the huc.h file ok.
#3
if I remove the -Werror it compiles fine, but then it gives me the Segmentation Fault 11 error on the build of a game.
#4
GCC 4.2.1

But, if it gives an error in that parens the compilation doesn't go further no?
There is a way to ignore that?

That last error occurs in expr.c:

the code:

int
evaluate(int *ip, char last_char)
{
   int end, level;
   int op, type;
   int arg;
   int i;
   unsigned char c;

   end = 0;
   level = 0;
   undef = 0;
   op_idx = 0;
   val_idx = 0;
   value = 0;
   val_stack[0] = 0;
   need_operator = 0;
   expr_lablptr = NULL;
   expr_lablcnt = 0;
   op = OP_START;
   func_idx = 0;

   /* array index to pointer */
   expr = &prlnbuf[*ip];

the expr in expr.h:

unsigned char *expr;   /* pointer to the expression string */
#5
So, let's start:

The first error is a OS check in main.c, since it does not have a validation for Mac OS X, it throws an error...

main.c:540:4: error: Add calling sequence depending on your OS

The validation:

#ifdef DJGPP
   exe = "pceas.exe";
   opts[i++] = "pceas.exe";
#elif defined(linux) || defined(unix)
   exe = "pceas";
   opts[i++] = "pceas";
#elif defined(WIN32)
   exe = "pceas.exe";
   opts[i++] = "pceas.exe";
#else
  #error Add calling sequence depending on your OS
#endif

So i change the #error by exe = "pceas"; opts[i++] = "pceas";

The next one is:


main.c:58:19: error: equality comparison with extraneous parentheses
      [-Werror,-Wparentheses-equality]
                                        if ( (*(p+1) == 'd') ) {

Because of the ( ) around the equality. Removing that the error goes away.

Then, it start the most comum one (appears in a lot of places):


expr.c:39:7: error: assigning to 'unsigned char *' from 'char *' converts
      between pointers to integer types with different sign
      [-Werror,-Wpointer-sign]
        expr = &prlnbuf[*ip];

This one I think it's because of the char definition, with the unsigned.
How can I solve that? simply removing the unsigned?
#6
ok, i'm out of my computer now, tonight I post it for you to see it.

Thanks!
#7
oh, I see...
Well, I think I removed all the errors, but maybe i'm wrong.
Do you think you can help me to compile it right then?
#8
Great game, seen some videos and they're realy amazing!
The chiptune music is made with Squirel right?
#9
Arkhan, going to post the screen of the enviroment variables and the errors tonight.
Yup, tried with the Linux one, same error.
It was giving me some compilation errors like duplicated () like if ( (flag == 1) ) and etc
and some convertion errors in unsigned char * to char * and etc.
But I think I solved all of them, but still it gives me the Segmentation Fault 11 error
#10
well, i'm not here to discuss if OSX is or is not a good operational system.
I'm here to try to make the HuC work on it, unsuccessfully yet.
#11
I've tried DOSBox too, without luck. It give some weird errors and it doesn't run anything.  :cry:
#12
Same error, Segmentation Fault 11...
Starting to think about installing windows in here, just to use the compiler  ](*,)
#13
The last one, 3.2.1 if I remember correctly.
#14
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
#15
Tried it, same error...
Don't know what it can be, Segmentation Fault is a memory error no?
#16
PCE_INCLUDE is setted...
Maybe some problem with the environment variable?
Going to try to hardcode the path to see if it works.
#17
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.
#18
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!