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

compilation problems on windows #89

Open
EternallyEmber opened this issue Jan 29, 2025 · 1 comment
Open

compilation problems on windows #89

EternallyEmber opened this issue Jan 29, 2025 · 1 comment

Comments

@EternallyEmber
Copy link

compilation commands:

cmake -DCMAKE_BUILD_TYPE=Release -DMIXERX_ENABLE_GPL=ON -DDOWNLOAD_AUDIO_CODECS_DEPENDENCY=ON -DAUDIO_CODECS_BUILD_LOCAL_SDL2=ON ..
make -j8

the part that errors:

[ 75%] Building C object CMakeFiles/SDL2-static.dir/src/video/SDL_stretch.c.o
[ 75%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_fillrect.c.o
[ 75%] Building C object CMakeFiles/SDL2-static.dir/src/video/SDL_surface.c.o
[ 75%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_pixels.c.o
[ 75%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_rect.c.o
[ 75%] Building C object CMakeFiles/SDL2-static.dir/src/video/SDL_video.c.o
[ 75%] Building C object CMakeFiles/SDL2-static.dir/src/video/SDL_vulkan_utils.c.o
[ 76%] Building C object CMakeFiles/SDL2-static.dir/src/video/SDL_yuv.c.o
[ 76%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_shape.c.o
[ 77%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_stretch.c.o
[ 77%] Building C object CMakeFiles/SDL2-static.dir/src/video/yuv2rgb/yuv_rgb_lsx.c.o
[ 77%] Building C object CMakeFiles/SDL2-static.dir/src/video/yuv2rgb/yuv_rgb_sse.c.o
[ 77%] Building C object CMakeFiles/SDL2-static.dir/src/video/yuv2rgb/yuv_rgb_std.c.o
[ 77%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_surface.c.o
[ 78%] Building C object CMakeFiles/SDL2-static.dir/src/audio/dummy/SDL_dummyaudio.c.o
[ 78%] Building C object CMakeFiles/SDL2-static.dir/src/audio/disk/SDL_diskaudio.c.o
[ 78%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_video.c.o
[ 78%] Building C object CMakeFiles/SDL2-static.dir/src/joystick/virtual/SDL_virtualjoystick.c.o
[ 78%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_vulkan_utils.c.o
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_yuv.c.o
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/yuv2rgb/yuv_rgb_lsx.c.o
[ 79%] Building C object CMakeFiles/SDL2-static.dir/src/video/dummy/SDL_nullevents.c.o
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/yuv2rgb/yuv_rgb_sse.c.o
[ 79%] Building C object CMakeFiles/SDL2-static.dir/src/video/dummy/SDL_nullframebuffer.c.o
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/yuv2rgb/yuv_rgb_std.c.o
[ 80%] Building C object CMakeFiles/SDL2-static.dir/src/video/dummy/SDL_nullvideo.c.o
[ 80%] Building C object CMakeFiles/SDL2.dir/src/audio/dummy/SDL_dummyaudio.c.o
[ 81%] Building C object CMakeFiles/SDL2.dir/src/audio/disk/SDL_diskaudio.c.o
[ 81%] Building C object CMakeFiles/SDL2-static.dir/src/video/offscreen/SDL_offscreenevents.c.o
[ 81%] Building C object CMakeFiles/SDL2.dir/src/joystick/virtual/SDL_virtualjoystick.c.o
[ 81%] Building C object CMakeFiles/SDL2-static.dir/src/video/offscreen/SDL_offscreenframebuffer.c.o
[ 81%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullevents.c.o
[ 81%] Building C object CMakeFiles/SDL2-static.dir/src/video/offscreen/SDL_offscreenopengles.c.o
[ 81%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullframebuffer.c.o
[ 82%] Building C object CMakeFiles/SDL2-static.dir/src/video/offscreen/SDL_offscreenvideo.c.o
[ 82%] Building C object CMakeFiles/SDL2-static.dir/src/video/offscreen/SDL_offscreenwindow.c.o
[ 83%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullvideo.c.o
[ 83%] Building C object CMakeFiles/SDL2-static.dir/src/core/unix/SDL_poll.c.o
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c: In function 'SDL_IOReady[ 83%] Building C object CMakeFiles/SDL2.dir/src/video/offscreen/SDL_offscreenevents.c.o
':
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:56:9: error: unknown type name 'fd_set'
   56 |         fd_set rfdset, *rfdp = NULL;
      |         ^~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:57:9: error: unknown type name 'fd_set'
   57 |         fd_set wfdset, *wfdp = NULL;
      |         ^~~~~~
In file included from C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/SDL_internal.h:208,
                 from C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:22:
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:36: error: 'FD_SETSIZE' undeclared (first use in this function)
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |                                    ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs-build/external/SDL2/src/SDL2HG-build/include/SDL2/SDL_assert.h:108:26: note: in definition of macro 'SDL_disabled_asser '
  108 |     do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
      |                          ^~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:9: note: in expansion of macro 'SDL_assert'
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |         ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:36: note: each undeclared identifier is reported only once for each function it appears in
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |                                    ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs-build/external/SDL2/src/SDL2HG-build/include/SDL2/SDL_assert.h:108:26: note: in definition of macro 'SDL_disabled_asser '
  108 |     do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
      |                          ^~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:9: note: in expansion of macro 'SDL_assert'
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |         ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:64:13: error: implicit declaration of function 'FD_ZERO'; did you mean 'FP_ZERO'? [-Wimplicit-function-declaration]
   64 |             FD_ZERO(&rfdset);
      |             ^~~~~~~
      |             FP_ZERO
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:65:13: error: implicit declaration of function 'FD_SET' [-Wimplicit-function-declaration]
   65 |             FD_SET(fd, &rfdset);
      |             ^~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:80:18: error: implicit declaration of function 'select' [-Wimplicit-function-declaration]
   80 |         result = select(fd + 1, rfdp, wfdp, NULL, tvp);
      |                  ^~~~~~
make[8]: *** [CMakeFiles/SDL2-static.dir/build.make:1997: CMakeFiles/SDL2-static.dir/src/core/unix/SDL_poll.c.o] Error 1
make[8]: *** Waiting for unfinished jobs....
[ 83%] Building C object CMakeFiles/SDL2-static.dir/src/core/linux/SDL_evdev_capabilities.c.o
[ 83%] Building C object CMakeFiles/SDL2.dir/src/video/offscreen/SDL_offscreenframebuffer.c.o
[ 83%] Building C object CMakeFiles/SDL2.dir/src/video/offscreen/SDL_offscreenopengles.c.o
[ 84%] Building C object CMakeFiles/SDL2.dir/src/video/offscreen/SDL_offscreenvideo.c.o
[ 84%] Building C object CMakeFiles/SDL2.dir/src/video/offscreen/SDL_offscreenwindow.c.o
[ 84%] Building C object CMakeFiles/SDL2.dir/src/core/unix/SDL_poll.c.o
[ 84%] Building C object CMakeFiles/SDL2.dir/src/core/linux/SDL_evdev_capabilities.c.o
make[7]: *** [CMakeFiles/Makefile2:194: CMakeFiles/SDL2-static.dir/all] Error 2
make[7]: *** Waiting for unfinished jobs....
[ 84%] Building C object CMakeFiles/SDL2.dir/src/core/linux/SDL_threadprio.c.o
[ 85%] Building C object CMakeFiles/SDL2.dir/src/core/linux/SDL_sandbox.c.o
[ 85%] Building C object CMakeFiles/SDL2.dir/src/joystick/hidapi/SDL_hidapi_combined.c.o
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c: In function 'SDL_IOReady':
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:56:9: error: unknown type name 'fd_set'
   56 |         fd_set rfdset, *rfdp = NULL;
      |         ^~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:57:9: error: unknown type name 'fd_set'
   57 |         fd_set wfdset, *wfdp = NULL;
      |         ^~~~~~
In file included from C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/SDL_internal.h:208,
                 from C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:22:
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:36: error: 'FD_SETSIZE' undeclared (first use in this function)
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |                                    [ 85%] Building C object CMakeFiles/SDL2.dir/src/joystick/hidapi/SDL_hidapi_gamecube.c.o
^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs-build/external/SDL2/src/SDL2HG-build/include/SDL2/SDL_assert.h:108:26: note: in definition of macro 'SDL_disabled_asser '
  108 |     do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
      |                          ^~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:9: note: in expansion of macro 'SDL_assert'
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |         ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:36: note: each undeclared identifier is reported only once for each function it appears in
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |                                    ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs-build/external/SDL2/src/SDL2HG-build/include/SDL2/SDL_assert.h:108:26: note: in definition of macro 'SDL_disabled_asser '
  108 |     do { (void) sizeof ((condition)); } while (SDL_NULL_WHILE_LOOP_CONDITION)
      |                          ^~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:61:9: note: in expansion of macro 'SDL_assert'
   61 |         SDL_assert(fd >= 0 && fd < FD_SETSIZE);
      |         ^~~~~~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:64:13: error: implicit declaration of function 'FD_ZERO'; did you mean 'FP_ZERO'? [-Wimplicit-function-declaration]
   64 |             FD_ZERO(&rfdset);
      |             ^~~~~~~
      |             FP_ZERO
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:65:13: error: implicit declaration of function 'FD_SET' [-Wimplicit-function-declaration]
   65 |             FD_SET(fd, &rfdset);
      |             ^~~~~~
C:/msys64/home/Emby/SRB2/SDL-Mixer-X/build/external/AudioCodecs/src/AudioCodecs/SDL2/src/core/unix/SDL_poll.c:80:18: error: implicit declaration of function 'select' [-Wimplicit-function-declaration]
   80 |         result = select(fd + 1, rfdp, wfdp, NULL, tvp);
      |                  ^~~~~~
make[8]: *** [CMakeFiles/SDL2.dir/build.make:1997: CMakeFiles/SDL2.dir/src/core/unix/SDL_poll.c.o] Error 1
make[8]: *** Waiting for unfinished jobs....
make[7]: *** [CMakeFiles/Makefile2:162: CMakeFiles/SDL2.dir/all] Error 2
make[6]: *** [Makefile:136: all] Error 2
make[5]: *** [CMakeFiles/SDL2HG.dir/build.make:86: external/SDL2/src/SDL2HG-stamp/SDL2HG-build] Error 2
make[4]: *** [CMakeFiles/Makefile2:601: CMakeFiles/SDL2HG.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[2]: *** [CMakeFiles/AudioCodecs.dir/build.make:86: external/AudioCodecs/src/AudioCodecs-stamp/AudioCodecs-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/AudioCodecs.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@Wohlstand
Copy link
Member

Hello!
Sorry for no reply, I missed up your post.
I have a question: which compiler tool chain you used? As a small note, old MinGW is not supported by SDL2, and you need MinGW-w64 tool chain to properly build the thing.

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