Open bjohas opened 4 years ago
Hello,
If you have a machine setup for development then you should be able to run the following commands in libdial:
aclocal
autoconf
autoheader
automake -a
./configure
make
To build the clock you will need to "make install" the library before running the above commands in the tzclock directory.
Hope this helps,
Chris
Many thanks!
I still can't figure out how to compile and install your tzclock, i really really want it. i've been trying for more than an hour now. I am using ubuntu linux
configure.ac:11: installing './compile' configure.ac:13: installing './config.guess' configure.ac:13: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:13: error: required file './ltmain.sh' not found configure.ac:6: installing './missing' Makefile.am: installing './INSTALL' Makefile.am: installing './depcomp'
Hello,
You will need to install libtool. This is a set of tools that help you develop shared libraries. Within this package there is the ltmain.sh the build is looking for. Normally I create a link to this file in the build directory. Here is part of a shell script I use to find it because it's location is not consistant:
if [ -e /usr/share/libtool/ltmain.sh ]
then
LTMAIN=/usr/share/libtool/ltmain.sh
elif [ -e /usr/share/libtool/config/ltmain.sh ]
then
LTMAIN=/usr/share/libtool/config/ltmain.sh
else
LTMAIN=find /usr/share/libtool/ -name ltmain.sh
fi
ln -sf $LTMAIN ltmain.sh
Hope this helps,
Chris
thanks for your reply. but my machine already has libtool installed. i cheated a little bit and download the tar version from your website and copy the ltmain.sh inside this one, still no answer. Do u have any idea? I am a newbie.
i found this useful
/usr/share/libtool/build-aux/ltmain.sh
this is what i got when i run find /usr/share/libtool/ -name ltmain.sh
in terminal
i checked manually into the libdial folder and found ltmain.sh but it's empty
where do go from here please?
I think your machine has a problem, just looked at my Ubuntu 20.04 build machine and ltmain.sh contains 11251 lines.
The path /usr/share/libtool/build-aux/ltmain.sh is right. What version of Ubuntu are you using?
/usr/share/libtool/build-aux/ltmain.sh
contains many codes
I copy it to libdial manually and it still not work. I am using ubuntu 21.04
after adding it manually, i can successfuly run ./configure
but when i run make
i see a lot of errors flashing out
sorry, i download and tried your tar.bz2. I type ./configure
and get the following errors. I tried so hard to install the missing
libgnomueibut couldn't find it in ubuntu repo or anywhere else. dead end.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk+-3.0 libnotify dial... no
checking for gtk+-2.0 >= 2.10.0 libgnomeui-2.0 dial... no
configure: error: Package requirements (gtk+-2.0 >= 2.10.0 libgnomeui-2.0 dial) were not met:
No package 'libgnomeui-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables DEPS_CFLAGS and DEPS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. `
This is because if the dependencies for GTK3 cannot be met then it will try and build for GTK2. You will need to install:
libgtk-3-dev, libnotify-dev
After this try this command:
pkg-config --list-all | grep -E "gtk|gthread-2.0|notify"
It should show something like:
gthread-2.0 GThread - Thread support for GLib gtk+-3.0 GTK+ - GTK+ Graphical UI Library gtk+-broadway-3.0 GTK+ - GTK+ Graphical UI Library gtk+-unix-print-3.0 GTK+ - GTK+ Unix print support gtk+-wayland-3.0 GTK+ - GTK+ Graphical UI Library gtk+-x11-3.0 GTK+ - GTK+ Graphical UI Library libnotify libnotify - Notifications Library
This is what i got... after installing both the above the later one was already installed. ` gthread-2.0 GThread - Thread support for GLib gtk+-2.0 GTK+ - GTK+ Graphical UI Library (x11 target) gtk+-3.0 GTK+ - GTK+ Graphical UI Library gtk+-broadway-3.0 GTK+ - GTK+ Graphical UI Library gtk+-unix-print-2.0 GTK+ - GTK+ Unix print support gtk+-unix-print-3.0 GTK+ - GTK+ Unix print support gtk+-wayland-3.0 GTK+ - GTK+ Graphical UI Library gtk+-x11-2.0 GTK+ - GTK+ Graphical UI Library (x11 target) gtk+-x11-3.0 GTK+ - GTK+ Graphical UI Library gtk-dotnet-2.0 Gtk.DotNet - .NET Extensions for Gtk gtk-sharp-2.0 Gtk - Gtk libnotify libnotify - Notifications Library
`
after this i did this.
./configure
make
sudo make install
and this is what i got:
sudo make install make[1]: Entering directory '/home/bantu/Downloads/tzclock-4.2' /usr/bin/mkdir -p '/usr/local/bin' /usr/bin/install -c tzclock screenSize '/usr/local/bin' /usr/bin/mkdir -p '/usr/local/share/appdata' /usr/bin/install -c -m 644 tzclock.appdata.xml '/usr/local/share/appdata' /usr/bin/mkdir -p '/usr/local/share/applications' /usr/bin/install -c -m 644 tzclock.desktop '/usr/local/share/applications' /usr/bin/mkdir -p '/usr/local/share/icons/hicolor/128x128/apps' /usr/bin/install -c -m 644 icons/128x128/tzclock.png '/usr/local/share/icons/hicolor/128x128/apps' /usr/bin/mkdir -p '/usr/local/share/icons/hicolor/48x48/apps' /usr/bin/install -c -m 644 icons/48x48/tzclock.png '/usr/local/share/icons/hicolor/48x48/apps' /usr/bin/mkdir -p '/usr/local/share/icons/hicolor/scalable/apps' /usr/bin/install -c -m 644 icons/scalable/tzclock.svg '/usr/local/share/icons/hicolor/scalable/apps' /usr/bin/mkdir -p '/usr/local/share/man/man1' /usr/bin/install -c -m 644 'tzclock.man' '/usr/local/share/man/man1/tzclock.1' make[1]: Leaving directory '/home/bantu/Downloads/tzclock-4.2'
i nearly got it working...but bad luck.
That looks like it worked. It would have installed in to /usr/local/bin. Can you run "tzclock" on the command line? If that fails try "/usr/local/bin/tzclock".
below is what i got...
(tzclock:9744): Gtk-ERROR **: 23:00:39.290: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported Trace/breakpoint trap (core dumped)
i also have a blank( transparent) app in the app store which doesnot do anything. Is it because I need to chmod
any file or make it execuatable??i don't know maybe?
If you want to email chris@theknight.co.uk I can send you deb files built for 21.04, I understand it is cheating a bit.
just sent u already.
Hi Chris,
I got libdial to build (needed to run# ldconfig
after# make install
to get tzclock to find the library in/usr/local/lib
, but after that it launched perfectly), but building gauge gives me a:
# ./configure
.....
configure: error: Package requirements (gtk+-2.0 >= 2.10.0 libgnomeui-2.0 libcurl libxml-2.0 zlib dial) were not met:
No package 'gtk+-2.0' found
No package 'libgnomeui-2.0' found
error.
Repeating the above fixes in /dialsys/gauge
didn't get me past the error.
Linux Mint 21 Vanessa
@gessel, you need to install the required packages from your distro repos, including the devel versions too.
Hi @cddknight - thanks for sharing this!
Could you give me a tip on how to compile?