Where do I put my .a files
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
New contributor
add a comment |
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
New contributor
3
How did you obtainlibirrlicht.a
? If you'd installed thelibirrlicht-dev
package (found in theuniverse
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
add a comment |
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
New contributor
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
filesystem c++ make libraries makefile
New contributor
New contributor
New contributor
asked Dec 28 '18 at 14:57
HugeNoob
1
1
New contributor
New contributor
3
How did you obtainlibirrlicht.a
? If you'd installed thelibirrlicht-dev
package (found in theuniverse
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
add a comment |
3
How did you obtainlibirrlicht.a
? If you'd installed thelibirrlicht-dev
package (found in theuniverse
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
add a comment |
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
});
}
});
HugeNoob is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
answered Dec 28 '18 at 15:32
Velkan
2,2351826
2,2351826
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
add a comment |
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
add a comment |
HugeNoob is a new contributor. Be nice, and check out our Code of Conduct.
HugeNoob is a new contributor. Be nice, and check out our Code of Conduct.
HugeNoob is a new contributor. Be nice, and check out our Code of Conduct.
HugeNoob is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
3
How did you obtain
libirrlicht.a
? If you'd installed thelibirrlicht-dev
package (found in theuniverse
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