trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: September 2020

[trinity-users] Re: [users] TQt Tutorials

From: J Leslie Turriff via tde-users <ml-migration-agent@...>
Date: Wed, 30 Sep 2020 02:53:58 -0500
On 2020-09-30 01:09:20 J Leslie Turriff via tde-users wrote:
> 	I'm trying to get a handle on writing an app for Trinity, starting with
> stuff from the Wiki; but it's a struggle.
> 	I Followed
> 		Support =>
> 			Wiki =>
> 				Developers =>
> 					Tutorials and Documentation for QT and TQT
> and hiding under the QT3 API Documentation link (which really points to
> 						TQt Reference Documentation (Open Source Edition)
> I found the Getting Started section.  Following How To Learn TQt showed me
> C++ GUI Programming with TQt 3 (which I have ordered); many of the other
> links on this page point to a now-deceased TrollTech website. :-(
> 	I moved on to Tutorial #1, and after figuring out that references to
> "qmake" should really be to "tqmake", I tried compiling the fourteen
> example programs.
>
> 	They all fail with the same error. Example #1 is typical:
> |	$ make
>
> g++ -c -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
> -funwind-tables -fasynchronous-unwind-tables -pipe -fvisibility=hidden
> -fvisibility-inlines-hidden -Wall -W -O2  -DQT_NO_DEBUG
> -I/usr/share/tqt3/mkspecs/default -I. -I. -I/usr/include
> -I/usr/include/tqt3 -o main.o main.cpp
>
> |	g++ -luuid -o hello
>
> main.o    -L/usr/lib64 -L/usr/lib64 -L/usr/X11R6/lib64 -luuid -ltqt -lXext
> -lX11 -lm
>
> |	/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
>
> main.o: undefined reference to
> symbol '_ZN13TQApplication13setMainWidgetEP8TQWidget'
>
> |	/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
> | /usr/lib64/libtqt-mt.so.3:
>
> error adding symbols: DSO missing from command line
>
> |	collect2: error: ld returned 1 exit status
> |	make: *** [Makefile:88: hello] Error 1
>
> in which the loader seems to be complaining about setMainWidget, a method
> of TQApplication.  It seems to be expecting to find it in
>
> |	/usr/lib64/libtqt-mt.so.3
>
> and I see on the web that adding
>
> |	-ltqt-mt
>
> will fix the problem, and several web responses say to use
>
> |	./configure LIBS=-ltqt-mt
>
> but how would I do that with tqmake?
>
	After fiddling around a bit, I found that the way to do it with tqmake is
|	tqmake -makefile LIBS=-ltqt-mt
I'm now able to compile and run all of the programs.

Leslie
--
____________________________________________________
tde-users mailing list -- users@...
To unsubscribe send an email to users-leave@...
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@...