-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile on Ubuntu 10.04 LTS 32 bit #16
Comments
I had compiled and used Heeks on ubuntu 10.xx then kubuntu 11.04 without (much) trouble. Just upgraded to 11.10 and ran into similar problems. On the OCE errors: that is referring to OpenCASCADE. I just added a symlink named FindOCE.cmake that pointed to the corresponding FindOpenCASCADE.cmake and it was happy. There were also differences in naming some files in /usr/lib named xxx.so instead of xxx.so.0 that symlinks also fixed. Am still working on a revised install script. |
So, of course, I just now see sliptonic's post from four days ago, in the 'solved' pile. |
What/where sliptonic post? I was unable to find it. Reinstalling ftgl_dev per aewallin's closed heekscnc issue #15 solved the TK_OpenGL errors, but I still have OCE errors, and the heekscad/heekscad double source issue. I'll add a symlink and try again. |
Issues > Closed Items > #11 about a revised script that installs the OCE version of OpenCASCADE |
Updating to the latest opencamlib still generates the compile errors in simple_weave.cpp |
I'm having exactly the same problem - compile errors in simple_weave.cpp. Everything up to that point appears to work fine (once the necessary prerequisites have been identified and installed). Appreciate any suggestions to get this working! |
I don't have access to my CNC machine right now, but editing opencamlib's cmake config file (.../opencamlib/src/CMakeLists.txt) to remove the -Werror gcc option (treat warnings as errors) will opencamlib compile. Not sure why it's there, since there's a number of possibly uninitialized variable warnings that aren't significant but will abort the make. Maybe it's a gcc version issue. I couldn't get heekscad to generate gcode - it failed but didn't produce any errors - but had to quit when we lost power in a snowstorm. Hope this helps. |
opencamlib now installs, with an warning git is installed (package git-core). It doesn't seem to hurt anything. However, HeeksCNC has disappeared from HeeksCAD. I run the make with a little script that captures the output into a log file:
FWIW, my INSTALL_UBUNTU.sh . No warranties, express or implied, particularly since HeeksCNC is now broken. I don't think anybody's actually tested an install on the version on the EMC install disk, and opencamlib's (c)make needs some work to be compatible. #!/bin/sh INSTALL_UBUNTU.sh -- Downloads, builds and installs HeeksCAD and related projects for ubuntuDIR="$( cd "$( dirname "$0" )" && pwd )" # find out the current directory NUMCPU="$( grep '^processor' /proc/cpuinfo|wc -l)" Install build prerequisitesThe next two lines can be commented out after the initial run.sudo apt-get updatesudo apt-get install -y $BUILDPREREQScd ${BUILDPATH} echo ------- oce cd ${BUILDPATH}/heekscad/heekscnc/oce echo ----- HeeksCAD $MAKEOPT cd ${BUILDPATH}/heekscad/ make package $MAKEOPT #For faster build on multi-core machines, uncomment this line and comment out the next echo ----- HeeksCNC Install HeeksCNCcd ${BUILDPATH}/heekscad/heekscnc/ make package $MAKEOPT #For faster build on multi-core machines, uncomment this line and comment out the next echo ----- libarea Install libareaarea.so is required for pocket operations.#Get the libarea files from the SVN repository, build, and install echo ----- opencamlib Install opencamlibcd ${BUILDPATH}/heekscad/heekscnc/opencamlib/ sudo make $MAKEOPT package #For faster build on multi-core machines, uncomment this line and comment out the next echo ----- DONE |
In opencamlib I have now wrote a very simple cmake script to find out the gcc version In the main cmakelists.txt I then check for gcc 4.6 or newer when setting "-Werror". I could test this in a virtualbox later but please let me know if it works on 10.04 |
I downloaded HeeksCAD into a new directory and rebuilt it, but did not get your changes. Sorry, but I know almost nothing about git, having retired from development 10 years ago (the last source control I really learned was SCCS...), so please advise what to do. As downloaded, it fails in simple_weave, with Werror removed it installs. Thanks! |
Making progress. After removing .heekscad, .HeeksCAD, and .HeeksCNC machining is back in the menu, and HeekCNC in the plugins. Making a simple part generates gcode to cut part of it, but fails with Looking for default data in '/home/kirk' area.so was missing from /usr/lib/heekscnc, but copying it there did not fix the problem. |
On Sun, Nov 13, 2011 at 8:12 AM, Mooselake
The way HeeksCNC is set up now is that one directory in the heekscnc AW |
AW, Thanks for the updated code, I managed to pull it down fine, and a check of ~/heekscad/heekscnc/opencamlib/src/CMakeLists.txt shows the check for GCC_4_6 Unfortunately though, I am still unable to successfully build simple_weave.o. Here is the relevant section of the error log: Any suggestions of what else to try? |
abluesheep, please include your OS version, gcc version, and boost version with your error-report. Does the opencamlib cmake script correctly detect and set the GCC_4_6 variable? are you compiling with or without "-Werror" ? |
I'm using Ubuntu 10.04LTS, kernel version 2.6.32, GCC version 4.3.3 and Boost 1.40. Not sure if GCC_4_6 is correctly detected though. I didn't edit the CMakeLists.txt file, but also didn't try to compile without "-Werror". |
Sorry, my mistake - that was gcc 4.4.3. I'm trying to compile without "-Werror" now... |
AW, it compiles fine now - basically the mistake I made was to update the ~/heekscad/heekscnc/opencamlib directory rather than the version embedded within ~/heekscad/heekscad/heekscnc/opencamlib. Once I pulled the latest changes to that directory, it compiled ok. Thanks for your help! |
The opencam lib Werror changes work here, too. A couple cmake warnings about finding git, which is definitely installed. No FindGit.cmake, either. CMake Warning at /home/kirk/heeks/heekscad/heekscnc/opencamlib/src/version_string.cmake:9 (find_package): Adjust CMAKE_MODULE_PATH to find FindGit.cmake or set Git_DIR to the
CMake Warning at /home/kirk/heeks/heekscad/heekscnc/opencamlib/src/version_string.cmake:23 (message): |
the FindGit.cmake script is probably something that comes with a more recent cmake version. Again this works without problems on my 11.04 and 11.10 Ubuntu systems. |
This is the version on the EMC2 install CD. A rebuild from source is required since only 64 bit binaries are on google code.
INSTALL_UBUNTU.sh creates a complete second copy of the source (/home/kirk/heekscad/heekscad on my system), then fails after several errors. Excerpts from the build:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FTGL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/kirk/heekscad/heekscad/heekscnc/oce/adm/cmake/TKOpenGl
FTGL_LIBRARY (ADVANCED)
linked by target "TKOpenGl" in directory /home/kirk/heekscad/heekscad/heekscnc/oce/adm/cmake/TKOpenGl
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
Lots of these:
CMake Warning at CMakeLists.txt:26 (find_package):
Could not find module FindOCE.cmake or a configuration file for package
OCE.
Adjust CMAKE_MODULE_PATH to find FindOCE.cmake or set OCE_DIR to the
directory containing a CMake configuration file for OCE. The file will
have one of the following names:
Fatal error in OCE:
cc1plus: warnings being treated as errors
/home/kirk/heekscad/heekscad/heekscnc/opencamlib/src/algo/simple_weave.cpp: In member function ‘void ocl::weave::SimpleWeave::add_int_vertex(const ocl::Point&, void_&, void_&, void_&, void_&, ocl::Interval&, ocl::Interval&)’:
/home/kirk/heekscad/heekscad/heekscnc/opencamlib/src/algo/simple_weave.cpp:178: error: ‘ye_ul_prev.boost::detail::edge_desc_impl<boost::bidirectional_tag, void*>::.boost::detail::edge_base<boost::bidirectional_tag, void*>::m_target’ may be used uninitialized in this function
make[2]: *** [algo/CMakeFiles/ocl_algo.dir/simple_weave.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [algo/CMakeFiles/ocl_algo.dir/all] Error 2
make: *** [all] Error 2
dpkg: error processing opencamlib__.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
opencamlib__.deb
..... then the compile quits.
The text was updated successfully, but these errors were encountered: