Skip to content
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

VTK6 polluting PCL_DEFINITIONS with unquoted parentheses #951

Closed
hobu opened this issue Oct 9, 2014 · 4 comments
Closed

VTK6 polluting PCL_DEFINITIONS with unquoted parentheses #951

hobu opened this issue Oct 9, 2014 · 4 comments

Comments

@hobu
Copy link

hobu commented Oct 9, 2014

As described in #218 (comment) VTK6's macros that are inserted from PCLConfig.cmake in PCL_DEFINITIONS have unquoted ('s in them that need quotes around them to successfully compile.

When using PCL_DEFINITIONS from other projects, we then end up with compilation errors:

/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `cd /Users/hobu/dev/git/pdal/src && /usr/bin/c++   -DDISABLE_OPENNI -DDISABLE_PCAP -DDISABLE_PNG -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DFLANN_STATIC -DHAVE_HDF5=1 -DHAVE_HEXER=1 -DHAVE_P2G=1 -DHAVE_PYTHON=1 -D_REENTRANT -D__POSIX -Dpdalcpp_EXPORTS -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)" -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++11  -O2 -g -DNDEBUG -fPIC -I/Users/hobu/dev/git/pdal/include -I/Users/hobu/dev/git/pdal/src/../include -I/usr/local/include -I/usr/local/include/vtk-6.1 -I/usr/include/libxml2 -isystem /usr/include/python2.7 -I/Users/hobu/dev/git/pcl/installed/include/pcl-1.7 -I/usr/local/Cellar/eigen/3.2.2/include/eigen3 -I/usr/local/Cellar/flann/1.8.4/include -I/usr/local/opt/sqlite/include -I/usr/local/include/nitro/c++ -I/usr/local/include/nitro/c -I/Users/hobu/oracle/sdk/include -isystem /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include    vtkRenderingCore_AUTOINIT=4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) vtkRenderingFreeType_AUTOINIT=1(vtkRenderingFreeTypeFontConfig) vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL) -fvisibility-inlines-hidden -o CMakeFiles/pdalcpp.dir/Bounds.cpp.o -c /Users/hobu/dev/git/pdal/src/Bounds.cpp'
@taketwo
Copy link
Member

taketwo commented Oct 11, 2014

Any suggestions regarding a possible fix for this problem?

@hobu
Copy link
Author

hobu commented Oct 13, 2014

It's probably VTK6's cmake configuration problem, but I don't know for sure. It's really hard to track down how they are inserted...

@stale
Copy link

stale bot commented May 19, 2020

Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.

@stale stale bot added the status: stale label May 19, 2020
@kunaltyagi
Copy link
Member

Issue seems to be resolved as per the tutorial CI. If it persists, please reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants