OpenCamLib compile on Linux

Having trouble installing or compiling FreeCAD? Get help here.
geant
Posts: 38
Joined: Mon Mar 30, 2015 11:54 pm

OpenCamLib compile on Linux

Postby geant » Mon Oct 17, 2016 11:17 am

Can someone assist me compiling OCL on ubuntu linux 15.10.
Has anyone out there attempted/completed this compile and can verify it works?
Presently, error message are telling me it cant find python llibs.
I guess this is a system_path/configuration issue; I not familiar enough with linux/ubuntu and compiling thereon.

Code: Select all

-- C++ compiler version: 5.2.1 [/usr/bin/c++]
CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.2/Modules/FindPythonLibs.cmake:206 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:32 (find_package)
I tried to set the path, but its PERSISTANCE fails me from boot to boot and never seems to take hold.
User avatar
sliptonic
Posts: 2083
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: OpenCamLib compile on Linux

Postby sliptonic » Mon Oct 17, 2016 3:35 pm

Since opencamlib isn't really part of FreeCAD, it's hard to do support here. You could try posting an issue to the github repo.

I'll tell you that I've been building opencamlib on mint and ubuntu since at least 10.04 and haven't had a problem. I follow the build instructions as described in the readme and it has always just worked. YMMV.

Sorry. I wish I could be more helpful.
User avatar
sgrogan
Posts: 6217
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib compile on Linux

Postby sgrogan » Mon Oct 17, 2016 9:28 pm

geant wrote:Can someone assist me compiling OCL on ubuntu linux 15.10.
Hello geant,
Are you compiling FreeCAD yourself. The PPA hasn't been able to support Yakketyf or quite some time due to some linking errors. Or are you using the last successful PPA build. I ask because the ocl Cmake error indicates you don't have the python-devel package installed on your system. If you don't have this package FreeCAD wouldn't compile either. This package isn't needed to run FreeCAD from the PPA only to compile.

I just compiled ocl on trusty(with no issues). But I regularly compile FreeCAD so I know I have all the necessary devel libraries properly installed.
"fight the good fight"
geant
Posts: 38
Joined: Mon Mar 30, 2015 11:54 pm

Re: OpenCamLib compile on Linux

Postby geant » Mon Oct 17, 2016 9:56 pm

I have co-installed .16 and FreeCad Daily from i believe PPA.

I am trying to complile opencamlib-master from git hub.

I thought 15.10 was wiley...

How do I check for python-dev package

Code: Select all

~/ocl2/opencamlib-master$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
KeyboardInterrupt
>>> 
User avatar
sgrogan
Posts: 6217
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib compile on Linux

Postby sgrogan » Mon Oct 17, 2016 10:06 pm

geant wrote:I have co-installed .16 and FreeCad Daily from i believe PPA.
OK. FreeCAD only installs the necessary runtime versions of the library from the PPA, to compile ocl you need the devel versions for some of these libs.

Code: Select all

sudo apt-get install python-devel
sudo apt-get install libboost-all-dev
then

Code: Select all

git clone https://github.com/aewallin/opencamlib.git
cd opencamlib
mkdir oclbuild
cd oclbuild
cmake ..
make
We haven't installed yet so post your results.
"fight the good fight"
geant
Posts: 38
Joined: Mon Mar 30, 2015 11:54 pm

Re: OpenCamLib compile on Linux

Postby geant » Mon Oct 17, 2016 10:21 pm

Cant find python-devel.

Is spelling correct or does it req a version?

What is the diff between python-dev?

python2.7-dev???
User avatar
sgrogan
Posts: 6217
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib compile on Linux

Postby sgrogan » Mon Oct 17, 2016 10:31 pm

geant wrote:Is spelling correct or does it req a version?
Sorry cut and paste error from the Fedora dependencies. You need this package http://packages.ubuntu.com/yakkety/python-dev
"fight the good fight"
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: OpenCamLib compile on Linux

Postby NormandC » Tue Oct 18, 2016 1:11 am

sgrogan wrote:The PPA hasn't been able to support Yakketyf or quite some time due to some linking errors.
geant wrote:I thought 15.10 was wiley...
geant is right, yakkety is 16.10, wiley is 15.10. I'm guessing sgrogan thought you were using the newly released 16.10.

Did you know that 15.10 stopped being maintained on July 28th, 2016? It's been almost 4 months! You should be aware that you are no longer receiving security updates for your operating system. The current FreeCAD Daily PPA may still be supporting 15.10, but that will end sooner or later. At some point the Launchpad system will disable builds for wiley.

If you are unwilling to stay up-to-date with regular versions (they are only maintained for 9 months) then you should stick with Long Term Support (LTS) releases which are supported for 5 years. The latest one is 16.04.
geant
Posts: 38
Joined: Mon Mar 30, 2015 11:54 pm

Re: OpenCamLib compile on Linux

Postby geant » Tue Oct 18, 2016 3:16 am

"Evacuation Complete"; -- Oh I meant "Compile Complete"
sgrogan wrote:We haven't installed yet so post your results.
What is next step?

Migrating to new version once I have this working.
User avatar
sgrogan
Posts: 6217
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib compile on Linux

Postby sgrogan » Tue Oct 18, 2016 11:31 am

NormandC wrote:I'm guessing sgrogan thought you were using the newly released 16.10.
Time for stronger glasses.
geant wrote:What is next step?
You have 2 choices:
1.

Code: Select all

sudo make install
2. Use checkinstall
I suggest 2, but you should read the wiki and decide. It works well for me on Trusty
"fight the good fight"