- Posts: 730
- Thank you received: 217
simple linux cam
- HansU
- Offline
- Platinum Member
-
Less
More
4 years 6 months ago - 4 years 6 months ago #240386
by HansU
Replied by HansU on topic simple linux cam
I got a bit stuck when trying to build your code.
It complains about some libs, but I have them, for example:
Can you may give me a hint? I am running Ubuntu 18. Thanks!
It complains about some libs, but I have them, for example:
Code:
-- Up-to-date: /usr/local/lib/libTKXSBase.so.7
-- Up-to-date: /usr/local/lib/libTKXSBase.so
Code:
$ cmake -S . -B build
CMake Error at CMakeLists.txt:7 (include):
include could not find load file:
Interface
CMake Warning at CMakeLists.txt:22 (find_package):
Found package configuration file:
/usr/local/lib/cmake/opencascade/OpenCASCADEConfig.cmake
but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is
considered to be NOT FOUND. Reason given by package:
The following imported targets are referenced, but are missing: TKXSBase
TKSTEPBase TKSTEP TKIGES TKSTL TKVRML TKXCAF TKRWMesh TKXDEIGES TKXDESTEP
TKBinXCAF TKXmlXCAF
CMake Error at src/CMakeLists.txt:5 (include):
include could not find load file:
Interface
CMake Error at src/CMakeLists.txt:61 (use_interface_libraries):
Unknown CMake command "use_interface_libraries".
-- Configuring incomplete, errors occurred!
Last edit: 4 years 6 months ago by HansU.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
4 years 6 months ago #240387
by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,
you'll find Interface.cmake in sample subdirectory. When you open the file, the comment at the beginning tells, what to do.
When the file is found, the rest should work as designed.
Opencascade stil rises some warnings. Just ignore them.
I get similar warnings and i.e. as TKStep is reported as missing, loading of stepfiles works without issue.
Take a look at src/CMakeLists.txt - there's a private include directory for cavaliercontours . That's a header only library, so just change the path the the location where your copy of cavaliercontours is.
you'll find Interface.cmake in sample subdirectory. When you open the file, the comment at the beginning tells, what to do.
When the file is found, the rest should work as designed.
Opencascade stil rises some warnings. Just ignore them.
I get similar warnings and i.e. as TKStep is reported as missing, loading of stepfiles works without issue.
Take a look at src/CMakeLists.txt - there's a private include directory for cavaliercontours . That's a header only library, so just change the path the the location where your copy of cavaliercontours is.
- HansU
- Offline
- Platinum Member
-
Less
More
- Posts: 730
- Thank you received: 217
4 years 6 months ago #241392
by HansU
Replied by HansU on topic simple linux cam
So the first warning can be ignored you mean?
But what is wrong with the others? Some dependencies missing?
But what is wrong with the others? Some dependencies missing?
Code:
$ cmake -S . -B build
CMake Warning at CMakeLists.txt:22 (find_package):
Found package configuration file:
/usr/local/lib/cmake/opencascade/OpenCASCADEConfig.cmake
but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is
considered to be NOT FOUND. Reason given by package:
The following imported targets are referenced, but are missing: TKXSBase
TKSTEPBase TKSTEP TKIGES TKSTL TKVRML TKXCAF TKRWMesh TKXDEIGES TKXDESTEP
TKBinXCAF TKXmlXCAF
processing target: kuteCAM
- add interface lib: IFQt
- add interface lib: IFOpenCASCADE
- add interface lib: IFStandard
-- Configuring done
CMake Error at src/CMakeLists.txt:6 (add_executable):
Target "kuteCAM" links to target "Qt::Gui" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
CMake Error at src/CMakeLists.txt:6 (add_executable):
Target "kuteCAM" links to target "Qt::GuiPrivate" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
...
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
4 years 6 months ago #241427
by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,
I'm no expert. Neither with qt, nor with opencascade - so I can't tell you, what's right.
I only can tell, how things works for me.
I use debian stable and opencascade stuff works with dev-packages from debian as well as self compiled variant from git.
With qt I had lot of starting troubles, especially when I switched to cmake. I have several qt installations of different versions - installed by qt binary installer.
Opencascade has troubles with qt6 so I stayed with qt5 - which actually is 5.12.11 on my system.
I wrote the interface.cmake extension, cause I had troubles to use the qt-toolkit I want.
You should NOT ignore the qt-warnings. I guess you use dev-libs from your linux box. May be you need to install some more qt-libs? Don't know.
When I realized the ease of use of the qt-online installer, I never tried system stuff again.
... by the way: I removed all cavaliercontour stuff from kutecam. So one dependency less
I'm no expert. Neither with qt, nor with opencascade - so I can't tell you, what's right.
I only can tell, how things works for me.
I use debian stable and opencascade stuff works with dev-packages from debian as well as self compiled variant from git.
With qt I had lot of starting troubles, especially when I switched to cmake. I have several qt installations of different versions - installed by qt binary installer.
Opencascade has troubles with qt6 so I stayed with qt5 - which actually is 5.12.11 on my system.
I wrote the interface.cmake extension, cause I had troubles to use the qt-toolkit I want.
You should NOT ignore the qt-warnings. I guess you use dev-libs from your linux box. May be you need to install some more qt-libs? Don't know.
When I realized the ease of use of the qt-online installer, I never tried system stuff again.
... by the way: I removed all cavaliercontour stuff from kutecam. So one dependency less
- MTronics
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 7
4 years 6 months ago #241664
by MTronics
Replied by MTronics on topic simple linux cam
Hello Reinhard,
you are creating a very interesting project. Maybe you want to consider working along FreeCad for a CAD model base on which you add your CAM functionality. FreeCad is getting a bit of momentum and, from my point of view, lacks on the integration of the CAM side, although there is a rudimentary Path (CAM) workbench available.
Greetings
Stefan
you are creating a very interesting project. Maybe you want to consider working along FreeCad for a CAD model base on which you add your CAM functionality. FreeCad is getting a bit of momentum and, from my point of view, lacks on the integration of the CAM side, although there is a rudimentary Path (CAM) workbench available.
Greetings
Stefan
The following user(s) said Thank You: silopolis
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
4 years 6 months ago #241683
by tommylight
Replied by tommylight on topic simple linux cam
I have to agree with Stefan.
The following user(s) said Thank You: MTronics
Time to create page: 0.874 seconds