For those interested, I'm running UBUNTU 16.04 x64. as the primary OS and per checkinstall.sh I first executed:
Code: Select all
sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libxxf86vm-dev
Then from
Oma's suggestion:
http://www.purebasic.fr/english/viewtop ... 33#p489033 I ran:
Code: Select all
sudo apt-get install libxine2-x libxine2
From
mk-soft's suggestion:
http://www.purebasic.fr/english/viewtop ... 88#p488688 I ran:
Code: Select all
sudo apt-get install libgtk2.0-dev libsdl2-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libwebkit2gtk-4.0-dev
mesa-vdpau-drivers & build-essential were already the newest version (12.1ubuntu2).
Then executing
Shardik's example code:
http://www.purebasic.fr/english/viewtop ... 71#p458371
The playback starts and the code abends on line 27
Code: Select all
(line 27) Until WaitWindowEvent() = #PB_Event_CloseWindow
[05:57:45] Waiting for executable to start...
[05:57:45] Executable type: Linux - x64 (64bit, Unicode)
[05:57:45] Executable started.
[05:57:47] [ERROR] PlayMovie.pb (Line: 27)
[05:57:47] [ERROR] Program aborted. (by external library)
[05:58:28] [WARNING] PlayMovie.pb (Line: 27)
[05:58:28] [WARNING] Gdk (WARNING): purebasic_compilation0.out: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
[05:58:30] The debugged executable quit unexpectedly.
So I rebooted.
During the first program execution after reboot I got this error:
[06:08:47] Waiting for executable to start...
[06:08:47] Executable type: Linux - x64 (64bit, Unicode)
[06:08:47] Executable started.
[06:08:57] [WARNING] PlayMovie.pb (Line: 24)
[06:08:57] [WARNING] Gdk (ERROR): The program 'purebasic_compilation0.out' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 304 error_code 8 request_code 1 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[06:08:59] The debugged executable quit unexpectedly.
I then ran it again:
[06:10:23] Waiting for executable to start...
[06:10:23] Executable type: Linux - x64 (64bit, Unicode)
[06:10:23] Executable started.
[06:10:25] [ERROR] PlayMovie.pb (Line: 27)
[06:10:25] [ERROR] Program aborted. (by external library)
[06:11:06] [WARNING] PlayMovie.pb (Line: 27)
[06:11:06] [WARNING] Gdk (WARNING): purebasic_compilation0.out: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
[06:11:08] The debugged executable quit unexpectedly.
The movie started playing and once again, after the movie completed the messages at 6:11:06 were generated.
I built an executable and it fails with no feedback when executed from the desktop.
So I created a script to execute it and here's the result as reported to the terminal
Code: Select all
$ ./playmovie.sh
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
vo_vdpau: Can't create vdp device : No vdpau implementation.
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
playmovie: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
./playmovie.sh: line 3: 2451 Aborted (core dumped) ~/Desktop/playmovie
Run from a script, for a split second the executable actually opened the movie's window and seemed to play the first frame (with sound), then bam!