LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2020, 09:00 AM   #1
rahulvishwakarma
Member
 
Registered: Aug 2010
Posts: 109

Rep: Reputation: 0
how to use graphics in C++ in linux.


hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.
 
Old 02-13-2020, 09:32 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,465

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
Quote:
Originally Posted by rahulvishwakarma View Post
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.
We will, AGAIN, suggest you read the "Question Guidelines" link in my posting signature, and do basic research first. Show your own efforts.

Putting "graphics programming in C++" into Google pulls up over 34 *MILLION* hits. There are entire books dedicated to this. Best suggestion is that you read them, look at ANY of the millions of easily-found guides/tutorials/samples, and post back with SPECIFIC QUESTIONS OR PROBLEMS. Don't ask us to look things up for you; seems to be a recurring theme with your posts.
 
1 members found this post helpful.
Old 02-13-2020, 10:17 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,535
Blog Entries: 13

Rep: Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825Reputation: 3825
Quote:
Originally Posted by rahulvishwakarma View Post
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.
I fully agree with TB0ne's points here.

You're saying that you use libgraph. My assumption is that you have a valid background where you're able to search for graphical development packages which use the C++ language.

Please tell us which ones you are considering and perhaps people can offer opinions.

Please bear in mind that just because something is old does not mean it is not maintained, I see active development on their repo. C++ is old, someone reading this may use a different language for graphical development and wonder why that detail is important.

Last edited by rtmistler; 02-13-2020 at 12:40 PM. Reason: Made my sentence a sentence by adding "background"
 
2 members found this post helpful.
Old 02-13-2020, 10:50 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,486

Rep: Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223Reputation: 4223
Quote:
Originally Posted by rahulvishwakarma View Post
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.
By libgraph you mean that Borland graphics.h header that drew lines and rectangles on the screen, right?

The modern equivalent is SDL2.

https://wiki.libsdl.org/CategoryRender

Make sure the VM can handle it first.
 
Old 02-13-2020, 11:08 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,483

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
i like "Cimg.h"
http://cimg.eu/download.shtml

see the screenshots
http://cimg.eu/screenshots.shtml
 
Old 02-14-2020, 04:47 AM   #6
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 271

Rep: Reputation: 113Reputation: 113
Cairo is a very powerful 2D drawing library that can draw on pretty much anything.

If you want to develop GUI applications, check out GTK.
Ed
 
Old 02-14-2020, 07:01 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,852

Rep: Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119Reputation: 2119
I too agree with TB0ne I gave you that one on your other page,
https://www.linuxquestions.org/quest...-a-4175669527/
I think it time you took a step back and get back to the basics, learning yourself how to search the internet for your answers first then if questions on something related to it, fine post.

you can even type some of what you asked in here in googles search engine and see what happens. It works on key phrases and key words. it's rather basic and simple to use really.

"use graphics in c++ in linux"

if you do not like your results rephrase your sentence and use more key words to try and find what you're looking for.

"what api for gui in linux"
"c++ programming gui in linux"
"linux c++ gui programming tutorial"

------------- BORLAND --- On ---- Linux --------- ??
Quote:

Subsidiary
Industry Computer software
Fate acquired by Micro Focus
Predecessor Ashton-Tate Edit this on Wikidata
Founded 1983 in California
Founders Niels Jensen
Ole Henriksen
Mogens Glad
Philippe Kahn
Headquarters Austin, Texas
Defunct 2009
Key people
Erik Prusch (acting CEO)
Products Borland SilkTest, Borland StarTeam, Borland Together, Others
Revenue DecreaseUS$172 million (2008)[1]
Net income
269,000,000 United States dollar (2007) Edit this on Wikidata
Number of employees
approximately 1,100[2]
Parent Micro Focus
Website borland.com

Last edited by BW-userx; 02-14-2020 at 07:11 AM.
 
1 members found this post helpful.
  


Reply

Tags
c++ programming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Nvidia graphics card on linux mint mate 17.3 when in a hybrid graphics card environment betty _frances Linux Mint 1 06-08-2016 06:31 AM
LXer: Intel Haswell HD Graphics 4600 vs. AMD Radeon Graphics On Linux LXer Syndicated Linux News 0 06-17-2013 12:01 PM
[SOLVED] Linux Mint 11 Tri Display Solutions with onboard graphics and PCI graphics Oblivious12 Linux - Hardware 2 03-07-2012 12:27 PM
graphics programmes and wacom graphics tablets? bigjohn Linux - Newbie 9 05-29-2005 05:03 PM
Graphics issues with Intel 82856G Graphics Adapter herrmag Linux - Newbie 1 08-09-2004 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration