Compiling qt4.5 in fbsd 7.2

I try compile qt-x11-opensource-src-4.5.1 on freebsd 7.2, but get an error message

Code:
$ ./configure -no-iconv  --prefix=/opt/qt4.5.1
Code:
$ gmake

Code:
.....
......
moc/release-shared -I/usr/home/wirasto/qt-x11-opensource-src-4.5.1/src/3rdparty/webkit/WebCore/.uic/release-shared -I/usr/local/include -o 
.obj/release-shared/sqlite3.o ../../sqlite/sqlite3.c
<command-line>:0: fatal error: had to relocate PCH
compilation terminated.
gmake[1]: *** [.obj/release-shared/sqlite3.o] Error 1
gmake[1]: Leaving directory `/usr/home/wirasto/qt-x11-opensource-src-4.5.1/src/3rdparty/webkit/WebCore'
gmake: *** [sub-webkit-make_default-ordered] Error 2
 
I'm not sure but I think you are using gcc4 for compiling Qt 4.5.
If this is true, then i suggest you use gcc34. I had similar issues, but changing the compiler solved this problem and now I've got Qt 4.5.1 (and QtCreator also =) ). Good luck.
 
It is correct, I use gcc 4.

gcc (GCC) 4.2.1 20070719 [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Before compiling I set QMAKESPEC=freebsd-g+ +

You may be able to give the steps in short :)

How to use gcc34?
 
Oh, i'm still get error :(

sqlite3.o ../../sqlite/sqlite3.c
<command-line>:0: fatal error: had to relocate PCH
compilation terminated.
gmake[1]: *** [.obj/release-shared/sqlite3.o] Error 1
gmake[1]: Leaving directory `/usr/home/wirasto/qt-x11-opensource-src-4.5.1/src/3rdparty/webkit/WebCore'
gmake: *** [sub-webkit-make_default-ordered] Error 2


Code:
> env | grep -i spec
QMAKESPECT=freebsd-g++34

what's wrong ?
 
My reply got deleted. Don't know why. Anyway... you need to disable PCH:

Code:
./configure -no-iconv [B]-no-pch[/B]
 
1. As for Qt installation
Did you try to continue compilation? Or did you untar/unzip the sources again? I suggest you do a new clean compilation. This way you should not have PCH issues.

2. As for Qt Creator
That's right. Qt Creator won't compile out of box. I have patched it, before i got it working for me.
 
I didn't release it. I'm trying to get a port for it done, but it has a dependency (as you know) - Qt 4.5 port.
I can share those patches. How would you like to get them?
 
This is my steps

Code:
$ cd /home/wirasto/qt-creator-1.0.0-src/src/libs/extensionsystem
$ patch < /home/wirasto/qt_creator_patches/patch-src-libs-extensionsystem-extensionsystem.pro


$ cd /home/wirasto/qt-creator-1.0.0-src/src/libs/utils
$ patch < /home/wirasto/qt_creator_patches/patch-src-libs-utils-process_stub_unix.c


$ cd /home/wirasto/qt-creator-1.0.0-src/src/plugins/debugger
$ patch < /home/wirasto/qt_creator_patches/patch-src-plugins-debugger-gdbengine.cpp 

$ cd /home/wirasto/qt-creator-1.0.0-src

$ /opt/qt4.5.1/bin/qmake -unix -o Makefile qtcreator.pro


$ make

And, i still get error message
 
Ok, i try qt-creator-1.1.0-src and success.

But :(

when i try run my project i get error compile output

Code:
Running build steps for project abc...
Starting: /usr/bin/make clean -w 
make: illegal option -- w
usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
[-d flags] [-E variable] [-f makefile] [-I directory]
[-j max_jobs] [-m directory] [-V variable]
[variable=value] [target ...]
Exited with code 2.
Error while building project abc
When executing build step 'Make'
 
Oh, yeah, you need to go into project settings and override make command with 'make'. I know it looks strange, but it works. Somehow Qt Creator doesn't find make.
 
Back
Top