Scons is not catchind libasound and libdjconsole on ubuntu hardy (sconsv0.97.0d20071203.r2509)

Bug #227480 reported by dotx
2
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Critical
Unassigned

Bug Description

Hello, I'm running ubuntu hardy (8.04). I have all required library installed to compile mixxx, but SCons is not detecting the alsa library (libasound) and the libdjconsole. Whenn I comment the Exit command in src/Sconscript file who are the two test. Mixxx compile fine.

Revision history for this message
ironstorm (ironstorm-gmail) wrote :

Confirmed, I had to do the same the other day...
libasound2-dev is installed, but the header check call is failing anyway. Compiles fine once you comment out the "Exit(1)" lines..

Changed in mixxx:
status: New → Confirmed
Revision history for this message
Albert Santoni (gamegod) wrote :

This is odd because:
A) Works for me (Hardy, although I upgraded from Gusty->Hardy, which may be important)
B) The Hardy src deb works fine, and it builds cleanly on the Ubuntu build server.

As the comment in the SConscript reminded me, libasound2 was necessary for ALSA-seq MIDI support. I wonder why you're both managing to link without it (yet another reason why this is strange).

Can someone check to see if Mixxx got linked against libasound2 after you commented out those exit() lines? (running "ldd mixxx" should work)

dotx: Did this happen recently with SVN? Or is it just showing up now because you got around to installing Hardy?

Revision history for this message
ironstorm (ironstorm-gmail) wrote :

Did Gusty->Hardy also. It happened for me first build I did the upgrade.

It is linked to libasound.so.2.

Revision history for this message
dotx (setcode) wrote :

I decide to install a fresh ubuntu distrib in order to use nvidia binary driver who is not ready fr debian lenny (2.6.24), and perhaps have more perfomance with mixxx waveform. So I encounter this problem.

Effectively, I commented the "Exit" on libasound check and libdjconsole check. The ldd ouput say that the libraries are linked correctly : http://cpp.pastebin.com/f3c0965b.

Here are the name of library on hardy :
[libdjconsole]
/usr/include/libdjconsole
/usr/include/libdjconsole/bitfield.h
/usr/include/libdjconsole/delta.h
/usr/include/libdjconsole/djconsole.h
/usr/lib/libdjconsole.a
/usr/lib/libdjconsole.la
/usr/lib/libdjconsole.so
/usr/lib/libdjconsole.so.0
/usr/lib/libdjconsole.so.0.0.0

[libasound]
/usr/lib/libasound.a
/usr/lib/libasound.la
/usr/lib/libasound.so
/usr/lib/libasound.so.2
/usr/lib/libasound.so.2.0.0

I hope that it could help you.

Revision history for this message
Albert Santoni (gamegod) wrote :

Thanks for the extra info.

Are you guys both running 64-bit Hardy, by any chance?

Revision history for this message
Albert Santoni (gamegod) wrote :

(This is a beta3 blocker)

Changed in mixxx:
importance: Undecided → Critical
Revision history for this message
dotx (setcode) wrote :

I run a 32 bit hardy : ubuntu-8.04-desktop-i386

Now I have problem with QtOpenGL, perhaps I need to retriev the entiere svn files.

Revision history for this message
dotx (setcode) wrote :

For the opengl error on hardy it's an official bug who is corrected on ubuntu intrepid : https://lists.ubuntu.com/archives/intrepid-changes/2008-May/000220.html

I solve it by downloading the libqt4-opengl-dev package with synaptic and force the installation :
After you downloading the package
 - cd /var/cache/apt/archives/
 - sudo dpkg -i --force-overwrite libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_i386.deb

Enjoy

Revision history for this message
Albert Santoni (gamegod) wrote :

Ok, good sleuthing with the QT OpenGL problem dotx!

I just fixed a bunch of indentations that were using spaces instead of tabs in our SConscript (it's in SVN). This is pretty much the only thing I can think of that would have caused some random library checks to fail. (SCONS is very fussy about that.)

Can anyone try it and see?

Revision history for this message
Tom Care (psyc0de) wrote :

I just did a fresh install of Hardy in VMWare and did not encounter this error.

Revision history for this message
Albert Santoni (gamegod) wrote :

Fixed, not sure exactly what did it. Might have been whitespace...

Changed in mixxx:
status: Confirmed → Fix Committed
Revision history for this message
dotx (setcode) wrote :

It's ok for me now, mixxx SConstruct and compilation too.

Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/4957

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.