Re: [maemo-developers] Missing library in the 2006 beta version?
So, I have packed these X dependencies mentioned above (libXt, libICE and libSM) into my .deb file , and they install fine if *and only if* they have not been installed before by another application or whatever. In the case when they are already installed my .deb installation hangs when it tries to replace them with the following message: $ dpkg -i mydeb.deb(Reading database ... 11120 files and directories currently installed.)Unpacking minimo (from mydeb.deb) ...dpkg: error processing mydeb.deb (--install): trying to overwrite `/usr/lib/libSM.so.6.0.1', which is also in package libsm6 Errors were encountered while processing:mydeb.debI'd like to be able to verify if they are already available in the system before trying to install them , how could I do ? preinst ? regards On 7/7/06, Eero Tamminen [EMAIL PROTECTED] wrote: Hi, still wordering why are these libraries available on devel rootstrap (so it makes possible to your app to depend on them) but not on the device image ?The point of the devel rootstrap is to be able to build software. So, SDK contains additional build dependencies for the target SW.Most of the additional build deps are for the -dev packages,but I think non-dev build deps also exist for some of the targetpackages. - Eero___maemo-developers mailing listmaemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers-- --Antonio Gomes ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
On 7/17/06, Antonio Gomes [EMAIL PROTECTED] wrote: So, I have packed these X dependencies mentioned above (libXt, libICE and libSM) into my .deb file , and they install fine if *and only if* they have not been installed before by another application or whatever. In the case when they are already installed my .deb installation hangs when it tries to replace them with the following message: [snip] I'd like to be able to verify if they are already available in the system before trying to install them , how could I do ? preinst ? They should be separate libraries which your control file says your package depends on (using the `Depends' line). Then, when they're all put into a repository (with the libraries having a `Section' of something like `lib'), the user only sees the Minimo application. Installing Minimo will then also pull in any dependencies the user hasn't already got. HTH, Andrew -- Andrew Flegg -- mailto:[EMAIL PROTECTED] | http://www.bleb.org/ ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Hi Tim, Most likely this is Autotools issue.At least older autoconf checked the existence of X libraries by checking for libXt and it added that also to the linker line. However, none of the modern (Gtk, Qt) UI toolkits use libXt nor require it.Only something obsolete like Motif needs it. Does your program really use/require libXt?Could be, but specifically in my case, mozilla does depend on them (for rendering stuff), and the checking at configure time is also a bit complex. So the dependecy is no at build time only but also at run-time. Anyways , I intend to ask on a mozilla mailing list about how hard would be removing such dependency ? The problem is the AC_PATH_XTRA() configure test. It defines the X_PRE_LIBS variable, which - from the documentation - containslibraries, which must be linked before you link the regular X11libraries. The configure scripts for at least debian and maemodistributions returns -lSM -lICE for this variable. Configure scripts which try to be correct and portable and thus use this variable willautomatically link against this libraries - even if they do not usethem. I removed the use of X_PRE_LIBS temporary to avoid linking this libraries. Note also that recent versions of Xorg offer pkg-cocnfig *.pc files forthe various X11 files. I plan to use them if available and fall back toAC_PATH_XTRA if not. These *.pc files do not show above behaviour of automatically adding -lSM and -lICE.I do not have any problem with libXt.still wordering why are these libraries available on devel rootstrap (so it makes possible to your app to depend on them) but not on the device image ? -- --Antonio Gomes ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Hello! still wordering why are these libraries available on devel rootstrap (so it makes possible to your app to depend on them) but not on the device image ? Because they are normally used for session management (and general inter-process communication), but the maemo platform uses dbus for session management. You are right, if you don't have that session management on the device the SDK should not have it, too. Perhaps a simple packaging problem or some other tools in the SDK need them!? -- Gruß... Tim. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
2006/7/6, Antonio Gomes [EMAIL PROTECTED]: still wordering why are these libraries available on devel rootstrap (so it makes possible to your app to depend on them) but not on the device image ? AFAIK only libs that are *really* REALLY needed by the default programs get on the images. Which is understandable since the flash is not too big anyway. For the SDK, disk space is not an issue and there can be a more comprehensive set of libraries, for convenience. The libs should be available through the maemo repository for depending in your packaging, right? -- Kalle Vahlman, [EMAIL PROTECTED] Powered by http://movial.fi Interesting stuff at http://syslog.movial.fi ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
On 7/4/06, Eero Tamminen [EMAIL PROTECTED] wrote:Hi eero, Hi, Nokia770-26:/usr/lib/app-test# ./app ./app: error while loading shared libraries: libXt.so.6 ./app: error while loading shared libraries: libSM.so.6 ./app: error while loading shared libraries: libICE.so.6Most likely this is Autotools issue.At least older autoconfchecked the existence of X libraries by checking for libXtand it added that also to the linker line.However, none of the modern (Gtk, Qt) UI toolkits use libXt nor require it.Only something obsolete like Motif needs it.Does your program really use/require libXt?I think so, $ ldd minimo: linux-gate.so.1 = (0xe000) libplds4.so = /usr/lib/libplds4.so (0xb7f08000) libplc4.so = /usr/lib/libplc4.so (0xb7f03000) libnspr4.so = /usr/lib/libnspr4.so (0xb7ed) libpthread.so.0 = /lib/libpthread.so.0 (0xb7e7d000) libdl.so.2 = /lib/libdl.so.2 (0xb7e79000) libX11.so.6 = /usr/lib/libX11.so.6 (0xb7d9e000) libXft.so.2 = /usr/lib/libXft.so.2 (0xb7d8b000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0xb7d26000) libz.so.1 = /usr/lib/libz.so.1 (0xb7d17000) libXrender.so.1 = /usr/lib/libXrender.so.1 (0xb7d0f000) libfontconfig.so.1 = /usr/lib/libfontconfig.so.1 (0xb7ce1000) libsmime3.so = /usr/lib/libsmime3.so (0xb7cbd000) libssl3.so = /usr/lib/libssl3.so (0xb7c93000) libnss3.so = /usr/lib/libnss3.so (0xb7c22000) libsoftokn3.so = /usr/lib/libsoftokn3.so (0xb7bd1000) libXt.so.6 = /usr/lib/libXt.so.6 (0xb7b7f000) libgtk-x11-2.0.so.0 = /usr/lib/libgtk-x11-2.0.so.0 (0xb788b000) libgdk-x11-2.0.so.0 = /usr/lib/libgdk-x11-2.0.so.0 (0xb780e000) libatk-1.0.so.0 = /usr/lib/libatk-1.0.so.0 (0xb77f3000) libgdk_pixbuf-2.0.so.0 = /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb77de000) libm.so.6 = /lib/libm.so.6 (0xb77bb000) libpangoxft-1.0.so.0 = /usr/lib/libpangoxft-1.0.so.0 (0xb77b4000) libpangox-1.0.so.0 = /usr/lib/libpangox-1.0.so.0 (0xb77a9000) libpango-1.0.so.0 = /usr/lib/libpango-1.0.so.0 (0xb7772000) libgobject-2.0.so.0 = /usr/lib/libgobject-2.0.so.0 (0xb7737000) libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0xb7733000) libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0xb76b1000) libdbus-glib-1.so.2 = /usr/lib/libdbus-glib-1.so.2 (0xb7696000) libdbus-1.so.2 = /usr/lib/libdbus-1.so.2 (0xb7667000) libosso.so.1 = /usr/lib/libosso.so.1 (0xb765d000) libgnomevfs-2.so.0 = /usr/lib/libgnomevfs- 2.so.0 (0xb760d000) libgconf-2.so.4 = /usr/lib/libgconf-2.so.4 (0xb75ef000) libgthread-2.0.so.0 = /usr/lib/libgthread-2.0.so.0 (0xb75eb000) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb751b000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0xb7513000) libc.so.6 = /lib/libc.so.6 (0xb73f4000) /lib/ld-linux.so.2 (0xb7f13000) libXau.so.0 = /usr/lib/libXau.so.0 (0xb73f) libexpat.so.1 = /usr/lib/libexpat.so.1 (0xb73d) libSM.so.6 = /usr/lib/libSM.so.6 (0xb73c8000) libICE.so.6 = /usr/lib/libICE.so.6 (0xb73af000) libXi.so.6 = /usr/lib/libXi.so.6 (0xb73a7000) libXext.so.6 = /usr/lib/libXext.so.6 (0xb7398000) libXfixes.so.0 = /usr/lib/libXfixes.so.0 (0xb7393000) libXcursor.so.1 = /usr/lib/libXcursor.so.1 (0xb738a000) libpangoft2-1.0.so.0 = /usr/lib/libpangoft2-1.0.so.0 (0xb7364000) libnsl.so.1 = /lib/libnsl.so.1 (0xb734f000) libxml2.so.2 = /usr/lib/libxml2.so.2 (0xb724e000) libresolv.so.2 = /lib/libresolv.so.2 (0xb723c000) librt.so.1 = /lib/librt.so.1 (0xb7228000)btw the application I am porting (minimo/mozilla) uses gtk as backend for rendering but its graphical user interface is built on top of XUL toolkit .The libSM and libICE are libXt dependencies.I am just wordering why are these libraries available on devel rootstrap (so it makes possible your app to depend on them) but not on the device image ? regards-- --Antonio Gomes ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Hello! Most likely this is Autotools issue. At least older autoconf checked the existence of X libraries by checking for libXt and it added that also to the linker line. However, none of the modern (Gtk, Qt) UI toolkits use libXt nor require it. Only something obsolete like Motif needs it. Does your program really use/require libXt? The problem is the AC_PATH_XTRA() configure test. It defines the X_PRE_LIBS variable, which - from the documentation - contains libraries, which must be linked before you link the regular X11 libraries. The configure scripts for at least debian and maemo distributions returns -lSM -lICE for this variable. Configure scripts which try to be correct and portable and thus use this variable will automatically link against this libraries - even if they do not use them. I removed the use of X_PRE_LIBS temporary to avoid linking this libraries. Note also that recent versions of Xorg offer pkg-cocnfig *.pc files for the various X11 files. I plan to use them if available and fall back to AC_PATH_XTRA if not. These *.pc files do not show above behaviour of automatically adding -lSM and -lICE. I do not have any problem with libXt. -- Gruß... Tim. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Hi, Nokia770-26:/usr/lib/app-test# ./app ./app: error while loading shared libraries: libXt.so.6 ./app: error while loading shared libraries: libSM.so.6 ./app: error while loading shared libraries: libICE.so.6 Most likely this is Autotools issue. At least older autoconf checked the existence of X libraries by checking for libXt and it added that also to the linker line. However, none of the modern (Gtk, Qt) UI toolkits use libXt nor require it. Only something obsolete like Motif needs it. Does your program really use/require libXt? The libSM and libICE are libXt dependencies. - Eero ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
in my case I haven't that luck: Nokia770-26:/usr/lib/app-test# ./app ./app: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory Nokia770-26:/usr/lib/app-test# ./app ./app: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory Nokia770-26:/usr/lib/app-test# ./app ./app: error while loading shared libraries: libICE.so.6: cannot open shared object file: No such file or directoryso I copied them manually from maemo-armel rootstrap into the device, put on the right place and also created all symbolic links. Having that done, I got my application launched. So, I packed them within my .deb however, and them installed it on the device , but it does not show up anymore. Do you see any specific reason for that ? Can I apt-get these libraries from the device ? regardsOn 7/1/06, Israel Herraiz [EMAIL PROTECTED] wrote: Detlef Schmicker wrote: the lib is in the repositry. You should be able to use (how to config the repositry is in the mailing list) Nokia770-22:~# apt-get install libxrandr2Yes, it works. Thank you. Actually, I have switched to the final version of the 2006 OS, and used the beta repositories to install libxrandr2,and it still works fine. Please keep me informedabout x11vnc. I am very interested in the app.I have compiled it, and it works. I was trying to use my 770 as a remote control to make PDF presentations with my laptop. The first approach isto use the builtin PDF viewer, connect by VNC to the 770, and switch tofullscreen to make the presentation.I will try to make a deb package. I will send a reminder to maemo-users as soon as I get it.BR,Israel--Israel Herraiz | Libre Software Engineering Lab (GSyC)[EMAIL PROTECTED] | Universidad Rey Juan Carlos http://libresoft.urjc.es | Edif. Departamental II - Despacho 118Telf: (+34) 91 488 8523| c/Tulipán s/n 28933 Móstoles (Madrid)___ maemo-developers mailing listmaemo-developers@maemo.orghttps://maemo.org/mailman/listinfo/maemo-developers -- --Antonio Gomes ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Detlef Schmicker wrote: the lib is in the repositry. You should be able to use (how to config the repositry is in the mailing list) Nokia770-22:~# apt-get install libxrandr2 Yes, it works. Thank you. Actually, I have switched to the final version of the 2006 OS, and used the beta repositories to install libxrandr2, and it still works fine. Please keep me informedabout x11vnc. I am very interested in the app. I have compiled it, and it works. I was trying to use my 770 as a remote control to make PDF presentations with my laptop. The first approach is to use the builtin PDF viewer, connect by VNC to the 770, and switch to fullscreen to make the presentation. I will try to make a deb package. I will send a reminder to maemo-users as soon as I get it. BR, Israel -- Israel Herraiz | Libre Software Engineering Lab (GSyC) [EMAIL PROTECTED] | Universidad Rey Juan Carlos http://libresoft.urjc.es | Edif. Departamental II - Despacho 118 Telf: (+34) 91 488 8523| c/Tulipán s/n 28933 Móstoles (Madrid) ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Missing library in the 2006 beta version?
Hi, the lib is in the repositry. You should be able to use (how to config the repositry is in the mailing list) Nokia770-22:~# apt-get install libxrandr2 Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: libxrandr2 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 8672B of archives. After unpacking 65,5kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libxrandr2 Install these packages without verification [y/N]? on the device. Please keep me informedabout x11vnc. I am very interested in the app. Detlef Am Freitag, den 30.06.2006, 01:48 -0700 schrieb Israel Herraiz: Hi, I am trying to compile x11vnc for the 770. I downloaded the sources [1], and compiled it under the scractchbox with the SDK_ARM profile (with maemo 2.0 beta). I copied the binary to the 770, but it lacks one of the libraries (the same binary run perfectly in the scratchbox). This is the output of the ldd command in the scractchbox: [sbox-SDK_ARM: ~/x11vnc-0.8.orig/x11vnc] ldd x11vnc libXext.so.6 = /usr/lib/libXext.so.6 (0x) libXtst.so.6 = /usr/lib/libXtst.so.6 (0x) libXrandr.so.2 = /usr/lib/libXrandr.so.2 (0x) libX11.so.6 = /usr/lib/libX11.so.6 (0x) libnsl.so.1 = /lib/libnsl.so.1 (0x) libpthread.so.0 = /lib/libpthread.so.0 (0x) libz.so.1 = /usr/lib/libz.so.1 (0x) libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x) libc.so.6 = /lib/libc.so.6 (0x) libdl.so.2 = /lib/libdl.so.2 (0x) libXrender.so.1 = /usr/lib/libXrender.so.1 (0x) libXau.so.0 = /usr/lib/libXau.so.0 (0x) /lib/ld-linux.so.3 = /lib/ld-linux.so.3 (0x) The file /usr/lib/libXrandr.so.2 is not present in the 770: Nokia770-22:/home/user# ls /usr/lib/libXr* /usr/lib/libXrender.so.1 /usr/lib/libXrender.so.1.3.0 And this is the output when I try to run the program: Nokia770-22:/home/user# ./x11vnc ./x11vnc: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory I think that the environment in the scratchbox and the 770 are the same (with some exceptions, for instance the Bluetooth stuff), so I think that libXrandr.so.2 is missing in the 770. BR, Israel [1] http://saunby.net/download/nokia770/x11vnc/x11vnc_0.8.orig.tar.gz ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers