Where do I put my .a files












0















I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary files, I finally have what I need. Now my libIrrlicht.a is in /usr/include/irrlicht and I'm wondering where it should be so I only have to write -lIrrlicht in my Makefile like I used to be able to a year ago and I currently do with every other library I use instead of the whole path?










share|improve this question


















  • 3





    How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

    – steeldriver
    Dec 28 '18 at 15:01











  • I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

    – HugeNoob
    Dec 28 '18 at 16:28













  • In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

    – steeldriver
    Dec 28 '18 at 16:33
















0















I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary files, I finally have what I need. Now my libIrrlicht.a is in /usr/include/irrlicht and I'm wondering where it should be so I only have to write -lIrrlicht in my Makefile like I used to be able to a year ago and I currently do with every other library I use instead of the whole path?










share|improve this question


















  • 3





    How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

    – steeldriver
    Dec 28 '18 at 15:01











  • I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

    – HugeNoob
    Dec 28 '18 at 16:28













  • In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

    – steeldriver
    Dec 28 '18 at 16:33














0












0








0








I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary files, I finally have what I need. Now my libIrrlicht.a is in /usr/include/irrlicht and I'm wondering where it should be so I only have to write -lIrrlicht in my Makefile like I used to be able to a year ago and I currently do with every other library I use instead of the whole path?










share|improve this question














I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary files, I finally have what I need. Now my libIrrlicht.a is in /usr/include/irrlicht and I'm wondering where it should be so I only have to write -lIrrlicht in my Makefile like I used to be able to a year ago and I currently do with every other library I use instead of the whole path?







filesystem c++ make libraries makefile






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 28 '18 at 14:57









HugeNoobHugeNoob

1




1








  • 3





    How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

    – steeldriver
    Dec 28 '18 at 15:01











  • I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

    – HugeNoob
    Dec 28 '18 at 16:28













  • In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

    – steeldriver
    Dec 28 '18 at 16:33














  • 3





    How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

    – steeldriver
    Dec 28 '18 at 15:01











  • I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

    – HugeNoob
    Dec 28 '18 at 16:28













  • In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

    – steeldriver
    Dec 28 '18 at 16:33








3




3





How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

– steeldriver
Dec 28 '18 at 15:01





How did you obtain libirrlicht.a? If you'd installed the libirrlicht-dev package (found in the universe repository) then the library would have been installed in the correct system library location and the linker would find it via the default library search paths

– steeldriver
Dec 28 '18 at 15:01













I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

– HugeNoob
Dec 28 '18 at 16:28







I installed libirrlicht-dev trought apt. Right now after running the dpkg -L libirrlicht-dev it says the libirrlicht.a is there /usr/lib/x86_64-linux-gnu/libIrrlicht.a but I still can't just use -lIrrlicht in my makefile and have it work properly.

– HugeNoob
Dec 28 '18 at 16:28















In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

– steeldriver
Dec 28 '18 at 16:33





In that case I suggest you edit your question to include the contents of your Makefile, the command you're using to build, and the exact error message

– steeldriver
Dec 28 '18 at 16:33










1 Answer
1






active

oldest

votes


















0














Install the libirrlicht-dev.



To see the list of files installed by the package:



dpkg -L libirrlicht-dev


Also, on the Ubuntu site:



https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev






share|improve this answer
























  • I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

    – HugeNoob
    Dec 28 '18 at 16:30













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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f1105128%2fwhere-do-i-put-my-a-files%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Install the libirrlicht-dev.



To see the list of files installed by the package:



dpkg -L libirrlicht-dev


Also, on the Ubuntu site:



https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev






share|improve this answer
























  • I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

    – HugeNoob
    Dec 28 '18 at 16:30


















0














Install the libirrlicht-dev.



To see the list of files installed by the package:



dpkg -L libirrlicht-dev


Also, on the Ubuntu site:



https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev






share|improve this answer
























  • I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

    – HugeNoob
    Dec 28 '18 at 16:30
















0












0








0







Install the libirrlicht-dev.



To see the list of files installed by the package:



dpkg -L libirrlicht-dev


Also, on the Ubuntu site:



https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev






share|improve this answer













Install the libirrlicht-dev.



To see the list of files installed by the package:



dpkg -L libirrlicht-dev


Also, on the Ubuntu site:



https://packages.ubuntu.com/bionic/libdevel/libirrlicht-dev







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 28 '18 at 15:32









VelkanVelkan

2,2451827




2,2451827













  • I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

    – HugeNoob
    Dec 28 '18 at 16:30





















  • I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

    – HugeNoob
    Dec 28 '18 at 16:30



















I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

– HugeNoob
Dec 28 '18 at 16:30







I ran the command and it says I have it here: /usr/lib/x86_64-linux-gnu/libIrrlicht.a

– HugeNoob
Dec 28 '18 at 16:30




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105128%2fwhere-do-i-put-my-a-files%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido