Comment by: kas1e (81.9.23.166) | At: 12 Mar 2012, 09:43 | File version: 1.3 |
@salas00 Thanks a lot ! Yesterday tryint to find correct mpega includs, and there is your version. Can you upload it on os4depot as well ? something just like "mpegadev" or kind, so noone anymore will worring about.
|
|
|
Comment by: salass00 (94.101.5.193) | At: 11 Mar 2012, 23:53 | File version: 1.3 |
Also the libraries/mpega.h include seems to be broken. "#pragma pack(2)" is set near the beginning but it's never set back to the default "#pragma pack()" setting (there is a line near the end containing only "#pragma" though so maybe a typing error). My version doesn't have this problem.
|
|
|
Comment by: salass00 (94.101.5.193) | At: 11 Mar 2012, 23:45 | File version: 1.3 |
You can get OS4 mpega.library includes here: http://dl.dropbox.com/u/26599983/mpega_os4_includes.7z This also includes a proto/mpega.h file.
|
|
|
Comment by: jaokim (176.10.225.152) | At: 11 Mar 2012, 14:38 | File version: 1.3 |
In order to make this compile in to an executable, I had to make these modifications: _______________________ 1. Actaully link the program, not just compile File: Examples/Mpega/Makefile Change: Remove "-c" on 6th row, so the gcc also links it.
gcc $(CFLAGS) $(LIBS) -o $(APPL) $(APPL).c | _______________________ 2. Use inlines File: Examples/Mpega/MPEGA_demo.c Change: Add these lines under line 38:
#include <inline4/mpega.h>
#include <interfaces/mpega.h> | The second change should really go into the include files with some sort of:
#ifdef __USE_INLINE__
include bla bla
#endif |
|
|
|