Debian Programming :: Packaging A Qt Application?

Jan 3, 2009

I'm trying to package a Qt application using debuild. However, I can't figure out how to make qmake generate a correct Makefile.

The main problem is that the binary doesn't get put into ./usr/bin inside the .deb.

So dh_shlibdeps always fails and I get the following:

Code: Select alldpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}

The resulting debian package then has an empty "depends" field and no binary.

I used the Qt Hello World example application to start.

I changed debian/rules (generated by dh_make) so that it runs qmake as follows:

Code: Select all#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

[code]....

View 6 Replies


ADVERTISEMENT

Debian Programming :: Packaging Shared Library With Python Wrapper

Apr 12, 2014

I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.

All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.

From here I have tried a couple different configurations to my debian/rules file as seen below:

Attempt 1:
# -*- makefile -*-
%:
dh $@ --with-python2 --buildsystem=python_distutils

This try seemed to package up the python stuff nicely but proceeded to ignore my makefile for the shared library and therefore ultimately failed.

Attempt 2:
# -*- makefile -*-
%:
dh $@ --with-python2

This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.

Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this

Attempt 3:
# -*- makefile -*-

build:
dh $@
dh $@ --with-python2 --buildsystem=python_distutils
%:
dh $@ --with-python2 --buildsystem=python_distutils

This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.

Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.

View 0 Replies View Related

Programming :: Regarding Packaging A Software Release?

Jan 20, 2010

I have a C++ application consisting of several source/header files. As part of the release management procedure, I use a shell script to package all necessary sources/headers in a tar file for a successful compilation on end-user site.However, for example, each time a new directory is created within application's source tree, I need to edit the shell script to implement necessary changes, which is error-prone.What is the best practice to package the source/header files of an application into a tar file ? Is there any tool that I can use for packaging purposes rather than writing my own shell scripts ? For example, how is Linux kernel itself packaged into a tar file ?

View 2 Replies View Related

Debian :: Packaging Tarball Which Already Has A Directory?

Apr 4, 2011

I have an upstream source tarball which, by coincidence, already contains a directory named "debian", but which has nothing to do with the "debian" directory for packaging. Assume also that renaming this directory would be difficult, for example because many other parts of the code would need to be modified. On an rpm based system, this poses no problem to the packager, since the rpm build process is driven by an external spec file and never has to modify the original source. What would be the best way to package this on a debian system? Is it absolutely necessary to rename the original "debian" directory? Or can I make the dpkg build tools operate out of a different directory?

View 5 Replies View Related

Debian :: Packaging / Preinst Script And Version Checking

Oct 27, 2015

How can I use the preinst script to check to see if the version that is installed older than the version trying to be installed and if so, take an action?

For example: if the software installed is at a version less than 6.14 then take an action, else return 0?

preinst:
Code: Select allset -e
case "$1" in
  install|upgrade)
  # if version installed <6.14 then do something else return 0
    ;;

[Code] ....

View 0 Replies View Related

Debian Programming :: Way To Create Cross-platform GUI Application

Oct 30, 2014

I'm looking for a way to create a cross-platform GUI application. The result must be able to run on linux, windows and OSX. And it must be a point-and-click GUI.For development I should be able to rely on Open-Source tools on linux only (that means no access to Windows or OSX)The target should be able to install the result relatively easily, that means any dependencies must be freely available, and the setup steps must be very minimal (probably means no installing development tools or running compilers)

My first thought was java, but the standard Swing GUI can look a bit ugly on some platforms. So I'm wondering if there's anything else. My next thought was C++/Qt, but I don't think I can cross-compile this from Debian for Windows or OSX, can I? Next I thought of python and PyQt, but it looks like PyQt isn't available for OSX. And finally I even thought of making some kind of web application running on a tiny web server of some kind, then accessing it with a native browser, but I'm pretty sure this doesn't meet the "easy to install" criteria. I'm finding this so tricky, do all the existing cross-platform applications use natively-compiled C++ for this? Or is there an obvious alternative that I'm overlooking?

View 6 Replies View Related

Debian Programming :: Installing Application Data To Specific Folder?

Jun 16, 2014

app deployment on Linux/debian and I'm using Debreate to create .deb packages which works fine. I install the software itself to /usr/bin but want to install the program's database to /home/username/myapp/ The problem is it that I don't know how to add the env variable 'username' to the target path. What is the exact syntax for this installation path?

View 3 Replies View Related

Fedora :: Where To Ask For Packaging Rpm's

Jun 17, 2011

I've been using Ubuntu so far. There is a system of launchpad repositories where there are lots of programs available that are not in official repo. I've already added rpm fusion but still I miss many programs that I had on Ubuntu. I found this page and I wonder where I can ask for making rpm's. I need several programs:

No package acidrip available.
No package bombono-dvd available.
No package cdcat available.

[code]....

I now that I can compile from source code but I'm new to linux and it's too difficult for me. I haven't even found program alien on Fedora that allows to install packages from other distributions.

View 8 Replies View Related

Ubuntu :: Packaging Project As A .deb File?

Apr 16, 2010

I have nearly completed a project.My team developed using C,shell scripts and qt.I would like to know how to package it as a .deb file??Also during installation,i want it to check for the existence of few packages in the system.If they are not there,i want it to download them using apt.

View 3 Replies View Related

Fedora :: Failed To Initialize Packaging Backend

Mar 16, 2010

Recently I started getting pop-up saying:

Code:
Failed to initialize
Failed to initialize packaging backend
This may occur if other packaging tools are being used simultaneously.
under more details i get:

Code:
There are unfinished transactions remaining. Please run yum-complete-transaction as root. I get to terminal, and as a root I try yum-complete-transaction, but it just says there are no unfinished transactions left. I tried to update thru yum, but this is what I get:

Code:
# yum update
Loaded plugins: fastestmirror, presto, refresh-packagekit
Determining fastest mirrors .....

After lots of googling, I tried:
"yum clean all",
"yum-comlete-transaction",
"rm -f /var/lib/rpm/__db*" + "rpm -vv --rebuilddb" + "yum clean all",

Everything else is working well, and I am able to update with "--skip-broken", but I keep getting this pop-ups. I use fedora 12.

View 5 Replies View Related

Networking :: Packaging A Traffic Shaper Project?

Oct 22, 2010

I have a SUSE Linux traffic shaper that can manage bandwidth usage per user and etc.for use it, we must configure LDAP server &client ,edit sudoerr's file, create mysql database with some tables� . Its interface is base on cgi&perl language . How do I package this project?
i don't know what part of proj is necessary for packaging (what is source code for creating a RPM package?)

View 1 Replies View Related

Fedora :: KPackageKit: Failed To Initialize Packaging Backend?

Feb 26, 2010

I have error in KPackageKit when i try to install anything or check for updates:

Failed to initialize packaging backend. This may occur if other packaging tools are being used simultaneously.

Details: There are unfinished transactions remaining. Please run yum-complete-transaction as root.

I don't know anything about other packaging tools - I think I don't using any. Yum works fine in terminal. Reinstall PackageKit and KPackageKit files doesn't helped me. I also try to rebuilt rpm db:

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb
yum clean all

I'm using Fedora 12 x86_64.

View 12 Replies View Related

Ubuntu Installation :: Cannot Get The Exclusive Lock On The Packaging Backend

Jan 15, 2010

" p, li { white-space: pre-wrap; }Cannot get the exclusive lock on the packaging backend. Please close any other legacy packaging tools that may be open." I cannot update anything, and I haven't opened another package downloader. The only one open is KpackageKit. Please help, is this a big or have a I got a virus or something? I don't know what information is needed so if I need to expand tell me what I need to retrieve and ill post it.I'm not good with Kubuntu problems.

View 2 Replies View Related

