Home › Forum › SOFA › Getting Started › [SOLVED] Unable to make Sofa 17.06: No target specified
Tagged: 64_bits, Linux_ubuntu, make-error, SOFA_1706
- This topic has 4 replies, 2 voices, and was last updated 6 years, 10 months ago by Guillaume.
-
AuthorPosts
-
27 February 2018 at 05:51 #10576AbhishekBlocked
I am using Linux Ubuntu 14.04 64 bit and I have followed all the steps of compilation and ran configure twice and generated but I am unable to make. The make file is not generated and an attempt to make gives an error “make: *** No targets specified and no makefile found. Stop.”.
I have used CodeBlocks Ninja and Clang and the .cbp project file is getting dumped in build folder. How to remove this error.
CodeBlocks-Ninja does not produce MakeFile while CodeBlocks:Unix-MakeFiles produces MakeFile but while building it shows following error:
ArgumentParser.cpp:(.text+0x169e): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const’
CMakeFiles/SofaHelper.dir/ArgumentParser.cpp.o:ArgumentParser.cpp:(.text+0x17c2): more undefined references to `boost::program_options::abstract_variables_map::operator[](std::string const&) const’ follow
CMakeFiles/SofaHelper.dir/ArgumentParser.cpp.o: In function `sofa::helper::ArgumentParser::parse()’:
ArgumentParser.cpp:(.text+0x24ee): undefined reference to `boost::program_options::to_internal(std::string const&)’
ArgumentParser.cpp:(.text+0x2656): undefined reference to `boost::program_options::to_internal(std::string const&)’
ArgumentParser.cpp:(.text+0x26ff): undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)’27 February 2018 at 09:46 #10577AbhishekBlocked27 February 2018 at 10:28 #10578GuillaumeKeymasterHi Abhishek,
Generating with “Codeblocks – Ninja” will generate a
build.ninja
file. The mechanism is the same as a Makefile but it is used by another program named ninja. Ninja is not Make. If you want to use ninja build system (better for SOFA build), you shall first install it:sudo apt install ninja-build
. You will then be able to use it like you use make by executingninja
in the build dir.Anyway, even with Ninja you will get the boost error because it seems that you don’t have boost::program_options on your system. Try installing it with
sudo apt install libboost-program-options-dev
. I update the Linux documentation right away πCheers,
Guillaume.27 February 2018 at 11:10 #10579AbhishekBlockedHi Guillaume,
There was a linking issue in CMake and now I am able to build with Ninja as well as Make.
Now, will try to contribute to SOFA.
Cheers,
Abhishek27 February 2018 at 11:14 #10580GuillaumeKeymasterGreat, glad to hear that!
Don’t be shy, any contribution is welcome in SOFA πCheers,
Guillaume. -
AuthorPosts
- You must be logged in to reply to this topic.