trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: November 2016

Re: [trinity-users] Struggling with "C++ GUI Programming with Qt 3"

From: Michele Calgaro <michele.calgaro@...>
Date: Thu, 17 Nov 2016 21:17:00 +0800
On 2016/11/17 01:02 PM, Leslie Turriff wrote:
> Hi,
> 	I'm trying to learn to write a GUI app using the book "C++ GUI Programming  
> with Qt 3", which of course is not written with Trinity in mind, but 
> hopefully will be enough to get me started.  I've already figured out that I 
> need to substitute 'tqmake' for 'qmake', but I can't get the 
> simple 'helloworld' project to actually compile the c++ code.  I've got the 
> project generated, and I see the code in its src/ directory, but when I try 
> to build it (the book says to use 'make') it says "make: Nothing to be done 
> for 'first'."
> 	Here is the Makefile generated by tqmake:
>>
>> ###########################################################################
>> Makefile for building: Tutorial1
>> Generated by qmake (1.07a) (TQt 3.5.0) on: Wed Nov 16 22:57:35 2016
>> Project:  Tutorial1.pro
>> Template: subdirs
>> Command: $(QMAKE) -o Makefile Tutorial1.pro
>> ###########################################################################
>>
>> MAKEFILE =      Makefile
>> MAKE    =      tqmake
>> DEL_FILE =    rm -f
>> CHK_DIR_EXISTS= test -d
>> MKDIR    = mkdir -p
>> INSTALL_FILE=
>> INSTALL_DIR =
>> SUBTARGETS =
>>
>> first: all
>>
>> all: Makefile $(SUBTARGETS)
>>
>> Makefile: Tutorial1.pro  /usr/share/tqt3/mkspecs/default/qmake.conf
>>         $(QMAKE) -o Makefile Tutorial1.pro
>> qmake: qmake_all
>>         @$(QMAKE) -o Makefile Tutorial1.pro
>>
>> all qmake_all distclean uicables mocables install_subdirs uninstall_subdirs 
> uiclean mocclean lexclean yaccclean clean : FORCE
>> install:  install_subdirs
>>
>> uninstall:  uninstall_subdirs
>>
>> FORCE:
>>
> 
> 	And here is the Project file:
> 
>> ######################################################################
>> # Automatically generated by qmake (1.07a) Wed Nov 16 22:47:58 2016
>> ######################################################################
>>
>> TEMPLATE = subdirs
>>
>> # Directories
> 
> 	Are there additional steps required when compiling a QT project in Trinity?
> 
> Leslie
> 

Take a look at the QT3 tutorial here
https://www.trinitydesktop.org/docs/qt3/tutorial.html
Should be able to get you started with TQt ;-)
Cheers
  Michele



Attachments: