Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question how to compile #5

Open
nfette opened this issue Jul 21, 2013 · 2 comments
Open

Question how to compile #5

nfette opened this issue Jul 21, 2013 · 2 comments

Comments

@nfette
Copy link

nfette commented Jul 21, 2013

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.

@rickytan
Copy link

rickytan commented Nov 1, 2013

The same issue with me, now it works ! Thanks !

@easyw
Copy link

easyw commented Mar 24, 2016

Hi,
would you mind to help me in building QT to build SCView?
I'm on win64b, using msys2 64b
I'm getting this error
$ cmake .. -G "MSYS Makefiles" -DSTEPCODE_ROOT_DIR=./../../stepcode
CMake Error at C:/kicad-wb-1602/msys64/mingw64/share/cmake-3.4/Modules/FindQt4.cmake:1326 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:28 (find_package)
or may be how to use a prebuilt package as the one at
https://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/Qt-Builds/
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants