How can I install SDL_image on Ubuntu 12.04.1 LTS? - sdl

I installed the ubuntu 12.04.1 LTS. I just installed a compiler to c++ programming. It's name is Anjuta. It's a free programming software. I would like to make simple games with that one, but it shows to me: IMG_Load in-lSDL_image... no... And SDL_image not found, as you can see in the picture...
I tried to google it, install it, but it won't work. What is the easiest way? Or better for beginning game programmers on linux? :-)
image file: freeimagehosting dot net/oo5dq

sudo apt-get install libsdl-image1.2-dev
Found on s.o. here:
how to install c library on linux (in particular SDL_image)
Worked for me on ubuntu 12.04

SDL_Image is a library for development in C++. I suggest first getting a rad IDE to develop in - CodeBlocks is good:
http://www.codeblocks.org/downloads
Then I'd suggest following these tutorials, which will guide you into installing the relevant SDL libraries for C++ game development - SDL_Image is only one of them... and not the one I would start with:
http://www.youtube.com/watch?v=Lb_Jy5HGMsk
This got me set up with SDL and C++ development. I have since made a game with decent graphics (2D) and playability, as well as an online component using SDL_net.
Good luck!

Related

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

I have a unix binary file built with QT and OpenGL which I'm trying to execute on linux-64. It is a simple visual program that shows 2d and 3d graphics.
I have installed all necessary dependencies such as QT and openGL libraries.
However, I have stuck with the following error trying to execute the binary
QXcbIntegration: Cannot create platform OpenGL context, neither GLX
nor EGL are enabled
However, the binary eventually runs but with some missing features such as 3D graphics.
my setup includes: virtual linux-64 using virtualBox, Vagrant, x-11 forwarding, and a Mac machine.
Eventually I realised that OpenGL 3.3 wouldn't work easily on virtual machines .. yet. I had to boot from ubuntu usb and work from there by installing latest mesa 3d package.
This shows a similar issue and the developer in the comment said our 3D support is not very clean in Linux guests, hence the warnings. You can give a try to VMware.
After some time trying to get some opengl working on a particular locked down linux box, I ended up going back to Qt Creator 2.5.2 .
http://download.qt.io/archive/qtcreator/2.5/
http://download.qt.io/archive/qtcreator/2.5/qt-creator-linux-x86_64-opensource-2.5.2.bin
After getting it on the linux box...
chmod u+x *.bin
./qt-creator-linux-x86_64-opensource-2.5.2.bin
And after a short installer, Qt Creator is working!
Basically QtQuick is a requirement in any Qt Creator built after 2.5 (aka Qt 5.x) and QtQuick NEEDS opengl libraries and support.
Hope that helps.
I see this problem when executing Qt App, I was executing in dash prompt. (Ubuntu 16.04 has dash by default). I changed to bash prompt and rebuilt my QT App. This error is gone.
To configure bash I used below command.
sudo dpkg-reconfigure dash

Howto install the latest CodeLite in openSUSE

Hi I've tried to install the latest codelite but when I try to open it, it doesn't. I followed the instructions on the site but no luck.
I'm using openSUSE 13.2 64-bit
You probably need to install the wxWidgets runtime libs, which were supposed to be included in the CodeLite package but weren't.
openSUSE don't seem to have a meta-package for these, and there are a confusing number of choices, most of which will be wrong for you. However if you ask yast to install libwx_gtk2u_webview-suse-3_0-0 I think you'll find that will depend on the rest of the correct libwx* family.
At the time of this writing, you can install codelite and wxwidget in opensuste in a straightforward method. Just go to the
opensuse software repository and search for codelite. After representation of the results press on the button
Direct Install
to let you install the package on your machine.

How to install gtk on OSX for use with g++/gcc compiler

I already asked this question at apple.stackexchange.com, but I was told it was the wrong place for this question - so I will ask it here, as I was suggested to do.
At my university we got the task to implement a c-program which has a GTK-GUI. The GTK-GUI is already implemented, we just have to implement a algorithm which hands it some data.
I already got gcc/g++ working. But when i try to compile the project the compiler returns the error, that it does not find the gtk:
fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
^
So my question is:
How do I install gtk on OSX Mavericks for using it with gcc/g++ compiler?
My setup: MacBook Pro Retina Mid 2012 with OSX Mavericks. Homebrew is installed and working if it could be useful for the installation.
(Of course the Apple Command Line Developer Tools are installed)
I finally solved the Problem. tojanfoe suggested in a comment the link http://www.hardcoded.net/devlogs/20120426 which turned out to not be helpful.
This is how i solved it:
1.a) Installation of GTK+ 2.x:
brew install gtk+
1.b) Installation of GTK+ 3.x:
You can install gtk+ 3.x via home brew too if you need that, but the 2.x version is enough for my purposes. The command would be:
brew install gtk+3
2.)
But after the installation I had the problem, that cairo could not be found. So i solved it this way:
export PKG_CONFIG_PATH=/usr/local/Cellar/cairo/1.12.16/lib/pkgconfig/
3.)
Then the compiler said it could not find the package 'xcb-shm', required by 'cairo'. This can be solved this way:
export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
After this command the compiler worked as expected.
You can download precompiled Gtk2 Framework from: http://r.research.att.com
http://r.research.att.com/libs/GTK_2.24.17-X11.pkg,
or
http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
And Gtk3 Framework from: http://www.tarnyko.net/dl/gtk.htm

C++ Development CodeBlock Ubuntu with Boost Library

I majorly work in Java but I have to switch to C++ for development for one project.
I done my research and find that in order to do portable code in C++, I need to use Boost or QT libraries etc. Therefore, now I download CodeBlock IDE in Ubuntu but afraid how to start building project. I search alot in the web to how to use Boost with CodeBlock but each time I only find it working/configure with Windows. http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef
Can please guide me regarding how to configure Boost library with CodeBlock in Ubuntu so that I can write Portable code.
Please also let me know if I am wrong in direction to write portable code which must be support in both Linux and Windows environment.
Have a look at http://www.boost.org/doc/libs/1_52_0/more/getting_started/unix-variants.html
If you dont't need the latest version of boost you should install boost on ubuntu using
apt-get install libboost*

Setting up Haskell OpenGL on Ubuntu 10.04?

I'm having a difficult time figuring out the set of packages I need to get Haskell OpenGL working on Ubuntu 10.04.
Could someone please provide me with the list of APT packages and the list of CABAL packages I need to get to successfully start the OpenGL tutorial here?
Your easiest path would be to look at the dependencies of the Debian OpenGL package.
libghc6-opengl-dev
Which depends on:
libgl-dev
libgl1
libglu1
libglu-dev
All part of the Haskell Platform on Debian, which will be in Ubuntu in a few months.