Menu

#70 Unable to compile on Mac (10.15)

1.2
closed
nobody
None
SDL
1.2b
2022-12-24
2021-09-13
Anonymous
No

This is MacOS 10.15 with Xcode 12.4. I pulled latest source with this:
git clone https://gitlab.synchro.net/main/sbbs.git

The COMPILING doc indicated to use some extra parameters on Mac, so I tried this:
cd sbbs/src/syncterm
make SRC_ROOT=/Users/username/Downloads/sbbs/src RELEASE=1 USE_SDL_AUDIO=1 PREFIX=/usr

It goes through and compiles some things, but then ends with this:
Compiling ciolib.c ciolib.c:1914:2: error: implicit declaration of function 'exit_sdl_con' is invalid in C99 [-Werror,-Wimplicit-function-declaration] exit_sdl_con(); ^ ciolib.c:1922:16: error: implicit declaration of function 'init_sdl_video' is invalid in C99 [-Werror,-Wimplicit-function-declaration] initsdl_ret = init_sdl_video(); ^ ciolib.c:1927:4: error: implicit declaration of function 'sdl_video_event_thread' is invalid in C99 [-Werror,-Wimplicit-function-declaration] sdl_video_event_thread(NULL); ^ 3 errors generated. make[1]: *** [clang.darwin.x64.obj.release-mt/ciolib.o] Error 1 make: *** [ciolib-mt] Error 2

Not sure if it's just something I'm doing wrong.

Discussion

  • Anonymous

    Anonymous - 2021-09-13

    Maybe better formatting if not in a code block:

    Compiling ciolib.c
    ciolib.c:1914:2: error: implicit declaration of function 'exit_sdl_con' is
    invalid in C99 [-Werror,-Wimplicit-function-declaration]
    exit_sdl_con();
    ^
    ciolib.c:1922:16: error: implicit declaration of function 'init_sdl_video' is
    invalid in C99 [-Werror,-Wimplicit-function-declaration]
    initsdl_ret = init_sdl_video();
    ^
    ciolib.c:1927:4: error: implicit declaration of function
    'sdl_video_event_thread' is invalid in C99
    [-Werror,-Wimplicit-function-declaration]
    sdl_video_event_thread(NULL);
    ^
    3 errors generated.
    make[1]: *** [clang.darwin.x64.obj.release-mt/ciolib.o] Error 1
    make: *** [ciolib-mt] Error 2

     
  • Anonymous

    Anonymous - 2022-01-12

    Similar issue to mine, on macOS 11.1 while trying to compile SyncTERM.

    Creating clang.darwin.x64.lib.debug/libxpdev_mt.a
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../conio mtlib
    /bin/sh: pkg-config: command not found
    Compiling ansi_cio.c
    Compiling ciolib.c
    ciolib.c:1914:2: error: implicit declaration of function 'exit_sdl_con' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            exit_sdl_con();
            ^
    ciolib.c:1922:16: error: implicit declaration of function 'init_sdl_video' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            initsdl_ret = init_sdl_video();
                          ^
    ciolib.c:1927:4: error: implicit declaration of function 'sdl_video_event_thread' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                            sdl_video_event_thread(NULL);
                            ^
    3 errors generated.
    make[1]: *** [clang.darwin.x64.obj.debug-mt/ciolib.o] Error 1
    make: *** [ciolib-mt] Error 2
    

    Note the pkg-config: command not found problem in the previous action. This may have something to do with it. I hesitated making a new bug report for this since this seems oddly coincidental to the existing report, with perhaps additional context.

     
  • Stephen James Hurd

    It seems like it's having problems finding the SDL framework. It looks in /Library/Frameworks/SDL2.framework by default, but you can set the directory SDL2.framework is in by adding SDL_FRAMEWORK_PATH=/path/to/dir on the command-line (do not include SDL2.framework in the path, default is /Library/Frameworks).

     
  • Anonymous

    Anonymous - 2022-05-19

    You're right. I'm not sure why my framework dir wasn't in the right place. Thank you. After some various messages and warnings, it compiled. Now to try it out :)

     
  • Stephen James Hurd

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB