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

Cannot compile with smpeg #85

Closed
monreal opened this issue Oct 2, 2017 · 6 comments
Closed

Cannot compile with smpeg #85

monreal opened this issue Oct 2, 2017 · 6 comments

Comments

@monreal
Copy link

monreal commented Oct 2, 2017

I get the following when running configure on Linux:

...
checking smpeg/smpeg.h usability... no
checking smpeg/smpeg.h presence... yes
configure: WARNING: smpeg/smpeg.h: present but cannot be compiled
configure: WARNING: smpeg/smpeg.h:     check for missing prerequisite headers?
configure: WARNING: smpeg/smpeg.h: see the Autoconf documentation
configure: WARNING: smpeg/smpeg.h:     section "Present But Cannot Be Compiled"
configure: WARNING: smpeg/smpeg.h: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------------------------------------- ##
configure: WARNING:     ## Report this to https://github.com/Aleph-One-Marathon/alephone/issues ##
configure: WARNING:     ## -------------------------------------------------------------------- ##
checking for smpeg/smpeg.h... no

from configure.log:

configure:8499: checking smpeg/smpeg.h usability
configure:8499: gcc -c -g -O2  -I/usr/include/ffmpeg  -I/usr/include/SDL2 -D_REENTRANT   -I/usr/include/SDL2 -D_REENTRANT  -I/usr/include/SDL2 -D_REENTRANT   -I/usr/include/SDL2 -D_REENTRANT  -DSDL conftest.c >&5
In file included from /usr/include/smpeg/smpeg.h:29:0,
                 from conftest.c:79:
/usr/include/smpeg/MPEGfilter.h:39:40: error: unknown type name 'SDL_Overlay'; did you mean 'SDL_version'?
 typedef void (* SMPEG_FilterCallback)( SDL_Overlay * dest, SDL_Overlay * source, SDL_Rect * region, SMPEG_FilterInfo * filter_info, void * data );
                                        ^~~~~~~~~~~
                                        SDL_version
/usr/include/smpeg/MPEGfilter.h:39:60: error: unknown type name 'SDL_Overlay'; did you mean 'SDL_version'?
 typedef void (* SMPEG_FilterCallback)( SDL_Overlay * dest, SDL_Overlay * source, SDL_Rect * region, SMPEG_FilterInfo * filter_info, void * data );
                                                            ^~~~~~~~~~~
                                                            SDL_version
In file included from /usr/include/smpeg/smpeg.h:29:0,
                 from conftest.c:79:
/usr/include/smpeg/MPEGfilter.h:46:3: error: unknown type name 'SMPEG_FilterCallback'
   SMPEG_FilterCallback callback;
   ^~~~~~~~~~~~~~~~~~~~
configure:8499: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Aleph One"
| #define PACKAGE_TARNAME "AlephOne"
| #define PACKAGE_VERSION "20170205"
| #define PACKAGE_STRING "Aleph One 20170205"
| #define PACKAGE_BUGREPORT "https://github.com/Aleph-One-Marathon/alephone/issues"
| #define PACKAGE_URL "https://alephone.lhowon.org/"
| #define PACKAGE "AlephOne"
| #define VERSION "20170205"
| #define TARGET_PLATFORM "linux-gnu x86_64"
...
| #include <smpeg/smpeg.h>
configure:8499: result: no
configure:8499: checking smpeg/smpeg.h presence
configure:8499: gcc -E  -I/usr/include/ffmpeg  -I/usr/include/SDL2 -D_REENTRANT   -I/usr/include/SDL2 -D_REENTRANT  -I/usr/include/SDL2 -D_REENTRANT   -I/usr/include/SDL2 -D_REENTRANT  -DSDL conftest.c
configure:8499: $? = 0
configure:8499: result: yes
configure:8499: WARNING: smpeg/smpeg.h: present but cannot be compiled
configure:8499: WARNING: smpeg/smpeg.h:     check for missing prerequisite headers?
configure:8499: WARNING: smpeg/smpeg.h: see the Autoconf documentation
configure:8499: WARNING: smpeg/smpeg.h:     section "Present But Cannot Be Compiled"
configure:8499: WARNING: smpeg/smpeg.h: proceeding with the compiler's result
configure:8499: checking for smpeg/smpeg.h
configure:8499: result: no
@carstene1ns
Copy link

(Disclaimer: I am not a developer here, just maintainer of a Linux package)

While AlephOne has been ported from SDL 1.2 to 2.0, SMPEG is only able to work with the old version, for the new version a SMPEG2 build with limited functionality has been made.
It seems the AlephOne code has not been ported to work with that version yet, so I suggest disabling SMPEG in your build for now.

@monreal
Copy link
Author

monreal commented Oct 2, 2017

Thanks for the reply. I already tried to disable SMPEG and ran into another problem (game seems to have problems linking on a 64 bit system).

@carstene1ns
Copy link

It works for me, can you paste some error output again?
Please use three Backticks ``` before and after to make this more readable.

@monreal
Copy link
Author

monreal commented Oct 3, 2017

@carstene1ns: I fixed the initial post but I guess the problem is SMPEG not working with SDL2. Maybe the build system needs to be smarter about this. I will try again later to compile and probably file another bug for my other problem. Thanks again.

@carstene1ns
Copy link

Ah sorry, I was not very clear, I meant you should post the linker error... 🙃
Yeah, the build system should not try to use smpeg for the time being IMO.
I think porting Aleph One to smpeg2 would not be too difficult either...

@monreal
Copy link
Author

monreal commented Oct 4, 2017

@carstene1ns: I posted the link error as issue #87

@monreal monreal closed this as completed Oct 4, 2017
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