how to install graphics library in ubuntu 19,04

Asked by Wojciech Guzinski

Trying to install graphics package for programming graphics using g++ in ubuntu 19.04
sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev

I've got message graphics - "E: Unable to locate package libesd0-dev"

Please help.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bashing-om (bashing-om) said :
#1

Wojciech Guzinski - Hello

Per: https://packages.ubuntu.com/search?searchon=contents&keywords=libesd0-dev&mode=filename&suite=disco&arch=any
That package does not exist in disco.
Typo ?
Where do you get the directive that the package is required ?

-my bit to try and help-

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#2

I found information on internet, but it was for previous ubuntu versions. I could not found instruction for ubuntu 19.04
If anybody knows how to do it please help.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

"If anybody knows how to do it please help."
What exactly do you want to do?

Do you want to play around with the turbo c graphics API on Linux using SDL?
This is outdated, but still may be working with a few tricks, see
https://askubuntu.com/questions/525051/how-do-i-use-graphics-h-in-ubuntu
That askubuntu document describes also other and more current graphics libraries, e.g. OpenGL (via GLUT) and libxbgi,

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#4

I'm working with gnu g++in ubuntu 19.04 and want include graphics

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#5

In https://askubuntu.com/questions/525051/how-do-i-use-graphics-h-in-ubuntu I foun:
From Ubuntu 18.04 guile-2.0 works and libesd0-dev is deprecated.
Then in package to be installed libesd0-dev still exists, so I remove it and installed packaged.
In next lines I found:

Now extract the downloaded libgraph-1.0.2.tar.gz file.
Go to the extracted folder and run the following command:

Question: where is the libgraph-1.0.2.tar.gz file and where is extracted folder?

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Read the text in the link that I gave.
At the beginning of https://askubuntu.com/a/525052 it says "You can download it from here."

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#7

I did your steps (with removed libesd0-dev) but later on I've got fatal error message:
guile-libgraph.c:25:10: fatal error: libguile.h: No such file or directory
 #include <libguile.h>
          ^~~~~~~~~~~~
Note: I have ubuntu 19.04

Please help 😊

Thanks. Wojtek

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: Thursday, October 3, 2019 1:33 PM
To: <email address hidden>
Subject: Re: [Question #684551]: how to install graphics library in ubuntu 19, 04

Your question #684551 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/684551

Manfred Hampl proposed the following answer:
Read the text in the link that I gave.
At the beginning of https://askubuntu.com/a/525052 it says "You can download it from here."

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/ubuntu/+question/684551/+confirm?answer_id=5

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/684551

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Do you have the package guile-2.0-dev installed?

sudo apt install guile-2.0-dev

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

If this does not help, try https://askubuntu.com/a/995265

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#10

Hurray!!! It waorks!!! 😊
Many, many thanks!

Wojtek

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: Thursday, October 10, 2019 1:14 PM
To: <email address hidden>
Subject: Re: [Question #684551]: how to install graphics library in ubuntu 19, 04

Your question #684551 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/684551

Manfred Hampl proposed the following answer:
If this does not help, try https://askubuntu.com/a/995265

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/ubuntu/+question/684551/+confirm?answer_id=8

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/684551

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

If the problem has been resolved, then please set the status of this question document to "solved" by visiting https://answers.launchpad.net/ubuntu/+question/684551 and pressing the related button at the bottom of the page.

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#12

Run time problem:
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
demo: ../../src/xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Regardless of time of delay set graphics window is closed after 10s

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#13

Last problem "regardless of time of delay ...." resolved.
Still run time error message is displayed.

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Try running your program with

LIBGL_DRI3_DISABLE=true run_the_program

(and replace "run_the_program" with whatever command you used before)

Source: Bug #1754084

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#15

I just make the program:
 g++ demo.c -l graph -o demo
then run program:
 demo
Result (graphics) was as expected, just after completion error message was issued.
I don't know how to apply your advice ☹

Wojtek

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: Sunday, October 13, 2019 11:09 AM
To: <email address hidden>
Subject: Re: [Question #684551]: how to install graphics library in ubuntu 19, 04

Your question #684551 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/684551

Manfred Hampl proposed the following answer:
Try running your program with

LIBGL_DRI3_DISABLE=true run_the_program

(and replace "run_the_program" with whatever command you used before)

Source: Bug #1754084

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/ubuntu/+question/684551/+confirm?answer_id=13

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/684551

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

You run the program with "demo", so my recommendation is to try "LIBGL_DRI3_DISABLE=true demo"

Revision history for this message
Wojciech Guzinski (wojtekg) said :
#17

It didn't help, so I'm ignoring message:
    demo 2>err
or
    demo 2>/dev/null

Can you help with this problem?

Provide an answer of your own, or ask Wojciech Guzinski for more information if necessary.

To post a message you must log in.