lynxdeterra / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

the set port item in the indi configure dialog does not work #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To see this, start an indiserver, e.g:

indiserver indi_celestron_gps

then start open-phd-guiding

click on "indi control planel"

if you enter some names for the device port (e.g /dev/ttyUSB0) the
indiserver will record only some strange chars.

On a system where the serial port is at the standard /dev/ttyS0 phd-guiding
would crash if I click connect...

(By the way, how do I connect this open-phd-guiding to my
celestron-nextstar? The indi_celestron_gps driver works in kstars. The
device is located at /dev/ttyUSB0. In Kstars I can move the telescope. With
open-phd-guiding, I was not able to connect. How do I do this?

Original issue reported on code.google.com by benjamin...@gmx.de on 16 Dec 2009 at 1:08

GoogleCodeExporter commented 9 years ago
I should perhaps add that I use a gentoo 64 bit system

Original comment by benjamin...@gmx.de on 16 Dec 2009 at 1:56

GoogleCodeExporter commented 9 years ago
Sorry.  I don't get e-mailed on these issues for some reason.  I'll look into 
it shortly

Original comment by geoffr...@gmail.com on 13 Jan 2010 at 9:01

GoogleCodeExporter commented 9 years ago
The problem seems to be that the entire libindiclient code is not written 64bit
clean. It seems that there are problems with almost every string that is taken 
from
the gui and / or send to indi.

Original comment by benjamin...@gmx.de on 13 Jan 2010 at 11:57

GoogleCodeExporter commented 9 years ago
odd.. I did the last set of cleanup (in Sepetember) on a 64bit host.  you're 
sure you
are using the latest code?

I have a 64bit host and will verify.

Original comment by geoffr...@gmail.com on 14 Jan 2010 at 12:11

GoogleCodeExporter commented 9 years ago
I have tried the latest code at first. 
Then I looked at older versions in order to see, if the problem is in earlier 
code
bases, and if I can fix it. But no, there is much code that has to do with 
strings
in libindi client and I saw that it would be a rather huge effort for me to
understand that code.
The problem is not the compilation. Compilation works fine. The problem seems 
to be
how strings are threated by those libraries.
I also gave the code of open-phd-guiding to a friend who studies programming at 
the
university. He quickly answered that would be many lines left in libindiclient 
which
would not be 64bit clean. But it seemingly was too much for him to fix this.

I use the gentoo 64 bit distribution. Here is a part of my system config:

Tux1 ~ # emerge --info                                                          

Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 
2.6.32-gentoo-
=================================================================               

System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-
Timestamp of tree: Wed, 13 Jan 2010 22:30:01 +0000                              

app-shells/bash:     4.0_p35                                                    

dev-java/java-config: 2.1.10                                                    

dev-lang/python:     2.6.4, 3.1.1-r1                                            

dev-util/cmake:      2.8.0                                                      

sys-apps/baselayout: 2.0.1                                                      

sys-apps/openrc:     0.6.0                                                      

sys-apps/sandbox:    2.2                                                        

sys-devel/autoconf:  2.13, 2.65                                                 

sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1                                   

sys-devel/binutils:  2.20                                                       

sys-devel/gcc-config: 1.4.1                                                     

sys-devel/libtool:   2.2.6b                                                     

virtual/os-headers:  2.6.30-r1                                                  

ACCEPT_KEYWORDS="amd64 ~amd64"                                                  

ACCEPT_LICENSE="* -@EULA dlj-1.1 ut2003 sun-bcla-java-vm"                       

CBUILD="x86_64-pc-linux-gnu"                                                    

CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"                           

CHOST="x86_64-pc-linux-gnu"                                                     

CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"      

CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-
/etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d
/etc/texmf/web2c"                                                               

CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"                         

DISTDIR="/usr/portage/distfiles"                                                

FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned
sandbox sfperms strict unmerge-logs unmerge-orphans"                            

GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"                  
LANG="de_DE.UTF-8"                                                              

LC_ALL="de_DE.UTF-8"                                                            

LDFLAGS="-Wl,-O1"                                                               

LINGUAS="de"                                                                    

PKGDIR="/usr/portage/packages"                                                  

PORTAGE_CONFIGROOT="/"                                                          

PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--
exclude=/local --exclude=/packages"                                             

PORTAGE_TMPDIR="/var/tmp"                                                       

PORTDIR="/usr/portage"                                                          

PORTDIR_OVERLAY="/usr/local/portage/layman/xwing 
/usr/local/portage/layman/wschlich-
/usr/local/portage/layman/sunrise /usr/local/portage/layman/qting-edge
/usr/local/portage/ownebuilds"                                                  

SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                  

USE="64bit X Xaw3d a52 aac abiword abyss ace acl acpi activefilter addns 
addressbook
admin adns adplug aften afterimage aim aio akonadi alsa amd64 amr amrnb analogtv
animgif archive aspell audacious audio audiofile audioscrobbler auth 
auto-completion
automount autoreplace autotrace bash-completion battery bcmath berkdb 
binary-drivers
bittorrent blender blender-game bluetooth boost browser bugzilla bzip2 cairo
calendar caps cardbus ccache cdb cddax cddb cdio cdparanoia cdr cdrom cg cgi 
chroot
cli clipboard cluster cmake compat compress connection-sharing consolekit 
context
contrast contrast-control contrib corefonts cpudetection cpulimit cracklib crypt
ctype ctypes-python cuda cue cups cvs cxx cyrillic dbus dc1394 dcc dchroot 
deflate
detex devfs-compat device-mapper dga dia dirac disk-partition diskio dmraid dmx
docbook dolby-record-switch dolbyinrec dot dpms drawing dri dts dv dvb dvbplayer
dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvi dvi2tty dvipdfm dx dxr3
dynamicplugin ebook eclipse emacs emovix enca enchant encode ethernet ewf excel 
exif
extensions extra extra-algorithms extras faad facebook fame fasttrack fat ffmpeg
fftw filter firefox firefox3 fits flac flash flatfile fluidsynth flv foomaticdb
fortran fortran95 fpx freemail ftp fts3 gallium games gd gdbm gfortran ggi gif 
git
github glib glibc-compat20 glibc-omitfp glsl glut glviewer gmm gmp gmtfull 
gmthigh
gmtsuppl gnome-print gnomecanvas gnuplot gnutella gnutls google google-gadgets
gphoto2 gpm grace grammar graph graphics graphite graphviz grass grub gs gsf 
gsl gsm
gstreamer gtk gtk2-perl gtkhotkey gtkspell gzip gzip-el h224 h281 h323 hal hash
hdaps hddtemp hdf hdri hepmc hfs highlight highvolume history hotpixels hpn html
http httpd httppower humanities hunspell hyphenation i18n ibmvio icc iconv icq 
icu
id3 id3tag idb ieee1394 ifc ilbc image image-cache imagemagick imaging imap 
imlib
indi infowidget inherit-graph inifile inkjar inotify int64 ioctl iproute2 ipsec 
iptc
iptv ipv6 irda iso14755 jabber jack jadetex java java5 java6 javacomm javamail
javascript jbig jce jfs joystick jpeg jpeg2k json kate kdcraw kde kde-qt 
kerberos
kino kmail kolab kpathsea krb4 l7filter ladspa lame lapack laptop largefile 
lastfm
lastfmradio latex latex3 lcms ldb lensfun libass libcaca libgig libmms libnl
libnotify libproxy libssh2 libsysfs libtiger libv4l libv4l2 libwww lightning 
live
lm_sensors logitech-mouse logrotate logviewer lqr lyx lzma lzo m17n-lib mad mail
mailbox maildir maildrop maps math mathml matplotlib matroska max-idx-128 mcve
md5sum mdb mfd-rewrites mjpeg mmx mmxext mng modplug modules mono motif mp2 mp3
mp3tunes mp4 mpeg mplayer mppe-mppc mpqc mssql mtp mudflap multilib musepack 
music
mysql nas nautilus ncurses network networkmanager nfs nfsv3 nfsv4 nis nls nova 
nptl
nptlonly nsplugin ntfs ntp numeric numpy nut nuv nvidia nvram nvtv octave odbc 
ogg
ogg123 ogm omega openal opencore-amr openct openexr opengl openmp openssl
optimization optimized-qmake pam parse-clocks pcmcia pcntl pcre pcsc-lite pdf 
pdo
perl pg-intdatetime phonon php pkcs11 plasma player plotutils pm-utils png pnm
policykit portaudio posix postgres postproc postscript ppds pppd preview-latex 
print
ps pstoedit pstricks publishers pulseaudio pvr python qmake qt3support qt4 
quicktime
quota quotas radio ramfs rar raw rcs readline recording redeyes reflection 
reiserfs
remote remoteosd replytolist resolvconf rle rpc rpm rss rtf rtsp ruby 
run-as-root
samba sasl scanner schroedinger science sdl sdl-image semantic-desktop sensord
session sha1 shaders sharedext shine shout simplexml skey skins smartcard
smbsharemodes smp smtp sndfile snmp sockets socks socks5 sound soundex 
sourceview
spamassassin spamfilter speex spell spl sql sqlite3 sse sse2 sse3 sse4 sse4a 
sse5
ssh ssl ssse3 stream subversion suhosin suid svg swat sysfs syslog sysvipc szip
taglib tcl tcpd tex tex4ht texmacs theora thinkpad threads thumbnail thumbnails
thunderbird tidy tiff timezone tk tokenizer toolbar toolkit-scroll-bars totem
transcode truetype tta tts tv tv_check tv_combiner tv_pick_cgi tvflash tvtime 
type3
udev udev-acl unicode unzip upnp usb utils v4l v4l2 vcd vcdinfo vcdx vdpau vga 
video
vlm vorbis wav wavpack wcwidth wddx webcam webdav webdav-neon webdav-serf
webinterface webkit websockets wicd wifi winbind wma wma-fixed wmf wordperfect 
wpd
wpg wv2 wxwidgets x264 x264-static xanim xcomposite xemacs xetex xext xfs xft 
xhtml
xim xine xinerama xinetd xml xmlpatterns xmlreader xmlrpc xmlwriter xmp xorg xpm
xrender xsl xterm xterm-color xulrunner xv xvid xvmc yaz youtube yv12 zip zippy 
zlib
zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 
emu10k1x
ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 
trident
usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy 
dmix
dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir 
disk_cache
env expires ext_filter file_cache filter headers include info log_config logio
mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse
joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk 
hd44780
lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" 
USERLAND="GNU"
VIDEO_CARDS="nvidia svga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Original comment by benjamin...@gmx.de on 14 Jan 2010 at 1:03

GoogleCodeExporter commented 9 years ago
This turned out to be a 2 line change.  I added another 2 just in case.
It should work much better now.

Original comment by geoffr...@gmail.com on 14 Jan 2010 at 2:47