ahmetsemihparlak / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 1 forks source link

ocl does not compile due to -Werror #371

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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")

Original issue reported on code.google.com by bernhard...@gmail.com on 10 Mar 2012 at 7:04

GoogleCodeExporter commented 9 years ago
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.

Original comment by anders.e...@gmail.com on 11 Mar 2012 at 10:21

GoogleCodeExporter commented 9 years ago
no, i used the one that was in a subdirectory of heekscnc which I cloned 
yesterday.

Original comment by bernhard...@gmail.com on 11 Mar 2012 at 2:27

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

Original comment by anders.e...@gmail.com on 11 Mar 2012 at 6:08

GoogleCodeExporter commented 9 years ago

Original comment by neomil...@gmail.com on 28 Jun 2014 at 5:09