Hi again!
i want to use sdl_draw library i have installed it, this is the instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

$ export CFLAGS="`sdl-config --cflags` -I./include"
$ export LIBS="`sdl-config --libs` ./src/.libs/libSDL_draw.a"
$ gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS
"
but after running the last line i get the following error:
gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS sdldrawtest.c:25:17: fatal error: SDL.h: No such file or directorycompilation terminated. what should i do?
this the sdl-draw library:
http://sourceforge.net/projects/sdl-draw/

thanks in advance and have a nice time.

but when i want to compile it, i get the following error:

On Sat, Mar 24, 2012 at 1:14 AM, Alex Barry wrote:

Quote:

No problem, now go have fun with SDL.

On Fri, Mar 23, 2012 at 4:43 PM, Mohsen Jamali wrote:

Quote:

Thanks again

On Sat, Mar 24, 2012 at 1:11 AM, Alex Barry wrote:

Quote:

And by "like" I meant "link"Just always assume the compiler is stupid and you need to tell it every step you want it to take.
-Alex

On Fri, Mar 23, 2012 at 4:40 PM, Mohsen Jamali wrote:

Quote:

Thanks dear Alex

On Sat, Mar 24, 2012 at 1:00 AM, Alex Barry wrote:

Quote:

You need to like with SDL

g++ -o main main.cpp `sdl-config --libs --cflags`

That should fix you up
-Alex

On Fri, Mar 23, 2012 at 4:15 PM, Mohsen Jamali wrote:

Quote:

Hi guys i have installed SDL on my ubuntu 11.10 machine but when i want to compile it i get the following error :
-*- mode: compilation; default-directory: "/home/mohsen/Desktop/ch02/" -*-
Compilation started at Sat Mar 24 00:42:04

Hi again!
i want to use sdl_draw library i have installed it, this is the instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

$ export CFLAGS="`sdl-config --cflags` -I./include"
$ export LIBS="`sdl-config --libs` ./src/.libs/libSDL_draw.a"
$ gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS
"
but after running the last line i get the following error:
gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS sdldrawtest.c:25:17: fatal error: SDL.h: No such file or directorycompilation terminated. what should i do?
this the sdl-draw library:
http://sourceforge.net/projects/sdl-draw/

thanks in advance and have a nice time.

but when i want to compile it, i get the following error:

On Sat, Mar 24, 2012 at 1:14 AM, Alex Barry wrote:

Quote:

No problem, now go have fun with SDL.

On Fri, Mar 23, 2012 at 4:43 PM, Mohsen Jamali wrote:

Quote:

Thanks again

On Sat, Mar 24, 2012 at 1:11 AM, Alex Barry wrote:

Quote:

And by "like" I meant "link"Just always assume the compiler is stupid and you need to tell it every step you want it to take.
-Alex

On Fri, Mar 23, 2012 at 4:40 PM, Mohsen Jamali wrote:

Quote:

Thanks dear Alex

On Sat, Mar 24, 2012 at 1:00 AM, Alex Barry wrote:

Quote:

You need to like with SDL

g++ -o main main.cpp `sdl-config --libs --cflags`

That should fix you up
-Alex

On Fri, Mar 23, 2012 at 4:15 PM, Mohsen Jamali wrote:

Quote:

Hi guys i have installed SDL on my ubuntu 11.10 machine but when i want to compile it i get the following error :
-*- mode: compilation; default-directory: "/home/mohsen/Desktop/ch02/" -*-
Compilation started at Sat Mar 24 00:42:04

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile
flags, and the output of "pkg-config sdl --libs" to the link flags. For
an all-in-one command that compiles and links in one step if you don't
use a Makefile:

This is the output:
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

i have installed it according to instructions in INSTALL file:

The simplest way to compile this package is:

1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.

Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.

2. Type `make' to compile the package.

3. Optionally, type `make check' to run any self-tests that come with
the package.

4. Type `make install' to install the programs and any data files and
documentation.

5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.

On Thu, Apr 12, 2012 at 11:01 PM, Alex Barry wrote:

Quote:

What output do you get when you do:$ sdl-config --cflags

Also, how did you install sdl_draw?

-Alex

On Thu, Apr 12, 2012 at 2:26 PM, Mohsen Jamali wrote:

Quote:

Hi again!
i want to use sdl_draw library i have installed it, this is the instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

$ export CFLAGS="`sdl-config --cflags` -I./include"
$ export LIBS="`sdl-config --libs` ./src/.libs/libSDL_draw.a"
$ gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS
"
but after running the last line i get the following error:
gcc -o sdldrawtest sdldrawtest.c -Wall $CFLAGS $LIBS sdldrawtest.c:25:17: fatal error: SDL.h: No such file or directorycompilation terminated. what should i do?
this the sdl-draw library:
http://sourceforge.net/projects/sdl-draw/

thanks in advance and have a nice time.

but when i want to compile it, i get the following error:

On Sat, Mar 24, 2012 at 1:14 AM, Alex Barry wrote:

Quote:

No problem, now go have fun with SDL.

On Fri, Mar 23, 2012 at 4:43 PM, Mohsen Jamali wrote:

Quote:

Thanks again

On Sat, Mar 24, 2012 at 1:11 AM, Alex Barry wrote:

Quote:

And by "like" I meant "link"Just always assume the compiler is stupid and you need to tell it every step you want it to take.
-Alex

On Fri, Mar 23, 2012 at 4:40 PM, Mohsen Jamali wrote:

Quote:

Thanks dear Alex

On Sat, Mar 24, 2012 at 1:00 AM, Alex Barry wrote:

Quote:

You need to like with SDL

g++ -o main main.cpp `sdl-config --libs --cflags`

That should fix you up
-Alex

On Fri, Mar 23, 2012 at 4:15 PM, Mohsen Jamali wrote:

Quote:

Hi guys i have installed SDL on my ubuntu 11.10 machine but when i want to compile it i get the following error :
-*- mode: compilation; default-directory: "/home/mohsen/Desktop/ch02/" -*-
Compilation started at Sat Mar 24 00:42:04

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

I just tried out SDL_draw myself. It does not install its header file
when you do "make install". You can do this manually by copying
SDL_draw.h to wherever your system SDL is installed (might be
/usr/include/SDL/ or /usr/local/include/SDL/).

I just tried out SDL_draw myself. It does not install its header file
when you do "make install". You can do this manually by copying
SDL_draw.h to wherever your system SDL is installed (might be
/usr/include/SDL/ or /usr/local/include/SDL/).

Oh, and you will need to also link against the libSDL_draw library.
SDL_draw does not provide a pkg-config file, so you need to do this
manually:

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

I just tried out SDL_draw myself. It does not install its header file when you do "make install". You can do this manually by copying SDL_draw.h to wherever your system SDL is installed (might be /usr/include/SDL/ or /usr/local/include/SDL/).

Hi again!
i want to use sdl_draw library i have installed it, this is the
instruction to compile:
"
The file sdldrawtest.c is a example application for the library. You can
compile it using (for GNU Compiler):

You should add the output of "pkg-config sdl --cflags" to the compile flags, and the output of "pkg-config sdl --libs" to the link flags. For an all-in-one command that compiles and links in one step if you don't use a Makefile:

I just tried out SDL_draw myself. It does not install its header file
when you do "make install". You can do this manually by copying
SDL_draw.h to wherever your system SDL is installed (might be
/usr/include/SDL/ or /usr/local/include/SDL/).

Oh, and you will need to also link against the libSDL_draw library. SDL_draw does not provide a pkg-config file, so you need to do this manually: