943,975 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 574
  • C++ RSS
Aug 20th, 2009
0

Developing C++ app on Linux

Expand 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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
komyg is offline Offline
29 posts
since Aug 2009
Aug 20th, 2009
0

Re: Developing C++ app on Linux

Click to Expand / Collapse  Quote originally posted by komyg ...
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.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Aug 20th, 2009
0

Re: Developing C++ app on Linux

Click to Expand / Collapse  Quote originally posted by stephen84s ...
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
Reputation Points: 10
Solved Threads: 1
Light Poster
komyg is offline Offline
29 posts
since Aug 2009
Aug 20th, 2009
0

Re: Developing C++ app on Linux

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.
Reputation Points: 193
Solved Threads: 75
Posting Pro in Training
thelamb is offline Offline
426 posts
since Aug 2008
Aug 21st, 2009
0

Re: Developing C++ app on Linux

Click to Expand / Collapse  Quote originally posted by komyg ...
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.
Reputation Points: 86
Solved Threads: 43
Posting Pro
NicAx64 is offline Offline
532 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: How to take string value as hexadecimal
Next Thread in C++ Forum Timeline: wxFileInputStream





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC