Error "libfreetype" building master with default libraries - Linux Mint

Ok, here is the case, up until yesterday or so everything was working fine, today we’ve updated master and we did the following commands:

make update
make deps

Everything was successful, no errors, not a single problem.

Then after creating a new folder, we created the Cmake-GUI cache as usual, everything ok, no errors.

Then we did “make -j 12”, and after reaching 100% and start linking libraries, suddenly it gave this error:

/home/sara/blender-git/lib/linux_x86_64/freetype/lib/libfreetype.a(smooth.c.o):smooth.c:función gray_convert_glyph_inner: error: referencia sin definir al «FT_Trace_Disable»
/home/sara/blender-git/lib/linux_x86_64/freetype/lib/libfreetype.a(smooth.c.o):smooth.c:función gray_convert_glyph_inner: error: referencia sin definir al «FT_Trace_Enable»
collect2: error: ld returned 1 exit status

The I decided to clean up all the libs folder, regenerated it with make deps again, no errors there, but the build still spits that error.

Then I decided to try to install the deps with “install_deps.sh”, no errors again, everythign was ok, but the build process still spits the same error.

How can I solve this? is there something wrong with libs as of today? Is there someething more I have to update?

Thanks.

Does it work with the libs from svn?

nope, that’s the problem, those are the svn libraries, I tried both ways, make deps and install_deps.sh, no luck.
(If that’s what you mean)

They are not, linux_x86_64 are the libs you build with make deps, the pre-build svn libs live in linux_centos7_x86_64

Mmm ol, how can I retrieve them?

The build wiki has been updated to make the svn libs the primary method of getting the deps. make deps and install_deps.sh are still supported, but it’s recommended you get the libs from svn.

Ah, ok! I’ll check later, thanks!

Hey @LazyDodo with the SVN libraries the problem seems to be much bigger, any ideas?

/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:función OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): error: referencia sin definir al «Imf_2_4::Header::type() const»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:función OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): error: referencia sin definir al «Imf_2_4::Header::type() const»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:función OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): error: referencia sin definir al «Imf_2_4::Header::name() const»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:función OpenImageIO_v1_8::OpenEXROutput::open(std::string const&, int, OpenImageIO_v1_8::ImageSpec const*): error: referencia sin definir al «Imf_2_4::Header::setType(std::string const&)»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:función Imf_2_4::TypedAttributestd::string::typeName() const: error: referencia sin definir al «Imf_2_4::TypedAttributestd::string::staticTypeName()»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:función Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >::typeName() const: error: referencia sin definir al «Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >::staticTypeName()»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttributestd::string: error: referencia sin definir al «Imf_2_4::TypedAttributestd::string::writeValueTo(Imf_2_4::OStream&, int) const»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttributestd::string: error: referencia sin definir al «Imf_2_4::TypedAttributestd::string::readValueFrom(Imf_2_4::IStream&, int, int)»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >: error: referencia sin definir al «Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >::writeValueTo(Imf_2_4::OStream&, int) const»
/home/sara/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >: error: referencia sin definir al «Imf_2_4::TypedAttribute<std::vector<std::string, std::allocatorstd::string > >::readValueFrom(Imf_2_4::IStream&, int, int)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exr_add_channel: error: referencia sin definir al «Imf_2_4::insertViewName(std::string const&, std::vector<std::string, std::allocatorstd::string > const&, int)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exr_channel_rect: error: referencia sin definir al «Imf_2_4::insertViewName(std::string const&, std::vector<std::string, std::allocatorstd::string > const&, int)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exrtile_write_channels: error: referencia sin definir al «Imf_2_4::FrameBuffer::insert(std::string const&, Imf_2_4::Slice const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exr_read_channels: error: referencia sin definir al «Imf_2_4::FrameBuffer::insert(std::string const&, Imf_2_4::Slice const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función imb_exr_get_views: error: referencia sin definir al «Imf_2_4::Header::view() const»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función imb_exr_get_views: error: referencia sin definir al «Imf_2_4::multiView(Imf_2_4::Header const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exrtile_begin_write: error: referencia sin definir al «Imf_2_4::Header::setType(std::string const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exrtile_begin_write: error: referencia sin definir al «Imf_2_4::Header::setView(std::string const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exrtile_begin_write: error: referencia sin definir al «Imf_2_4::Header::setName(std::string const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exrtile_begin_write: error: referencia sin definir al «Imf_2_4::ChannelList::insert(std::string const&, Imf_2_4::Channel const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exr_begin_write: error: referencia sin definir al «Imf_2_4::ChannelList::layers(std::set<std::string, std::lessstd::string, std::allocatorstd::string >&) const»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función IMB_exr_begin_write: error: referencia sin definir al «Imf_2_4::addMultiView(Imf_2_4::Header&, std::vector<std::string, std::allocatorstd::string > const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función imb_exr_is_multi: error: referencia sin definir al «Imf_2_4::ChannelList::layers(std::set<std::string, std::lessstd::string, std::allocatorstd::string >&) const»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): error: referencia sin definir al «Imf_2_4::Header::view() const»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): error: referencia sin definir al «Imf_2_4::viewFromChannelName(std::string const&, std::vector<std::string, std::allocatorstd::string > const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): error: referencia sin definir al «Imf_2_4::removeViewName(std::string const&, std::string const&)»
…/…/lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:función void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): error: referencia sin definir al «Imf_2_4::multiView(Imf_2_4::Header const&)»
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:468: recipe for target ‘bin/blender’ failed
make[2]: *** [bin/blender] Error 1
CMakeFiles/Makefile2:7567: recipe for target ‘source/creator/CMakeFiles/blender.dir/all’ failed
make[1]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
Makefile:162: recipe for target ‘all’ failed
make: *** [all] Error 2

Did you remove your build folder and included CMakeCache.txt to make a completely clean build? Otherwise some old library references can hang around.

If that doesn’t help, uploading your CMakeCache.txt will help us understand the problem.

Also, if you have both lib/linux_x86_64 and lib/linux_centos7_x86_64, that could be a problem.

I did all that, but tomorrow I’ll repeat the process and upload the CMakeCache in case I’m unable to get it working, thanks for the help :slight_smile: