Miss libsdl2-ttf on ubuntu13.10

it is normal doesn’t exit libsdl2-ttf?
What can I do to fix it? I can use version 1.2 even if the rest of the lib 2.0? if you like? thanks in advance!

2013/11/1 XaBerr <fede.berra at hotmail.it>

**
it is normal doesn’t exit libsdl2-ttf?
What can I do to fix it? I can use version 1.2 even if the rest of the lib
2.0? if you like? thanks in advance!

You can always ship the library with your application, or even link
statically.

Jonas Kulla wrote:

2013/11/1 XaBerr <@XaBerr (@XaBerr)>

   	it is normal doesn't exit libsdl2-ttf?

What can I do to fix it? I can use version 1.2 even if the rest of the lib 2.0? if you like? thanks in advance!

You can always ship the library with your application, or even link statically.

can u do one example?

2013/11/1 XaBerr <fede.berra at hotmail.it>

can u do one example?

Sure. For shipping the dynamic library, you can eg. put it in the folder
"lib",
and then use a launcher script that looks somewhat like this:

#!/bin/bash
LD_LIBRARY_PATH=“lib” ./MyApplication

alternatively, you can embed an rpath in your executable. The easiest way
to do this I think is to set LD_RUN_PATH before invoking gcc. Eg:

export LD_RUN_PATH=’$ORIGIN/lib’
gcc …

The ‘$origin’ will be resolved to your executable location at runtime.

To statically link the library, just add the file “libSDL2_ttf.a” from your
SDL_ttf build to the objects to be linked (look in the “.libs” subfolder),
like so:

gcc -o MyApplication object1.o object2.o libSDL2_ttf.a

Remember that you will have to provide the linker flags to all libraries
that SDL_ttf links against (IIRC that would be freetype, libpng, zlib and
bzip2).

Jonas

The problem is not that I can not link, the problem is that there is to be downloaded on synaptic or other areas!
I searched the source and I did “. / configure” But after I have not the makefile to use “make”…

2013/11/2 XaBerr <fede.berra at hotmail.it>

**
The problem is not that I can not link, the problem is that there is to be
downloaded on synaptic or other areas!
I searched the source and I did “. / configure” But after I have not the
makefile to use “make”…

Sorry, I don’t really understand what you’re trying to say… I explained
how to
set up your application so that the dynamic linker (ld) will find and link
the
libSDL_ttf.so you ship with your application. If you link statically, you
don’t
even have to ship the library at all.

Jonas

Jonas Kulla wrote:

2013/11/2 XaBerr <@XaBerr (@XaBerr)>

   	The problem is not that I can not link, the problem is that there is to be downloaded on synaptic or other areas!

I searched the source and I did “. / configure” But after I have not the makefile to use “make”…

Sorry, I don’t really understand what you’re trying to say… I explained how to
set up your application so that the dynamic linker (ld) will find and link the
libSDL_ttf.so you ship with your application. If you link statically, you don’t
even have to ship the library at all.

Jonas

sorry for my english :
then the problem is that: I can not download version 2.0 of the library ttf.
the library is not on the synaptic package manager, it’s not on the web, I tried to download the source but lacks the make file to compile and then install it … I wanted to know if there were any alternatives or some trick.

2013/11/2 XaBerr <fede.berra at hotmail.it>

sorry for my english :
then the problem is that: I can not download version 2.0 of the library
ttf.
the library is not on the synaptic package manager, it’s not on the web, I
tried to download the source but lacks the make file to compile and then
install it … I wanted to know if there were any alternatives or some
trick.

Oh, I am very sorry, I misunderstood your problem from the very start.
You were just trying to get the library in the first place, right? You said
you ran “./configure” but no Makefile was generated? Did the configure
script print any errors? It could very likely be that you’re missing certain
dependencies and/or their development files to SDL_ttf. Those would be
freetype, libpng, zlib and bzip2 I think. Did you make sure to install the
development versions of these libraries?

Jonas

Jonas Kulla wrote:

2013/11/2 XaBerr <@XaBerr (@XaBerr)>

sorry for my english :
then the problem is that: I can not download version 2.0 of the library ttf.
the library is not on the synaptic package manager, it’s not on the web, I tried to download the source but lacks the make file to compile and then install it … I wanted to know if there were any alternatives or some trick.

Oh, I am very sorry, I misunderstood your problem from the very start.
You were just trying to get the library in the first place, right? You said
you ran “./configure” but no Makefile was generated? Did the configure
script print any errors? It could very likely be that you’re missing certain
dependencies and/or their development files to SDL_ttf. Those would be
freetype, libpng, zlib and bzip2 I think. Did you make sure to install the
development versions of these libraries?

Jonas

I missed to install the libfreetype-dev before making libsdl_ttf2!
Now make work :smiley:
The last thing to do now that I’m missing is an “install”. But if I do it tells me that I have to pass a parameter … in help does not say what. is the output path right? if you have to put “/ user /” or something more specific like “/ user / include /”? ty

2013/11/2 XaBerr <fede.berra at hotmail.it>

I missed to install the libfreetype-dev before making libsdl_ttf2!
Now make work [image: Very Happy]

Glad that worked out!

The last thing to do now that I’m missing is an “install”. But if I do it
tells me that I have to pass a parameter … in help does not say what. is
the output path right? if you have to put “/ user /” or something more
specific like “/ user / include /”? ty

Hmm, actually, executing

sudo make install

should just work. Can you copy paste the error message you’re getting?

Hmm, actually, executing

? ? sudo make install

should just work. Can you copy paste the error message you’re getting??

i’ve done sudo make install, these are the errors:

/bin/bash: /home/fede/SDL2: No such file or directory
make[1]: *** [install-libLTLIBRARIES] Errore 127
make[1]: uscita dalla directory "/home/fede/SDL2 ttf/SDL2_ttf-2.0.12"
make: *** [install-am] Errore 2
fede at fede-VB:~/SDL2 ttf/SDL2_ttf-2.0.12$

Jonas Kulla wrote:

Hmm, actually, executing

? ? sudo make install

should just work. Can you copy paste the error message you’re getting??

ok the problem is i’ve installed in /usr/local/include/ insted /usr/include/, what i can do? copy and paste? or I can reinstall with some additional parameter to specify the directory?

You could ‘configure; make; make install’ again, but like this:

$ ./configure --prefix=/usr
$ make
$ sudo make installOn 4 ??? 2013, at 1:44 ?.?., “XaBerr” <fede.berra at hotmail.it> wrote:

Jonas Kulla wrote:

Hmm, actually, executing

sudo make install

should just work. Can you copy paste the error message you’re getting?

ok the problem is i’ve installed in /usr/local/include/ insted /usr/include/, what i can do? copy and paste? or I can reinstall with some additional parameter to specify the directory?


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

neoaggelos wrote:> You could ‘configure; make; make install’ again, but like this:

$ ./configure --prefix=/usr
$ make
$ sudo make install

On 4 ??? 2013, at 1:44 ??.??., “XaBerr” <@XaBerr (@XaBerr)> wrote:

ty, solved!

Jonas Kulla wrote:   	

Hmm, actually, executing

sudo make install

should just work. Can you copy paste the error message you’re getting?

ok the problem is i’ve installed in /usr/local/include/ insted /usr/include/, what i can do? copy and paste? or I can reinstall with some additional parameter to specify the directory?


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