pawelchcki / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

Undefined symbols _XGetWindowAttributes; missing -lX11 #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make

What is the expected output? What do you see instead?
Expected successful compile; got:

cc -o xdotool xdotool.o cmd_click.o cmd_mousemove.o cmd_mousemove_relative.o 
cmd_mousedown.o cmd_mouseup.o cmd_getmouselocation.o cmd_type.o cmd_key.o 
cmd_windowmove.o cmd_windowactivate.o cmd_windowfocus.o cmd_windowraise.o 
cmd_windowsize.o cmd_set_window.o cmd_search.o cmd_getwindowfocus.o 
cmd_getwindowpid.o cmd_getactivewindow.o cmd_windowmap.o cmd_windowunmap.o 
cmd_windowreparent.o cmd_set_num_desktops.o cmd_get_num_desktops.o 
cmd_set_desktop.o cmd_get_desktop.o cmd_set_desktop_for_window.o 
cmd_get_desktop_for_window.o cmd_get_desktop_viewport.o 
cmd_set_desktop_viewport.o cmd_windowkill.o cmd_behave.o cmd_window_select.o 
cmd_getwindowname.o -L. -lxdo   -lm
Undefined symbols:
  "_XGetWindowAttributes", referenced from:
      _cmd_windowsize in cmd_windowsize.o
  "_XSelectInput", referenced from:
      _cmd_behave in cmd_behave.o
  "_XNextEvent", referenced from:
      _cmd_behave in cmd_behave.o
  "_XFree", referenced from:
      _cmd_getwindowname in cmd_getwindowname.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [xdotool] Error 1

What version of the product are you using? On what operating system?
xdotool 2.20100818.3004 on Mac OS X 10.6.4 with Xcode 3.2.3

Please provide any additional information below.
Adding -lX11 to LDFLAGS fixes it. So this is like issue 32 again.

Original issue reported on code.google.com by ryandesi...@gmail.com on 18 Aug 2010 at 5:06

GoogleCodeExporter commented 9 years ago
Sounds similar to issue 32 as you mentioned. I'll think of a good way to work 
around this so we only depend on libxdo, but in the meantime adding -lX11 is a 
reasonable workaround. 

Sorry about this! I need to find a way to test for these kinds of issues so I 
can ensure they do not exist during releases. On Ubuntu 9.10 and 10.04 I don't 
have this problem during compilation...

Original comment by jls.semi...@gmail.com on 19 Aug 2010 at 5:19

GoogleCodeExporter commented 9 years ago
Is this fixed in the current release? I think it should be. Can you confirm?

Original comment by jls.semi...@gmail.com on 15 Oct 2010 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by jls.semi...@gmail.com on 15 Oct 2010 at 12:41

GoogleCodeExporter commented 9 years ago
I had unrelated problems building the October 2010 release, but 2.20110530.1 
builds fine without manually adding -lX11. Thanks.

Original comment by ryandesi...@gmail.com on 30 May 2011 at 12:04