Page 1 of 19

IFC Viewer ifcplusplus

Posted: Sat Dec 07, 2013 5:08 pm
by bernd
EDIT

Find the repository of IfcPlusPlus for Linux at https://github.com/berndhahnebach/ifcplusplus

=====================================================================================================

I put the post here because it is regarding ifc. As I said here (viewtopic.php?f=3&t=4923&p=38642#p38642) I'm gone give information about the ifcplusplus viewer as soon as I know more.

The programmer does not want to use neither gcc and cmake but he had used cmake until 6 month ago. He sent me the cmake files and I have been trying to compile ifcplusplus using these file but it seams to heavy for my knowledge. I'm nearly done just one step. During my research for errorhandling I found something cool today. On github is already a fork which compiles on osx using cmake and gcc. I took this code and only need to insert some includes (https://gitorious.org/ifcplusplus/ifcpl ... a898e50e5e). It compils on linux totally but I get linking errors. My repo is on https://gitorious.org/ifcplusplus/ifcplusplus-sm

[ 99%] Building CXX object IfcPlusPlusViewer/CMakeFiles/IfcPlusPlusViewer.dir/src/ifcplusplusviewer/gui/TabView.cpp.o
[ 99%] Building CXX object IfcPlusPlusViewer/CMakeFiles/IfcPlusPlusViewer.dir/src/ifcplusplusviewer/viewer/CameraMan3D.cpp.o
[100%] Building CXX object IfcPlusPlusViewer/CMakeFiles/IfcPlusPlusViewer.dir/src/ifcplusplusviewer/viewer/ViewerWidget.cpp.o
Linking CXX executable ../Release/IfcPlusPlusViewer
/usr/bin/ld: cannot find -lcarve
collect2: error: ld returned 1 exit status
make[2]: *** [Release/IfcPlusPlusViewer] Fehler 1
make[1]: *** [IfcPlusPlusViewer/CMakeFiles/IfcPlusPlusViewer.dir/all] Fehler 2
make: *** [all] Fehler 2

Does anyone has an idea whats going wrong


By the way https://gitorious.org/ifctesttest/ifctesttest consits of my try to compile the original code from ifcplusplus R13 and

Re: IFC Viewer ifcplusplus

Posted: Sat Dec 07, 2013 8:17 pm
by wmayer
/usr/bin/ld: cannot find -lcarve
What is the library "carve". All the code compiled fine but the linker cannot find a library libcarve.so and thus aborts with an error.

Re: IFC Viewer ifcplusplus

Posted: Sat Dec 07, 2013 8:38 pm
by bernd
wmayer wrote: All the code compiled fine but the linker cannot find a library
That is why I was really happy first and disappointed afterwards.
wmayer wrote:What is the library "carve".
Carve ships with the programm and was kompiled as well. libCarve.so is in th Release dir of the build directory. I do not know

My directory is called Carve and in cmake was written
TARGET_LINK_LIBRARIES(IfcPlusPlusViewer IfcPlusPlus IfcPlusPlusGeometry carve)

Thanks Werner

EDIT still not behind the border line. The programm crashes directly. Does anyone has an idea? I might contact the devoler as well. I even don't know what it is about.

Code: Select all

hugo@weide:~/.../Release$ ./IfcPlusPlusViewer                                                                 
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
IfcPlusPlusViewer: ../../src/xcb_io.c:179: dequeue_pending_request: Zusicherung »!xcb_xlib_unknown_req_in_deq« nicht erfüllt.                                                            
Abgebrochen
hugo@weide:~/.../build/Release$                                                                                                                                                                         

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 2:19 pm
by wmayer
Which repo should I try now? This one? https://git.gitorious.org/ifctesttest/ifctesttest.git

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 2:30 pm
by bernd
wmayer wrote:Which repo should I try now? This one? https://git.gitorious.org/ifctesttest/ifctesttest.git
No, this one https://gitorious.org/ifcplusplus/ifcplusplus-sm In the README is written what I did an what kind of System I have. Sorry I'm new to git, github and gitourious but I get organised soon, hopefully.

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 7:03 pm
by yorik
Wow, cool! I'll have a try too.
basically -lsomething means "link to /path-to-libraries/libsomething.so (or libsomething.so.XX.XX). The path is usually /usr/lib/x86_64-linux-gnu or /usr/lib/i386-linux-gnu if you have a 32bit system)
Now I think linux cannot lik to dll libraries (windows-only), so we should also compile that carve program, and therefore find the sources somewhere... *Edit* Ah, the source is included! cool!

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 7:10 pm
by bernd
@Yorik
The linking error is allready fixed. I get a error at start up now. See the third post in thread. Because I have been playing a lot there are more than one repo. Take this source https://gitorious.org/ifcplusplus/ifcplusplus-sm

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 7:15 pm
by yorik
Ah... should have read better :oops:
Let's try...

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 7:53 pm
by yorik
Ah indeed, runtime error:

Code: Select all

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
IfcPlusPlusViewer: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted
Unfortunately it is mentioned in the README, and apparently the author found no solution...

Re: IFC Viewer ifcplusplus

Posted: Sun Dec 08, 2013 11:00 pm
by bernd
yorik wrote:Unfortunately it is mentioned in the README, and apparently the author found no solution...
That was me, it ist my repository. The original code of the ifcplusplus fork is on github (https://github.com/sylvainmarie/IFCPlusPlus). I took the code from github and had to made a few changes to get it compiled on my linux (debian wheezy) machine.

Bernd