Hoglet / TimeIT

The unobtrusive time tracker
GNU General Public License v3.0
19 stars 7 forks source link

undefined reference to symbol 'XFree' #2

Closed InCaseItWorks closed 10 years ago

InCaseItWorks commented 10 years ago

Hello

I'm trying to compile the debian package, but I get the following error:

... [ 91%] Building CXX object src/CMakeFiles/timeit.dir/DB/internal/TimeAccessor.cpp.o [ 93%] Building CXX object src/CMakeFiles/timeit.dir/DB/internal/AutotrackAccessor.cpp.o [ 94%] Building CXX object src/CMakeFiles/timeit.dir/DB/internal/TaskAccessor.cpp.o [ 96%] Building CXX object src/CMakeFiles/timeit.dir/DB/Notifier.cpp.o [ 98%] Building CXX object src/CMakeFiles/timeit.dir/Main.cpp.o Linking CXX executable timeit /usr/bin/ld: CMakeFiles/timeit.dir/Logic/IdleDetector.cpp.o: undefined reference to symbol 'XFree' /usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: * [src/timeit] Error 1 make[1]: * [src/CMakeFiles/timeit.dir/all] Error 2 make: *\ [all] Error 2

System is: Ubuntu 13.10 (Saucy) kernel 3.11.0-15-generic #23-Ubuntu SMP x86_64

I have installed the libx11-6-dev in 64 and 32 bit as well as xorg-dev.

Having googled it, I found that it seems to be a linker issue and I would have to add "-lX11" to the Makefile, but I don't know where to add the line.

This happens with the latest release (git clone regular download).

Thanks C

Hoglet commented 10 years ago

Hi,

Quick Workaround: Use the precompiled package for Ubuntu: https://code.launchpad.net/~hoglet/timeit/master

I will install an Ubuntu 13.10 and look into the problem.

Hoglet commented 10 years ago

Problem confirmed

Hoglet commented 10 years ago

Problem should be fixed in version 1.2.6 which is now available.