-
Notifications
You must be signed in to change notification settings - Fork 236
Compile errors with boost_1_51_0 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I, too, ran into the very same problem building against Boost 1.50:
The cause is apparently that Boost 1.50 removes the boost::filesystem V2 implementation, meaning that the code in question would need to get rewritten for the V3 API in order for it to work with newer Boost releases. Downgrading Boost from 1.50 to 1.49 worked around the problem for the time being, enabling the build to complete successfully. |
Looks like @rowanj already worked on a patch for this at: rowanj@5d0117d |
The major change is that filesystem3 has only one 'path' type (not wide- or narrow-character variations). Since LucenePlusPlus isolates boost::filesystem interaction in FileUtils, the changes are minor and easy to manage.
When compiling LucenePlusPlus, cmake produces the following errors: Could not find the following Boost libraries:
I've been trying to compile as follows: cmake -Wno-dev -G "Visual Studio 14 2015 Win64" -DBOOST_LIBRARYDIR=c:\tools\boost_1_64_0\stage\lib -DBOOST_INCLUDE_DIR=c:\tools\boost_1_64_0\boost and I've tried setup environment variables, as shown: set BOOST_ROOT=c:\tools\boost_1_64_0 Any help would be appreciated. |
Error listing from VS
Config.h
define BOOST_FILESYSTEM_VERSION 3
1>.\util\FileUtils.cpp(167) : error C2039: 'wdirectory_iterator' : is not a member of 'boost::filesystem'
1>.\util\FileUtils.cpp(207) : error C2039: 'directory_string' : is not a member of 'boost::filesystem::path'
and more...
The text was updated successfully, but these errors were encountered: