> Sorry it took so long to reply to your last mail. I have not been able
> to submit the test X3D files since I wanted to test them on the latest
> BRL-CAD revision. I have been unable to compile BRL-CAD on Fedora23,
> so I just tried it on Ubuntu14 and it build successfully but when I
> add the X3D-g patch the build fails with the following errors:

Glad to hear you’re trying to make some progress now.  It’ll be good to have 
that converter finished and integrated with all the progress you worked so hard 
on.

> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libxml2.so:
> undefined reference to `gzopen64@ZLIB_1.2.3.3'
> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libxml2.so:
> undefined reference to `gzdirect@ZLIB_1.2.2.3’

That error is saying it can’t find the gzopen and gzdirect symbols.  Those 
symbols are in libz/zlib.  This is a consequence of using libxml2, which 
apparently uses libz/zlib.

To fix, you need to make the build files to say that libz is needed.  If you 
added libxml2 to src/other, you’ll want to add ${ZLIB_LIBRARY} to a 
target_link_libraries() line libxml’s build.  If you did not add it, you can 
specify it on the BRLCAD_ADDEXEC line in the src/conv/3dm/CMakeLists.txt build 
file for 3dm-g.  It’ll have a line that looks something like (but not exactly 
like) this:

BRLCAD_ADDEXEC(3dm-g 3dm-g.cpp "libgcv;libwdb;libicv;${OPENNURBS_LIBRARY}”)

That would get changed to:

BRLCAD_ADDEXEC(3dm-g 3dm-g.cpp 
"libgcv;libwdb;libicv;${OPENNURBS_LIBRARY};${ZLIB_LIBRARY}”)

Cheers!
Sean


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to