[SDL2]-Makefile Build, But Exe Not Run?-Ubuntu 13.04

[SDL2]-Makefile Build, But Exe Not Run?-Ubuntu 13.04

Hi,

I am trying to support Linux now.
I installed Xubuntu 13.04 64Bit into VirtualBox on Microsoft® Windows® 8 Pro 64Bit.
I installed SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF into Linux OS.
I created a makefile and opened project folder and ran “make” which created an executable.
When I try to run executable I receive error that there is “no available video device” ?

Any help would be appreciated, thanks!
If someone could just verify that it works on Linux that would be great…

Here is the download:
http://16bitsoft.com/V2/Files/SDL2/TC4/Beta/SDL2-TC4_Beta1.zip

[Image: http://16bitsoft.com/V2/Images/Stuff/SDL2-TC4_Linux_NoVideoDevice-01.png ]------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

How did you install SDL? It looks like the version of SDL you are using has
some trouble with the video environment of the virtual machine
(virtualbox). Kind of strange I think although I never use VMs so I am not
sure. Try making sure you have mesa installed and working and then rebuild
SDL2 from source and then try running your game. Alternatively, give your
game a try on real hardware. Virtualbox only emulates a video card (and I
don’t know which one), depending on what video backend SDL2 is trying to
use, it may have problems.
I have had some video problems like that when I try to do weird things like
run my SDL2 application in Linux but over an NX server running on Windows,
sometimes it works, sometimes it doesn’t. I also have problems if I try to
run my SDL application when I am running the plain VESA driver on my
computer since it doesn’t have hw acceleration, I have no idea how
virtualbox handles hw acceleration…On Sun, Sep 1, 2013 at 7:46 AM, JeZ-l-Lee <JessePalserMailingLists at gmail.com wrote:

**
[SDL2]-Makefile Build, But Exe Not Run?-Ubuntu 13.04

Hi,

I am trying to support Linux now.
I installed Xubuntu 13.04 64Bit into VirtualBox on Microsoft® Windows®
8 Pro 64Bit.
I installed SDL2, SDL2_Image, SDL2_Mixer, & SDL2_TTF into Linux OS.
I created a makefile and opened project folder and ran “make” which
created an executable.
When I try to run executable I receive error that there is “no available
video device” ?

Any help would be appreciated, thanks!
If someone could just verify that it works on Linux that would be great…

Here is the download:
http://16bitsoft.com/V2/Files/SDL2/TC4/Beta/SDL2-TC4_Beta1.zip


JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

prushik wrote:

How did you install SDL? It looks like the version of SDL you are using has some trouble with the video environment of the virtual machine (virtualbox). Kind of strange I think although I never use VMs so I am not sure. Try making sure you have mesa installed and working and then rebuild SDL2 from source and then try running your game. Alternatively, give your game a try on real hardware. Virtualbox only emulates a video card (and I don’t know which one), depending on what video backend SDL2 is trying to use, it may have problems.

I have had some video problems like that when I try to do weird things like run my SDL2 application in Linux but over an NX server running on Windows, sometimes it works, sometimes it doesn’t. I also have problems if I try to run my SDL application when I am running the plain VESA driver on my computer since it doesn’t have hw acceleration, I have no idea how virtualbox handles hw acceleration…
Hi,

Thanks for the reply.
I think the only way to get it working is to install Linux onto an actual real machine.
Seems like OpenGL® hardware acceleration is not available in Linux guests on either VirtualBox or VMWare Player.
(is unfortunate that SDL2 does not have a software fallback for situations like this)

I won’t be installing Linux until Kubuntu 13.10 64Bit is released in mid October
on my main development desktop, so I guess I have to wait…

Thanks!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

VirtualBox does have host GPU support. I think you need to install the
Guest Additions, but I don’t remember the other steps (easy enough to
Google).

Jonny DOn Sun, Sep 1, 2013 at 1:25 AM, JeZ-l-Lee <JessePalserMailingLists at gmail.com wrote:

**

prushik wrote:

How did you install SDL? It looks like the version of SDL you are using
has some trouble with the video environment of the virtual machine
(virtualbox). Kind of strange I think although I never use VMs so I am not
sure. Try making sure you have mesa installed and working and then rebuild
SDL2 from source and then try running your game. Alternatively, give your
game a try on real hardware. Virtualbox only emulates a video card (and I
don’t know which one), depending on what video backend SDL2 is trying to
use, it may have problems.

I have had some video problems like that when I try to do weird things
like run my SDL2 application in Linux but over an NX server running on
Windows, sometimes it works, sometimes it doesn’t. I also have problems if
I try to run my SDL application when I am running the plain VESA driver on
my computer since it doesn’t have hw acceleration, I have no idea how
virtualbox handles hw acceleration…

Hi,

Thanks for the reply.
I think the only way to get it working is to install Linux onto an actual
real machine.
Seems like OpenGL® hardware acceleration is not available in Linux
guests on either VirtualBox or VMWare Player.
(is unfortunate that SDL2 does not have a software fallback for situations
like this)

I won’t be installing Linux until Kubuntu 13.10 64Bit is released in mid
October
on my main development desktop, so I guess I have to wait…

Thanks!


JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Jonathan Dearborn <grimfang4 gmail.com> writes:

VirtualBox does have host GPU support. ?I think you need to install the
Guest Additions, but I don’t remember the other steps (easy enough to
Google).
Jonny D

prushik wrote:

How did you install SDL? It looks like the version of SDL you are using
has some trouble with the video environment of the virtual machine
(virtualbox). Kind of strange I think although I never use VMs so I am not
sure. Try making sure you have mesa installed and working and then rebuild
SDL2 from source and then try running your game. Alternatively, give your
game a try on real hardware. Virtualbox only emulates a video card (and I
don’t know which one), depending on what video backend SDL2 is trying to
use, it may have problems.
I have had some video problems like that when I try to do weird things
like run my SDL2 application in Linux but over an NX server running on
Windows, sometimes it works, sometimes it doesn’t. I also have problems if I
try to run my SDL application when I am running the plain VESA driver on my
computer since it doesn’t have hw acceleration, I have no idea how
virtualbox handles hw acceleration…

Hi,
Thanks for the reply.
I think the only way to get it working is to install Linux onto an actual
real machine.
Seems like OpenGL® hardware acceleration is not available in Linux
guests on either VirtualBox or VMWare Player.
(is unfortunate that SDL2 does not have a software fallback for situations
like this)
I won’t be installing Linux until Kubuntu 13.10 64Bit is released in mid
October
on my main development desktop, so I guess I have to wait…
Thanks!

JeZ+Lee
JessePalser Gmail com16BitSoft®
Video Game Design Studiowww.16BitSoft.com


SDL mailing listSDL
lists.libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello, I know this is an older post, but I was on the same situation:
program compile but doesn’t start. I’ve managed to fix that issue:
Install libsdl-dev from your default repositorys. They’r for SDL1.2 but
comes with dependencies, SDL2 needs eigther but doesn’t display if missing.
Now recompile SDL2 library and install it. Your program should work now
properly. GLX comes with software fallback, that’s used in case no hw
accellerated hardware was found, so SDL doesn’t need an own software layer
for this.

Hope this helps
Frank Wolbring> On Sun, Sep 1, 2013 at 1:25 AM, JeZ-l-Lee <JessePalserMailingLists gmail.com> wrote:

Specifically:

apt-get install debhelper dh-autoreconf dpkg-dev libasound2-dev
libgl1-mesa-dev libpulse-dev libudev-dev libdbus-1-dev libx11-dev
libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev
libxss-dev libxt-dev libxxf86vm-dev

You might also throw build-essential in there as that’ll pull in a
lot of stuff that may not be explicitly listed as a build depend.

If you just get SDL 1.2’s build dependencies, you’re going to be
missing a few things like libudev-dev. The above packages are what
you’d need on a Linux system if you were to go into the SDL2
directory and run “dpkg-buildpackage -us -uc”. That’ll give you a
Debian package for SDL2, and it’s what Debian and Ubuntu use to make
theirs (only they don’t use -us -uc because the people who build the
Debian and Ubuntu packages have the appropriate package signing GnuPG
keys.)

JosephOn Thu, Oct 31, 2013 at 12:25:25PM +0000, Frank Wolbring wrote:

Jonathan Dearborn <grimfang4 gmail.com> writes:

VirtualBox does have host GPU support. ?I think you need to install the
Guest Additions, but I don’t remember the other steps (easy enough to
Google).
Jonny D

On Sun, Sep 1, 2013 at 1:25 AM, JeZ-l-Lee <JessePalserMailingLists gmail.com> wrote:

prushik wrote:

How did you install SDL? It looks like the version of SDL you are using
has some trouble with the video environment of the virtual machine
(virtualbox). Kind of strange I think although I never use VMs so I am not
sure. Try making sure you have mesa installed and working and then rebuild
SDL2 from source and then try running your game. Alternatively, give your
game a try on real hardware. Virtualbox only emulates a video card (and I
don’t know which one), depending on what video backend SDL2 is trying to
use, it may have problems.
I have had some video problems like that when I try to do weird things
like run my SDL2 application in Linux but over an NX server running on
Windows, sometimes it works, sometimes it doesn’t. I also have problems if I
try to run my SDL application when I am running the plain VESA driver on my
computer since it doesn’t have hw acceleration, I have no idea how
virtualbox handles hw acceleration…

Hi,
Thanks for the reply.
I think the only way to get it working is to install Linux onto an actual
real machine.
Seems like OpenGL® hardware acceleration is not available in Linux
guests on either VirtualBox or VMWare Player.
(is unfortunate that SDL2 does not have a software fallback for situations
like this)
I won’t be installing Linux until Kubuntu 13.10 64Bit is released in mid
October
on my main development desktop, so I guess I have to wait…
Thanks!

JeZ+Lee
JessePalser Gmail com16BitSoft®
Video Game Design Studiowww.16BitSoft.com


SDL mailing listSDL
lists.libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello, I know this is an older post, but I was on the same situation:
program compile but doesn’t start. I’ve managed to fix that issue:
Install libsdl-dev from your default repositorys. They’r for SDL1.2 but
comes with dependencies, SDL2 needs eigther but doesn’t display if missing.
Now recompile SDL2 library and install it. Your program should work now
properly. GLX comes with software fallback, that’s used in case no hw
accellerated hardware was found, so SDL doesn’t need an own software layer
for this.

Hope this helps
Frank Wolbring


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org