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

error building the tk8.6.1 from sources

Salvatore Vitale's picture

Dear all,
I am trying to install openCAscade on Ubuntu 12.04 building from sources. When I try to build tk from source it gave me this error pasted below.

Please help!!

gcc -O2 -pipe -fvisibility=hidden -m64 -Wl,--export-dynamic tkAppInit.o -L/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix -ltk8.6 \
-L/home/salvovitale/programs/occ/thirdParts/install/lib -ltcl8.6 -lpthread -lXft -lX11 -ldl -lz -lpthread -lieee -lm -Wl,-rpath,/home/salvovitale/programs/occ/thirdParts/install/lib -o wish
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcFontRenderPrepare'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddMatrix'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcCharSetHasChar'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcCharSetDestroy'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternDestroy'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcFontSetDestroy'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetString'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetDouble'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetInteger'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcConfigSubstitute'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcFontSort'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetCharSet'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcCharSetCopy'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternCreate'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddString'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddDouble'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddInteger'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddBool'
/home/salvovitale/programs/occ/thirdParts/tk8.6.1/unix/libtk8.6.so: error: undefined reference to 'FcUtf8ToUcs4'
collect2: ld returned 1 exit status
make: *** [wish] Error 1

Laszlo Kudela's picture

Hello Salvatore,

I am not sure, but maybe you are missing the libfontconfig package. Try to install it with apt-get.

Salvatore Vitale's picture

Dear,

thank you for replying actually i solved the issue above istalling the tcl and tk from binaries. But now I have another issue. When I tried to generate the Makefile to compile openCascade, using the command configure

./configure --enable-gcc --enable-shared --enable-threads --with-tcl=$TCL_LIB_DIR --prefix=$TK_INSTALL_DIR -enable-64bit

I received this answer

3rdparty mandatory products
---------------------------------
freetype : no (freetype requires OpenGL support)
tcltk : yes

3rdparty optional products
---------------------------------
gl2ps : no (--with-gl2ps=DIR option was not defined)
freeimage : no (--with-freeimage=DIR option was not defined)
tbb includes : no (--with-tbb-include=DIR option was not defined)
tbb libraries : no (--with-tbb-library=DIR option was not defined)
opencl : no
qt : no (--with-qt=DIR option was not defined)

Component Build
-------------------------- -----
FoundationClasses yes
ModelingData yes
ModelingAlgorithms yes
Visualization no (X11 not found)
ApplicationFramework no (Visualization component disabled)
DataExchange no (ApplicationFramework component disabled)
Draw no (DataExchange component disabled)

So my questions are

1) If the freetype is labelled with no occ doesn't work isn't it?

2) Why 4 of the 7 components are not set to be build?

3) Do you suggest to me to install also some of the 3rdpart optional products? If yes which one?

Thanks

Salvatore Vitale's picture

I got it installed....

thanks