usr/bin/ld: cannot find -lCbc

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












0














I'm trying to use make, it returns these errors and simmilar ones :



usr/bin/ld: cannot find -lCbc
usr/bin/ld: cannot find -lCgl


I have already found similar issues, and tried a great deal of them. None was useful.
for instance: https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary



Details:

I am using ubuntu 16.04



I have installed some libraries like Vol and Cgl from coin-or:https://projects.coin-or.org/

libraries, executables and header files are installed in directories like "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib",
"/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/bin", "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/include" respectively.

My codes are stored in "home/MyPc/Descktop/NsProj/Sourcee"



Then I use



env PKG_CONFIG_PATH=/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib/pkgconfig:
home/MyPc/Descktop/CoinOrPaks/Cgl-0.59.10/build/lib/pkgconfig cmake home/MyPc/Descktop/NsProj/Sourcee




and give address of pkgconfig for non standard directories
The above command executes OK. and says found messeges like: Found Cgl version 0.59.10


However after that when I use make...



and get those errors










share|improve this question























  • Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
    – dirkt
    Dec 24 '18 at 10:07










  • @dirkt Thanks, I have added more info
    – Reza_va
    Dec 24 '18 at 11:00










  • Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
    – dirkt
    Dec 24 '18 at 11:38















0














I'm trying to use make, it returns these errors and simmilar ones :



usr/bin/ld: cannot find -lCbc
usr/bin/ld: cannot find -lCgl


I have already found similar issues, and tried a great deal of them. None was useful.
for instance: https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary



Details:

I am using ubuntu 16.04



I have installed some libraries like Vol and Cgl from coin-or:https://projects.coin-or.org/

libraries, executables and header files are installed in directories like "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib",
"/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/bin", "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/include" respectively.

My codes are stored in "home/MyPc/Descktop/NsProj/Sourcee"



Then I use



env PKG_CONFIG_PATH=/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib/pkgconfig:
home/MyPc/Descktop/CoinOrPaks/Cgl-0.59.10/build/lib/pkgconfig cmake home/MyPc/Descktop/NsProj/Sourcee




and give address of pkgconfig for non standard directories
The above command executes OK. and says found messeges like: Found Cgl version 0.59.10


However after that when I use make...



and get those errors










share|improve this question























  • Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
    – dirkt
    Dec 24 '18 at 10:07










  • @dirkt Thanks, I have added more info
    – Reza_va
    Dec 24 '18 at 11:00










  • Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
    – dirkt
    Dec 24 '18 at 11:38













0












0








0







I'm trying to use make, it returns these errors and simmilar ones :



usr/bin/ld: cannot find -lCbc
usr/bin/ld: cannot find -lCgl


I have already found similar issues, and tried a great deal of them. None was useful.
for instance: https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary



Details:

I am using ubuntu 16.04



I have installed some libraries like Vol and Cgl from coin-or:https://projects.coin-or.org/

libraries, executables and header files are installed in directories like "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib",
"/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/bin", "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/include" respectively.

My codes are stored in "home/MyPc/Descktop/NsProj/Sourcee"



Then I use



env PKG_CONFIG_PATH=/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib/pkgconfig:
home/MyPc/Descktop/CoinOrPaks/Cgl-0.59.10/build/lib/pkgconfig cmake home/MyPc/Descktop/NsProj/Sourcee




and give address of pkgconfig for non standard directories
The above command executes OK. and says found messeges like: Found Cgl version 0.59.10


However after that when I use make...



and get those errors










share|improve this question















I'm trying to use make, it returns these errors and simmilar ones :



usr/bin/ld: cannot find -lCbc
usr/bin/ld: cannot find -lCgl


I have already found similar issues, and tried a great deal of them. None was useful.
for instance: https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary



Details:

I am using ubuntu 16.04



I have installed some libraries like Vol and Cgl from coin-or:https://projects.coin-or.org/

libraries, executables and header files are installed in directories like "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib",
"/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/bin", "/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/include" respectively.

My codes are stored in "home/MyPc/Descktop/NsProj/Sourcee"



Then I use



env PKG_CONFIG_PATH=/home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib/pkgconfig:
home/MyPc/Descktop/CoinOrPaks/Cgl-0.59.10/build/lib/pkgconfig cmake home/MyPc/Descktop/NsProj/Sourcee




and give address of pkgconfig for non standard directories
The above command executes OK. and says found messeges like: Found Cgl version 0.59.10


However after that when I use make...



and get those errors







ubuntu make configure






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 24 '18 at 18:35









Rui F Ribeiro

39.2k1479130




39.2k1479130










asked Dec 24 '18 at 4:20









Reza_va

133




133











  • Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
    – dirkt
    Dec 24 '18 at 10:07










  • @dirkt Thanks, I have added more info
    – Reza_va
    Dec 24 '18 at 11:00










  • Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
    – dirkt
    Dec 24 '18 at 11:38
















  • Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
    – dirkt
    Dec 24 '18 at 10:07










  • @dirkt Thanks, I have added more info
    – Reza_va
    Dec 24 '18 at 11:00










  • Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
    – dirkt
    Dec 24 '18 at 11:38















Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
– dirkt
Dec 24 '18 at 10:07




Randomly applying "similar" solutions without understanding the problem is not going to help. You need to (1) find out in which directory the libCbc.* and libCgl.* are on your system (which you told us nothing about), and then (2) add the correct path to your cmake configuration (which you also told us nothing about, possibly it's not even calling pkgconfig).
– dirkt
Dec 24 '18 at 10:07












@dirkt Thanks, I have added more info
– Reza_va
Dec 24 '18 at 11:00




@dirkt Thanks, I have added more info
– Reza_va
Dec 24 '18 at 11:00












Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
– dirkt
Dec 24 '18 at 11:38




Please check (via ls) if the libraries in /home/MyPc/Descktop/CoinOrPaks/Vol-1.5.3/lib are static (.a) or (dynamic .so). For the latter, check if symlinks are present. You'll also need to read up on ldconfig to execute the resulting binary (once it comples). Invoke pkg-config manually, and check if it gives the correct library path for your two libraries ("found Cgl ..." may still point to some other package, you need to check the path, i.e. pkg-config -libs ...).
– dirkt
Dec 24 '18 at 11:38










1 Answer
1






active

oldest

votes


















1














It looks like you don't have the libraries libCbc, and libCgl, installed. You will need the dev versions of these libraries. e.g. libCbc-dev



apt install coinor-libCgl-dev coinor-libCbc-dev





share|improve this answer




















  • I think they are installed correctly, as instructed in projects.coin-or.org/Vol
    – Reza_va
    Dec 24 '18 at 11:04










  • When you did ./configure, did you tell it where to find the libraries?
    – ctrl-alt-delor
    Dec 24 '18 at 11:10










  • You need to tell it where your libraries are, else it will not find them. Do ./configure --help
    – ctrl-alt-delor
    Dec 24 '18 at 11:31










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f490710%2fusr-bin-ld-cannot-find-lcbc%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









1














It looks like you don't have the libraries libCbc, and libCgl, installed. You will need the dev versions of these libraries. e.g. libCbc-dev



apt install coinor-libCgl-dev coinor-libCbc-dev





share|improve this answer




















  • I think they are installed correctly, as instructed in projects.coin-or.org/Vol
    – Reza_va
    Dec 24 '18 at 11:04










  • When you did ./configure, did you tell it where to find the libraries?
    – ctrl-alt-delor
    Dec 24 '18 at 11:10










  • You need to tell it where your libraries are, else it will not find them. Do ./configure --help
    – ctrl-alt-delor
    Dec 24 '18 at 11:31















1














It looks like you don't have the libraries libCbc, and libCgl, installed. You will need the dev versions of these libraries. e.g. libCbc-dev



apt install coinor-libCgl-dev coinor-libCbc-dev





share|improve this answer




















  • I think they are installed correctly, as instructed in projects.coin-or.org/Vol
    – Reza_va
    Dec 24 '18 at 11:04










  • When you did ./configure, did you tell it where to find the libraries?
    – ctrl-alt-delor
    Dec 24 '18 at 11:10










  • You need to tell it where your libraries are, else it will not find them. Do ./configure --help
    – ctrl-alt-delor
    Dec 24 '18 at 11:31













1












1








1






It looks like you don't have the libraries libCbc, and libCgl, installed. You will need the dev versions of these libraries. e.g. libCbc-dev



apt install coinor-libCgl-dev coinor-libCbc-dev





share|improve this answer












It looks like you don't have the libraries libCbc, and libCgl, installed. You will need the dev versions of these libraries. e.g. libCbc-dev



apt install coinor-libCgl-dev coinor-libCbc-dev






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 24 '18 at 10:52









ctrl-alt-delor

10.9k41957




10.9k41957











  • I think they are installed correctly, as instructed in projects.coin-or.org/Vol
    – Reza_va
    Dec 24 '18 at 11:04










  • When you did ./configure, did you tell it where to find the libraries?
    – ctrl-alt-delor
    Dec 24 '18 at 11:10










  • You need to tell it where your libraries are, else it will not find them. Do ./configure --help
    – ctrl-alt-delor
    Dec 24 '18 at 11:31
















  • I think they are installed correctly, as instructed in projects.coin-or.org/Vol
    – Reza_va
    Dec 24 '18 at 11:04










  • When you did ./configure, did you tell it where to find the libraries?
    – ctrl-alt-delor
    Dec 24 '18 at 11:10










  • You need to tell it where your libraries are, else it will not find them. Do ./configure --help
    – ctrl-alt-delor
    Dec 24 '18 at 11:31















I think they are installed correctly, as instructed in projects.coin-or.org/Vol
– Reza_va
Dec 24 '18 at 11:04




I think they are installed correctly, as instructed in projects.coin-or.org/Vol
– Reza_va
Dec 24 '18 at 11:04












When you did ./configure, did you tell it where to find the libraries?
– ctrl-alt-delor
Dec 24 '18 at 11:10




When you did ./configure, did you tell it where to find the libraries?
– ctrl-alt-delor
Dec 24 '18 at 11:10












You need to tell it where your libraries are, else it will not find them. Do ./configure --help
– ctrl-alt-delor
Dec 24 '18 at 11:31




You need to tell it where your libraries are, else it will not find them. Do ./configure --help
– ctrl-alt-delor
Dec 24 '18 at 11:31

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490710%2fusr-bin-ld-cannot-find-lcbc%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

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay