CassieMarie / heekscad

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

error compile heekscnc #360

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd /heekscnc/src
2. make
3. error

What is the expected output? What do you see instead?

cc -c ZigZag.cpp -Wall -fPIC -g -I "./" 
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread 
-I/home/stefan/code/heekscad -D__WXGTK__ -DHEEKSPLUGIN -DHEEKSCNC -DUNICODE 
-DWXUSINGDLL -DTIXML_USE_STL -DHAVE_LIMITS -DHAVE_IOMANIP  
-DOPEN_SOURCE_GEOMETRY -I../kurve/geometry -I../kurve/messages 
-I/usr/include/opencascade -o ZigZag.o
ZigZag.cpp: In member function ‘virtual void 
CZigZag::GetProperties(std::list<Property*>*)’:
ZigZag.cpp:294:32: error: invalid initialization of reference of type ‘const 
std::list<int>&’ from expression of type ‘CZigZag* const’
Reselect.h:35:6: error: in passing argument 2 of ‘void 
AddSolidsProperties(std::list<Property*>*, const std::list<int>&)’
make: *** [ZigZag.o] Error 1

What version of the product are you using? On what operating system?
downloaded code July 26, 2011

Please provide any additional information below.
compiling on ubuntu 11.04, 32-bit

Original issue reported on code.google.com by roman...@gmail.com on 3 Aug 2011 at 5:39

GoogleCodeExporter commented 8 years ago
Please note the message on the front page that this project has moved to 
github.  The code in the svn repo here is stale.

Original comment by shopinth...@gmail.com on 3 Aug 2011 at 12:29

GoogleCodeExporter commented 8 years ago
code i am using is from github

Original comment by roman...@gmail.com on 3 Aug 2011 at 5:01

GoogleCodeExporter commented 8 years ago
Your clue is the second part of the error
"Reselect.h:35:6: error...."

Opening Reselect.h at line 35 shows us that we have two options for 
AddSolidsProperties and Makefile.old is using the wrong one.

Add "-DOP_SKETCHES_AS_CHILDREN" to the active list of CCFLAGS in Makefile.old 
and try again.

Works for me :)

Original comment by caddit....@gmail.com on 15 Aug 2011 at 8:27

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Builds under Linux or more precisely Debian and Ubuntu have been recently 
improved.

You can find all relevant information in 
https://code.google.com/p/heekscad/wiki/HeeksCncUnderUbuntu

Original comment by neomil...@gmail.com on 29 Jun 2014 at 6:36