VectorLinux
November 23, 2014, 02:43:33 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Packaging an app for installation on couple machines  (Read 6062 times)
Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« on: April 16, 2008, 07:48:21 am »

Hello,
I need to install QChat app from http://www.kde-apps.org/content/show.php/QChat?content=65066 and have downloaded the source.
I have some struggles with packaging it. I have to install this app on 5 office machines and need to make a simple install file.
Would anyone be so kind to guide me a bit throughout the packaging process?
Thank you a lot.

p.s. machine spec.
Quote
Kernel   Linux 2.6.22.14 (i686)
Compiled   #1 SMP PREEMPT Sun Nov 25 19:27:11 MST 2007
C Library   GNU C Library version 2.5 (stable)
Distribution   5.9 Standard GOLD built on Dec-16-07
Current Session
Computer Name   Reception
User Name   receptie (Receptie)
Home Directory   /home/receptie
Desktop Environment   XFCE 4
« Last Edit: April 24, 2008, 11:16:07 pm by Azmandius » Logged

The beat never fades!
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #1 on: April 16, 2008, 09:46:41 am »

How are you trying to compile this?
Seems like you need to install qt-4.3 in order to build it and install run it. This means that you'll need to install qt4.3 on the other machines too.

Looks like you should be able to build it after qt 4.3 is installed using this command
Code:
qmake && make && mkdir PKG && make DESTDIR=$PWD/PKG install && cd PKG && makeslapt --tlz qchat-0.2.2-i586-1vl59.tlz
I think qt-4.3 is available from the repos...
Code:
slapt-get --update && slapt-get --install qt4
Post any errors you get during the build process for better assistance.

HTH
Logged

bigpaws
Vectorian
****
Posts: 1857


« Reply #2 on: April 16, 2008, 02:54:34 pm »

http://vectorlinux.osuosl.org/docs/packaging/

Bigpaws
Logged
Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #3 on: April 21, 2008, 09:39:43 am »

Looks like you should be able to build it after qt 4.3 is installed using this command
Code:
qmake && make && mkdir PKG && make DESTDIR=$PWD/PKG install && cd PKG && makeslapt --tlz qchat-0.2.2-i586-1vl59.tlz
After installing qt 4 and running this cmd in terminal inside package directory as simple user, i got this message:
Quote
receptie:$ qmake && make && mkdir PKG && make DESTDIR=$PWD/PKG install && cd PKG && makeslapt --tlz qchat-0.2.2-i586-1vl59.tlz
Usage: qmake [mode] [options] [files]

   QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
        -project       Put qmake into project file generation mode
                       In this mode qmake interprets files as files to
                       be built,
                       defaults to *.c; *.ui; *.y; *.l; *.ts; *.h; *.hpp; *.hh; *.H; *.hxx; *.cpp; *.cc; *.cxx; *.C
        -makefile      Put qmake into makefile generation mode (default)
                       In this mode qmake interprets files as project files to
                       be processed, if skipped qmake will try to find a project
                       file in your current working directory

Warnings Options:
        -Wnone         Turn off all warnings
        -Wall          Turn on all warnings
        -Wparser       Turn on parser warnings
        -Wlogic        Turn on logic warnings

Options:
         * You can place any variable assignment in options and it will be     *
         * processed as if it was in [files]. These assignments will be parsed *
         * before [files].                                                     *
        -o file        Write output to file
        -unix          Run in unix mode
        -win32         Run in win32 mode
        -macx          Run in Mac OS X mode
        -d             Increase debug level
        -t templ       Overrides TEMPLATE as templ
        -tp prefix     Overrides TEMPLATE so that prefix is prefixed into the value
        -help          This help
        -v             Version information
        -after         All variable assignments after this will be
                       parsed after [files]
        -cache file    Use file as cache           [makefile mode only]
        -spec spec     Use spec as QMAKESPEC       [makefile mode only]
        -nocache       Don't use a cache file      [makefile mode only]
        -nodepend      Don't generate dependencies [makefile mode only]
        -nomoc         Don't generate moc targets  [makefile mode only]
        -nopwd         Don't look for files in pwd [ project mode only]
        -norecursive   Don't do a recursive search [ project mode only]
Thank you M0E.
Logged

The beat never fades!
Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #4 on: April 23, 2008, 09:10:22 am »

I think i have troubles with ./configure
Here is the run in terminal:
Code:
./configure
bash: ./configure: No such file or directory
Code:
./configure -prefix=/usr --sysconfdir+/etc -with-included-gettext -mandir=/usr/man
bash: ./configure: No such file or directory
So i just don't know how to move further with packaging.
Help please.
Logged

The beat never fades!
Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #5 on: April 23, 2008, 09:19:47 am »

I am trying to follow directions from Bigpaws url
Logged

The beat never fades!
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #6 on: April 23, 2008, 09:32:32 am »

You will not be able to configure this, becuase there is no configure script provided... so you run straight to qmake.
Try running it like this in the directory containing the extracted source

Code:
qmake -makefile
[code]
if that completes without errors, then run each command in the one liner separately
[code]
make
mkdir $PWD/PKG
make DESTDIR=$PWD/PKG install
cd PKG
makeslapt --tlz <application_name>-<version>-<arch>-<release>.tlz
of course, replace the <value> with the correct values for your application.

Post back if you need more help[/code][/code]
Logged

Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #7 on: April 24, 2008, 05:43:21 am »

Command
Code:
qmake -makefile
completed without errors.
But this command gave errors:
Code:
make
mkdir $PWD/PKG
make DESTDIR=$PWD/PKG install
cd PKG
makeslapt --tlz qchat-0.2.2-i486-1vl59.tlz
The error:
Code:
Reception:/~/inst/qchat-0.2.2
receptie:$ mkdir $PWD/PKG
Reception:/~/inst/qchat-0.2.2
receptie:$ make DESTDIR=$PWD/PKG install
g++ -c -pipe -Wall -W -O2  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I/usr/lib/qt/include -o main.o main.cpp
main.cpp:16:24: error: QApplication: No such file or directory
main.cpp:17:21: error: QResource: No such file or directory
main.cpp:18:23: error: QModelIndex: No such file or directory
main.cpp:19:27: error: QTextCharFormat: No such file or directory
main.cpp:20:24: error: QHostAddress: No such file or directory
main.cpp:21:32: error: QNetworkAddressEntry: No such file or directory
In file included from main.cpp:27:
qchat.h:19:19: error: QObject: No such file or directory
qchat.h:29: error: expected class-name before '{' token
qchat.h:30: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type
qchat.h:31: error: expected ';' before 'private'
qchat.h:34: error: ISO C++ forbids declaration of 'QApplication' with no type
qchat.h:34: error: expected ';' before '*' token
qchat.h:35: error: 'QString' does not name a type
qchat.h:38: error: expected `)' before '*' token
qchat.h:41: error: 'QApplication' has not been declared
qchat.h:43: error: expected `:' before 'slots'
qchat.h:44: error: expected primary-expression before 'void'
qchat.h:44: error: ISO C++ forbids declaration of 'slots' with no type
qchat.h:44: error: expected ';' before 'void'
qchat.h:45: error: expected ',' or '...' before '&' token
qchat.h:45: error: ISO C++ forbids declaration of 'QString' with no type
main.cpp:29: error: variable or field 'myMessageOutput' declared void
main.cpp:29: error: 'QtMsgType' was not declared in this scope
main.cpp:29: error: expected primary-expression before 'const'
main.cpp:29: error: initializer expression list treated as compound expression
main.cpp:30: error: expected ',' or ';' before '{' token
main.cpp: In function 'int main(int, char**)':
main.cpp:65: error: 'qInstallMsgHandler' was not declared in this scope
main.cpp:67: error: 'QApplication' was not declared in this scope
main.cpp:67: error: expected `;' before 'app'
main.cpp:69: error: 'images' was not declared in this scope
main.cpp:69: error: 'Q_INIT_RESOURCE' was not declared in this scope
main.cpp:76: error: 'qRegisterMetaType' was not declared in this scope
main.cpp:76: error: expected primary-expression before 'unsigned'
main.cpp:76: error: expected `;' before 'unsigned'
main.cpp:77: error: 'QHostAddress' was not declared in this scope
main.cpp:78: error: 'quint8' was not declared in this scope
main.cpp:79: error: 'quint16' was not declared in this scope
main.cpp:80: error: 'quint32' was not declared in this scope
main.cpp:81: error: 'quint64' was not declared in this scope
main.cpp:83: error: 'QModelIndex' was not declared in this scope
main.cpp:84: error: 'QTextCharFormat' was not declared in this scope
main.cpp:85: error: 'QNetworkAddressEntry' was not declared in this scope
main.cpp:89: error: 'app' was not declared in this scope
make: *** [main.o] Error 1
Reception:/~/inst/qchat-0.2.2
receptie:$ cd PKG
Reception:/~/inst/qchat-0.2.2/PKG
receptie:$ makeslapt --tlz qchat-0.2.2-i486-1vl59.tlz
Thanks.
Logged

The beat never fades!
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #8 on: April 24, 2008, 09:39:11 am »

Looks to me like you didnt' run make, unless you left that part off the log
and BTW, after you run make, you need to use the su command to become root
and then execute the rest of the commands.
Logged

Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #9 on: April 24, 2008, 11:05:47 am »

