dnevels / heekscnc

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

Error compiling heekscnc #367

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I was having some issue with boost-1.58 
(https://code.google.com/p/heekscad/issues/detail?id=405), hence I'm 
recompiling from source (last checked out 22nd Dec 2014) but I got error which 
I didn't get before

heekscnc/src/HeeksCNC.cpp:1402:46: error: operands to ?: have different types 
‘wchar_t*’ and ‘wxString’
  filename = (wxGetenv(wxT("XDG_CONFIG_HOME"))?wxGetenv(wxT("XDG_CONFIG_HOME")):wxFileName::GetHomeDir() + wxT("/.config")) + wxT("/heekscnc/") + resource;
                                              ^
src/CMakeFiles/heekscnc.dir/build.make:238: recipe for target 
'src/CMakeFiles/heekscnc.dir/HeeksCNC.cpp.o' failed

I then decided to get the latest code and compile, now getting this:

[ 12%] Building CXX object src/CMakeFiles/heekscnc.dir/HeeksCNC.cpp.o
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp: In function ‘void 
OpenNcFileMenuCallback(wxCommandEvent&)’:
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp:505:15: error: ‘class 
CHeeksCADInterface’ has no member named ‘GetProjectFileName’
  if(heeksCAD->GetProjectFileName().IsOk()) // Project have already been opened/saved from/to a file
               ^
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp:508:26: error: ‘class 
CHeeksCADInterface’ has no member named ‘GetProjectFileName’
   defaultDir = heeksCAD->GetProjectFileName().GetPath();
                          ^
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp: In function ‘void 
SaveNcFileMenuCallback(wxCommandEvent&)’:
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp:545:15: error: ‘class 
CHeeksCADInterface’ has no member named ‘GetProjectFileName’
  if(heeksCAD->GetProjectFileName().IsOk()) // Project have already been opened/saved from/to a file
               ^
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp:548:26: error: ‘class 
CHeeksCADInterface’ has no member named ‘GetProjectFileName’
   defaultDir = heeksCAD->GetProjectFileName().GetPath();
                          ^
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp: In member function ‘void 
CHeeksCNCApp::OnStartUp(CHeeksCADInterface*, const wxString&)’:
/home/faulty/build/heeks/heekscnc/src/HeeksCNC.cpp:1067:22: warning: unused 
variable ‘os_id’ [-Wunused-variable]
  wxOperatingSystemId os_id = wxGetOsVersion();
                      ^
src/CMakeFiles/heekscnc.dir/build.make:238: recipe for target 
'src/CMakeFiles/heekscnc.dir/HeeksCNC.cpp.o' failed
make[2]: *** [src/CMakeFiles/heekscnc.dir/HeeksCNC.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'src/CMakeFiles/heekscnc.dir/all' 
failed
make[1]: *** [src/CMakeFiles/heekscnc.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

Original issue reported on code.google.com by faulty....@gmail.com on 7 May 2015 at 12:37

GoogleCodeExporter commented 8 years ago
Sorry, I forgot to "sudo make install" after compiling heekscad. Now it's 
compiling successfully.

Please close this issue :)

Original comment by faulty....@gmail.com on 8 May 2015 at 7:16

GoogleCodeExporter commented 8 years ago

Original comment by danhe...@gmail.com on 8 May 2015 at 8:12