forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Req: projectM
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging
View previous topic :: View next topic  
Author Message
Clancy
Xandrosianding
Xandrosianding


Joined: 01 Mar 2004
Posts: 902
Location: NSW, Oz

PostPosted: Wed Oct 24, 2007 7:13 pm    Post subject: Req: projectM Reply with quote

Hi all,

apologies if this is out of order: although I've been using xandros for 3 years I've never before ventured into the scary world of compiling / packaging. Embarassed

I'm using xandros 4 with all the updates installed. I'd like to install projectM (an open source / openGL port of the winamp directX visualisations package, milkdrop):

http://projectm.sourceforge.net/

It's only available as sourcecode tarballs: one specifically for xmms, one for linux generally, which covers amarok. Ideally I'd like to install both.

I'm at work on a windows machine at the moment, I won't be able to begin looking at this 'til the weekend. After having a browse around the general howtos I suspect I'm going to have all sorts of dependency problems, because xandros 4 is getting a bit old and this is a new release as of 10/10/07. I know projectM needs libvisual 0.4, beyond that there's not a lot of information on the projectM site - at the moment it seems to be aimed mostly at power users.

If anyone cares to look at this, see if it's possible and if so make xandros debs of it that'd be wonderful. If not I plan on having a go myself over the weekend.

If someone does look at it and thinks it's not possible to install projectM under xandros 4 I'd appreciate knowing that: I'll have to use my desktop rather than my old laptop, since the laptop video chip won't run openGL and being short of time I don't want to get myself into a reinstall-from-scrach situation Confused

28/10 eta: having looked at the dependencies I'm fairly sure this would break xandros 4.1 if I pursued it. ProjectM depends on libvisual > 0.4 which depends on libc6 > 2.3.6-6. Xandros is currently on libc6 2.3.2. libc6 seems to be pretty central to the install, many others have broken their install upgrading it.

I depend on Xandros for my day to day computing but it looks like it'll be a while until Xandors 5. I have a spare partition so I'm going to try some other distros, probably kbuntu to start with.
_________________
(expert with questions)
I'm a girl, ask me how.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 10:56 pm    Post subject: Reply with quote

Well, here's libvisual:

http://allynelectronics.com/debs/libvisual-0.4-0_1.1X4_i386.deb

http://allynelectronics.com/debs/libvisual-0.4-dev-1.1X4_i386.deb

I'm having a little trouble getting libprojectM to compile, but I may work at it a little longer.

I got libvisual compiled by adding this line to my /etc/apt/sources.list file:

Code:
deb-src http://http.us.debian.org/debian etch main contrib non-free


then ran apt-get update and downloaded and compiled the source with:

Code:
apt-get -b source libvisual


and:

Code:
apt-get -b source libvisual-dev


Then I installed the packages with dpkg, although you could just as well do it with XN, I suppose.

Have you tried compiling an earlier version of libprojectM?

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 11:10 pm    Post subject: Reply with quote

Hmmm, 0.99 complains that it needs libftgl to compile. libftgl is not in XN. I can see they are not going to make this easy!

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 11:11 pm    Post subject: Reply with quote

Well, 0.98 also wants libftgl. . . .

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 11:17 pm    Post subject: Reply with quote

Oh, you apparently have to install ftgl-dev to get libftgl.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 11:28 pm    Post subject: Reply with quote

OK, it compiled OK, but when I ran checkinstall to build a DEB of it, I got this error:

