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

Compilation of OCCT 7.4.0 under Kubuntu 20.04 fails: trouble with libfontconfig.so

Artem Plyusnin's picture

Hello,

I would be grateful for any advise on my problem.

Compilation under Kubuntu 20.04 on virtual machine (VMWare player) fails on the very last stages with a message:

<.....>
[100%] Built target TKQADraw
[100%] Linking CXX executable ../../lin64/gcc/bini/DRAWEXE
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libfontconfig.so: undefined reference to `FT_Done_MM_Var'
collect2: error: ld returned 1 exit status
make[2]: *** [src/DRAWEXE/CMakeFiles/DRAWEXE.dir/build.make:101: lin64/gcc/bini/DRAWEXE-7.4.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:3558: src/DRAWEXE/CMakeFiles/DRAWEXE.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Details on installed packages. Standard installation of Kubuntu was used, then I applied all available updates. Then, I installed obligatory prerequisits from sources:

tcl8.6.10, tk8.6.10, freetype-2.5.3

During compilation of OCCT 7.4.0, I installed packages with missing libraries (when I got corresponding errors) from standard repositories:

mesa-common-dev, libglu1-mesa-dev, freeglut3-dev, libfontconfig1-dev, libxmu-dev, libxi-dev

If I remove libfontconfig1-dev and re-invoke "make", the error message is like that:

<.....>
[100%] Built target TKQADraw
[100%] Linking CXX executable ../../lin64/gcc/bini/DRAWEXE
/usr/bin/ld: cannot find -lfontconfig
collect2: error: ld returned 1 exit status
make[2]: *** [src/DRAWEXE/CMakeFiles/DRAWEXE.dir/build.make:101: lin64/gcc/bini/DRAWEXE-7.4.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:3558: src/DRAWEXE/CMakeFiles/DRAWEXE.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Kirill Gavrilov's picture

You are using libfontconfig.so provided with system and depending on newer version of FreeType (supposedly - because you see linkage errors), and provide self-compiled version of FreeType.

On Linux platform it is best practice using system-provided libraries, when they are available - most distrubutions already provide FreeType, Tcl/Tk, FreeImage in their repositories, so that there is no need building them on your own. There are exceptions though - you need some fixes/features in newer versions of referred libraries, or you prepare self-sustained all-include Windows-alike application package.

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.