sccn / lsl_archived

Multi-modal time-synched data transmission over local network
242 stars 134 forks source link

BrainVisionRDA: compilation error (CMake on Windows) #366

Closed OscarBedford closed 4 years ago

OscarBedford commented 4 years ago

We are trying to install labstreaming layer and enable specific apps following the guidelines in:

https://github.com/sccn/labstreaminglayer/wiki/INSTALL

It seems to configure correctly using:

cmake C:\labstreaminglayer -G "Visual Studio 15 2017 Win64" -DLSL_LSLBOOST_PATH=C:\labstreaminglayer\LSL\liblsl\lslboost -DQt5_DIR=C:\Qt\5.12.3\msvc2017_64\lib\cmake\Qt5 -DBOOST_ROOT=C:\boost_1_67_0\stage\lib -DLSLAPPS_LabRecorder=ON -DLSLAPPS_XDFBrowser=ON -DLSLAPPS_Examples=ON -DLSLAPPS_Benchmarks=ON -DLSLAPPS_BestPracticesGUI=ON -DLSLAPPS_BrainVisionRDA=ON -DBoost_INCLUDE_DIR=C:\boost_1_67_0

We then run this specific command to install the previously enabled apps:

cmake --build C:\labstreaminglayer\build --config Release --target C:\labstreaminglayer\build\install

Although Labrecorder installs properly, the following error results when it tries to build BrainVisionRDA:

C:\labstreaminglayer\Apps\BrainProducts\BrainVisionRDA\mainwindow.cpp(194): error C2679: binary '=': no operator found which takes a right-hand operand of type 'boost::asio::ip::tcp::endpoint' (or the re is no acceptable conversion) [C:\labstreaminglayer\build\Apps\BrainProducts\BrainVisionRDA\BrainVisionRDA.vcxproj] C:\boost_1_67_0\boost/asio/ip/basic_resolver_iterator.hpp(103): note: could be 'boost::asio::ip::basic_resolver_iterator &boost::asio::ip::basic_resolver_iterator ::operator =(boost::asio::ip::basic_resolver_iterator &&)' with [ InternetProtocol=boost::asio::ip::tcp ] C:\boost_1_67_0\boost/asio/ip/basic_resolver_iterator.hpp(94): note: or 'boost::asio::ip::basic_resolver_iterator &boost::asio::ip::basic_resolver_iterator: :operator =(const boost::asio::ip::basic_resolver_iterator &)' with [ InternetProtocol=boost::asio::ip::tcp ] C:\labstreaminglayer\Apps\BrainProducts\BrainVisionRDA\mainwindow.cpp(194): note: while trying to match the argument list '(boost::asio::ip::basic_resolver_iterator, boost::asio::i p::tcp::endpoint)' with [ InternetProtocol=boost::asio::ip::tcp ]

cboulay commented 4 years ago

Hi, a few things.

dmedine commented 4 years ago

Yes. Chad is correct. Please post issues to the contemporary issues page.

In the meantime, you can download a fresh (windows) release of the RDA connector here: https://github.com/brain-products/LSL-BrainVisionRDA/releases

On Tue, Jan 21, 2020 at 6:53 PM OscarBedford notifications@github.com wrote:

We are trying to install labstreaming layer and enable specific apps following the guidelines in:

https://github.com/sccn/labstreaminglayer/wiki/INSTALL

It seems to configure correctly using:

cmake C:\labstreaminglayer -G "Visual Studio 15 2017 Win64" -DLSL_LSLBOOST_PATH=C:\labstreaminglayer\LSL\liblsl\lslboost -DQt5_DIR=C:\Qt\5.12.3\msvc2017_64\lib\cmake\Qt5 -DBOOST_ROOT=C:\boost_1_67_0\stage\lib -DLSLAPPS_LabRecorder=ON -DLSLAPPS_XDFBrowser=ON -DLSLAPPS_Examples=ON -DLSLAPPS_Benchmarks=ON -DLSLAPPS_BestPracticesGUI=ON -DLSLAPPS_BrainVisionRDA=ON -DBoost_INCLUDE_DIR=C:\boost_1_67_0

We then run this specific command to install the previously enabled apps:

cmake --build C:\labstreaminglayer\build --config Release --target C:\labstreaminglayer\build\install

Although Labrecorder installs properly, the following error results when it tries to build BrainVisionRDA:

C:\labstreaminglayer\Apps\BrainProducts\BrainVisionRDA\mainwindow.cpp(194): error C2679: binary '=': no operator found which takes a right-hand operand of type 'boost::asio::ip::tcp::endpoint' (or the re is no acceptable conversion) [C:\labstreaminglayer\build\Apps\BrainProducts\BrainVisionRDA\BrainVisionRDA.vcxproj] C:\boost_1_67_0\boost/asio/ip/basic_resolver_iterator.hpp(103): note: could be 'boost::asio::ip::basic_resolver_iterator &boost::asio::ip::basic_resolver_iterator ::operator =(boost::asio::ip::basic_resolver_iterator &&)' with [ InternetProtocol=boost::asio::ip::tcp ] C:\boost_1_67_0\boost/asio/ip/basic_resolver_iterator.hpp(94): note: or 'boost::asio::ip::basic_resolver_iterator &boost::asio::ip::basic_resolver_iterator: :operator =(const boost::asio::ip::basic_resolver_iterator &)' with [ InternetProtocol=boost::asio::ip::tcp ] C:\labstreaminglayer\Apps\BrainProducts\BrainVisionRDA\mainwindow.cpp(194): note: while trying to match the argument list '(boost::asio::ip::basic_resolver_iterator, boost::asio::i p::tcp::endpoint)' with [ InternetProtocol=boost::asio::ip::tcp ]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/lsl_archived/issues/366?email_source=notifications&email_token=AA3SD3SPM32FURFCO3LTRPTQ64ZCXA5CNFSM4KJXSSOKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHWU7BA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3SD3TIKO53DNBAHJ2STGLQ64ZCXANCNFSM4KJXSSOA .