Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile on OSX #6

Open
sasq64 opened this issue Jan 21, 2017 · 2 comments
Open

Fails to compile on OSX #6

sasq64 opened this issue Jan 21, 2017 · 2 comments

Comments

@sasq64
Copy link

sasq64 commented Jan 21, 2017

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;
                        ^
@r-type
Copy link
Owner

r-type commented Jan 21, 2017

thanks for filling issue , it's better way than msg.
Btw ,despite the fact i have no time to finish GUI, I m working on the nulkear gui version of this core
https://github.com/r-type/frodo-libertro-nuklear/blob/master/libretro/emu/Display_retro.i

screen=(retro_Surface*)malloc( sizeof(retro_Surface*) );

should solve the fisrt above error

@r-type
Copy link
Owner

r-type commented Jan 21, 2017

BTW as stated i have no much to support this core , and it should tricky to correct it for building on osx (as i don't know about that os),
you have to solve yourself (or someone who can build on osx) the osx specific stuff like sigaction ,vfs ...equivalent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants