473,563 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with source package including eggtrayicon

I am quite new with python and I'm developing a package that is
including a binary file (eggtrayiconmod ule.so) that is open source.

My software is developed in part under linux, and now I would like to
make it fully portable to other unix-like platforms. Therefore I need
to provide the source and integrate eggtrayicon compiling in my

At this point I don't know how go on.

The copy of eggtrayicon I am using is provided by rhn-applet under
Fedora and other distributions, and if I'm not wrong is originally
part of Gnome.

But I do not know what to do with the package to obtain the .so
file... I have only a very rudimental base of C programming.

Is there anyone that can point me in the right direction? At the
present time I am using the python distutils to install/build the
python files, and a method that could be integrated would be

Thanks in advance,
Jul 18 '05 #1
1 1320
I could go on, and now I have my working Makefile and I can compile
eggtrayicon, but I would like to include this compile in my setup.py,
if possible.

My Makefile is:
# Makefile for eggtrayicon

OBJECTS = eggtrayiconmodu le.so

# Compilation stuff
CC = gcc
PYTHON_VERSION = $(shell echo `python -c "import sys; print
PYTHON_INCLUDE = -I/usr/include/python$(PYTHON_ VERSION) \
-I/usr/include/pygtk-2.0 \
$(shell pkg-config gtk+-2.0 --cflags) \
$(shell pkg-config libgnomeui-2.0 --cflags)
LIBS = $(shell pkg-config gtk+-2.0 --libs) \
$(shell pkg-config libgnomeui-2.0 --libs)
CFLAGS = -Wall -g -fomit-frame-pointer $(PYTHON_INCLUD E)

all:: $(OBJECTS)

%.o : %.c
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
%.so : %.o
$(CC) -shared $(LIBS) -Wl,-soname,$@ $< -o $@


Thanks in advance.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM protocol. I keep the project source in three directories, based upon the code's function: one for the network API code itself, one for the support APIs...
by: Chris | last post by:
Hi, I followed the the aricle http://support.microsoft.com/default.aspx?scid=kb;en-us;321525 and was able to execute a dts package in vb.net. I replaced all the "Console.WriteLine" with "msgbox". The problem I am having is that on my form I added a listbox control and I created a sub that added entries to the list box Public Sub...
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised that i could retrieve my code from my applications after i compile it so i need to know to prevent this from happening to my applications Thanx in...
by: Adrian Parker | last post by:
For deployment reasons, we don't want to have to install our large app on each network client manually; we'd like to have our users run a very small app on their clients that basically runs the main installer from a hidden share on the network. We want a server app that we can run somewhere that will be able to send the necessary info to the...
by: Uncle Sam | last post by:
Build a job that imports a new version of MTL_PARAMETERS at 6pm each day. It should keep trying to import the table until it is successful. Care should be taken to avoid data model downtime.
by: Anantha | last post by:
Dear All, One day our Windows 2000 Server OS crashed, so our NT admin has re-installed the OS on C: drive. Fortunately we kept our database file and installation in F: drive. When we re-installed DB2 on the same location we are able to catalog and recover the database with old data files. Now the problem is when i tried to create a database...
by: simonalexander | last post by:
I have got a homework task to do and I have started the work but I cannot finish it.Can someone please help me finish the code. The help given is much appreciated. The actual specifications are here: The task for this project is to write a simulator program for a robot designed to move packages around in a warehouse environment. The...
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
by: gquiring | last post by:
I have a new server running CentOS 5.1. I was surprised the stock PHP excludes MySQL, PDO and a bunch of other popular modules. I decided to download the source and compile a version with the modules I need but I used the phpinfo() configure option and modified my changes. What I don't get is stock configure (no changes) won't compile on...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.