Re: [kde-freebsd] A bug in QtCore.pc or qglobal.h?

2008-06-21 Thread Jeremy Messenger
On Sat, 21 Jun 2008 14:04:08 -0500, Max Brazhnikov <[EMAIL PROTECTED]> wrote:

> On Sat, 21 Jun 2008 11:20:38 -0500, Jeremy Messenger wrote:
>> Hello folks,
>>
>> I am wondering if there is a bug in QtCore.pc for not have
>> -I/usr/local/include or qglobal.h for should be '#include
>> ' -> '#include '? A simple test.cc failed  
>> to
>> compile unless I add -I/usr/local/include.
>>
>> -
>> # cat test.cc
>> #include 
>> #include 
>> extern "C" int main(void)
>> {
>>printf("found version %s", QT_VERSION_STR);
>> #if QT_VERSION >= 0x040200
>>printf(", OK.\n");
>>return 0;
>>printf(", expected version 4.2.0 or higher\n");
>>return 1;
>> #endif
>> }
>> -
>>
>> -
>> # c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`
>> In file included from /usr/local/include/QtCore/QtGlobal:1,
>>   from test.cc:2:
>> /usr/local/include/QtCore/qglobal.h:62:28: error: QtCore/qconfig.h: No
>> such file or directory
>> /usr/local/include/QtCore/qglobal.h:942:31: error: QtCore/qfeatures.h:  
>> No
>> such file or directory
>> /usr/local/include/QtCore/qglobal.h:1139:4: error: #error "Qt not
>> configured correctly, please run configure"
>> /usr/local/include/QtCore/qglobal.h:2036:6: error: #error "Qt not
>> configured correctly, please run configure"
>> -
>>
>> The solution is to add -I/usr/local/include.
>>
>> -
>> # c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`
>> -I/usr/local/include
>> # ./test
>> found version 4.3.4, OK.
>> -
>>
>> -
>> # pkg-config QtCore --cflags --libs
>> -DQT_SHARED -I/usr/local/include/QtCore  -pthread -L/usr/local/lib
>> -lQtCore -lz -lm -lgthread-2.0 -lglib-2.0 -liconv
>> -
>>
>> BTW: Please add me in CC.
>>
>> Cheers,
>> Mezz
>
> /usr/local/include was removed (incorrectly) from Qt*.pc. The problem is  
> that
> qt3 installs headers (one of them is qconfig.h) to /usr/local/include   
> and
> this sometimes confuses qt4 ports.

I have both qt3 and qt4 installed, and I don't have any problem. I think  
it's matter of order. Does qt4 still has problem even if it has  
/usr/local/include in the last order? Like this:

-I/usr/local/include/QtCore -I/usr/local/include

I believe that it needs to be fix in *.pc files. The qt3 doesn't has  
QtCore, so I think it should be no problem.

Cheers,
Mezz

> Max


-- 
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  [EMAIL PROTECTED]
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd


Re: [kde-freebsd] [KDE / QT FreeBSD users] CALL FOR HELPERS: Please contribute to the project! Thanks!

2008-06-21 Thread Diego Depaoli
2008/6/19 Sticky Bit <[EMAIL PROTECTED]>:
> Dear KDE / QT on FreeBSD users,
>
> we need your help! Yes, -your- help! Why? Please read more ...

building kdebase4 on my -current I get this error
--
gmake[1]: Entering directory
`/usr/ports/textproc/redland/work/redland-1.0.7/utils'
cc -DHAVE_CONFIG_H -I. -I../librdf  -I../rasqal/src
-I/usr/local/include/db41 -I/usr/local/include
-I/usr/local/include/db42 -I/usr/local/include/mysql
-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/local/include -I../librdf -I/usr/local/include
-I/usr/local/include/db41 -I/usr/local/include
-I/usr/local/include/db42 -I/usr/local/include/mysql
-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/local/include -DLIBRDF_INTERNAL=1 -O2 -pipe
-fno-strict-aliasing  -DLIBRDF_INTERNAL=1 -O2 -pipe
-fno-strict-aliasing -MT db_upgrade.o -MD -MP -MF .deps/db_upgrade.Tpo
-c -o db_upgrade.o db_upgrade.c
mv -f .deps/db_upgrade.Tpo .deps/db_upgrade.Po
/bin/sh ../libtool --tag=CC   --mode=link cc -DLIBRDF_INTERNAL=1 -O2
-pipe  -fno-strict-aliasing  -DLIBRDF_INTERNAL=1 -O2 -pipe
-fno-strict-aliasing  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib
-o redland-db-upgrade db_upgrade.o -L/usr/local/lib
-rpath=/usr/lib:/usr/local/lib ../librdf/librdf.la -L/usr/local/lib
-ldb-4.2 -lcrypto  -L/usr/local/lib -ldb-4.2 -lcrypto
-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/local/lib
-lsqlite3-L/usr/local/lib -lpq
mkdir .libs
cc -DLIBRDF_INTERNAL=1 -O2 -pipe -fno-strict-aliasing
-DLIBRDF_INTERNAL=1 -O2 -pipe -fno-strict-aliasing
-rpath=/usr/lib:/usr/local/lib -o .libs/redland-db-upgrade
db_upgrade.o -rpath=/usr/lib:/usr/local/lib  -L/usr/local/lib
../librdf/.libs/librdf.so -L/usr/local/lib/mysql
/usr/ports/textproc/redland/work/redland-1.0.7/rasqal/src/.libs/librasqal.so
/usr/local/lib/libraptor.so /usr/local/lib/libcurl.so -lssl
/usr/local/lib/libxslt.so /usr/local/lib/libxml2.so
/usr/local/lib/libiconv.so /usr/local/lib/libgmp.so -ldb-4.2 -lcrypto
/usr/local/lib/mysql/libmysqlclient.so -lz -lcrypt -lm
/usr/local/lib/libsqlite3.so -lpq  -Wl,--rpath -Wl,/usr/local/lib
-Wl,--rpath -Wl,/usr/local/lib/mysql
../librdf/.libs/librdf.so: undefined reference to `db_create'
../librdf/.libs/librdf.so: undefined reference to `db_strerror'
gmake[1]: *** [redland-db-upgrade] Error 1
gmake[1]: Leaving directory
`/usr/ports/textproc/redland/work/redland-1.0.7/utils'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/textproc/redland.
*** Error code 1

Stop in /usr/ports/textproc/redland.
--
Cheers

-- 
Diego Depaoli
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd


Re: [kde-freebsd] A bug in QtCore.pc or qglobal.h?

2008-06-21 Thread Max Brazhnikov
On Sat, 21 Jun 2008 11:20:38 -0500, Jeremy Messenger wrote:
> Hello folks,
>
> I am wondering if there is a bug in QtCore.pc for not have
> -I/usr/local/include or qglobal.h for should be '#include
> ' -> '#include '? A simple test.cc failed to
> compile unless I add -I/usr/local/include.
>
> -
> # cat test.cc
> #include 
> #include 
> extern "C" int main(void)
> {
>printf("found version %s", QT_VERSION_STR);
> #if QT_VERSION >= 0x040200
>printf(", OK.\n");
>return 0;
>printf(", expected version 4.2.0 or higher\n");
>return 1;
> #endif
> }
> -
>
> -
> # c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`
> In file included from /usr/local/include/QtCore/QtGlobal:1,
>   from test.cc:2:
> /usr/local/include/QtCore/qglobal.h:62:28: error: QtCore/qconfig.h: No
> such file or directory
> /usr/local/include/QtCore/qglobal.h:942:31: error: QtCore/qfeatures.h: No
> such file or directory
> /usr/local/include/QtCore/qglobal.h:1139:4: error: #error "Qt not
> configured correctly, please run configure"
> /usr/local/include/QtCore/qglobal.h:2036:6: error: #error "Qt not
> configured correctly, please run configure"
> -
>
> The solution is to add -I/usr/local/include.
>
> -
> # c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`
> -I/usr/local/include
> # ./test
> found version 4.3.4, OK.
> -
>
> -
> # pkg-config QtCore --cflags --libs
> -DQT_SHARED -I/usr/local/include/QtCore  -pthread -L/usr/local/lib
> -lQtCore -lz -lm -lgthread-2.0 -lglib-2.0 -liconv
> -
>
> BTW: Please add me in CC.
>
> Cheers,
> Mezz
/usr/local/include was removed (incorrectly) from Qt*.pc. The problem is that 
qt3 installs headers (one of them is qconfig.h) to /usr/local/include  and 
this sometimes confuses qt4 ports.

Max


___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd


Re: [kde-freebsd] [KDE / QT FreeBSD users] CALL FOR HELPERS: Please contribute to the project! Thanks!

2008-06-21 Thread Dorian Büttner
On Thursday 19 June 2008 18:56:46 Sticky Bit wrote:

> I hope I did not forget something ... Just ask if you have further
> questions.

assuming the steps above went ok, is there something like 'exec startkde' to 
be mentioned in .xinitrc or how do you start that thing?
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd


[kde-freebsd] I wish to be of help.

2008-06-21 Thread Terry Poulin
Hello,

Heard from daemonforums.org about a message going out on ports@ asking
for helpers. I would very much like to be of service if I may... I do
however have one problem -- I'm not familiar with KDE4 or CMake.

I'm young and wet behind the ears but learn quickly. FreeBSD, OpenBSD,
Vim, and KDE are four things I love so I'm willing to put in some
effort if y'all will have me.

As soon as possible I'll start looking deeper into the available
resources online (wiki, cvs, mailing list archive, known issues, etc)
to see if I can find anything that I can do but I'll probably need
some guidance/direction on what to do eventually...Can anyone help me
find my way if I should get lost?


I have a test and gaming machine with a partition dedicated to testing
releases of FreeBSD and PC-BSD, so I can't really break much here ;-).
It's only got a Pentium D 930, 2GB of RAM, and a nVidia card but she
gets the job done quite well. It's survived several compiles of KDE
3.4.x/3.5.x in the past and I would love to see her see KDE4 someday.


About me:

I'm an American residing in the UTC-4/UTC-5 time slots depending on
DST status, speaking English and have been *trying* to learn German
on/off bit by bit in my spare time.


Since January 2006 I've used Unix like systems and practically live on
FreeBSD. I've used KDE3 a lot on FreeBSD and often enjoy poking around
the files that came with it, trying to find my way in the midst. Using
the system has never been a problem for me, and in fact has helped me
a lot being able to read the manual pages and files in /usr/src/.


I began teaching myself programming almost four years ago. Although
C++ was my first language, I much prefer using Perl and Python for
most takss. From past experiences I'm familiar enough with Qt3/Qt4 in
order to use it and read code using it. December 2007-February 2008 I
spent about a week learning Python and the rest figuring out how to
use PyQt3 through the C++ documentation in order to cover the leg
work. It was my first real use of Qt and toolkits in general but never
had serious trouble with it.


With varying levels of ability I've used: C, C++, Java, Perl, Python,
PHP, and Ruby. When it comes to document processing I use TeX/LaTeX +
Vim and I'm fluent enough in XHTML/CSS to get along fine. Since I try
to only write scripts for use with the Bourne Shell, I don't know any
bash or ksh'isms but I've got no problems with reading or editing
bourne style scripts.


I'm accustomed to using SVN, so figuring out CVS via the manuals is no
big leap for me. When I've had  questions about the ports system, I've
usaually directed it to reading the makefiles that make it go 'round.
While  I get along well enough with the BSD/GNU Make tools  I have
no practical experience with using CMake or development experience GNU
Auto* tools, only the usual compile from source / installation
routines. I'll grab a copy of the CMake documentation when I get a
chance.



How can I best be of help?

TerryP.
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd


[kde-freebsd] A bug in QtCore.pc or qglobal.h?

2008-06-21 Thread Jeremy Messenger
Hello folks,

I am wondering if there is a bug in QtCore.pc for not have  
-I/usr/local/include or qglobal.h for should be '#include  
' -> '#include '? A simple test.cc failed to  
compile unless I add -I/usr/local/include.

-
# cat test.cc
#include 
#include 
extern "C" int main(void)
{
   printf("found version %s", QT_VERSION_STR);
#if QT_VERSION >= 0x040200
   printf(", OK.\n");
   return 0;
   printf(", expected version 4.2.0 or higher\n");
   return 1;
#endif
}
-

-
# c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`
In file included from /usr/local/include/QtCore/QtGlobal:1,
  from test.cc:2:
/usr/local/include/QtCore/qglobal.h:62:28: error: QtCore/qconfig.h: No  
such file or directory
/usr/local/include/QtCore/qglobal.h:942:31: error: QtCore/qfeatures.h: No  
such file or directory
/usr/local/include/QtCore/qglobal.h:1139:4: error: #error "Qt not  
configured correctly, please run configure"
/usr/local/include/QtCore/qglobal.h:2036:6: error: #error "Qt not  
configured correctly, please run configure"
-

The solution is to add -I/usr/local/include.

-
# c++ -O -Wall -o test test.cc `pkg-config QtCore --cflags --libs`  
-I/usr/local/include
# ./test
found version 4.3.4, OK.
-

-
# pkg-config QtCore --cflags --libs
-DQT_SHARED -I/usr/local/include/QtCore  -pthread -L/usr/local/lib  
-lQtCore -lz -lm -lgthread-2.0 -lglib-2.0 -liconv
-

BTW: Please add me in CC.

Cheers,
Mezz


-- 
[EMAIL PROTECTED]  -  [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  [EMAIL PROTECTED]
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd