How to install gattlib in Raspberry Pi 3

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build) by using



sudo apt-get install gattlib


I got error



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib


Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.







share|improve this question






















  • Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
    – mikewhatever
    Apr 19 at 21:05










  • Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
    – Paul Tomov
    Apr 19 at 22:06











  • The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
    – Paul Tomov
    Apr 19 at 22:16











  • Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
    – Paul Tomov
    Apr 19 at 22:41







  • 2




    Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
    – David Foerster
    Apr 20 at 8:38















up vote
0
down vote

favorite












I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build) by using



sudo apt-get install gattlib


I got error



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib


Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.







share|improve this question






















  • Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
    – mikewhatever
    Apr 19 at 21:05










  • Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
    – Paul Tomov
    Apr 19 at 22:06











  • The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
    – Paul Tomov
    Apr 19 at 22:16











  • Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
    – Paul Tomov
    Apr 19 at 22:41







  • 2




    Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
    – David Foerster
    Apr 20 at 8:38













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build) by using



sudo apt-get install gattlib


I got error



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib


Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.







share|improve this question














I compiled, built and packaged GATTLIB library files in Raspberry Pi 3 as directed in https://github.com/labapart/gattlib. But when trying to install the library from the build folder (/home/pi/Downloads/gattlib-src-root/gattlib-master/build) by using



sudo apt-get install gattlib


I got error



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gattlib


Please advise me what is the correct way to install GATTLIB in Raspberry pi 3.









share|improve this question













share|improve this question




share|improve this question








edited Apr 20 at 9:31









David Foerster

26.1k1361106




26.1k1361106










asked Apr 19 at 20:56









Paul Tomov

1




1











  • Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
    – mikewhatever
    Apr 19 at 21:05










  • Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
    – Paul Tomov
    Apr 19 at 22:06











  • The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
    – Paul Tomov
    Apr 19 at 22:16











  • Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
    – Paul Tomov
    Apr 19 at 22:41







  • 2




    Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
    – David Foerster
    Apr 20 at 8:38

















  • Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
    – mikewhatever
    Apr 19 at 21:05










  • Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
    – Paul Tomov
    Apr 19 at 22:06











  • The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
    – Paul Tomov
    Apr 19 at 22:16











  • Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
    – Paul Tomov
    Apr 19 at 22:41







  • 2




    Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
    – David Foerster
    Apr 20 at 8:38
















Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
– mikewhatever
Apr 19 at 21:05




Apt-get installs packages from repositories, and knows nothing about "build folder". Assuming you've built a .deb package, use sudo dpkg -i pkg-name.deb to install it.
– mikewhatever
Apr 19 at 21:05












Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
– Paul Tomov
Apr 19 at 22:06





Thanks. The correct command was: $ sudo dpkg -i gattlib_0.2-dev_armhf.deb
– Paul Tomov
Apr 19 at 22:06













The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
– Paul Tomov
Apr 19 at 22:16





The installation (depackaging) went without errors but now I cannot locate the installed files: gattlib.h and libgattlib.so. According to the link above I set the installation path as: cpack -DCPACK_PACKAGE_INSTALL_DIRECTORY=/usr/local .. and indeed the CPackSourceConfig.cmake shows it correctly (SET(CPACK_INSTALL_PREFIX "/usr/local") but where are the installed files? I cannot locate them anywhere in the /usr folder. Please advise me.
– Paul Tomov
Apr 19 at 22:16













Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
– Paul Tomov
Apr 19 at 22:41





Now I found that gatlib.h file was installed into /usr/include folder and libgattlib.so file into /usr/lib folder. So the dpkg command did not heed the installation package settings.
– Paul Tomov
Apr 19 at 22:41





2




2




Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
– David Foerster
Apr 20 at 8:38





Possible duplicate of How do I install a .deb file via the command line? based on @mikewhatever's comment and OP's response.
– David Foerster
Apr 20 at 8:38
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026521%2fhow-to-install-gattlib-in-raspberry-pi-3%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026521%2fhow-to-install-gattlib-in-raspberry-pi-3%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error