Skip to main content

Qt Creator 2.0.0 on FreeBSD

Posted in

This release of Qt Creator has come to use with several surprises. First, it needs at least beta of Qt 4.7 and doesn't compile out of box.

The reason why this happens is that Qt Creator uses a cryptographic library called botan and botan let you choose which memory you would like to use. The choices are: tr1 or boost. I have chosen boost because I have gcc 4.2 (which is old enough) and because I have latest boost.

The best way to make it compile would be to find the place where BOTAN_USE_BOOST_TR1 is set. But if you start looking for it, then you will find 2 strange scripts, in python and perl, that allow you to set it, but for some reason are not executable. So I didn't want to waste my time and just found the pieces of code when this constant has been ifdef'ed.

Go to src/libs/3rdparty/botan/src. Here are these 2 files that we are going to modify:

  • math/gfpmath/gfp_element.h
  • cert/cvc/freestore.h

I removed all unnecessary "if defined"'s "elif defined"'s and left the only include of boost's memory.hpp.

That's it. Just

$ make

it!

P.S. Sorry, no patches.

UPDATE: Qt Creator 2.0.0 needs Qt from git.

UPDATE: Modify libs/3rdparty/botan/src/timer/posix_rt/tm_posix.cpp to include <sys/time.h> instead of <time.h>.

UPDATE: Modify libs/3rdparty/botan/src/src.pro. Add timer/posix_rt/tm_posix.h to HEADERS and timer/posix_rt/tm_posix.cpp to SOURCES.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
 o      o.OOOo.           oOoOOoOOo  o          `O  `o    O  
O O `o o O o o O
o o O o o O O O
o O o O O O oOo
O o o O O o o o o o o o
OoO O o o O O O O O O O
o O o .O' O o O `o O o O' o o
O o OooOO' `OoOO o' `OoO' `OoO' O O
o
OoO'
Enter the code depicted in ASCII art style.