Linux Ubuntu Debian Package

How to use eePe
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Linux Ubuntu Debian Package

Post by Flaps 30 »

Having found out that I have to go through the same process that I did initallly, to update my eePe. I am having nightmares of all the hassle that created, especially in changing permissions for files.

Is there any move to create a Debian package to make it easy to install for users like myself, or am I one of not a lot who actually use Linux or Ubuntu?

Do I have to go through the whole process again, or is there an easy way to just replace the core program?

Flaps

User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

:D

You have your nightmares and I have mine.... I wanted to make an Ubuntu package but building and maintaining it is a huge headache!
I hoped that the guys with Qt have made some headway but no.


Making a package requires to make a tarball, definition files and more definision files.
Too much work!

If you've already built it on your system then all you have to do is ru 2 lines in the terminal:
1) go to the location where you downloaded your code (probably ~/eepe-read-only/src)
2) type "svn update" <ENTER>
3) type "qmake && make" <ENTER>

Let it run and that's it!
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Linux Ubuntu Debian Package

Post by Flaps 30 »

erazz wrote::D You have your nightmares and I have mine....
Mine are bigger than yours! :mrgreen:

Thanks for the instructions. It seemed to go well. It went through a series of things and then told me that it had updated to revision 294. The 'make' bit took a long time to complete throwing up lines like this "-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o modeledit.o modeledit.cpp"

The end result of the whole thing when it had returned the terminal back to me was no change to eePe. :(

Any ideas on what else I can do, before I revert to the windoze method of removing eePe and going through the whole process again.

Sorry to be a pain. Software isn't my strong point at my time of life.
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

OK,

Run these commands:
qmake <enter>
make | tee makelog.txt

This will create a file called make.log.
Upload it here and I'll have a llok at it.

And yes, make does take about 5 minutes to complete. That's normal and so are the warnings. :)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Linux Ubuntu Debian Package

Post by Flaps 30 »

Okay... So in theory it should have all gone through without any problems. If only life was that simple, :)

I put in what you asked me to do. I think I may have got something wrong.

This is what I did:

trish@trish-desktop:~$ cd ~/eepe-read-only/src
trish@trish-desktop:~/eepe-read-only/src$ qmake
trish@trish-desktop:~/eepe-read-only/src$ make | tee makelog.txt
make: Nothing to be done for `first'.
trish@trish-desktop:~/eepe-read-only/src$

Edit! - Oops! .. Having read what was in front of my eyes above. I realised that I had copied the original eePe program to my desktop. The real file was/is in the eepe folder and that is all correct and updated as it should be.... Sorry about that. :)

User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

:)

I thought that might be the case but I wanted to make sure it compiled properly.

I had another look at packaging. I might be able to produce a .deb file. If I can do this automatically then I'll add it to the build sequence. No promises :)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Linux Ubuntu Debian Package

Post by Flaps 30 »

Well.. It certainly would help me in the future Erazz. But I do wonder how many people out there actually use Linux and in particular Ubuntu to make it worthwhile.
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

You'd be surprised. A fair few. I guss those that like to experiment with their radio also like to experiment with their OS.

Tell you what, I'll give it a shot today. If I don't report back then please pester me! By emails, pm's and force if necessary. I have anotoriously short attention span. If you pester me I will do it :) (ask this guy :D)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by rperkins »

I use ubuntu linux and would test and use a .deb if available. I'm still in research phase so don't have any idea of the dependencies, whether different versions would be needed for different versions of ubuntu. Do imagine a 32 bit and 64 bit would be required.
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

I think I got it!

on the eePe code page you can find the .deb packages for 32 bit and 64 bit.
These should work for Ubuntu, Debian and any other Distro that can read .deb packages.

The package should install a shortcut and a menu entry. It should also install the language files.

You still need to make sure you got the following libraries installed:
libqt4gui, libqt4network, libqt4core and avrdude.


:D
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Well, partially. 64bit debian package works great. As long as you have the necessary dependencies.

The 32bit package is a bit of a problem.


I was hoping to do an automated mac build but that's waaay out of my depth.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Linux Ubuntu Debian Package

Post by Flaps 30 »

Thanks for your time on this Erazz. It is appreciated. My system is 32 bit.
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Don't worry, I'll get it fixed. Shouldn't be a big issue.

BTW. after you run "make", run "sudo make install". This will copy the binaries to the proper location and set up a shortcut from your menu. Check it out.
If you don't like it you can type "sudo make uninstall" Super simplem huh?
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

I'm going to need some volenteers/guinea pigs to try and download the.deb files, try to install them and tell me what works.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
GrootWitbaas
Posts: 358
Joined: Tue Dec 27, 2011 8:57 pm
Country: -
Location: Germany

Linux Ubuntu Debian Package

Post by GrootWitbaas »

Now that i have the companion9x working on mac it's time i do some changes for eepe on mac. Once i am able to do this I'll send you the info erazz


Sent from my iPhone using Tapatalk
General trouble maker and wannabee Dev
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by rperkins »

erazz wrote:I'm going to need some volenteers/guinea pigs to try and download the.deb files, try to install them and tell me what works.
Hello. thanks for making the .deb . I got it installed on Ubuntu 11.10 64 bit. It seems to be working but I dont know how to use it yet :) Here is how I installed the dependencies:

Code: Select all

sudo apt-get install libqt4-gui libqt4-network libqt4-core avrdude
Here is how I installed eepe . I ran this from the dir that I downloaded the .deb to:

Code: Select all

sudo dpkg -i eepe-amd64.deb
A couple things to think about
the dependencies can be handled automatically from within the debian/control file

Code: Select all

Depends: libqt4-gui, libqt4-network, libqt4-core, avrdude
I dont believe the name of the deb should be different for the i386/amd64 version. this is also handled in the debian/control file.

Code: Select all

Architecture: amd64
the executable eepe is currently located at /usr/bin/eepe/eepe . This is not in the $PATH of a normal user. when I tried to run 'eepe' from a terminal window it couldnt find the file. I'm guessing that the file could be located at /usr/bin/eepe. ( then you would also want to update/usr/share/applications/eepe.desktop)

The lang/ dir and icon.svg could maybe be located at /usr/share/eepe .

When eepe opened it gave me an opportunity to download a version of the firmware. By default it wanted to store it in the / directory. maybe this should be the ~ (home) directory because users dont have write permissions to the / directory. I cant remember how this failed. I think the program just closed with no error warning.

If the demand for the .deb takes off, creating a small repository would be cool. After it is created it's easy for the user to install and update eepe
1. sudo add-apt-repository 'deb http://repo.eepe.comx/ oneric main'
2. sudo apt-get update
3 sudo apt-get install eepe ( this will bring in all the dependencies from the debian/ubuntu mirrors. architecture is also taken care of )
4. then as new versions of eepe are added to the repository, the user just has to 'sudo apt-get dist-upgrade' to get the latest

it's a great first start. my 9x is off of backorder from HK. now hopefully it will ship before the chinese new year :) then I will get into the software.

thanks again
rperkins
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Thanks for the suggestions.

The reason for the placement of the files is the "lang" location. I know it's not canonical with the rest of the linux world but I was lazy and didn't want to code differently for Windows and Linux. I guess I need to include it in my "TODO" list now that we have packages.

Concerning dependencies, checkinstall doesn't handle them very well. Truth be told I simply don't have the time to properly maintain a deb package. I thought about automating the process but, again, I'd rather devote my timne to other things. That being said, if anybody want's to set up an automatic script or be a maintainer for these I'd be glad to help, include it in the project and give credit!

Having an automated Mac package would be wonderful as well. I can manage the compile but packaging is not up my ally.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by rperkins »

erazz wrote:Thanks for the suggestions......snip.....I'd rather devote my timne to other things. That being said, if anybody want's to set up an automatic script or be a maintainer for these I'd be glad to help, include it in the project and give credit! .
I understand completely. Lets gauge the need of the community and my commitment to the hobby. The notes above should help anyone who wants to use the deb. I did take the plunge and order an arduino. been looking at hobby cpu's for a long time.

Is the 32 bit version working ? If not, I do have a 3 day weekend and the snow is blowing round here in Cleveland. Need to put new swash links on my mcpx. Darn coffee table. Landing skid is mangled too. Snow delayed ups delivery of replacement . But it will still get off the ground :)
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

It's not workign at the moment. Apparently it's a compile issue. That is one thing I'd probably have to solve on my own since it's related to my enviornment. I still need to learn how to compile 32bit applications on 64bit.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Great news!

I got it working!


deb packages galore!


Look for a functioning 32bit package on the next update!
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by rperkins »

alright. way to go. I'm still waiting on my HK to arrive. The new years celebrations are probably about over.
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Anybody got the .deb packages to work?

I forgot to mention that you need to install "libqt4-xml" as well.
But it does work :)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
Micro Buzzer
Posts: 5
Joined: Tue Dec 27, 2011 8:16 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by Micro Buzzer »

the .deb packages work fine for me

Thanks
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Great :)

It seems that I have also solved the dependencies issue.
On Ubuntu, if you use the software center, it would sort out the dependencies by itself.

You could lso use gdebi to install (gdebi also takes care of dependencies).


All in all, finally. A decent solution. Now to solve the location issue and the automatic updates.....
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
Suncoaster
Posts: 313
Joined: Thu Dec 29, 2011 10:18 am
Country: Australia
Location: Cooloola Cove, Australia

Re: Linux Ubuntu Debian Package

Post by Suncoaster »

32 bit version is working on my 11.10 netbook. Thank you for your efforts. Now to sort out what it is all about. :?
txwindrider
Posts: 4
Joined: Fri Mar 02, 2012 5:18 pm
Country: -
Location: Richardson, TX

Re: Linux Ubuntu Debian Package

Post by txwindrider »

I downloaded and installed eepe-amd64.deb on my Ubuntu 10.04 system today. The install appeared to go cleanly. GDebi identified and installed dependencies.

When I click on Configure on the toolbar or on Preferences in the menu the application terminates with this message in the terminal:
eepe: symbol lookup error: eepe: undefined symbol: _ZN9QListData11detach_growEPii

Am I doing something incorrectly? Thanks.
flanders
Posts: 4
Joined: Tue Jan 24, 2012 8:54 pm
Country: -

Re: Linux Ubuntu Debian Package

Post by flanders »

hi, i am using 64bit ubuntu deb and get the same error as the last poster, any ideas?
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Weird...

Let's try this. Can you post this line in your terminal? (it installs the correct libraries)

Code: Select all

sudo apt-get install libqt4-core libqt4-network libqt4-xml libqt4-gui avrdude
It is very likely that you are running an incompatible version of Qt...
Please run this code and tell me the output: (it lists the data for the libqt4-core package)

Code: Select all

dpkg -l |grep libqt4-core
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
txwindrider
Posts: 4
Joined: Fri Mar 02, 2012 5:18 pm
Country: -
Location: Richardson, TX

Re: Linux Ubuntu Debian Package

Post by txwindrider »

On my system:

Code: Select all

sudo apt-get install libqt4-core libqt4-network libqt4-xml libqt4-gui avrdude
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt4-core is already the newest version.
libqt4-core set to manually installed.
libqt4-network is already the newest version.
libqt4-network set to manually installed.
libqt4-xml is already the newest version.
libqt4-xml set to manually installed.
libqt4-gui is already the newest version.
libqt4-gui set to manually installed.
avrdude is already the newest version.
avrdude set to manually installed.
The following packages were automatically installed and are no longer required:
nspluginwrapper vcdimager libsvga1 libpst4 mplayer libiso9660-7
libcouchdb-glib-1.0-2 mencoder liblzo2-2 libdesktopcouch-glib-1.0-2
libvcdinfo0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

dpkg -l |grep libqt4-core
ii libqt4-core 4:4.6.2-0ubuntu5.3 transitional package for Qt 4 core non-GUI r
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Linux Ubuntu Debian Package

Post by erazz »

Well, there's your problem....

You're running 4.6.2 while eePe is supposed to run with 4.7.4.
This is a problem that comes with Qt and was fixed somewhere between the two versions.

You're running an older version of Ubuntu which uses the older libraries.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!

Post Reply

Return to “eePe”