For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Sample - Tutorial on Ubuntu

Gary Redden's picture
Forums: 

Does anyone have the tutorial code from the sample/tutorial directory running on linux? I finally learned enough about automake/autoconf to get it to compile, but now I get a lot of undefines for vtable & program-name::staticMetaObject. I think they are related but don't know how to proceed.

Roman Lygin's picture

Gary,
staticMetaObject() is Qt related stuff. Make sure Qt is in your build path, that you have generated moc_*.cpp files and so forth. If you are totally unfamiliar with Qt you might want to read a little bit on it (see doc.trolltech.com).
If there is a .pro file accompanying the sample you rather need to use it to build the project.

Hope this helps a bit.
Roman

---
opencascade.blogspot.com - blog on Open CASCADE

Gary Redden's picture

Thanks for the help. I have the program compiled and linked. But the menus and icons are missing. There is a res file with icons but I have not found out how to tell the program how to find them. I ordered the book "C++ GUI Programming with Qt 4, Second Edition" from the trolltech site.

Matthias Teich's picture

As a quick fix you can just copy the resource file to the folder the *.exe lies in.

Mark's picture

Are you using qmake? IMO, it would be difficult to get autotools to work right with Qt.

Take a look at http://doc.trolltech.com/4.4/qmake-manual.html , and especially the tutorial linked from that page.

When you have a .pro file set up, just run qmake to generate the Makefile, and then make to compile.

HTH
Mark

Gary Redden's picture

I did get the tutorial program to run using qmake, but it has two problems. I found one using gdb debugger. It was a bad .png file used for an icon. But when the program exits there is an error about a double free or corrupted memory.

Dirk B's picture

I sometimes had this kind of error after adding to the Qt project, too. A
make clean, qmake, make
in the project usually solved this.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.