
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