![]() |
2010-06-10
, 13:00
|
|
Posts: 173 |
Thanked: 72 times |
Joined on Mar 2010
@ Denmark
|
#2
|
![]() |
2010-06-10
, 13:47
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#3
|
Okay, so I fixed this by putting "-lSDL -lSDL_image" in LIBS.
But I got another question: Where should I put the image files, that the binary reads from? It reads some images, and shows them on the SDL screen.
![]() |
2010-06-10
, 14:00
|
|
Posts: 173 |
Thanked: 72 times |
Joined on Mar 2010
@ Denmark
|
#4
|
![]() |
2010-06-10
, 14:09
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#5
|
ln -s /opt/.../<executable-binary> /usr/bin/<executable-binary>
![]() |
2010-06-10
, 14:13
|
|
Posts: 173 |
Thanked: 72 times |
Joined on Mar 2010
@ Denmark
|
#6
|
![]() |
2010-06-10
, 17:05
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#7
|
You can add a line to create a softlink in the postinst like:
DanielCode:ln -s /opt/.../<executable-binary> /usr/bin/<executable-binary>
The Following User Says Thank You to Joorin For This Useful Post: | ||
![]() |
2010-06-11
, 07:09
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#8
|
Or include the link in the staging directory and it will be included in the package.
Using the postinst script is, in my view, the less good alternative.
I am trying to port this little SDL application, but I'm kind of clueless regarding the prog.pro file, when packaging the application.
I have created a "simple" template using MADDE, but how do I tell make that it needs the SDL libraries?