Developing C++ app on Linux

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2009
Posts: 2
Reputation: komyg is an unknown quantity at this point 
Solved Threads: 0
komyg komyg is offline Offline
Newbie Poster

Developing C++ app on Linux

 
0
  #1
Aug 20th, 2009
Hi, I need to develop a C++ application for Linux, and I am worried about its compatibility with between different distros, for example if I develop it on Kubuntu, is it possible that I may have compatibility issues if I run it on Gentoo or Open SUSE for example?

In other words, what should I keep in mind to make my application compatible with other Linux distros?

Thanks,
Komyg
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Developing C++ app on Linux

 
0
  #2
Aug 20th, 2009
Originally Posted by komyg View Post
Hi, I need to develop a C++ application for Linux, and I am worried about its compatibility with between different distros, for example if I develop it on Kubuntu, is it possible that I may have compatibility issues if I run it on Gentoo or Open SUSE for example?

In other words, what should I keep in mind to make my application compatible with other Linux distros?

Thanks,
Komyg
Well As Far As I Know, that depends on what application you are making and what libraries you will be using. If you are going to make your application using just the Standard C++ stuff using the GCC compiler, then it should compile and run anywhere the GCC compiler has been ported to.
In case you are using some extra stuff like the Posix thread libraries or cURL or one of the many Boost libraries for C++, then you application will be restricted to run only to those platforms where those libraries have been ported to.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 2
Reputation: komyg is an unknown quantity at this point 
Solved Threads: 0
komyg komyg is offline Offline
Newbie Poster

Re: Developing C++ app on Linux

 
0
  #3
Aug 20th, 2009
Originally Posted by stephen84s View Post
Well As Far As I Know, that depends on what application you are making and what libraries you will be using. If you are going to make your application using just the Standard C++ stuff using the GCC compiler, then it should compile and run anywhere the GCC compiler has been ported to.
In case you are using some extra stuff like the Posix thread libraries or cURL or one of the many Boost libraries for C++, then you application will be restricted to run only to those platforms where those libraries have been ported to.
Well, I think that I won't be writing anything that isn't supported by GCC or GPP, however I will also need to use some drivers to access a fingerprint scanner that is connected via USB. Do you think that the differences between the Kernel present in different distros could cause me problems while using those drivers?

Thanks,
Komyg
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 37
Reputation: thelamb is on a distinguished road 
Solved Threads: 7
thelamb thelamb is offline Offline
Light Poster

Re: Developing C++ app on Linux

 
0
  #4
Aug 20th, 2009
The same answer applies to that and is specific to the driver you are talking about.

If the driver only has one version, for Linux, then you probably wont run into any problems, if there exist different versions for different distros then you might run into problems, but in this case I guess you can only be sure by testing, maybe there aren't any differences that apply to you.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 309
Reputation: NicAx64 will become famous soon enough NicAx64 will become famous soon enough 
Solved Threads: 18
NicAx64's Avatar
NicAx64 NicAx64 is offline Offline
Posting Whiz

Re: Developing C++ app on Linux

 
0
  #5
Aug 21st, 2009
Originally Posted by komyg View Post
Well, I think that I won't be writing anything that isn't supported by GCC or GPP, however I will also need to use some drivers to access a fingerprint scanner that is connected via USB. Do you think that the differences between the Kernel present in different distros could cause me problems while using those drivers?

Thanks,
Komyg
I'm using a scanner inside linux , and that was /dev/usb/scanner0
so it's a file in the linux. what I just doing is use the scanimage utility
in the liunx. So you can read from the scanner using that scanimage
utility.Here is the man page
http://linux.die.net/man/1/scanimage

just Create another child of scanimage. It will make you're things
easy.You can even do this using shell script.

so for the GUI development you can use the Xlib , if you heavily
needs the independent among the distros. Xlib is everywhere on
evey distro's.But the life with Xlib is going to be hard.
Nothing like a kernel pannic !
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC