Cannot find a link library (lNrrdIO) Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Cannot find libNrrdIO link libraryHow does Git handle symbolic links?Error linking to Boost filesystem using cmake on cygwinCmake file linking dynamic library to executableCompile Static executable with CMAKELibrary `Coroutines' not found in list of llvm librariesopen cv install not working properlyStatic link libraries in Qt application with CMakeUsing Clang to get function definitionslinking boost log using cmake errorundefined reference to `omp_get_wtime'

Did the Roman Empire have penal colonies?

Why is an operator the quantum mechanical analogue of an observable?

Passing args from the bash script to the function in the script

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

Protagonist's race is hidden - should I reveal it?

All ASCII characters with a given bit count

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

What to do with someone that cheated their way through university and a PhD program?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Are all CP/M-80 implementations binary compatible?

Would reducing the reference voltage of an ADC have any effect on accuracy?

How to avoid introduction cliches

How would this chord from "Rocket Man" be analyzed?

Multiple fireplaces in an apartment building?

Has a Nobel Peace laureate ever been accused of war crimes?

How do I check if a string is entirely made of the same substring?

How to open locks without disable device?

How to not starve gigantic beasts

Where did Arya get these scars?

France's Public Holidays' Puzzle

What is the least dense liquid under normal conditions?

How would I use different systems of magic when they are capable of the same effects?

Mistake in years of experience in resume?

c++ diamond problem - How to call base method only once



Cannot find a link library (lNrrdIO)



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Cannot find libNrrdIO link libraryHow does Git handle symbolic links?Error linking to Boost filesystem using cmake on cygwinCmake file linking dynamic library to executableCompile Static executable with CMAKELibrary `Coroutines' not found in list of llvm librariesopen cv install not working properlyStatic link libraries in Qt application with CMakeUsing Clang to get function definitionslinking boost log using cmake errorundefined reference to `omp_get_wtime'



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am trying to install NrrdIO on Ubuntu 18.04, to run Marching Cubes to segment medical images. This is the link from which I'm trying to run it.



http://web.cse.ohio-state.edu/research/graphics/isotable/



I'm trying to install ijkmcube-v0-3-3.tar, which requires the ITKNrrdIO.a library. I'm running into this error:



[ 7%] Linking CXX executable ijkmcube
/usr/bin/ld: cannot find -lNrrdIO
collect2: error: ld returned 1 exit status
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube' failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


I've installed NrrdIO 1.11.0, and tried with NrrdIO 1.9.0 as well, but while running
make
I always run into this error, for some reason its not able to find lNrrdIO . Can someone please help?
Thanks



Edit:



I think its a problem with the linking, but when I copied the NrrdIO.a file to /usr/bin and modified the symbolic link to point to it, I got an error as follows:



[ 7%] Linking CXX executable ijkmcube
collect2: fatal error: cannot find 'ld'
compilation terminated.
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube'
failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target '
CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


Can someone help? Thank you



Edit 2



PROJECT(IJKMCUBE)

#---------------------------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF (NOT DEFINED $IJK_DIR)
GET_FILENAME_COMPONENT(IJK_ABSOLUTE_PATH "../.." ABSOLUTE)
SET(IJK_DIR $IJK_ABSOLUTE_PATH CACHE PATH "IJK directory")
ENDIF (NOT DEFINED $IJK_DIR)

SET(CMAKE_INSTALL_PREFIX "$IJK_DIR/")
SET(LIBRARY_OUTPUT_PATH $IJK_DIR/lib CACHE PATH "Library directory")
SET(IJKMCUBE_DIR "src/ijkmcube")
SET(NRRD_LIBDIR "$IJK_DIR/lib")
SET(IJK_ISOTABLE_DIR "$IJK_DIR/isotable" CACHE PATH "Isotable
directory")

#---------------------------------------------------------

IF (NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE Release CACHE STRING
"Default build type: Release" FORCE)
ENDIF (NOT CMAKE_BUILD_TYPE)

INCLUDE_DIRECTORIES("$IJK_DIR/include")
LINK_DIRECTORIES("$NRRD_LIBDIR")
LINK_LIBRARIES(expat NrrdIO z)
ADD_DEFINITIONS(-DIJK_ISOTABLE_DIR="$IJK_ISOTABLE_DIR")

ADD_EXECUTABLE(ijkmcube ijkmcube_main.cxx ijkmcubeIO.cxx ijkmcube.cxx
ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx
ijksnapmc.cxx
ijktable.cxx ijktable_poly.cxx ijktable_ambig.cxx
ijkoctree.cxx ijkxitIO.cxx)

ADD_LIBRARY(ijkmcubeL STATIC EXCLUDE_FROM_ALL ijkmcubeIO.cxx
ijkmcube.cxx ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx ijksnapmc.cxx
ijktable.cxx ijkoctree.cxx ijkxitIO.cxx)
SET_TARGET_PROPERTIES(ijkmcubeL PROPERTIES OUTPUT_NAME ijkmcube)
ADD_CUSTOM_TARGET(lib DEPENDS ijkmcubeL)

SET(CMAKE_INSTALL_PREFIX $IJK_DIR)
INSTALL(TARGETS ijkmcube DESTINATION "bin/linux")

ADD_CUSTOM_TARGET(tar WORKING_DIRECTORY ../.. COMMAND tar cvfh
$IJKMCUBE_DIR/ijkmcube.tar $IJKMCUBE_DIR/README
$IJKMCUBE_DIR/INSTALL $IJKMCUBE_DIR/RELEASE_NOTES
$IJKMCUBE_DIR/*.cxx $IJKMCUBE_DIR/*.h $IJKMCUBE_DIR/*.txx
$IJKMCUBE_DIR/CMakeLists.txt $IJKMCUBE_DIR/man/*
$IJKMCUBE_DIR/ijkmcube_doxygen.config)

ADD_CUSTOM_TARGET(doc COMMAND doxygen ijkmcube_doxygen.config)


SOLVED



Tsyvarev solved it, the libNrrdIO.a file has to be copied to /usr/lib/. Refer to comments for the exact solution










share|improve this question
























  • The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

    – Tsyvarev
    Mar 5 at 9:41












  • Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

    – Jihadi
    Mar 5 at 10:17












  • ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

    – Tsyvarev
    Mar 5 at 12:17











  • The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

    – Jihadi
    Mar 6 at 4:38












  • Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

    – Tsyvarev
    Mar 6 at 8:26

















0















I am trying to install NrrdIO on Ubuntu 18.04, to run Marching Cubes to segment medical images. This is the link from which I'm trying to run it.



http://web.cse.ohio-state.edu/research/graphics/isotable/



I'm trying to install ijkmcube-v0-3-3.tar, which requires the ITKNrrdIO.a library. I'm running into this error:



[ 7%] Linking CXX executable ijkmcube
/usr/bin/ld: cannot find -lNrrdIO
collect2: error: ld returned 1 exit status
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube' failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


I've installed NrrdIO 1.11.0, and tried with NrrdIO 1.9.0 as well, but while running
make
I always run into this error, for some reason its not able to find lNrrdIO . Can someone please help?
Thanks



Edit:



I think its a problem with the linking, but when I copied the NrrdIO.a file to /usr/bin and modified the symbolic link to point to it, I got an error as follows:



[ 7%] Linking CXX executable ijkmcube
collect2: fatal error: cannot find 'ld'
compilation terminated.
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube'
failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target '
CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


Can someone help? Thank you



Edit 2



PROJECT(IJKMCUBE)

#---------------------------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF (NOT DEFINED $IJK_DIR)
GET_FILENAME_COMPONENT(IJK_ABSOLUTE_PATH "../.." ABSOLUTE)
SET(IJK_DIR $IJK_ABSOLUTE_PATH CACHE PATH "IJK directory")
ENDIF (NOT DEFINED $IJK_DIR)

SET(CMAKE_INSTALL_PREFIX "$IJK_DIR/")
SET(LIBRARY_OUTPUT_PATH $IJK_DIR/lib CACHE PATH "Library directory")
SET(IJKMCUBE_DIR "src/ijkmcube")
SET(NRRD_LIBDIR "$IJK_DIR/lib")
SET(IJK_ISOTABLE_DIR "$IJK_DIR/isotable" CACHE PATH "Isotable
directory")

#---------------------------------------------------------

IF (NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE Release CACHE STRING
"Default build type: Release" FORCE)
ENDIF (NOT CMAKE_BUILD_TYPE)

INCLUDE_DIRECTORIES("$IJK_DIR/include")
LINK_DIRECTORIES("$NRRD_LIBDIR")
LINK_LIBRARIES(expat NrrdIO z)
ADD_DEFINITIONS(-DIJK_ISOTABLE_DIR="$IJK_ISOTABLE_DIR")

ADD_EXECUTABLE(ijkmcube ijkmcube_main.cxx ijkmcubeIO.cxx ijkmcube.cxx
ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx
ijksnapmc.cxx
ijktable.cxx ijktable_poly.cxx ijktable_ambig.cxx
ijkoctree.cxx ijkxitIO.cxx)

ADD_LIBRARY(ijkmcubeL STATIC EXCLUDE_FROM_ALL ijkmcubeIO.cxx
ijkmcube.cxx ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx ijksnapmc.cxx
ijktable.cxx ijkoctree.cxx ijkxitIO.cxx)
SET_TARGET_PROPERTIES(ijkmcubeL PROPERTIES OUTPUT_NAME ijkmcube)
ADD_CUSTOM_TARGET(lib DEPENDS ijkmcubeL)

SET(CMAKE_INSTALL_PREFIX $IJK_DIR)
INSTALL(TARGETS ijkmcube DESTINATION "bin/linux")

ADD_CUSTOM_TARGET(tar WORKING_DIRECTORY ../.. COMMAND tar cvfh
$IJKMCUBE_DIR/ijkmcube.tar $IJKMCUBE_DIR/README
$IJKMCUBE_DIR/INSTALL $IJKMCUBE_DIR/RELEASE_NOTES
$IJKMCUBE_DIR/*.cxx $IJKMCUBE_DIR/*.h $IJKMCUBE_DIR/*.txx
$IJKMCUBE_DIR/CMakeLists.txt $IJKMCUBE_DIR/man/*
$IJKMCUBE_DIR/ijkmcube_doxygen.config)

ADD_CUSTOM_TARGET(doc COMMAND doxygen ijkmcube_doxygen.config)


SOLVED



Tsyvarev solved it, the libNrrdIO.a file has to be copied to /usr/lib/. Refer to comments for the exact solution










share|improve this question
























  • The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

    – Tsyvarev
    Mar 5 at 9:41












  • Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

    – Jihadi
    Mar 5 at 10:17












  • ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

    – Tsyvarev
    Mar 5 at 12:17











  • The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

    – Jihadi
    Mar 6 at 4:38












  • Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

    – Tsyvarev
    Mar 6 at 8:26













0












0








0








I am trying to install NrrdIO on Ubuntu 18.04, to run Marching Cubes to segment medical images. This is the link from which I'm trying to run it.



http://web.cse.ohio-state.edu/research/graphics/isotable/



I'm trying to install ijkmcube-v0-3-3.tar, which requires the ITKNrrdIO.a library. I'm running into this error:



[ 7%] Linking CXX executable ijkmcube
/usr/bin/ld: cannot find -lNrrdIO
collect2: error: ld returned 1 exit status
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube' failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


I've installed NrrdIO 1.11.0, and tried with NrrdIO 1.9.0 as well, but while running
make
I always run into this error, for some reason its not able to find lNrrdIO . Can someone please help?
Thanks



Edit:



I think its a problem with the linking, but when I copied the NrrdIO.a file to /usr/bin and modified the symbolic link to point to it, I got an error as follows:



[ 7%] Linking CXX executable ijkmcube
collect2: fatal error: cannot find 'ld'
compilation terminated.
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube'
failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target '
CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


Can someone help? Thank you



Edit 2



PROJECT(IJKMCUBE)

#---------------------------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF (NOT DEFINED $IJK_DIR)
GET_FILENAME_COMPONENT(IJK_ABSOLUTE_PATH "../.." ABSOLUTE)
SET(IJK_DIR $IJK_ABSOLUTE_PATH CACHE PATH "IJK directory")
ENDIF (NOT DEFINED $IJK_DIR)

SET(CMAKE_INSTALL_PREFIX "$IJK_DIR/")
SET(LIBRARY_OUTPUT_PATH $IJK_DIR/lib CACHE PATH "Library directory")
SET(IJKMCUBE_DIR "src/ijkmcube")
SET(NRRD_LIBDIR "$IJK_DIR/lib")
SET(IJK_ISOTABLE_DIR "$IJK_DIR/isotable" CACHE PATH "Isotable
directory")

#---------------------------------------------------------

IF (NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE Release CACHE STRING
"Default build type: Release" FORCE)
ENDIF (NOT CMAKE_BUILD_TYPE)

INCLUDE_DIRECTORIES("$IJK_DIR/include")
LINK_DIRECTORIES("$NRRD_LIBDIR")
LINK_LIBRARIES(expat NrrdIO z)
ADD_DEFINITIONS(-DIJK_ISOTABLE_DIR="$IJK_ISOTABLE_DIR")

ADD_EXECUTABLE(ijkmcube ijkmcube_main.cxx ijkmcubeIO.cxx ijkmcube.cxx
ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx
ijksnapmc.cxx
ijktable.cxx ijktable_poly.cxx ijktable_ambig.cxx
ijkoctree.cxx ijkxitIO.cxx)

ADD_LIBRARY(ijkmcubeL STATIC EXCLUDE_FROM_ALL ijkmcubeIO.cxx
ijkmcube.cxx ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx ijksnapmc.cxx
ijktable.cxx ijkoctree.cxx ijkxitIO.cxx)
SET_TARGET_PROPERTIES(ijkmcubeL PROPERTIES OUTPUT_NAME ijkmcube)
ADD_CUSTOM_TARGET(lib DEPENDS ijkmcubeL)

SET(CMAKE_INSTALL_PREFIX $IJK_DIR)
INSTALL(TARGETS ijkmcube DESTINATION "bin/linux")

ADD_CUSTOM_TARGET(tar WORKING_DIRECTORY ../.. COMMAND tar cvfh
$IJKMCUBE_DIR/ijkmcube.tar $IJKMCUBE_DIR/README
$IJKMCUBE_DIR/INSTALL $IJKMCUBE_DIR/RELEASE_NOTES
$IJKMCUBE_DIR/*.cxx $IJKMCUBE_DIR/*.h $IJKMCUBE_DIR/*.txx
$IJKMCUBE_DIR/CMakeLists.txt $IJKMCUBE_DIR/man/*
$IJKMCUBE_DIR/ijkmcube_doxygen.config)

ADD_CUSTOM_TARGET(doc COMMAND doxygen ijkmcube_doxygen.config)


SOLVED



Tsyvarev solved it, the libNrrdIO.a file has to be copied to /usr/lib/. Refer to comments for the exact solution










share|improve this question
















I am trying to install NrrdIO on Ubuntu 18.04, to run Marching Cubes to segment medical images. This is the link from which I'm trying to run it.



http://web.cse.ohio-state.edu/research/graphics/isotable/



I'm trying to install ijkmcube-v0-3-3.tar, which requires the ITKNrrdIO.a library. I'm running into this error:



[ 7%] Linking CXX executable ijkmcube
/usr/bin/ld: cannot find -lNrrdIO
collect2: error: ld returned 1 exit status
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube' failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


I've installed NrrdIO 1.11.0, and tried with NrrdIO 1.9.0 as well, but while running
make
I always run into this error, for some reason its not able to find lNrrdIO . Can someone please help?
Thanks



Edit:



I think its a problem with the linking, but when I copied the NrrdIO.a file to /usr/bin and modified the symbolic link to point to it, I got an error as follows:



[ 7%] Linking CXX executable ijkmcube
collect2: fatal error: cannot find 'ld'
compilation terminated.
CMakeFiles/ijkmcube.dir/build.make:406: recipe for target 'ijkmcube'
failed
make[2]: *** [ijkmcube] Error 1
CMakeFiles/Makefile2:131: recipe for target '
CMakeFiles/ijkmcube.dir/all' failed
make[1]: *** [CMakeFiles/ijkmcube.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2


Can someone help? Thank you



Edit 2



PROJECT(IJKMCUBE)

#---------------------------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF (NOT DEFINED $IJK_DIR)
GET_FILENAME_COMPONENT(IJK_ABSOLUTE_PATH "../.." ABSOLUTE)
SET(IJK_DIR $IJK_ABSOLUTE_PATH CACHE PATH "IJK directory")
ENDIF (NOT DEFINED $IJK_DIR)

SET(CMAKE_INSTALL_PREFIX "$IJK_DIR/")
SET(LIBRARY_OUTPUT_PATH $IJK_DIR/lib CACHE PATH "Library directory")
SET(IJKMCUBE_DIR "src/ijkmcube")
SET(NRRD_LIBDIR "$IJK_DIR/lib")
SET(IJK_ISOTABLE_DIR "$IJK_DIR/isotable" CACHE PATH "Isotable
directory")

#---------------------------------------------------------

IF (NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE Release CACHE STRING
"Default build type: Release" FORCE)
ENDIF (NOT CMAKE_BUILD_TYPE)

INCLUDE_DIRECTORIES("$IJK_DIR/include")
LINK_DIRECTORIES("$NRRD_LIBDIR")
LINK_LIBRARIES(expat NrrdIO z)
ADD_DEFINITIONS(-DIJK_ISOTABLE_DIR="$IJK_ISOTABLE_DIR")

ADD_EXECUTABLE(ijkmcube ijkmcube_main.cxx ijkmcubeIO.cxx ijkmcube.cxx
ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx
ijksnapmc.cxx
ijktable.cxx ijktable_poly.cxx ijktable_ambig.cxx
ijkoctree.cxx ijkxitIO.cxx)

ADD_LIBRARY(ijkmcubeL STATIC EXCLUDE_FROM_ALL ijkmcubeIO.cxx
ijkmcube.cxx ijkmcube_datastruct.cxx ijkmcube_sub.cxx
ijkmcube_extract.cxx ijkmcube_util.cxx ijksnapmc.cxx
ijktable.cxx ijkoctree.cxx ijkxitIO.cxx)
SET_TARGET_PROPERTIES(ijkmcubeL PROPERTIES OUTPUT_NAME ijkmcube)
ADD_CUSTOM_TARGET(lib DEPENDS ijkmcubeL)

SET(CMAKE_INSTALL_PREFIX $IJK_DIR)
INSTALL(TARGETS ijkmcube DESTINATION "bin/linux")

ADD_CUSTOM_TARGET(tar WORKING_DIRECTORY ../.. COMMAND tar cvfh
$IJKMCUBE_DIR/ijkmcube.tar $IJKMCUBE_DIR/README
$IJKMCUBE_DIR/INSTALL $IJKMCUBE_DIR/RELEASE_NOTES
$IJKMCUBE_DIR/*.cxx $IJKMCUBE_DIR/*.h $IJKMCUBE_DIR/*.txx
$IJKMCUBE_DIR/CMakeLists.txt $IJKMCUBE_DIR/man/*
$IJKMCUBE_DIR/ijkmcube_doxygen.config)

ADD_CUSTOM_TARGET(doc COMMAND doxygen ijkmcube_doxygen.config)


SOLVED



Tsyvarev solved it, the libNrrdIO.a file has to be copied to /usr/lib/. Refer to comments for the exact solution







makefile cmake symlink






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 14:49









Tsyvarev

28.3k43465




28.3k43465










asked Mar 5 at 9:21









JihadiJihadi

45




45












  • The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

    – Tsyvarev
    Mar 5 at 9:41












  • Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

    – Jihadi
    Mar 5 at 10:17












  • ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

    – Tsyvarev
    Mar 5 at 12:17











  • The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

    – Jihadi
    Mar 6 at 4:38












  • Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

    – Tsyvarev
    Mar 6 at 8:26

















  • The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

    – Tsyvarev
    Mar 5 at 9:41












  • Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

    – Jihadi
    Mar 5 at 10:17












  • ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

    – Tsyvarev
    Mar 5 at 12:17











  • The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

    – Jihadi
    Mar 6 at 4:38












  • Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

    – Tsyvarev
    Mar 6 at 8:26
















The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

– Tsyvarev
Mar 5 at 9:41






The error is about inability of ld to find your NrrdIO library. What is an absolute path to that library? (You need to have this library installed, so the library file like NrrdIO.a should appear).

– Tsyvarev
Mar 5 at 9:41














Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

– Jihadi
Mar 5 at 10:17






Yes, I'm getting lNrrdIO.a and linking it using sudo ln -sfn /usr/bin/lNrrdIO.a ld. But then I'm getting the second error.

– Jihadi
Mar 5 at 10:17














ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

– Tsyvarev
Mar 5 at 12:17





ld is a linker, and NrrdIO.a is a library. No sence to make one of them to be a link to another. What is the original place of NrrdIO.a file?

– Tsyvarev
Mar 5 at 12:17













The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

– Jihadi
Mar 6 at 4:38






The original place of the NrrdIo.a file is in my Downloads folder, where I ran ccmake ., cmake ., make and make install. I was trying to make ld point to NrrdIO.a, after copying it into /usr/bin/. It shouldn't be that way?

– Jihadi
Mar 6 at 4:38














Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

– Tsyvarev
Mar 6 at 8:26





Directory /usr/bin contains executable files, not libraries. Among standard directories for libraries there is, e.g., /usr/lib one.

– Tsyvarev
Mar 6 at 8:26












1 Answer
1






active

oldest

votes


















0














This answer was given by @Tsyvarev:



By making a link named ld you are removing the original linker (ld). Without the linker you definitely cannot build any library. What you need is to make a link named lNrrdIO.a, so it will point to the actual library location: sudo ln -sfn /home/subham/Downloads/NrrdIO-1.9.0-src/lNrrdIO.a lNrrdIO.a (run this command from /usr/lib directory). And restore original /usr/bin/ld file.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    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%2fstackoverflow.com%2fquestions%2f54999339%2fcannot-find-a-link-library-lnrrdio%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














    This answer was given by @Tsyvarev:



    By making a link named ld you are removing the original linker (ld). Without the linker you definitely cannot build any library. What you need is to make a link named lNrrdIO.a, so it will point to the actual library location: sudo ln -sfn /home/subham/Downloads/NrrdIO-1.9.0-src/lNrrdIO.a lNrrdIO.a (run this command from /usr/lib directory). And restore original /usr/bin/ld file.






    share|improve this answer



























      0














      This answer was given by @Tsyvarev:



      By making a link named ld you are removing the original linker (ld). Without the linker you definitely cannot build any library. What you need is to make a link named lNrrdIO.a, so it will point to the actual library location: sudo ln -sfn /home/subham/Downloads/NrrdIO-1.9.0-src/lNrrdIO.a lNrrdIO.a (run this command from /usr/lib directory). And restore original /usr/bin/ld file.






      share|improve this answer

























        0












        0








        0







        This answer was given by @Tsyvarev:



        By making a link named ld you are removing the original linker (ld). Without the linker you definitely cannot build any library. What you need is to make a link named lNrrdIO.a, so it will point to the actual library location: sudo ln -sfn /home/subham/Downloads/NrrdIO-1.9.0-src/lNrrdIO.a lNrrdIO.a (run this command from /usr/lib directory). And restore original /usr/bin/ld file.






        share|improve this answer













        This answer was given by @Tsyvarev:



        By making a link named ld you are removing the original linker (ld). Without the linker you definitely cannot build any library. What you need is to make a link named lNrrdIO.a, so it will point to the actual library location: sudo ln -sfn /home/subham/Downloads/NrrdIO-1.9.0-src/lNrrdIO.a lNrrdIO.a (run this command from /usr/lib directory). And restore original /usr/bin/ld file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 13 at 9:42









        JihadiJihadi

        45




        45





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • 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%2fstackoverflow.com%2fquestions%2f54999339%2fcannot-find-a-link-library-lnrrdio%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

            Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

            Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

            Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved