trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2016

Re: [trinity-devel] TDE apps and automake

From: Michele Calgaro <michele.calgaro@...>
Date: Mon, 11 Jan 2016 23:20:18 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/11/2016 08:00 PM, Dr. Nikolaus Klepp wrote:
> Am Samstag, 9. Januar 2016 schrieb deloptes:
>> Hi,
>> 
>> I asked already once but there was no answer. How can I get the cflags and libs for TDE applications?
>> 
>> I read and followed this manual: https://wiki.trinitydesktop.org/KApplication_template
>> 
>> I updated the code sample to use the new (r14) headers.
>> 
>> I then found out I had to do following
>> 
>> export PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig
>> 
>> c++  `pkg-config tqt --cflags` `pkg-config tqt --libs` test.cc -o test
>> 
>> but it was unsufficient. I had to change to following to be able to compile
>> 
>> c++  `pkg-config tqt --cflags` -I/opt/trinity/include \ `pkg-config tqt --libs` -L/opt/trinity/lib -ltdecore
>> -ltdeui \ test.cc -o test
>> 
>> So why is no pkg-config for tdecore and tdeui ? or how can I use cmake from within automake project to get what I
>> need?
> 
> Hi!
> 
> I have installed 14.0.[23] from slavecs repository on devuan and "pkg-config tqt" works as expected. In detail your
> "/opt/trinity/include" and "/opt/trinity/lib/pkgconfig" does not exist on my system, but "/usr/include/tqt3" does.
> 
> 
> Nik
> 
> 
To the original poster (since I did not receive the original email, not the second time request).
If you are using debian or ubuntu, the best way to build is to use the info in the tde-packagin repo which contains
all the required info.
If not, a good way is to look at the build log files of the nightly builds, which contains all the build options used
for such distros. If you are using a different distro, you could probably reuse most of the options, if not all of
them ;-)

Cheers
  Michele
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJWk7oiAAoJECp1t8qK3tXP4IEQALoESRKsBtE9ZF/r0RVUVZ1r
AcrDECiMO62NlKDrjZI62UO+Z4SPBxv2WscNPqx3UA4SIp9xU9+Zb1d6rjR0htsS
nxWvAJHuGqsOzst0jS3twjymKVWKejdn4rkGXtynhE3LzqskTQRm9hgO41/CTSlQ
79SeobGSHf93A+Fb7+qoBsi8vP/+JZ2BLNzYqUnAPEUv1Kr+Vkw9Sl4mT4OBDTdC
byYnJ45jZfwTzHhYGQRwHaC3iILc+F4SZmEg/wYN2Bw+xWZs0scBIR72sv8tbazZ
lP55C+5j7sBoHq1QA0VzUJtsKnTpeyzyrCYfuf7WxMWHZMCYa70bMCfDrkb+RKzz
GUJT71FuKUqGYBlTSIwcQ8TPD/wbB4LdG3+WOfH7x6ymrEBXvDNEWsFrmGeZpoIq
pHpStXXm+gcuY+DdmY466lenc/G1YMYpey2MFIt/3dgcihvzlUaHVIhZ5KwDTbAV
SKa6kgGZJq/nL147NGG4cldk05U/aetkR7ILN6VlKLuqD6ohy0trOWt1nme/uqYw
Mq51NHorCZp++FdWPqluS7WqA/g++PFbbvwNnDl5ygGbW/5/uCoaJgAdOzHVus0C
DKlAsZ4tgYFxvBhAfC6AbOquV0BF2IfpjAb2JltkeO49Qt99B1+r58MXl9rPgCQK
RuVinMYVnC+Y2rqrhAuy
=P5rq
-----END PGP SIGNATURE-----