Dear sir, I am a newbie in coding. I am using ubuntu 14.04 in my machine and installed libguestfs by the following command: sudo apt-get install libguestfs-tools I get to run guestfish properly from terminal. But as it happens I want to write a program in C++ and i want to include the guestfs.h file in the program. I have tried and searched many options but have not found any. Is there something I am doing wrong? Can you please help me getting the file. If you can show me a way then it would be great cause I have been trying for three days in a row. Thanks Hasib
Hi, On Thursday, 28 July 2016 16:27:24 CEST M.H. Hasan Bhuiyan wrote:
I am a newbie in coding. I am using ubuntu 14.04 in my machine and installed libguestfs by the following command:
sudo apt-get install libguestfs-tools
I get to run guestfish properly from terminal. But as it happens I want to write a program in C++ and i want to include the guestfs.h file in the program. I have tried and searched many options but have not found any. Is there something I am doing wrong? Can you please help me getting the file. If you can show me a way then it would be great cause I have been trying for three days in a row.
libguestfs-tools contains just the command line utilities provided by libguestfs. In a distribution like Ubuntu, the headers for developing with a library are usually shipped in development packaged named <library>-dev. In the case of libguestfs on Ubuntu, the right package is libguestfs-dev -- you can also check the online resource http://packages.ubuntu.com which helps to find packages available in Ubuntu, and also to locate files shipped. -- Pino Toscano
Thanks a lot. One more thing if I may... Will I just download and install the packages from the http://packages.ubuntu.com ? On 7/28/16, Pino Toscano <ptoscano@redhat.com> wrote:
Hi,
On Thursday, 28 July 2016 16:27:24 CEST M.H. Hasan Bhuiyan wrote:
I am a newbie in coding. I am using ubuntu 14.04 in my machine and installed libguestfs by the following command:
sudo apt-get install libguestfs-tools
I get to run guestfish properly from terminal. But as it happens I want to write a program in C++ and i want to include the guestfs.h file in the program. I have tried and searched many options but have not found any. Is there something I am doing wrong? Can you please help me getting the file. If you can show me a way then it would be great cause I have been trying for three days in a row.
libguestfs-tools contains just the command line utilities provided by libguestfs. In a distribution like Ubuntu, the headers for developing with a library are usually shipped in development packaged named <library>-dev. In the case of libguestfs on Ubuntu, the right package is libguestfs-dev -- you can also check the online resource http://packages.ubuntu.com which helps to find packages available in Ubuntu, and also to locate files shipped.
-- Pino Toscano
On Thursday, 28 July 2016 17:19:21 CEST M.H. Hasan Bhuiyan wrote:
Thanks a lot. One more thing if I may... Will I just download and install the packages from the http://packages.ubuntu.com ?
Better use the package management tools provided in Ubuntu -- apt-get when in terminal, or also the graphical applications provided with the desktop environment (if any). They will do the right job, downloading the packages you want to install and also their dependencies, and making sure everything is installed correctly. -- Pino Toscano
Thank you! I really appreciate it. On Jul 28, 2016 5:28 PM, "Pino Toscano" <ptoscano@redhat.com> wrote:
On Thursday, 28 July 2016 17:19:21 CEST M.H. Hasan Bhuiyan wrote:
Thanks a lot. One more thing if I may... Will I just download and install the packages from the http://packages.ubuntu.com ?
Better use the package management tools provided in Ubuntu -- apt-get when in terminal, or also the graphical applications provided with the desktop environment (if any). They will do the right job, downloading the packages you want to install and also their dependencies, and making sure everything is installed correctly.
-- Pino Toscano
On Thu, Jul 28, 2016 at 04:27:24PM +0600, M.H. Hasan Bhuiyan wrote:
I get to run guestfish properly from terminal. But as it happens I want to write a program in C++ and i want to include the guestfs.h file in the program. I have tried and searched many options but have not found any. Is there something I am doing wrong? Can you please help me getting the file. If you can show me a way then it would be great cause I have been trying for three days in a row.
If you are looking for examples and/or how to write C++ programs using the guestfs API, then start with: http://libguestfs.org/guestfs-examples.3.html http://libguestfs.org/guestfs.3.html#api-overview https://github.com/libguestfs/libguestfs/tree/master/examples The API is the same whether you are using C or C++. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
participants (3)
-
M.H. Hasan Bhuiyan -
Pino Toscano -
Richard W.M. Jones