[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: #147: Error when loading the qt egg
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] Re: #147: Error when loading the qt egg |
Date: |
Thu, 17 Dec 2009 22:12:14 -0000 |
#147: Error when loading the qt egg
-------------------------+--------------------------------------------------
Reporter: mario | Owner:
Type: defect | Status: closed
Priority: critical | Milestone: 4.3.0
Component: extensions | Version: 4.3.0
Resolution: invalid | Keywords: qt
-------------------------+--------------------------------------------------
Comment(by mario):
Replying to [comment:4 felix]:
> Replying to [comment:3 mario]:
> >
> > To use chicken 4, I explicitly execute <chicken-tools> from
/usr/local/chicken-4.3.0/bin (which are not in PATH). I guess chicken-4
picks some tools (maybe chicken) from PATH, so it ended up calling
something from chicken 3.
>
> That shouldn't be the case (and we should fix it, if it does).
The call to csc from the PATH is actually made by something in the
qt.setup file. Here's the full compilation log (I've added {{{(run-verbose
#t)}}} to the setup file):
{{{
$ QTDIR=/usr /usr/local/chicken-4.3.0/bin/chicken-install qt.setup
retrieving ...
checking dependencies for `qt' ...
install order:
("qt")
installing qt: ...
changing current directory to /home/mario/src/chicken-
eggs/release/4/qt/trunk
/usr/local/chicken-4.3.0/bin/csi -bnq -setup-mode -e "(require-library
setup-api)" -e "(import setup-api)" -e "(extension-name-and-version
'(\"qt\" \"\"))" /home/mario/src/chicken-eggs/release/4/qt/trunk/qt.setup
/usr/local/chicken-4.3.0/bin/csc -feature compiling-extension -setup-
mode -t qt-base.scm -O2 -d1 -X easyffi -C -g -j qt
Warning: re-importing already imported syntax: foreign-declare
Warning: global variable `qt#g301' is never used
Warning: global variable `qt#g317' is never used
Warning: global variable `qt#g318' is never used
/usr/local/chicken-4.3.0/bin/csc -feature compiling-extension -setup-
mode -s qt.import.scm -O2 -d0
/usr/bin/qmake qt.pro
make
/usr/bin/moc-qt4 -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -I.
main.cpp -o main.moc
g++ -c -pipe -g -w `csc -cflags` -D_REENTRANT -Wall -W -fPIC
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -I. -o
main.o main.cpp
gcc -c -pipe -g -w `csc -cflags` -D_REENTRANT -Wall -W -fPIC
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -I. -o
qt-base.o qt-base.c
rm -f libqtb.so.1.0.0 libqtb.so libqtb.so.1 libqtb.so.1.0
g++ `csc -libs -ldflags` -shared -Wl,-soname,libqtb.so.1 -o
libqtb.so.1.0.0 main.o qt-base.o -L/usr/lib -L/usr/X11R6/lib -lQtOpenGL
-lQtGui -lQtCore -lGLU -lGL -lpthread -lQtUiTools
ln -s libqtb.so.1.0.0 libqtb.so
ln -s libqtb.so.1.0.0 libqtb.so.1
ln -s libqtb.so.1.0.0 libqtb.so.1.0
cp libqtb.so.1.0.0 qt.so
rm -fr /usr/local/chicken-4.3.0/lib/chicken/4/qt.so
cp -r qt.so /usr/local/chicken-4.3.0/lib/chicken/4/qt.so
chmod a+r /usr/local/chicken-4.3.0/lib/chicken/4/qt.so
rm -fr /usr/local/chicken-4.3.0/lib/chicken/4/qt.import.so
cp -r qt.import.so /usr/local/chicken-4.3.0/lib/chicken/4/qt.import.so
chmod a+r /usr/local/chicken-4.3.0/lib/chicken/4/qt.import.so
* Installing documentation files in
/usr/local/chicken-4.3.0/share/chicken/doc:
Warning: file does not exist: "qt.html"
chmod a+r /usr/local/chicken-4.3.0/lib/chicken/4/qt.setup-info
}}}
Notice that there are calls to {{{`csc -libs -ldflags`}}} and {{{`csc
-cflags`}}} which take csc from the system PATH.
I supposed the following definitions from {{{qt.pro}}} cause this problem:
{{{
unix:QMAKE_LFLAGS_DEBUG+=`csc -libs -ldflags`
unix:QMAKE_CFLAGS_DEBUG+=-w `csc -cflags`
unix:QMAKE_CXXFLAGS_DEBUG+=-w `csc -cflags`
}}}
One solution I see is making qt.setup generate qt.pro. A patch is
attached.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/147#comment:5>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #147: Error when loading the qt egg, Chicken Trac, 2009/12/15
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/16
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/16
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/17
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/17
- [Chicken-janitors] Re: #147: Error when loading the qt egg,
Chicken Trac <=
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/18
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/18
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/28
- [Chicken-janitors] Re: #147: Error when loading the qt egg, Chicken Trac, 2009/12/30