Skip to content

Question how to compile #5

Description

@nfette

Greetings. I am learning about step code and this looks like a fun project to try out. I am learning to debug as I try to compile.

This is what I've done so far.... Check all the dependencies for stepcode and install Qt4. Then ...

$> mkdir project && cd project
$> git clone [...]stepcode
$> git clone [...]scview
$> cd SCView
$> # edit the CMakeLists.txt
$> # insert textView/ before the files that have moved into that folder
$> mkdir build && cd build
$> cmake .. -DSTEPCODE_ROOT_DIR=./../../stepcode
$> make -j 6
...
[ 80%] Generating expressg/moc_ExpressGScene.cxx
make[2]: *** No rule to make target `../EntityTypeList.h', needed by `moc_EntityTypeList.cxx'.  Stop.

Okay, after some playing it looks like, due to some reorganization, compiling requires only minor changes in CMakeLists.txt.

$> # cd .. && edit CMakeLists.txt
$> # delete "EntityTypeList.h" from MOC_HDRS
$> # repeat from mkdir build
CMakeFiles/SCView_AP214E3_2010.dir/SchemaTree.cpp.o: In function `SchemaTree::findSelection()':
/home/nfette/qt/SCView/SchemaTree.cpp:110: undefined reference to `SchemaTree::selectedDescriptorChanged(TypeDescriptor const*)'
CMakeFiles/SCView_AP214E3_2010.dir/MainWindow.cpp.o: In function `MainWindow::MainWindow(QWidget*)':
/home/nfette/qt/SCView/MainWindow.cpp:43: undefined reference to `SchemaTreeDockWidget::SchemaTreeDockWidget(SchemaTree*, QWidget*)'
$> # cd .. and edit CMakeLists.txt to insert SchemaTree.h SchemaTreeDockWidget.h into MOC_HDRS, as well as SchemaTreeDockWidget.h and .cpp into HDRS and SRCS.
$> # repeat from mkdir build

Now it compiles. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions