Hi,

I'm referring to the
https://github.com/apache/parquet-cpp/blob/master/ci/travis_script_static.sh
and try to build static library,

My cmake cmdline looks like:
```
cmake3 -DCMAKE_BUILD_TYPE=Release -DPARQUET_BUILD_EXAMPLES=OFF
-DPARQUET_BUILD_TESTS=OFF  -DPARQUET_ARROW_LINKAGE="static"
 -DPARQUET_BUILD_SHARED=OFF -DPARQUET_BOOST_USE_SHARED=OFF  .
```

However, the compilation failed with:
```
[ 90%] Linking CXX executable ../build/release/parquet-scan
../build/release/libarrow.a(file.cc.o): In function
`arrow::io::FileOutputStream::Open(std::string const&, bool,
std::shared_ptr<arrow::io::FileOutputStream>*)':
file.cc:(.text+0x2f1f): undefined reference to
`boost::filesystem::path::codecvt()'
../build/release/libarrow.a(file.cc.o): In function
`arrow::io::ReadableFile::Open(std::string const&, arrow::MemoryPool*,
std::shared_ptr<arrow::io::ReadableFile>*)':
file.cc:(.text+0x33d0): undefined reference to
`boost::filesystem::path::codecvt()'
../build/release/libarrow.a(file.cc.o): In function
`arrow::io::ReadableFile::Open(std::string const&,
std::shared_ptr<arrow::io::ReadableFile>*)':
file.cc:(.text+0x3865): undefined reference to
`boost::filesystem::path::codecvt()'
../build/release/libarrow.a(file.cc.o): In function
`arrow::io::MemoryMappedFile::MemoryMap::Open(std::string const&,
arrow::io::FileMode::type)':
file.cc:(.text._ZN5arrow2io16MemoryMappedFile9MemoryMap4OpenERKSsNS0_8FileMode4typeE[_ZN5arrow2io16MemoryMappedFile9MemoryMap4OpenERKSsNS0_8FileMode4typeE]+0xba):
undefined reference to `boost::filesystem::path::codecvt()'
file.cc:(.text._ZN5arrow2io16MemoryMappedFile9MemoryMap4OpenERKSsNS0_8FileMode4typeE[_ZN5arrow2io16MemoryMappedFile9MemoryMap4OpenERKSsNS0_8FileMode4typeE]+0x186):
undefined reference to `boost::filesystem::path::codecvt()'
collect2: error: ld returned 1 exit status
```

Any idea where I did wrong?

Thanks,
-- 
Alex Wang,
Open vSwitch developer

Reply via email to