[opensuse-packaging] glibmm and sigc static packages
Hi, I am trying to build a static binary of https://github.com/i-rinat/fragview I patched the cmake file as: +SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") to build a static binary. Now during the make phase, I get the following errors: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lglibmm-2.4 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lsigc-2.0 I got the above error for "-lm" too which went away after installing the libc-devel-static rpm. However I could not find either a glibmm-devel-static rpm or a sigc-devel-static rpm. Now what is the easiest way to get the static rpm of these packages so as to get the static binary generated ? Which buildservice packages should I fork and tweak ? I do not have much experience in building and so wanted to ask here before proceeding, to know if I am going in the right path. I need a static binary as I want to run this tool in some old SLE boxes where the latest GTK, glibmm packages are not available, and so I cannot compile the fragview tool from the source in those machines. On a side note, The earlier RPM search under software.opensuse.org/search will list the rpms (instead of the projects) and it was easier to find if there were any rpms in home projects etc. in just one page. Now, the search interface is kind of complex, and makes us click a lot more. Does anyone else apart from me, feel that this can be reported as an usability issue ? Thanks. Sankar -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Quoting Sankar P <psankar@novell.com>:
Hi,
I am trying to build a static binary of https://github.com/i-rinat/fragview
I patched the cmake file as:
+SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
to build a static binary. Now during the make phase, I get the following errors:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lglibmm-2.4 /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lsigc-2.0
I got the above error for "-lm" too which went away after installing the libc-devel-static rpm. However I could not find either a glibmm-devel-static rpm or a sigc-devel-static rpm. Now what is the easiest way to get the static rpm of these packages so as to get the static binary generated ? Which buildservice packages should I fork and tweak ? I do not have much experience in building and so wanted to ask here before proceeding, to know if I am going in the right path.
for -lglibmm-2.4 it will likely be GNOME:Factory glibmm2 and glib2 (and probably more down the road). for -lsigc-2.0 is should be GNOME:Factory libsigc++2 or libsigc++12 (depending which version you require).
I need a static binary as I want to run this tool in some old SLE boxes where the latest GTK, glibmm packages are not available, and so I cannot compile the fragview tool from the source in those machines.
eeks.. Anyway: please don't consider pushing those changes back to the devel projects:) In no way should we encourage the usage of those static libs... :) Domninique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
I need a static binary as I want to run this tool in some old SLE boxes where the latest GTK, glibmm packages are not available, and so I cannot compile the fragview tool from the source in those machines.
eeks.. Anyway: please don't consider pushing those changes back to the devel projects:) In no way should we encourage the usage of those static libs... :)
oh, definitely not :-) It is just for curiosity purposes. Thanks for your help. Sankar -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia piątek, 26 kwietnia 2013 05:49:14 Sankar P pisze:
Hi,
I am trying to build a static binary of https://github.com/i-rinat/fragview
I need a static binary as I want to run this tool in some old SLE boxes where the latest GTK, glibmm packages are not available, and so I cannot compile the fragview tool from the source in those machines.
I guess it would be easier to bundle the tool with the libraries needed and write a LD_LIBRARY_PATH script to start it. Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Dominique Leuenberger a.k.a. Dimstar
-
Křištof Želechovski
-
Sankar P