Issue 371 in heekscad: ocl does not compile due to -Werror

34 views
Skip to first unread message

codesite...@google.com

unread,
Mar 10, 2012, 2:04:58 PM3/10/12
to heeksca...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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")

codesite...@google.com

unread,
Mar 11, 2012, 6:21:53 AM3/11/12
to heeksca...@googlegroups.com

Comment #1 on issue 371 by anders.e...@gmail.com: ocl does not compile due
to -Werror
http://code.google.com/p/heekscad/issues/detail?id=371

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.

codesite...@google.com

unread,
Mar 11, 2012, 10:27:49 AM3/11/12
to heeksca...@googlegroups.com

Comment #2 on issue 371 by bernhard...@gmail.com: ocl does not compile due
to -Werror
http://code.google.com/p/heekscad/issues/detail?id=371

no, i used the one that was in a subdirectory of heekscnc which I cloned
yesterday.

codesite...@google.com

unread,
Mar 11, 2012, 2:09:48 PM3/11/12
to heeksca...@googlegroups.com

Comment #3 on issue 371 by anders.e...@gmail.com: ocl does not compile due
to -Werror
http://code.google.com/p/heekscad/issues/detail?id=371

For Ubuntu you can also install opencamlib from this PPA
https://launchpad.net/~anders-e-e-wallin/+archive/cam


Reply all
Reply to author
Forward
0 new messages