Problem with building STEPcode

87 views
Skip to first unread message

rass...@student.liu.se

unread,
Oct 15, 2015, 6:40:43 PM10/15/15
to STEPcode - Developers Mailing List
So I have a problem with building STEPcode. I have configured and generated with Cmake without errors. What is the next step? I have opened the project in VS and built INSTALL for some reason.
I tried to run a test program to see if it was done but upon trying to include som header files I get errors, 4 unresolved externals. I think I got the pathing right with the libs and stuff. What am I missing

gkovacsds

unread,
Oct 16, 2015, 3:44:59 AM10/16/15
to STEPcode - Developers Mailing List
For me it worked as this:
- after cmake success, there's a SC.sln file in the build directory
- open in VS, build that, hopefully all projects compile
- for creating my own projects I just copied the necessary resulted lib files somewhere and added them to the projects, added include paths
- for some reason I had to add   sdaiApplication_instance.cc  and  Registry.cc  to the project, otherwise unresolved externals in linker happen

rass...@student.liu.se

unread,
Oct 19, 2015, 3:59:04 AM10/19/15
to STEPcode - Developers Mailing List
Thanks for your reply. Building SC.sln worked. The resulted lib files, are these the lib folder or are they spread out?
how do i know which one is necessary? the files you had to add to the project, sdaiApplication_instance.cc  and  Registry.cc, cannot be found in the build folder but they exist in the folder used for the build. Is this correct or did I mess something up?

gkovacsds

unread,
Oct 28, 2015, 7:29:30 AM10/28/15
to STEPcode - Developers Mailing List
First you should decide which AP you use (203, 214 etc.)
Choose the libs accordingly (libsdai_apXXX... )
They are in build\lib 

stepcore, steputils, stepdai, stepeditor, base libs are always necessary to add I think.

It was a trial and error procedure for me which libs to add... finally the linker ran OK.

Use the .cc files from wherever you find it, if it solves linking.

I guess you should try compiling the included ap203min sample project first, if that works maybe develop your project step-by-step.
Reply all
Reply to author
Forward
0 new messages