mp3guy / Logger1

Tool for logging RGB-D data from the Microsoft Kinect and ASUS Xtion Pro Live
BSD 2-Clause "Simplified" License
11 stars 13 forks source link

usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" #9

Open neopostmodern opened 7 years ago

neopostmodern commented 7 years ago
$ uname -a
> Linux [...] 4.10.0-32-generic #36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -d
> Description:  Ubuntu 17.04

Doing

git clone https://github.com/mp3guy/Logger1.git
cd Logger1
mkdir build
cmake ../src

yields

-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.7") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   thread
--   chrono
--   system
--   date_time
--   atomic
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   date_time
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.21
-- Found OpenNI: /usr/lib/libOpenNI.so  
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Configuring done
-- Generating done
-- Build files have been written to: /[...]/Logger1/build

and then

make

yields

[  5%] Generating moc_main.cxx
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
CMakeFiles/Logger.dir/build.make:62: recipe for target 'moc_main.cxx' failed
make[2]: *** [moc_main.cxx] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Logger.dir/all' failed
make[1]: *** [CMakeFiles/Logger.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
ambeloe commented 4 years ago

https://blog.csdn.net/h321654/article/details/54582341 worked for me