dpkg-deb - error: (upstream) version (`libprojectM') doesn't contain any digits

Although I couldn't build a DEB package of it, it apparently did install, as whereis libprojectM returns:

libprojectM: /usr/local/lib/libprojectM.la /usr/local/lib/libprojectM.so /usr/local/lib/libprojectM.a

But I have no idea if it works. Anyway, I seem to have libvisual 0.4 and libprojectM 0.99 installed, and my system hasn't thrown rotten eggs at me or anything like that. YMMV.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sat Oct 27, 2007 11:30 pm    Post subject: Reply with quote

If you get it to install, tell me what I have to do to make it do something useful.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
Clancy
Xandrosianding
Xandrosianding


Joined: 01 Mar 2004
Posts: 902
Location: NSW, Oz

PostPosted: Sun Oct 28, 2007 2:43 am    Post subject: Reply with quote

Thanks for all the investigations! Very Happy I'm surprised and pleased to hear libvisual 0.4 installed - once I saw it needed a newer version of libc6 I was prepared to abandon it, since I know fiddling with that can break XOS.

It's now Sunday evening here and real life will keep me busy until Tuesday probably: I'll try the earlier version on my test system then.

To see if it's working start playing some music in Amarok, then select visualisations. If it installed properly projectM should be on the list. I think that's all you need to get it to work under Amarok - they don't actually give much detail on the projectM site, it looks like they're only expecting the guns to try it at this stage.
_________________
(expert with questions)
I'm a girl, ask me how.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Sun Oct 28, 2007 5:13 pm    Post subject: Reply with quote

It doesn't show under visualizations, but my guess would be that I need to do something to tell Amarok where it is. It installs into /usr/local, instead of /usr/lib, so maybe some symlinks are in order. But I haven't got time to play with it right now, so maybe later.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Mon Oct 29, 2007 4:48 pm    Post subject: Reply with quote

In another thread, Clancy wrote:
It's not powerful enough to actually run the visualisations if I get them installed


I think I have this same problem. My computer doesn't have a 3D video card, and only a 1 GHz processor. I don't think I can run the stuff. But I have (apparently) installed everything that's needed, I think we just need to figure out how to tell Amarok where the libs are, or figure out where Amarok expects them to be and either move them there or create symlinks to them. I spent a little time trying to figure out where the visualizations that Amarok does see on my computer are actually located, but didn't find them.

Also, the visualizations are not something that I actually care about myself, so if it getting it to work doesn't come easily, I lose interest and fizzle out. I'm about to that point now. But I think if you have the hardware to run the stuff, if you can install the DEB I created and install the earlier version of libprojectM as I did, it's just a matter of getting the libs to wherever Amarok expects them to be.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
Clancy
Xandrosianding
Xandrosianding


Joined: 01 Mar 2004
Posts: 902
Location: NSW, Oz

PostPosted: Mon Oct 29, 2007 9:29 pm    Post subject: Reply with quote

jimallyn wrote:
Also, the visualizations are not something that I actually care about myself, so if it getting it to work doesn't come easily, I lose interest and fizzle out. I'm about to that point now. But I think if you have the hardware to run the stuff, if you can install the DEB I created and install the earlier version of libprojectM as I did, it's just a matter of getting the libs to wherever Amarok expects them to be.


Thanks for your help in getting things this far Smile, if I can get projectM to install OK on my test system I can cope with setting up the links myself. If I can get it to show up as an option in Amarok visualistions I'll try it on my main machine, which can play milkdrop OK in winamp so I presume will do OK with projectM.
_________________
(expert with questions)
I'm a girl, ask me how.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Oct 30, 2007 1:33 am    Post subject: Reply with quote

Be sure to let me know how it goes!

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
Clancy
Xandrosianding
Xandrosianding


Joined: 01 Mar 2004
Posts: 902
Location: NSW, Oz

PostPosted: Tue Oct 30, 2007 7:43 pm    Post subject: Reply with quote

In short: I got all the dependencies installed then in a fit of exuberance decided to try installing libprojectM 1.01 first on the off chance it'd work on my system. That caused a problem at the first hurdle that had me bamboozled for a while, I've now worked out the problem there but not had the time to try anything else (currently at work on a windows machine).

In detail:

The libvisual packages you made installed perfectly using XN, thanks again for those. Smile

I then tried to use XN to install ftgl-dev, that failed with a broken packages message. So I took a look with apt-get which told me ftgl-dev depended on libgl-dev. An attempt to install libgl-dev with apt-get told me

Quote:
Package libgl-dev is a virtual package provided by:
mesag3+ggi-dev 5.0.0-5.1
mesag-glide2-dev 5.0.0-5.1
mesag-dev 5.0.0-5.1
libgl1-mesa-dev 6.5.1-0.2xandros1
You should explicitly select one to install.


I picked libgl1-mesa-dev because it had xandros in it's name, that installed fine with apt-get, then ftgl-dev also installed with apt-get.

Since I'd like to have the latest install if it's possible I decided to try installing libprojectM 1.01 before 0.99. So I unpacked the tarball and went to the directory in XFM then used tools > console to open a console window for that directory.

Then I tried

Code:
./configure


Which failed with an error message

Quote:
No such file or directory


At first I thought this meant I was missing some development apps, which puzzled me since I have all the XOS dev tools installed. Overnight I realised that ./configure had to be calling a file called configure in the current directory, so I looked and sure enough libprojectM_1.01 doesn't have a configure file where libprojectM-0.99 does. So this evening I could try compiling 0.99 in the usual way.

I'm still interested in 1.01 however so I had a look at it's install file:

Quote:
Install FTGL(optional) and GLEW, then:

cmake . -DCMAKE_BUILD_TYPE=RELEASE
make
make install

You may need to type ccmake . and change the PREFIX if your system prefers /usr instead of /usr/local.


All the readme file says is

Quote:
cmake .
make
make install


Jimallyn, did you use cmake to try and configure libprojectM_1.01 or where you doing something else in preparation for making a deb? Either way is it at all likely that it'd install on my system where it didn't on yours?

I took at look at the manpage for cmake

http://linux.die.net/man/1/cmake

most of which makes my brain hurt Shocked. However there doesn't seem to be a "ccmake" in the options anywhere so I wonder if the extra c's a typo. I'm not sure what the '.' after cmake in the first line is doing unless it's to refer to the current directory??? It's not an option listed in the manpage I found. Confused

This is definitely a project by enthusiastic amateurs who expect the users to know a fair bit about compiling! Nevertheless I'll have a go locating and installing GLEW and then try cmake on libprojectm_1.01 before falling back on 0.99. The visualisations are as frivolous a toy as you'd ever encounter and I expect to learn a lot from the attempt even if I don't get it installed.

I might get to it tonight or not for a week, depending on the weather and plans for a camping trip. Either way I'll let you know what happens. Confused
_________________
(expert with questions)
I'm a girl, ask me how.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Oct 30, 2007 8:18 pm    Post subject: Reply with quote

Clancy wrote:
Jimallyn, did you use cmake to try and configure libprojectM_1.01 or where you doing something else in preparation for making a deb?


I used the instructions in the README file, and didn't see the instructions in the INSTALL file until just now. I just now installed libglew1 and libglew-dev and ran:

cmake . -DCMAKE_BUILD_TYPE=RELEASE

which ran OK. Then I tried running make, and got a long list of errors.

Clancy wrote:
Either way is it at all likely that it'd install on my system where it didn't on yours?


I don't know about likely, but certainly possible! Weird stuff happens sometimes. . . .

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Oct 30, 2007 8:22 pm    Post subject: Reply with quote

There is such a thing as ccmake, with two c's in it; I have it on my system. I notice that the version of cmake available from XN is 2.0.5-1; I have on my system version 2.4-patch 6. It seems to me I had to install that from source somewhere along the line to compile something else that required a newer version of cmake.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group