As soon as i run make i get that:
Code:
Reception:/~/inst
receptie:$ cd qchat-0.2.2
Reception:/~/inst/qchat-0.2.2
receptie:$ qmake -makefile
Reception:/~/inst/qchat-0.2.2
receptie:$ make
g++ -c -pipe -Wall -W -O2  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I/usr/lib/qt/include -o main.o main.cpp
main.cpp:16:24: error: QApplication: No such file or directory
main.cpp:17:21: error: QResource: No such file or directory
main.cpp:18:23: error: QModelIndex: No such file or directory
main.cpp:19:27: error: QTextCharFormat: No such file or directory
main.cpp:20:24: error: QHostAddress: No such file or directory
main.cpp:21:32: error: QNetworkAddressEntry: No such file or directory
In file included from main.cpp:27:
qchat.h:19:19: error: QObject: No such file or directory
qchat.h:29: error: expected class-name before '{' token
qchat.h:30: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type
qchat.h:31: error: expected ';' before 'private'
qchat.h:34: error: ISO C++ forbids declaration of 'QApplication' with no type
qchat.h:34: error: expected ';' before '*' token
qchat.h:35: error: 'QString' does not name a type
qchat.h:38: error: expected `)' before '*' token
qchat.h:41: error: 'QApplication' has not been declared
qchat.h:43: error: expected `:' before 'slots'
qchat.h:44: error: expected primary-expression before 'void'
qchat.h:44: error: ISO C++ forbids declaration of 'slots' with no type
qchat.h:44: error: expected ';' before 'void'
qchat.h:45: error: expected ',' or '...' before '&' token
qchat.h:45: error: ISO C++ forbids declaration of 'QString' with no type
main.cpp:29: error: variable or field 'myMessageOutput' declared void
main.cpp:29: error: 'QtMsgType' was not declared in this scope
main.cpp:29: error: expected primary-expression before 'const'
main.cpp:29: error: initializer expression list treated as compound expression
main.cpp:30: error: expected ',' or ';' before '{' token
main.cpp: In function 'int main(int, char**)':
main.cpp:65: error: 'qInstallMsgHandler' was not declared in this scope
main.cpp:67: error: 'QApplication' was not declared in this scope
main.cpp:67: error: expected `;' before 'app'
main.cpp:69: error: 'images' was not declared in this scope
main.cpp:69: error: 'Q_INIT_RESOURCE' was not declared in this scope
main.cpp:76: error: 'qRegisterMetaType' was not declared in this scope
main.cpp:76: error: expected primary-expression before 'unsigned'
main.cpp:76: error: expected `;' before 'unsigned'
main.cpp:77: error: 'QHostAddress' was not declared in this scope
main.cpp:78: error: 'quint8' was not declared in this scope
main.cpp:79: error: 'quint16' was not declared in this scope
main.cpp:80: error: 'quint32' was not declared in this scope
main.cpp:81: error: 'quint64' was not declared in this scope
main.cpp:83: error: 'QModelIndex' was not declared in this scope
main.cpp:84: error: 'QTextCharFormat' was not declared in this scope
main.cpp:85: error: 'QNetworkAddressEntry' was not declared in this scope
main.cpp:89: error: 'app' was not declared in this scope
make: *** [main.o] Error 1
Reception:/~/inst/qchat-0.2.2
receptie:$
Logged

The beat never fades!
M0E-lnx
Administrator
Vectorian
*****
Posts: 3192



« Reply #10 on: April 24, 2008, 12:00:08 pm »

Wow... then it is a real pickle...

I'm all out of ideas here... dunno what could possibly be wrong

I have never built anything that builds like this, it's kinda similar to CMAKE, but not quite the same.
And my system resources locally do not allow me to git it a shot myself...
Sad
Logged

Azmandius
Member
*
Posts: 49


The beat never fades!


WWW
« Reply #11 on: April 24, 2008, 11:11:22 pm »

I wish someone could just build that package and pass it to me... Smiley
« Last Edit: April 28, 2008, 11:56:05 pm by Azmandius » Logged

The beat never fades!
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #12 on: April 25, 2008, 07:12:21 am »

Azmandius,

after you cd into the source dir run
Code:
qmake src.pro
then you can run make and finish your package from there



Uelsk8s
Logged
boneygamba
Member
*
Posts: 22



« Reply #13 on: April 25, 2008, 09:31:21 am »

Hi Azmandius

No one could accuse you of not having a go, that's for sure!  Tongue

I thought that i would try and emulate your efforts to see if i got the same results as you.
I did.
qmake made a Makefile but that was as far as i got.

so... i looked at the Makefile to see what i could see and noticed the variable QTDIR being mentioned all over the place.  Roll Eyes
'The penny dropped' as i realised that there were now 2 versions of Qt installed.

the command:
Code:
qmake -query "QT_INSTALL_PREFIX"
result: /usr/lib/qt-3.3.8
This confirmed my suspicion that the wrong version of qt was being used somewhere along the way.

Well to cut a long story short...(this post is getting too long)

instead of

Code:
qmake

type

Code:
qmake4

now make works(at least it did for me Cheesy).

Regards
boneygamba


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!