New issue 371 by bernhard...@gmail.com: ocl does not compile due to -Werror
http://code.google.com/p/heekscad/issues/detail?id=371
What steps will reproduce the problem?
1. on ubuntu 10.04 lts distributed by emc, the compilation of the
distributed opencamlib fails, since warnings are treated as errors.
this can be fixed by adding comments to Cmakelist.txt:
if (CMAKE_BUILD_TOOL MATCHES "make")
#MESSAGE(STATUS "setting gcc options: -Wall -Werror -Wno-deprecated
-pedantic-errors")
#add_definitions(-Wall -Wno-deprecated -Werror -pedantic-errors)
endif (CMAKE_BUILD_TOOL MATCHES "make")
Are you using the latest opencamlib from github?
https://github.com/aewallin/opencamlib
If you look in the cmake files I tried to fix this by detecting the GCC
version.
For GCC 4.6 and above we used -Werror, and for older versions we do not.
no, i used the one that was in a subdirectory of heekscnc which I cloned
yesterday.
For Ubuntu you can also install opencamlib from this PPA
https://launchpad.net/~anders-e-e-wallin/+archive/cam