Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxPdfDocument: Error while compiling with wxgtk-3.0 - 'fontconfig/fontconfig.h'

(1/3) > >>

demetrioussharpe:
Hello all,

I have been trying to build C::B on FreeBSD for a few months, with no success. Here is my ./configure command:

./configure --with-wx-config=/usr/local/bin/wxgtk2u-3.0-config --with-boost-libdir=/usr/local/lib/ --includedir=/usr/local/include/ --with-contrib-plugins=all

The point is to build it with wxgtk 3.0 to avoid a very nasty bug. However, regardless of which version of C::B I attempt to build, I always run into the problem of wxPdfDocument failing to compile 'src/pdffontmanager.cpp'. For some reason, pdffontmanager.cpp can't find 'fontconfig/fontconfig.h', even though the Makefile has the correct include directory to find 'fontconfig'. The preprocessors seem to be looking for wxgtk 2.0. Has anyone successfully built everything for wxgtk 3.0? I really need some help, here. Here's my pastebin:

https://pastebin.com/jESNHBw0

stahta01:

--- Quote ---__WXGTK20__    GTK+ 2.0 or higher
--- End quote ---

You wish to use wxGTK version 3.0 instead of 2.8, correct?
Or do you mean you want to use GTK 3 instead of GTK 2?

What is the full path to 'fontconfig/fontconfig.h'?

Edit: Found what may be the upstream source of wxPdfDocument https://utelle.github.io/wxpdfdoc/

Tim S.

oBFusCATed:
It will be good if you can post the full build log. The thing you've posted is not enough to resolve the problem.
CB builds fine on Linux and I think wxpdfdocument builds fine on OSX, too (which is closer to a BSD than linux).

demetrioussharpe:

--- Quote from: stahta01 on December 02, 2017, 08:19:57 am ---You wish to use wxGTK version 3.0 instead of 2.8, correct?

--- End quote ---

Correct


--- Quote ---What is the full path to 'fontconfig/fontconfig.h'?

--- End quote ---

/usr/local/include/fontconfig/fontconfig.h


--- Quote ---Edit: Found what may be the upstream source of wxPdfDocument https://utelle.github.io/wxpdfdoc/

--- End quote ---

I'll give it a look.

demetrioussharpe:

--- Quote from: oBFusCATed on December 02, 2017, 11:37:01 am ---It will be good if you can post the full build log.The thing you've posted is not enough to resolve the problem.

--- End quote ---

Assuming that C::B creates a build log, where would I find it? I ask because the majority of the build info seems to be too big for the terminal to contain it all.


--- Quote ---CB builds fine on Linux and I think wxpdfdocument builds fine on OSX, too (which is closer to a BSD than linux).

--- End quote ---

I'm not sure how well stock C::B compiles on FreeBSD. However, the stock version that's automatically built for ports & packages suffers from bug 348 (https://sourceforge.net/p/codeblocks/tickets/348/). Since the suggested fix is to build C::B for wx 3.0, that's what I'm attempting to do. I'm under the assumption that wxgtk 3.0 is wx 3.0. I hope that I'm not in error here. Either way, the build is not working.

Navigation

[0] Message Index

[#] Next page

Go to full version