LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2005, 04:54 PM   #1
jacobds
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake 10.1
Posts: 5

Rep: Reputation: 0
Question problems installing x2vnc on mandrake 10.1


Hello,

I recently installed mandrake 10.1 on a third box that I was able to acquire for a good price. The point of the box was to set up a server, but also learn a bit about linux. I am fairly confortable with shell, at least I can get around, set permissions, compile c programs, etc. But I am no way an expert.

Here is the problem. Last year I discovered a program called win2vnc, which enabled me to move my mouse "off" my windows monitor and onto my ibook running a VNC server. I am aware that the same guy wrote x2vnc first as a linux based program that does the same thing. I downloaded the program (do a google search for x2vnc to find it) and tried to do the install the way that the readme file said. ./configure then make. I get hoards of errors when I do the make, the first two of which are:

Code:
./x2vnc.h:28:22: X11/Xlib.h: No such file or directory
./x2vnc.h:29:21: X11/Xmd.h: No such file or directory
I assume I'm missing these libraries, and so I was wondering if any of you had any suggestions about where I could find these. I tried a search on SourceForge, but I couldn't tell which one I might need. Any help would be great

Thanks
 
Old 01-30-2005, 06:20 PM   #2
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
Those look like X development type files, Mandrake should have a package on the CD's you can install for "X development".
 
Old 01-30-2005, 07:11 PM   #3
jacobds
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply, but any idea what it would be called? I did a search in rpmdrake for X development in the descriptions and it found a few, but none seemed to be the right one. I have updated the list of packages online if that matters at all.

Thanks again
 
Old 01-30-2005, 08:32 PM   #4
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
I believe mandrake lets you search for individual files within the packages, so you should be able to search for Xlib.h and see what happens, all is case sensitive.
 
Old 01-31-2005, 01:03 AM   #5
jacobds
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Perfect, I found the file, insalled the package, and did the ./configure and then the make. I got a new error.

Code:
gcc -o x2vnc  args.o listen.o rfbproto.o sockets.o x2vnc.o x.o vncauth.o d3des.o -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [x2vnc] Error 1
Any idea what might have cause this one? I did find the ld file in the bin folder, and I did a search for lX11. No luck. The man page for ld suggests that after the -l it is looking for an achive. Where might this be, or where can I get it?
 
Old 01-31-2005, 10:14 AM   #6
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
In addition to the include files (*.h) which are needed to compile, eventually it wants to link to the libraries and resolve the symbols that those include files are referencing, and it looks like either the library is not installed, or it can't be found as the name "libX11.so". I would have to think the lib was installed along with the include files, so hopefully it's a naming/path issue. First take a look in /usr/X11R6/lib and see if libX11.so (a symlink to the real lib) is there and points to something valid, then take a look at your /etc/ld.so.conf file to see if that path is present in it, if not, add it and run ldconfig to update it's cache, you may just want to run ldconfig anyway. If the make is trying to link in the symbols statically, then the library would typically have a dot a extension, "libX11.a". In any case, if you're using mdk's pkg mgr to search for the package, you'll want to search on libX11.so and/or libX11.a
 
Old 01-31-2005, 02:53 PM   #7
jacobds
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Here is the content of my ld.so.config file

Code:
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/lib/qt3/lib
there is a file in the /usr/X11R6/lib folder called libX11.so, no file ending in .a Well, there are files ending in .a for other libraries, but none for the libX11. So I did a search and sure enough found a package with the .a file there. I installed it and now its in there. Doing a make still causes the same error. I am not sure how to check if libX11.so points to something vaild or not. Doing a cat libX11.so spits out a BUNCH of garbage text which makes me think that it is something compiled. I also have no idea how to "run ldconfig"

I tried going to the folder and typing ldconfig, I tried ./ldconfig, I guess I don't know enough to try anything else. So again I am stuck. Thanks for your continuing help.
 
Old 01-31-2005, 04:03 PM   #8
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
Well that all looks good and if you typed ldonfig as root then you have run it.

I just d/led and compiled this(x2vnc), here's the final output on my slackware 9.1 notebook:

gcc -o x2vnc args.o listen.o rfbproto.o sockets.o x2vnc.o x.o vncauth.o d3des.o -lXinerama -lXss -lXext -lSM -lICE -L/usr/X11R6/lib -lX11

Some options are different from yours but that's because we ./configure'd on different machines, it didn't seem to have any issue with the -lX11 on my machine, the lack of "-L/usr/X11R6/lib" in your command line is curious. Perhaps it's time to try the alternate build option from the readme:

2) edit Imakefile, run 'xmkmf', then 'make'


Of course, I tried running x2vnc right after compiling and as expected it was a bit of a let down, this is since I don't have any vnc stuff running, so you want to get that going first (assuming the compile works). I can also recommend an inexpensive KVM switch, I use one to share keyboard/mouse/monitor between 2 boxes and it's fast and effective while placing no strain on network bandwidth.
 
Old 01-31-2005, 04:41 PM   #9
jacobds
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Success!!! I avoided the other install (xmkmf) before because I didn't have the program installed and I had forgotten about it since learning how to search and install. I installed it and ran the program no problem. Thank you so much for all your help. This was a huge learning experience.

Ayway I am using a KVM switch. It goes between my Windows and Linux boxes. I have the windows version of this program working to control third computer (ibook) and i just wanted to be able to control the ibook from both so that it didn't matter which computer was up, I could still move the mouse over to the ibook.

Thanks again
 
Old 01-31-2005, 05:08 PM   #10
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
cool setup, you've got all 3 OS's to play with, nice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing Mandrake 10.1 Dauer Mandriva 21 05-30-2005 10:53 PM
problems installing mandrake from cd Robin01 Linux - General 4 05-16-2005 08:01 PM
X2vnc on SuSE 9.1 - lib error slnkelly Linux - Software 1 04-14-2005 11:08 AM
Installing Mandrake 10.0 problems Berethorn Linux - Newbie 1 09-08-2004 12:22 PM
Problems installing Mandrake 9.1 npatel Mandriva 3 02-08-2004 12:05 PM


All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration