Mlpack: Error while building mlpack - in visual studio 2019 windows

Created on 16 Feb 2020  路  5Comments  路  Source: mlpack/mlpack

Issue description


I want to build mlpack from source for windows. The error is coming up when i build it.

Your environment

  • version of mlpack: latest
  • operating system: windows
  • compiler: visual studio 2019 latest
  • version of dependencies (Boost/Armadillo): latest x64
  • any other environment information you think is relevant:

Steps to reproduce

Expected behavior

Actual behavior

Error in VS Windows:
"LINK2005 "public: __cdecl boost::program_options::error_with_option_name::error_with_option_name(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &,int)" (??0error_with_option_name@program_options@boost@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H@Z) already defined in boost_program_options-vc140-mt-gd.lib(boost_program_options-vc142-mt-gd-x64-1_72.dll) mlpack_adaboost C:\mlpack\mlpack\src\mlpack\methods\adaboost\libboost_program_options-vc142-mt-gd-x64-1_71.lib(value_semantic.obj) 1
"

build system stale bug report

All 5 comments

Hmm, I think that this is similar to what @himanshupathak21061998 is fighting with for the Conda mlpack build in https://github.com/conda-forge/mlpack-feedstock/pull/18. I have two ideas, but I'm not sure how well either will work...

  • Could you try building with a version of Boost older than 1.70? e.g. Boost 1.69 would be fine, or older too
  • What happens if, when configuring with CMake, you set the variable Boost_NO_BOOST_CMAKE to 1 and then rebuild? Does it link properly then?

@rcurtin May be Boost_NO_BOOST_CMAKE would not work. @joeljosephjin I think you should try different version of Boost.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! :+1:

@rcurtin I think we should keep this open once I found a workaround for this we will close it.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bisakhmondal picture bisakhmondal  路  3Comments

mrityunjay-tripathi picture mrityunjay-tripathi  路  6Comments

KimSangYeon-DGU picture KimSangYeon-DGU  路  3Comments

mirraaj picture mirraaj  路  3Comments

u8sand picture u8sand  路  6Comments