Syntax Error near unexpected token '(
VTK 7.0.0 built from source after downloading zip causes error after being linked with PCL-1.8, where it appears that a segment of code autogenerated in the cmake build process is not properly quoted and is then interpreted as console commands. I am building with Qt5.7. It would appear that at this point PCL-1.8 has been updated to both support OpenGL2 and VTK7.0.0 so I think this is a VTK issue. Exact Error:
[ 20%] Built target CmakeTest_automoc
[ 40%] Building CXX object CMakeFiles/CmakeTest.dir/main.cpp.o
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/Users/wfehrnstrom/build-CmakeTest-MainKit-Release -I/Users/wfehrnstrom/CmakeTest -iframework /Users/wfehrnstrom/Qt5/5.7/clang_64/lib -isystem /Users/wfehrnstrom/Qt5/5.7/clang_64/lib/QtWidgets.framework/Headers -isystem /Users/wfehrnstrom/Qt5/5.7/clang_64/lib/QtGui.framework/Headers -isystem /Users/wfehrnstrom/Qt5/5.7/clang_64/lib/QtCore.framework/Headers -isystem /Users/wfehrnstrom/Qt5/5.7/clang_64/./mkspecs/macx-clang -isystem /System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/include/vtk-7.0 -I/usr/local/include -O3 -DNDEBUG vtkDomainsChemistry_AUTOINIT=1(vtkDomainsChemistryOpenGL2) vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL2) vtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2) -fPIC -std=gnu++11 -o CMakeFiles/CmakeTest.dir/main.cpp.o -c /Users/wfehrnstrom/CmakeTest/main.cpp'
make[2]: *** [CMakeFiles/CmakeTest.dir/main.cpp.o] Error 2
make[1]: *** [CMakeFiles/CmakeTest.dir/all] Error 2
make: *** [all] Error 2
17:32:49: The process "/usr/local/Cellar/cmake/3.6.1/bin/cmake" exited with code 2.
Error while building/deploying project CmakeTest (kit: MainKit)
When executing step "Make"```