lmc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmc-dev] pre2 on FreeBSD part 1


From: lmc-dev
Subject: [lmc-dev] pre2 on FreeBSD part 1
Date: Tue, 09 Aug 2005 03:54:01 +0200
User-agent: Mozilla Thunderbird 1.0 (X11/20050108)



address@hidden wrote:
Hi Martin,

so, we have two problems:
1. propper installation support for FreeBSD
2. moviefly won't open .amc files

Here: lets get onto the installation problem.

I have modified the build system and changed some functionality and would like you to download a pre-release from the following url and test it. If you agree, once that works I'll officially upload a new version to Savannah.

The URL is:
http://www.master-ai.uni-karlsruhe.de/~merkosh/lmc/unofficial





On Monday 01 August 2005 05:09 am, address@hidden wrote:

1. Required dependencies

[...]

It seemed you did not run into problems getting the required packages. I am not familiar with FreeBSD, is there any additional BSDish way of specifying the required packages? Else I'll roughly add the following to the documentation:

--
use "pkg_add -r" on "qt" (qt 3.3), "qmake", "eject", "transcode", "gmake", "py23-qt" and install the required packages
--

I suggest something like this:

On FreeBSD, install the following ports: "perl5.8",
"p5-POE-Component-Client-UserAgent", "qt" (qt 3.3), "qmake", "eject",
"transcode", "gmake", "py23-qt".
You can either install them from binary packages using 'pkg_add -r',
portupgrade, or by compiling them manually as described in chapter 4 of
the FreeBSD Handbook:
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html>
Usually, other depencies will be compiled/installed automatically.


2. Issues using ./configure


2.1 The first problem I stumbled into was configure's unability to find
the python qt module.


I'll add another note that the python executable must be accessible through the PATH under the name "python". (i.e. not pythonX.Y)


2.2 The second problem was configures unability to find the Qt files,
starting with the message "checking for Qt... ls: /lib/libqt*: No such
file or directory". Qt on FreeBSD gets installed into /usr/X11R6/, thus
adding --with-Qt-dir=/usr/X11R6/ quickly resolved the issue.


I've added this already to the INSTALL file.

Yes, ok. I definitively need --with-Qt-dir=/usr/X11R6/






2.3 A problem I did not really solve was configure's test of the correct
functioning of the qt environment -- I just inserted a the line
'bnv_cv_qt_test_result="succes"' at the appropriate place (somewhere
around line 6369).


Auto*tool support for Qt is a cramp. I've tried using other macros during the week, but without much improvement. So now I'm debugging the macros I've used up until now.

I made changes to the BNV_HAVE_QT macros. Please specify the --with-Qt-dir=/usr/X11R6 flag to the configure script and see wether the test succeeds. If not, please send me the contents of the bnv_qt_test_*.out files.



Also, configure still fails at this point:

checking for Qt... yes:
     QT_CXXFLAGS=-I/usr/X11R6//include -DQT_THREAD_SUPPORT
     QT_DIR=/usr/X11R6/
     QT_LIBS=-L/usr/X11R6//lib -lqt-mt  -lSM -lICE  -L/usr/X11R6/lib
-lX11 -lXext -lXmu -lXt -lXi
     QT_UIC=/usr/X11R6//bin/uic
     QT_MOC=/usr/X11R6//bin/moc
checking correct functioning of Qt installation... failure
configure: error: Failed to find matching components of a complete
                   Qt installation. Try using more options,
                   see ./configure --help.


Only 'bnv_qt_test_4.out' contained errors. Those were with regard to
pthread functions, like:
"/usr/X11R6//lib/libqt-mt.so: undefined reference to `pthread_cleanup_pop'"

I solved this by adding a line reading QT_LIBS="$QT_LIBS -pthread" to
'configure'. Passing QT_LIBS="-pthread" on the command line of
'configure' did nothing.


Another error that wasn't present before:

checking for qmake flags... uname: illegal option -- o
usage: uname [-amnprsv]

 From a quick glance at the different systems' uname(1) man pages on
<http://www.freebsd.org/cgi/man.cgi> it can be followed that the '-o'
option is Linux specific, whereas '-s' is used to output the name of the
operating system on *BSD, Solaris etc.

So you could either try 'uname -o' first, check its return code and try
'uname -s' if the first one failed.
Or instead of 'uname' you could probably reuse the information of the
python platform.



2.3 Next thing I had to do was add
"--with-sip=/usr/local/share/sip/qt/qtmod.sip" to the configure
commandline in order to enable it to find sip.


The correct path would have been:
--with-sip=/usr/local/share

I've added /usr/local/share to the default search path. You should not need to specify it any more.

Seems to work.


Otherwise, I got:
        "checking for sip include path... find: illegal option -- t
        find: illegal option -- y
        find: illegal option -- p
        find: illegal option -- e
        find: f: No such file or directory
        find: /usr/share/sip: No such file or directory"

There seems to be something wrong with the
        sip_path=`find $i -type f -name qtmod.sip -print | sed "1q"`
line in configure, resulting in the above error.


Hm. Can't explain that mistake. Lets check it again with the changes uploaded in pre-release 1.

I still get this:

checking for sip include path... find: illegal option -- t
find: illegal option -- y
find: illegal option -- p
find: illegal option -- e
find: f: No such file or directory
find: /usr/share/sip: No such file or directory
/usr/local/share/sip,/usr/local/include/python2.3




3. Issues during compilation

3.1 After configure finished its job, I ran gmake -- only to be
confronted with a bunch of messages like:


gmake == the "normal" GNU make?

yes. 'make' is the BSD make on BSD :-)



[... lot of compilation problems ...]

Theoretically the compilation problems should not have anything to do with the "open file" problem, as this part is all done in pure Python. There is, however, a new configure switch --disable-listviewsort, which disables the compilation of the C++ module. The default Qt class is used instead. This causes the movie entries to be sorted alphanumerically. There is a config option to prepend zero's instead - as an intermediate solution when the C++ module does not work.
The Qt detection must still be successfull, though.


        "In file included from sip_build/siplmcqtcmodule.cpp:9:
        siplmcqtListViewSort.h:14: sipqtQListViewItem.h: No such file or
        directory siplmcqtListViewSort.h:15: sipqtQListView.h: No such file or
        directory
        [...]"


        "sip_build/siplmcqtListViewSort.cpp: In function `struct
        PyObject * meth_ListViewSort_activatedPos(PyObject *, PyObject
        *)':sip_build/siplmcqtListViewSort.cpp:840: `sipClass_QPoint'
        undeclared (first use this function)",


After a successfull configure, please change into .../src/lmcqt and run:
$ make

and send me the compilation output.

Please see attached file log.src_lmcqt.gmake.txt



3.2 Then, qmake failed because by default, no spec is set:

        "/usr/local/bin/qmake -o listviewsort.mak listviewsort.pro
        QMAKESPEC has not been set, so configuration cannot be deduced.
        Error processing project file:
        /usr/home/martin/lmc-0.12.3/src/lmcqt/listviewsort.pro"

This could be solved by issueing the following on the command line:
        export QMAKESPEC=/usr/local/share/qt/mkspecs/freebsd-g++


I've not considered special qmake flags up until now. Now, after qmake detection the it should mention special qmake flags "-spec freebsd-g++"
Otherwise, please send me your output to "uname -o".

See above.


So far,
Martin

Script started on Tue Aug  9 03:12:51 2005
test ! -d sip_build && mkdir sip_build || true
/usr/local/bin/sip -c sip_build -I/usr/local/share/sip 
-I/usr/local/include/python2.3 -I. -t Qt_3_3_0 -t WS_X11 -w -e -b lmcqt.spf 
lmcqt.sip
[CXX] sip_build/siplmcqtcmodule.cpp
In file included from sip_build/siplmcqtcmodule.cpp:9:
siplmcqtListViewSort.h:14: sipqtQListViewItem.h: No such file or directory
siplmcqtListViewSort.h:15: sipqtQListView.h: No such file or directory
siplmcqtListViewSort.h:16: sipqtQString.h: No such file or directory
siplmcqtListViewSort.h:17: sipqtQDropEvent.h: No such file or directory
siplmcqtListViewSort.h:18: sipqtQPoint.h: No such file or directory
siplmcqtListViewSort.h:19: sipqtQMimeSource.h: No such file or directory
siplmcqtListViewSort.h:20: sipqtQPainter.h: No such file or directory
siplmcqtListViewSort.h:21: sipqtQColorGroup.h: No such file or directory
siplmcqtListViewSort.h:22: sipqtQRect.h: No such file or directory
siplmcqtListViewSort.h:23: sipqtQPixmap.h: No such file or directory
siplmcqtListViewSort.h:24: sipqtQFontMetrics.h: No such file or directory
[CXX] sip_build/siplmcqtListViewSort.cpp
In file included from sip_build/siplmcqtListViewSort.cpp:8:
siplmcqtListViewSort.h:14: sipqtQListViewItem.h: No such file or directory
siplmcqtListViewSort.h:15: sipqtQListView.h: No such file or directory
siplmcqtListViewSort.h:16: sipqtQString.h: No such file or directory
siplmcqtListViewSort.h:17: sipqtQDropEvent.h: No such file or directory
siplmcqtListViewSort.h:18: sipqtQPoint.h: No such file or directory
siplmcqtListViewSort.h:19: sipqtQMimeSource.h: No such file or directory
siplmcqtListViewSort.h:20: sipqtQPainter.h: No such file or directory
siplmcqtListViewSort.h:21: sipqtQColorGroup.h: No such file or directory
siplmcqtListViewSort.h:22: sipqtQRect.h: No such file or directory
siplmcqtListViewSort.h:23: sipqtQPixmap.h: No such file or directory
siplmcqtListViewSort.h:24: sipqtQFontMetrics.h: No such file or directory
sip_build/siplmcqtListViewSort.cpp: In function `struct PyObject * 
meth_ListViewSort_activatedPos(PyObject *, PyObject *)':
sip_build/siplmcqtListViewSort.cpp:840: `sipClass_QPoint' undeclared (first use 
this function)
sip_build/siplmcqtListViewSort.cpp:840: (Each undeclared identifier is reported 
only once
sip_build/siplmcqtListViewSort.cpp:840: for each function it appears in.)
sip_build/siplmcqtListViewSort.cpp: In function `struct PyObject * 
meth_ListViewSort_dropped(PyObject *, PyObject *)':
sip_build/siplmcqtListViewSort.cpp:873: `sipClass_QDropEvent' undeclared (first 
use this function)
sip_build/siplmcqtListViewSort.cpp: In function `struct PyObject * 
meth_ListViewSort_compare(PyObject *, PyObject *)':
sip_build/siplmcqtListViewSort.cpp:1064: `sipClass_QListViewItem' undeclared 
(first use this function)
sip_build/siplmcqtListViewSort.cpp: In function `void * cast_ListViewSort(void 
*, sipWrapperType *)':
sip_build/siplmcqtListViewSort.cpp:1097: implicit declaration of function `int 
sipCast_QListViewItem(...)'
sip_build/siplmcqtListViewSort.cpp:1097: assignment to `void *' from `int' 
lacks a cast
sip_build/siplmcqtListViewSort.cpp: In function `void * 
init_ListViewSort(sipWrapper *, PyObject *, int *)':
sip_build/siplmcqtListViewSort.cpp:1128: `sipClass_QListView' undeclared (first 
use this function)
sip_build/siplmcqtListViewSort.cpp:1230: `sipConvertTo_QString' undeclared 
(first use this function)
gmake: *** [sip_meta_targets] Error 1

Script done on Tue Aug  9 03:14:05 2005


reply via email to

[Prev in Thread] Current Thread [Next in Thread]