Skip to content

Fails to compile on OSX #6

@sasq64

Description

@sasq64

Building on OSX

c++  -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 -DFRODO_HPUX_REV=0 -DKBD_LANG=0 -fpermissive -D__LIBRETRO__ -fPIC -mmacosx-version-min=10.1  -I./libretro/core -I./libretro/include -I./libretro/emu -I./libretro -I./Src -I. -I./libretro/libco -O3 -DNDEBUG -DGIT_VERSION=\"4c15-dirty\"  -c Src/main.cpp -o Src/main.o
In file included from Src/main.cpp:21:
./Src/sysdeps.h:69:10: fatal error: 'sys/vfs.h' file not found
#include <sys/vfs.h>

In file included from Src/main.cpp:21:
./Src/sysdeps.h:81:10: fatal error: 'sys/statfs.h' file not found
#include <sys/statfs.h>

after removing HAVE_* stuff from sysconfig.h we get past the missing includes and get

c++  -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 -DFRODO_HPUX_REV=0 -DKBD_LANG=0 -fpermissive -D__LIBRETRO__ -fPIC -mmacosx-version-min=10.1  -I./libretro/core -I./libretro/include -I./libretro/emu -I./libretro -I./Src -I. -I./libretro/libco -O3 -DNDEBUG -DGIT_VERSION=\"4c15-dirty\"  -c Src/Display.cpp -o Src/Display.o
In file included from Src/Display.cpp:87:
./libretro/emu/Display_retro.i:248:8: error: assigning to 'retro_Surface *' from incompatible type 'void *'
        screen=malloc( sizeof(retro_Surface*) );
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./libretro/emu/Display_retro.i:249:16: error: assigning to 'unsigned char *' from incompatible type
      'void *'
        screen->pixels=malloc(DISPLAY_X *( DISPLAY_Y + 16) );
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./libretro/emu/Display_retro.i:264:2: error: use of undeclared identifier 'quit_requested'
        quit_requested = false;
        ^
./libretro/emu/Display_retro.i:273:39: error: use of undeclared identifier 'pulse_handler'
        pulse_sa.sa_handler = (void (*)(int))pulse_handler;
                                             ^
./libretro/emu/Display_retro.i:396:18: error: out-of-line definition of 'pulse_handler' does not match any
      declaration in 'C64Display'
void C64Display::pulse_handler(...)
                 ^~~~~~~~~~~~~
./libretro/emu/Display_retro.i:624:4: error: use of undeclared identifier 'quit_requested'
                        quit_requested = true;
                        ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions