Tue, 01/24/2017 - 22:05
Forums:
Hi, I am trying to write my own application using OCCT on Ubuntu. How do you guys set up your cmake to compile everything? especially,if I am only interested in the StepProcessor and the Modelling data module. I am trying to use the find_package command in cmake. But I am afraid I am new at this. any tutorial out there?
cheers
Sat, 01/28/2017 - 00:51
Hi Mark,
I cannot answer your question, but am wondering if you have figured out how to extract a subset of OpenCascade that is independent of all graphics package. I am also interested in building an application. In particular, I want a console application.
Thanks,
CC
Tue, 01/31/2017 - 20:39
Hi sorry for the late response,
I currently have this cmake file. It is supposed to only build the module I have specified but unfortunately I get the following error
WARNING: Target "OpenCascadeLearning" requests linking to directory "/usr/local/lib". Targets may link only to libraries. CMake is dropping the item.
Thu, 02/09/2017 - 16:28
Dear Marc,
You should define the full library path (not just the directory) for cmake target_link_libraries to find the library.
You can find proper examples of CMakeLists.txt in OCCT Samples (occt\samples\mfc).
Best regards, FSR