CentOS 5 :: Restore Packaging System To An Usable State?

Jul 14, 2011

I've got a CentOS 5.2 installation with broken package system. When I try to do "yum update" I get lots of "Missing Dependency" errors. How could I restore it to a usable state?

View 6 Replies View Related

Ubuntu :: Opening Synaptic Packaging Manager - Command Not Found?

Feb 5, 2010

Attempting to upgrade Firefox to 3.6. On opening synaptic package manager I get :-

An error occurred
E: dpg was interrupted, you must run 'dpkg--configure-a' to correct the problem.
E:_cache->open()failed,please report.

On entering 'dpkg--configure-a' on terminal I get 'command not found.

View 5 Replies View Related

Fedora :: Software Update Error - Failed To Initialize The Packaging Backend

Mar 15, 2010

From the GUI, software update gives the error "Failed to Initialize - Failed to initialize the packaging backend. This may occur if other packaging tools are being used simultaneously." In the more details, "There are unfinished transactions remaining.

I run a terminal, switch to root and do as it tells me. It returns saying that there are no unfinished transactions. I've run it several times with the same result. Then I run "yum clean all" and "yum upgrade." The upgrade processes runs and reports "there are unfinished transactions..." However, the upgrade process still completes. Basically it is now a severe annoyance, but the system does seem to upgrade. I just cannot figure out why there are somehow unfinished transactions that I cannot get rid of. I tried reinitializing the rpm database - no luck. How can I somehow reset yum?

View 2 Replies View Related

Fedora :: 13 - LDFLAGS - Avoid Re-compiling The Source And Only Run The Rpm Packaging Stuff With The Already Built Things

Jul 19, 2010

I recently installed Fedora 13 on my system, and I'm still in the process of setting it up as I like. As the FCEU and snes9x versions on rpmfusion are old (fceultra 0.98, snes without GUI), I wanted to compile my own RPMs Everything went OK, but I found myself having to build the packages several times because of missing LDFLAGS. I got several errors like "symbol X missing, it was found on Y so you may want to add Y to the linker flags", which I fixed by modifying & exporting LDFLAGS.

So, 2 questions:

1.- why are the LDFLAGS missing? How can I avoid having to set them up manually?
2.- There should be a way to avoid re-compiling the source and only run the rpm packaging stuff with the already built things (some option like 'don't build, only package'). how can I do that?

BTW, I can share my (pretty much hacked) .spec files if you are interested

View 8 Replies View Related

Fedora :: Application For Programming AVR?

Sep 29, 2010

I want to ask whether there is an application to program the AVR on Linux. if there is what the name of his application? and where I can get it

besides, I also want to install the supporting applications to make PCBs, in windows I used mangunakan Altium.

if for linux what is the name of his application?

View 1 Replies View Related

Programming :: Launch Application With RS-232 Message?

May 13, 2010

am using a PC104 with Linux and i need to control it with a controller that is connected via RS-232 or USB port. I need to launch one or more application some specific message come through RS-232 port. Is that doable? If yes how? I am beginner with C++ on Linux so i don't really know specif libraries. If possible i would like to use pure C and not C++.

View 4 Replies View Related

Programming :: Add Graphic To Console Application?

Aug 1, 2010

I want to write an application with an interface similar to those used in non-GUI linux installation programs. It is not really a pseudo-graphic. Does anybody knows an appropriate library?

View 2 Replies View Related

Programming :: Debugging Multithreaded Application?

Aug 23, 2010

i need to debug a application which is using many threads. i am using eclipse with GDB debugger but it is not possible to debug it since it has a lot of different threads and i can not not debug it as wre debug in case of single thread(main) . So i would like to know, is there a way to debug such an application, if there is some tutorial that would be nice to know.

View 8 Replies View Related

Programming :: Compiling The Library + Application?

Nov 28, 2010

I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:

Code:

#========== bar.h
void mytestfunc(void);
#========== bar.c
#include <stdio.h>

[code]...

Googling for this returns talks about "name mangling", but I don't know if this is what it is, and how to change the source/command to solve it.

View 1 Replies View Related

Programming :: Application Requires Later Glibc

May 10, 2011

My users need to run an application which was build with newer GLIBC_2.11, while my system only gets GLIBC_2.4. It shows error "cannot find libc.so.6 GLIBC_2.11" whenever I run it. I cannot upgrade the system, so I have tried building Glibc 2.11 (for example:/opt/glibc-2.11) to another directory, but when I point LD_LIBRARY_PATH to /opt/glibc-2.11, I cannot run any commands because of error invalid LFS ABI. I also tried using LD_PRELOAD, but it does not work. Please help me, how can I fix this problem.

View 3 Replies View Related

Programming :: C# ; Can't Stop Application Properly?

Jun 8, 2011

I'm developping a C# app in Windows using VS2010. It has one form and communicates as a client with a server.A receive thread displays incoming data while buttons and a timer send data. All workingThe form has a button that calls the below method to disconnect from the server.

Code:
public bool disconnect()
{

[code]...

View 2 Replies View Related

Programming :: Get Application Under Mouse Cursor?

Jan 2, 2010

Is there a somewhat straightforward way to get the name or pid of the application that is under the mouse's cursor? What I'm trying to do: This is just a "what if" at this point, I would like to run some script that would obtain the name/pid of any application that the mouse cursor is on, and use xte to assign different functions to different mouse buttons. For instance, assign a given button the Forward or Back function when the cursor is on a browser, but assign a scroll-left or scroll-right to the same button when it's on a spreadsheet. Is there any way to accomplish this, say, in a script that I could run at startup as a background process?

View 4 Replies View Related

Programming :: Link A C Application Using Glib 2.0?

Mar 29, 2009

I never had to use anything more than -l , -lm , -c ,-o.It was only through dev documentation that I came across glib. Now I want to to compile and link a program with glib.

View 5 Replies View Related

Programming :: Get The Log (syslog) Messages Through Application?

Mar 30, 2009

I want read the log messages to my 'c' application , i am using the fedora core 8 operating system , how to read the system log messages(syslog) through my application.

View 3 Replies View Related

Programming :: Make Command For An Application?

Jul 21, 2010

i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.

Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>

[Code]...

View 4 Replies View Related

Programming :: Multithreading Application Hangs

May 5, 2009

I have developed a proprietary multithreaded application using Qt library version 4.2.1 on RHEL 4 platform. The application communicates with different external interfaces using serial communication using well defined protocols. For each system I have a thread that handles data acquisition and processing, it sets an update flag which is read by the GUI thread to update GUI after specified number of seconds. The incoming data from external systems is processed and updated on GUI at certain intervals. Each system update rate on GUI is different. Generally it is 1 second. Their rate of sending data is different and is generally 1Hz, 5 Hz and 10 Hz. For systems with string data I have no issues. But some systems send raw data and I have to process every byte of the entire packet, for which I have to use for loops. Now my problem is if I keep the update rate of GUI for such systems less than a fixed number of seconds (which I have to calculate by hit and trial) the application hangs after sometime. I have tested this system exlusively by switching of all other systems and it hangs standalone.

This leads me to conclude that timing of GUI update is what is causing the application to hang. Also I read somewhere on the net that in multithreading application timers play an important role and slight variation in timing can lead to hung applications. As of now I have kept 5 seconds as the GUI update time and app runs fine. Can somebody suggest something else which might be the cause?Note that I have used mutexes, wait conditions and all necessary tools which are used in multithreading app. But it is only the timer on which I could pin down the issue.

View 6 Replies View Related

Programming :: Install And Use The The Font In The Application?

Jun 24, 2010

1. How to use the the font in the application? Any code example?
2. How to install the font for linux?
3. How to make the installed font as the system default font?
4. How font/text is rendered in linux? Any inforamation about the font system in linux?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved