LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-06-2009, 03:16 PM   #1
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Rep: Reputation: 0
Exclamation Errors with gpsim under Ubuntu (PIC programming)


Hi all !

Error 1 : configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
Context : While installing graphiclcd-0.4.0 for gpsim

Error 2 : gpsim: symbol lookup error: /usr/lib/libgpsimgui.so.0: undefined symbol: _ZTI14address_symbol
Context :: After launching gpsim in console

Distribution : Ubuntu 9.10 (karmic)
Linux Kernel : 2.6.31.14-generic

Thanks for your help !
 
Old 11-07-2009, 01:03 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,944

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
HOWTO build 'gpsim'

'gpsim' and 'grapiclcd' can be installed with "Synaptic" or
sudo apt-get install gpsim gpsim-lcd-graphic
.. providing gpsim version 0.20.0 and grapiclcd version 0.3.0 .

.....
.....
"Build requires" to compile the source code :
sudo apt-get install \
libpopt-dev libgtkextra-x11-2.0-dev flex bison libreadline-dev
.. 'byacc' can cause errors, > > bison is installed, no byacc.

' grapiclcd-0.4.0 ' is buggy, please use 'the later version' =
SVN : http://gpsim.sourceforge.net/gpsim.html#svn
(( .. browse code ..
http://gpsim.svn.sourceforge.net/viewvc/gpsim/trunk/ ))

Required commands ...
1) mkdir gsim-svn
2) cd gsim-svn/
3) svn checkout https://gpsim.svn.sourceforge.net/svnroot/gpsim/trunk .
.. And don't forget the dot ( . ).

.. When the new code is downloaded ..
4) libtoolize
5) aclocal
6) autoheader
7) automake --add-missing
8) autoconf
9) ./configure --prefix=/usr/
10) make
.. and remove other versions of 'gpsim' installed to /usr/
.. or /usr/local/ , if you want "lcd" and / or "graphic_lcd".
11) sudo make install
12) cd extras/lcd/
13) .. repeat commands ' 4 .. 11 '
14) cd ../ graphic_lcd/
15) .. repeat commands ' 4 .. 11 '
.....
16) .. No more commands.. .. everything has been installed
to /usr/ .... and then : Good luck ! ... ...
.....

Last edited by knudfl; 12-01-2009 at 11:06 AM. Reason: ./configure edited to ./configure --prefix=/usr/
 
Old 11-07-2009, 02:16 PM   #3
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
First thanks for your awnser

So i'm going to test that and mark the post as solved if it's works

thanks again knudfl

PS : the error with GPSIM is when i'have installed it with synaptic ...
 
Old 11-07-2009, 04:20 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,944

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
The only isue, I had now, when testing 'gpsim' comes from
the used './configure' instead of './configure --prefix=/usr/'.

The 'gpsim' binary seems to be hard coded to look for libraries
in /usr/lib/ only. So either " ./configure --prefix=/usr/ "
or you will have to link the used libraries to /usr/lib/.

..... 'gpsim' opens a nice GUI .....
.....
 
Old 11-07-2009, 04:45 PM   #5
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
gpsim: error while loading shared libraries: libgpsimcli.so.0: cannot open shared object file: No such file or directory

Sorry but it didn't work ...

Any suggest ?

May be I've to configure again with your last suggestion ...

I'll post another thread after testing
 
Old 11-07-2009, 05:06 PM   #6
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you a million kundfl it's now working

To sum up your solution :

If you're trying to install gpsim on Ubuntu (9.10) or other Debian distribution you will get some errors even you try installing them with synaptic or the tarball given on the site

The better solution is to use Subversion :

1) mkdir gsim-svn this create a folder were we are going to download the source from svn
2) cd gsim-svn/ go inside the directory you've just created
3)
Code:
libtoolize
aclocal
autoheader
automake --add-missing
./configure --prefix=/usr/
That's to configure the source to be installed
4) make The classic command to compile the sources
5) sudo make install to copy binaries into /usr/...

And same operations with graphic-lcd and/or lcd

Good help and I hope that this thread helped you

malikcpp thanks to the help of kundfl ...
 
Old 11-07-2009, 07:30 PM   #7
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
I've an assembler programm :

Code:
	list	p=16f84
	radix	hex

STATUS	equ	0x03
PORTA	equ	0x05
PORTB	equ	0x06
TRISA	equ	0x85
TRISB	equ	0x86

	org	0x000

	bsf	STATUS,5
	movlw	0x00
	movwf	TRISA
	bcf	STATUS,5

start	movlw	0xAA
	movwf	PORTA
	goto	start

	end
And when I try to simulate it with this command :

Code:
gpsim -pp16f84 test.asm
I got when trying to open simulations windows an error, i dont know if its the same for each window but no window works :

Code:
*** glibc detected *** gpsim: realloc(): invalid pointer: 0x01216c4e ***
Any suggest ?
 
Old 11-07-2009, 07:35 PM   #8
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
I've finded for another programm I found this pic 16F84 emulator

But after compiling and trying to emule the same programm i've this message

Code:
*** stack smashing detected ***: ./f84 terminated
If anybody knows a stable emulator for 16F84 PICS on Ubuntu or Linux in general, i'll very pleased to learn more about it.

Best Regards, malikcpp.
 
Old 11-08-2009, 01:41 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,944

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Packages .. Ubuntu Karmic > >
Software Packages in "karmic", Subsection electronics
http://packages.ubuntu.com/karmic/electronics/
→ simulpic : simulator for Microchip PIC16F84 microcontroller

But I know nothing about, how well it works ..
 
Old 11-08-2009, 02:27 AM   #10
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you again knudfl, but it's a really rudimentary programm in console mode ... but it's working well. It's better than nothing thank you
 
  


Reply

Tags
emulator, gpsim, linux, pic, simulation, simulator, ubuntu


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie in need of help on PIC programming MasterOfTheWind Programming 8 11-07-2009 02:43 AM
Linux Kernel Module programming compilation errors. muskvar Programming 2 12-08-2008 09:58 AM
interfacing and PIC programming... cactusface Programming 1 07-28-2007 09:01 PM
what does these errors mean? (c programming) shengchieh Programming 4 06-08-2005 02:09 AM
Pic programming possible? perdesiz Linux - Software 1 09-23-2003 10:03 PM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration