$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Verbose make output:
[ 63%] Linking CXX executable ../../../bin/shapeCreator-cl
cd /Users/karlsvec/dev/deps/latticefx/build-64-bit/src/apps/shapeCreator && /Users/karlsvec/Homebrew/Cellar/cmake/3.5.2/bin/cmake -E cmake_link_script CMakeFiles/shapeCreator-cl.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Wall -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/shapeCreator-cl.dir/shapeCreator.cpp.o CMakeFiles/shapeCreator-cl.dir/CreateVolume.cpp.o CMakeFiles/shapeCreator-cl.dir/ShapeVolumes.cpp.o CMakeFiles/shapeCreator-cl.dir/VtkCreator.cpp.o -o ../../../bin/shapeCreator-cl ../../../bin/liblatticefx_core.0.00.01.dylib -llatticefx_core_vtk -framework Foundation /usr/lib/libutil.dylib /Users/karlsvec/Homebrew/lib/libPocoXML.dylib /Users/karlsvec/Homebrew/lib/libPocoJSON.dylib /Users/karlsvec/Homebrew/lib/libPocoFoundation.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_thread.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_date_time.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_filesystem.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_system.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_chrono.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_program_options.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_serialization.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_atomic.dylib /Users/karlsvec/dev/deps/osgWorks/install-64-bit/lib/libosgwTools.3.00.02.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgGA.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgText.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgViewer.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgSim.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgDB.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosgUtil.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libosg.dylib /Users/karlsvec/dev/deps/osg_2.8.5/install-64-bit/lib/libOpenThreads.dylib /Users/karlsvec/dev/deps/crunchstore/install-64-bit/lib/libcrunchstore.0.2.0.dylib -framework OpenGL /Users/karlsvec/Homebrew/lib/libPocoUtil.dylib /Users/karlsvec/Homebrew/lib/libPocoData.dylib /Users/karlsvec/Homebrew/lib/libPocoDataSQLite.dylib /Users/karlsvec/Homebrew/lib/libPocoXML.dylib /Users/karlsvec/Homebrew/lib/libPocoJSON.dylib /Users/karlsvec/Homebrew/lib/libPocoFoundation.dylib /Users/karlsvec/dev/deps/boost_1_59_0/install-64-bit/lib/libboost_system.dylib
ld: library not found for -llatticefx_core_vtk
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/shapeCreator-cl] Error 1
make[1]: *** [src/apps/shapeCreator/CMakeFiles/shapeCreator-cl.dir/all] Error 2
make: *** [all] Error 2
It looks like the build is adding -llattice_core_vtk to the link line without adding the corresponding -L flag for specifying a search path for locating the library.
Verbose
makeoutput:It looks like the build is adding
-llattice_core_vtkto the link line without adding the corresponding-Lflag for specifying a search path for locating the library.