Hello, compiling kdenetwork SVN 1261199 with CMAKE on Fedora 15 fails
because of 2 reasons:
- Some missing linker flags
- "libv4l1-videodev.h" presence detection was not ported to cmake (it
existed in autotools configuration)
See attached patch .
Thanks
Francois Andriot
Hello, I get the following error both on RHEL6 and Fedora 15 while
compiling kdemultimedia SVN 1261048 :
==============
libtool: link: g++ -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/crtbeginS.o .libs/kfile_m3u.o
-L/opt/trinity/lib64 -L/usr/lib64/qt-3.3/lib -L/usr/lib64
/opt/trinity/lib64/libkio.so -L/usr/lib/gcc/x86_64-redhat-linux/4.6.1
-L/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../.. -lstdc++ -lm -lc
-lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.6.1/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/crtn.o -O2 -O2
-m64 -mtune=generic -Wl,--as-needed -Wl,--enable-new-dtags
-Wl,--no-undefined -Wl,--allow-shlib-undefined -Wl,-soname
-Wl,kfile_m3u.so -o .libs/kfile_m3u.so
.libs/kfile_m3u.o: In function `KM3uPlugin::staticMetaObject()':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.moc:63:
undefined reference to `QMetaObject::new_metaobject(char const*,
QMetaObject*, QMetaData const*, int, QMetaData const*, int,
QMetaProperty const*, int, QMetaEnum const*, int, QClassInfo const*, int)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.moc:64:
undefined reference to `QMetaObjectCleanUp::setMetaObject(QMetaObject*&)'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:60:
undefined reference to `QFile::QFile(QString const&)'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:61:
undefined reference to `QFile::open(int)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:60:
undefined reference to `QFile::~QFile()'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:62:
undefined reference to `QTextStream::QTextStream(QIODevice*)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:63:
undefined reference to `QTextStream::setEncoding(QTextStream::Encoding)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:66:
undefined reference to `QString::QString(char const*)'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:72:
undefined reference to `QTextStream::readLine()'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:73:
undefined reference to `QString::QString(char const*)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:73:
undefined reference to `QString::startsWith(QString const&) const'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:62:
undefined reference to `QTextStream::~QTextStream()'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:75:
undefined reference to `QString::QString(char const*)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:75:
undefined reference to `QString::endsWith(QString const&) const'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:77:
undefined reference to `QString::stripWhiteSpace() const'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:78:
undefined reference to `QVariant::QVariant(QString const&)'
/home/albator/rpmbuild/BUILD/kdemultimedia/kfile-plugins/m3u/kfile_m3u.cpp:78:
undefined reference to `i18n(char const*)'
.libs/kfile_m3u.o: In function `QString::arg(int, int, int) const':
/usr/lib64/qt-3.3/include/qstring.h:973: undefined reference to
`QString::arg(long long, int, int) const'
.libs/kfile_m3u.o: In function `~QString':
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
/usr/lib64/qt-3.3/include/qstring.h:850: undefined reference to
`QString::shared_null'
/usr/lib64/qt-3.3/include/qstring.h:851: undefined reference to
`QStringData::deleteSelf()'
.libs/kfile_m3u.o: In function `KM3uPlugin::readInfo(KFileMetaInfo&,
unsigned int)':
[...]
and so on
==============
I do not understand where the problem come from... This is on my
reference configuration, on which other TDE packages compile correctly
with the same environment and utilities.
Any help appreciated !
Thanks
Francois Andriot
Strike my last. CMakeLists.txt yields all I need :)
Regards
Nic
-----Ursprüngliche Nachricht-----
Von: "Nicolas Kalkhof" <nkalkhof(a)web.de>
Gesendet: Oct 28, 2011 6:07:41 PM
An: trinity-devel(a)lists.pearsoncomputing.net
Betreff: Re: [trinity-devel] kdebase make process fails to run
>Hi Tim,
>
>ok Thx for the clearup. I can't find any documentation on this on the wiki pages. Did I miss something?
>
>Regards
>Nic
>
>
>-----Ursprüngliche Nachricht-----
>Von: "Timothy Pearson" <kb9vqf(a)pearsoncomputing.net>
>Gesendet: Oct 28, 2011 5:54:32 PM
>An: trinity-devel(a)lists.pearsoncomputing.net
>Betreff: Re: [trinity-devel] kdebase make process fails to run
>
>>> Hi,
>>>
>>> I've been trying to build kdebase with cmake from current svn with the
>>> following command:
>>> cmake ../../kdebase/ -DCMAKE_INSTALL_PREFIX=/opt/kde-3.5.13
>>>
>>> cmake responds with:
>>> -- The C compiler identification is GNU
>>> -- The CXX compiler identification is GNU
>>> -- Check for working C compiler: /usr/bin/gcc
>>> -- Check for working C compiler: /usr/bin/gcc -- works
>>> -- Detecting C compiler ABI info
>>> -- Detecting C compiler ABI info - done
>>> -- Check for working CXX compiler: /usr/bin/c++
>>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>>> -- Detecting CXX compiler ABI info
>>> -- Detecting CXX compiler ABI info - done
>>> -- checking for one of the modules 'tqt'
>>> --Â Â tmoc path: /opt/kde-3.5.13/bin/tmoc
>>> --Â Â moc path: /opt/lib/qt3/bin/moc
>>> --Â Â uic path: /opt/lib/qt3/bin/uic
>>> -- Performing Test HAVE_USABLE_TQT
>>> -- Performing Test HAVE_USABLE_TQT - Success
>>> -- checking for 'TDE'
>>> --Â Â found 'TDE', version 3.5.13
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to: /root/temp/build/base
>>>
>>> created files:
>>> CMakeCache.txt CMakeFiles Makefile cmake_install.cmake config.hÂ
>>> kcontrol kdmlib
>>>
>>> firing up make does nothing at all. kdelibs builds fine btw.
>>> Any clues?
>>>
>>> Regards
>>> Nic
>>
>>kdebase by default builds nothing. You will either need to enable the
>>modules you want to compile by passing the correct flags to CMake, or
>>build everything by passing -DBUILD_ALL="ON to CMake.
>>
>>Tim
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
>>For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
>>Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/
>>Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>>
>
>
>___________________________________________________________
>SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
>kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
>For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
>Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/
>Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Hi Tim,
ok Thx for the clearup. I can't find any documentation on this on the wiki pages. Did I miss something?
Regards
Nic
-----Ursprüngliche Nachricht-----
Von: "Timothy Pearson" <kb9vqf(a)pearsoncomputing.net>
Gesendet: Oct 28, 2011 5:54:32 PM
An: trinity-devel(a)lists.pearsoncomputing.net
Betreff: Re: [trinity-devel] kdebase make process fails to run
>> Hi,
>>
>> I've been trying to build kdebase with cmake from current svn with the
>> following command:
>> cmake ../../kdebase/ -DCMAKE_INSTALL_PREFIX=/opt/kde-3.5.13
>>
>> cmake responds with:
>> -- The C compiler identification is GNU
>> -- The CXX compiler identification is GNU
>> -- Check for working C compiler: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- checking for one of the modules 'tqt'
>> --Â Â tmoc path: /opt/kde-3.5.13/bin/tmoc
>> --Â Â moc path: /opt/lib/qt3/bin/moc
>> --Â Â uic path: /opt/lib/qt3/bin/uic
>> -- Performing Test HAVE_USABLE_TQT
>> -- Performing Test HAVE_USABLE_TQT - Success
>> -- checking for 'TDE'
>> --Â Â found 'TDE', version 3.5.13
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /root/temp/build/base
>>
>> created files:
>> CMakeCache.txt CMakeFiles Makefile cmake_install.cmake config.hÂ
>> kcontrol kdmlib
>>
>> firing up make does nothing at all. kdelibs builds fine btw.
>> Any clues?
>>
>> Regards
>> Nic
>
>kdebase by default builds nothing. You will either need to enable the
>modules you want to compile by passing the correct flags to CMake, or
>build everything by passing -DBUILD_ALL="ON to CMake.
>
>Tim
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
>For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
>Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/
>Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Hi,
I've been trying to build kdebase with cmake from current svn with the following command:
cmake ../../kdebase/ -DCMAKE_INSTALL_PREFIX=/opt/kde-3.5.13
cmake responds with:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for one of the modules 'tqt'
-- tmoc path: /opt/kde-3.5.13/bin/tmoc
-- moc path: /opt/lib/qt3/bin/moc
-- uic path: /opt/lib/qt3/bin/uic
-- Performing Test HAVE_USABLE_TQT
-- Performing Test HAVE_USABLE_TQT - Success
-- checking for 'TDE'
-- found 'TDE', version 3.5.13
-- Configuring done
-- Generating done
-- Build files have been written to: /root/temp/build/base
created files:
CMakeCache.txt CMakeFiles Makefile cmake_install.cmake config.h kcontrol kdmlib
firing up make does nothing at all. kdelibs builds fine btw.
Any clues?
Regards
Nic
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Hello,
Here are some further notes regarding the 3.5.13 release. The release
is on schedule for Nov 1st (in 3 days).
Now is your last chance to send in patches for the release. After Oct
29th a hard freeze will be in effect. No changes past this point will
be made. This is to ensure that packagers have enough time to produce
packages. After that the final tarballs will be built for the release.
For the 3.5.13 release there will be no Ubuntu LiveCDs. If someone
would like to respin a LiveCD for us, we will be happy to host the
files.
Oneiric packages are built and ready to install. Please report any
problems you find.
For Oneiric installation instructions:
http://www.trinitydesktop.org/wiki/bin/view/Developers/NightlyBuilds
Lastly, LibreOffice integration will not be available in Oneiric until
the creation, submission, and incorporation of patches into the
upstream LibreOffice project.
Thank you,
Calvin Morrison
Trinity Desktop Team
Hello, I'm compling TDE SVN rev 1260891 on RHEL 6.
I get the following error during "make install":
==============
-- Installing:
/home/albator/rpmbuild/BUILDROOT/trinity-kdebase-3.5.12.99.1260891-0.el6.opt.x86_64/opt/trinity/bin/kdmtsak
CMake Error at kdmlib/cmake_install.cmake:131 (FILE):
file RPATH_REMOVE could not remove RPATH from file:
/home/albator/rpmbuild/BUILDROOT/trinity-kdebase-3.5.12.99.1260891-0.el6.opt.x86_64/opt/trinity/bin/kdmtsak
Error opening file for update.
Call Stack (most recent call first):
cmake_install.cmake:43 (INCLUDE)
make: *** [install] Error 1
make: Leaving directory `/home/albator/rpmbuild/BUILD/kdebase/build'
==============
The file"opt/trinity/bin/kdmtsak" exists but is not writable. I suppose
that's why the RPATH_REMOVE macro fails:
-r-s--x--x 1 albator albator 108807 26 oct. 20:04
/home/albator/rpmbuild/BUILDROOT/trinity-kdebase-3.5.12.99.1260891-0.el6.opt.x86_64/opt/trinity/bin/kdmtsak
(Note: RPM building is done as non-root user.)
Thanks
Francois Andriot
Hello, I have some troubles compiling kdebase SVN 1260891 on Fedora 15.
I guess this is because the "direct linking" is now disabled by default
on this distro.
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
==========
/usr/bin/ld: CMakeFiles/nspluginviewer.dir/nsplugin.cpp.o: undefined
reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO
/lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [nsplugins/viewer/nspluginviewer] Error 1
make[2]: Leaving directory `/home/albator/rpmbuild/BUILD/kdebase/build'
make[1]: *** [nsplugins/viewer/CMakeFiles/nspluginviewer.dir/all] Error 2
==========
Linking CXX executable kdesktop_lock
cd /home/albator/rpmbuild/BUILD/kdebase/build/kdesktop/lock &&
/usr/bin/cmake -E cmake_link_script
CMakeFiles/kdesktop_lock.dir/link.txt --verbose=1
/usr/lib64/ccache/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL
-DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT
-include tqt.h -ldl CMakeFiles/kdesktop_lock.dir/lockprocess.cc.o
CMakeFiles/kdesktop_lock.dir/lockdlg.cc.o
CMakeFiles/kdesktop_lock.dir/infodlg.cc.o
CMakeFiles/kdesktop_lock.dir/querydlg.cc.o
CMakeFiles/kdesktop_lock.dir/sakdlg.cc.o
CMakeFiles/kdesktop_lock.dir/securedlg.cc.o
CMakeFiles/kdesktop_lock.dir/autologout.cc.o
CMakeFiles/kdesktop_lock.dir/main.cc.o -o kdesktop_lock -rdynamic
-L/opt/trinity/lib64 -L/usr/lib64/qt-3.3/lib ../libkdesktopsettings.a
../../kdmlib/libdmctl.a /opt/trinity/lib64/libkio.so.4.2.0 -lGL -lXau
/opt/trinity/lib64/libkdeui.so.4.2.0 -lfreetype -lfontconfig
/opt/trinity/lib64/libkdesu.so.4.2.0 -lutil
/opt/trinity/lib64/libkwalletclient.so.1.0.1
/opt/trinity/lib64/libkdecore.so.4.2.0
/opt/trinity/lib64/libDCOP.so.4.2.0 /opt/trinity/lib64/libkdefx.so.4.2.0
-ltqt -lqt-mt -lXrender -lX11 -lz -lXcomposite -lICE -lSM
-Wl,-rpath,/opt/trinity/lib64:/usr/lib64/qt-3.3/lib:
/usr/bin/ld: CMakeFiles/kdesktop_lock.dir/lockprocess.cc.o: undefined
reference to symbol 'DPMSInfo'
/usr/bin/ld: note: 'DPMSInfo' is defined in DSO /usr/lib64/libXext.so.6
so try adding it to the linker command line
/usr/lib64/libXext.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [kdesktop/lock/kdesktop_lock] Error 1
make[2]: Leaving directory `/home/albator/rpmbuild/BUILD/kdebase/build'
make[1]: *** [kdesktop/lock/CMakeFiles/kdesktop_lock.dir/all] Error 2
==========
To sum up things, I can compile if I set the following variable
export LDFLAGS="-ldl -lXext"
Thanks
Francois Andriot