Compiling libraries and gcc
Hi, I need to compile a software which requires a recent version of the GTK library. Begin on stable, I am in the process of compiling from source the gtk library which doesn't have a large set a of dependencies(just his glib). My wish is to keep things well contained, so as suggested here http://library.gnome.org/devel/gtk/unstable/gtk-building.html I am compiling all the code under /opt (/opt/gtk /opt/glib). When I try to compile the software which need those libraries I seem to be just not able to tell gcc that it needs to compile against libraries under /opt and not against the system ones under /usr/lib. The strange fact is that the configure command execute without any problems,but then when I issue the make command it complains about undefined reference to `gtk_orientable_set_orientation' sign that is using system old gtk library. I am getting worried about that also reading that I have read a lot about it, I tried also to export ,before issue the configure command, adjusted CPPFLAGS,LDFLAGS,PKG_CONFIG_PATH pointing them respectively to folders under /opt/gtk/ /opt/glib etc...but it seems to have no effect (I read in another post that: LD_LIBRARY_PATH is not needed when later running the built software due to libtool's use of rpaths). So,what is the right way to tell gcc (make) to use one or another library path when your system has two installed, one of which under /usr/lib and so will probably be used by default ? Also is there any recommended way to act in situations like that, when you need a different version of a lib , and want to keep the system's one to prevent breaking the system ? Put all in an isolate folder under /home or /opt would be enough ? At run-time are there any risks that the software choose the wrong .so objects to load in memory from the system path? If it is compiled against the right path, even if shared I think not Thank you for any clarification, Keep me CC'ed please, -- Marco Vittorini Orgeas -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: problem with apt
* Long Wind longwind2...@gmail.com [2009-04-01 09:42:23 +0800]: When apt-get installs a package it will install packages that the package depends When I remove the package, the depended packages are not removed. Is there a command (or a way) to remove the depended packages? Try with apt-log: http://mavior.eu/apt-log -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Iceweasel, flash and usb headset
Hello, my problem is the follow: I am trying to enjoy flash audio contents through my Logitech usb headset on Lenny. First some console output: ## cat /proc/asound/cards ## ## 0 [Intel ]: HDA-Intel - HDA Intel ## HDA Intel at 0xfe22 irq 17 ## 1 [Headset]: USB-Audio - Logitech USB Headset ## Logitech Logitech USB Headset at usb-:00:1a.1-1, full speed ## asoundconf list ## ## Names of available sound cards: ## Intel ## Headset I've installed adobe flash plugin for iceweasel not through the packaged version (flashplugin-nonfree) but simply putting the .so file object that can be found here http://labs.adobe.com/downloads/flashplayer10.html for 64 bit systems because quite a good number of persons report it to be working without problems.And in fact it is. Then, the problem: if I plug in my usb-headeset and I go to preferences-sound and for Music and movies i choose as sound playback USB audio, Totem for example honors the fact I've choosen the usb as output and it outputs sounds through the headset. If I try to access some flash videos through iceweasel, I get the the videos played and the sound always go through the HDA-Intel sound card! I tried also to do something like: asoundconf set-default-card Headset and tried to restart iceweasel but nothing...the sound is always outputted through the Intel pci sound card. I tried starting iceweasel from command line to get some debug stuff: when runned from my user I get no relevant messagges, but when I run it from a root shell session,I instead get no sound at all and some messages: ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'defaults.namehint.extended' ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory I don't know actually what to look for,and my research give me no point to start with. I think the problem may be related to how actually iceweasel access the sound devices...any suggestions about that would be really appreciated. As a bonus question: what is the proper way to set the default sound-card and the priority of the sound-cards which could be plugged in the system? I mean that for now the preferences-sound and for Music and movies choosing as sound playback USB audio permit the system to fall-back to the hda-intel interface if I un-plug the headset, but what if I had more than two interfaces ? thank you -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Iceweasel, flash and usb headset
* H.S. hs.sa...@gmail.com [2009-02-26 14:11:51 -0500]: Marco Vittorini Orgeas wrote: I've installed adobe flash plugin for iceweasel not through the packaged version (flashplugin-nonfree) but simply putting the .so file object that can be found here http://labs.adobe.com/downloads/flashplayer10.html for 64 bit systems because quite a good number of persons report it to be working without problems.And in fact it is. Then, the problem: if I plug in my usb-headeset and I go to preferences-sound and for Music and movies i choose as sound playback USB audio, Totem for example honors the fact I've choosen the usb as output and it outputs sounds through the headset. If I try to access some flash videos through iceweasel, I get the the videos played and the sound always go through the HDA-Intel sound card! I tried also to do something like: asoundconf set-default-card Headset and tried to restart iceweasel but nothing...the sound is always outputted through the Intel pci sound card. I tried starting iceweasel from command line to get some debug stuff: when runned from my user I get no relevant messagges, but when I run it from a root shell session,I instead get no sound at all and some messages: ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'defaults.namehint.extended' ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory I don't know actually what to look for,and my research give me no point to start with. Since no one else had replied yet, I will take a shot. But this is probably not what you were expecting. I have had a similar problem, but with Iceape. I am sure I would see this in iceweasel as well. It so happens that I installed PulseAudio a few months back (Debian Testing). In PA, I can stream audio to any device while hot, i.e. the audio application does not need to be restarted for the change in device to occur. PA is superb, really! Not to mention the fact that you can play audio over the network without any problems. Now, in PA every application that is using an audio device appears in the list of the device chooser GUI of PA. Not iceape though. It looks like it does not use an audio device as a stand alone application. My solution to this is to route the default audio stream that is going to the my PCI audio card to my USB headset. After I am done with iceape, I revert that change. Well, but how to do this without install PulseAudio ? So, not ideal, but it works. Regards Maybe someone else can suggest a method to do so, or just some other thing to at least have some more verbose debug from Firefox/iceweasel and try to understand what is not working... Anyway, thank you for your suggestions here. thank you again Marco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Fresh lenny install and suspend to ram problems
I solved the problem: actually a lot of things became clearer after have read http://wiki.debian.org/Suspend, which explain a bit what the system does whenever one push the sleep button. The first half of the problem is solved by adding a file called /etc/pm/config.d/01config with the following line as suggested by man pm-suspend: SUSPEND_MODULES=ehci_hcd The second half of the problem required a bit more testing.In my case I had to add to the same over-mentioned file the following line: ADD_PARAMETERS=--quirk-vbe-post --quirk-vbemode-restore This is required for the problem of the monitor that after resume remains black.(this quirks seem to be indeed required for the X11 nv driver with nvidia quadro nv140m) At this point the system doesn't yet perform a completely resume from suspend and my system needs another change. The system was like stuck and half-moon wasn't blink at all during the resume. I had to edit this file /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-lenovo.fdi and to the corresponding section that matches my model number (6460) I had to change this line merge key=power_management.quirk.s3_bios type=booltrue/merge to merge key=power_management.quirk.s3_bios type=boolfalse/merge This is probably due to a bios problem, or better: this quirk probably is needed for old thinkpad bios version.I have the latest updated bios version as of 10-02-09, so this bios seems to not require anymore this quirk. Probably this should be filed to someone who can better manage this mismatch... At the moment the only thing I can't manage is how to check out that I am really using the X11 nv driver: lsmod reports nothing but a nvram , which I guess isn't related to what I am looking for. Anyway thank you for your suggestions, I think that radeon-tools have some functions in the same way vbe-tool have. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Fresh lenny install and suspend to ram problems
Hello, I've just installed Lenny on my thinkpad T61 (model 6460).I am posting here because I've googled around and tried some things reported from people with similar issues,but I am starting to be stuck in a deadlock where I feel to just don't get the point of the situation. On my system all seems to work as expected (even suspend to disk), but I am facing problems with the suspend to ram feature. The problem is: if I suspend to ram the system(from the gnome power button) I have the system regularly suspended to ram (the t61 half-moon blinks showing that is going to sleep). It sleeps for two seconds and then it immediately resumes back, but it just fail to resume - I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black. At this point the keyboard doesn't seem to respond to any input or combination of key pressed, and all I can do is a an hard rebooting by keep pressed the power button. Now reading around (http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram) I was able to isolate the first half of the problem: if I do : modprobe -r ehci_hcd and then I try to suspend, the system effectively suspend and sleeps well without any more resumes.I have tried to understand where lenny looks for modules to be rmmoded before actually suspend but I was not successfull, or better: around there is such confusion on the topic that I can't seem to understand which files or script gnome uses to make the system sleeps (acpi,hibernate.conf etc... googling get you a babele of different informations)...so if someone could be so kind to clear the situation and point me in the right direction would be very appreciated. After that still remains the second half of the problem: even if the system is suspended to ram, if I try to resume it back, I get again the over-mentioned problem: I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black.At this point the keyboard doesn't seem to respond. Some suggestions here would be really appreciated too. I should also add here that I have on the same thinkpad a Gutsy installation with suspend2ram working (but there I am using the nvidia binary drivers) while on lenny I guess I am using the X11 nv driver (even though I can't be able to check this because lsmod |grep nv does return only nvram) - I have a nvidia quadro 140m on my thinkpad. Probably the resume problem is related to this difference of drivers. thank you -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org