[Sdcc-user] libdev18f4550.lib not found on fedora 24 (sdcc + piklab)

2016-09-13 Thread Leonardo
Hello all,

i'm facing a problem using sdcc + piklab here.

currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.

the commands created by piklab to compile and link follows:

sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c

sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o

the compile phase seems to work well, however the second command tries to
find a file called libdev18f4550.lib and then fails.

searching the sdcc installation i've found a .lib file with similar name,
but i'm not sure if it's the same thing the linker is looking for:

*/usr/share/sdcc//lib/pic16/libio18f4550.lib*

any guidance is welcome.
--
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] libdev18f4550.lib not found on fedora 24 (sdcc + piklab)

2016-09-14 Thread Leonardo
Hello Zsolt, thank you for your answer.

[sombriks@sephiroth ~]$ sdcc -v
SDCC :
mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8
3.6.0 #9615 (Linux)
published under GNU General Public License (GPL)
[sombriks@sephiroth ~]$

this version is what comes from official fedora repo:

[sombriks@sephiroth ~]$ sudo dnf whatprovides sdcc
Última verificação de data de vencimento de metadados: 0:57:21 atrás em Wed
Sep 14 18:57:52 2016.
sdcc-3.6.0-2.fc24.x86_64 : Small Device C Compiler
Repo: @System

sdcc-3.6.0-2.fc24.x86_64 : Small Device C Compiler
Repo: updates

sdcc-3.5.0-6.fc24.x86_64 : Small Device C Compiler
Repo: fedora

[sombriks@sephiroth ~]$

maybe piklab is the real problem, yet i have no light here yet.



Em qua, 14 de set de 2016 às 16:06, Gál Zsolt 
escreveu:

> Hello,
>
> How did you install your sdcc? Did you install a snapshot or compile it
> from source?
>
> Could you write the version number of it? ( sdcc -v )
>
> I think the device library files for pic16 devices should be in this
> directory:
>
> /usr/share/sdcc/non-free/lib/pic16
>
> Regards,
>
> Zsolt
>
> 2016-09-14 7:18 GMT+02:00 Leonardo :
>
>> Hello all,
>>
>> i'm facing a problem using sdcc + piklab here.
>>
>> currently it compiles my hello world quite well, however the link step
>> (from .o file to .hex) seems problematic.
>>
>> the commands created by piklab to compile and link follows:
>>
>> sdcc --use-non-free -mpic16 -p18f4550 -V --debug
>> -I/home/sombriks/Documentos/samplepic/ -c main.c
>>
>> sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
>> -I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
>>
>> the compile phase seems to work well, however the second command tries to
>> find a file called libdev18f4550.lib and then fails.
>>
>> searching the sdcc installation i've found a .lib file with similar name,
>> but i'm not sure if it's the same thing the linker is looking for:
>>
>> */usr/share/sdcc//lib/pic16/libio18f4550.lib*
>>
>> any guidance is welcome.
>>
>>
>> --
>>
>> ___
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>>
>>
>
>
> --
> 
> http://galzsolt.zzl.org
>
> --
> ___
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
--
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] libdev18f4550.lib not found on fedora 24 (sdcc + piklab)

2016-09-15 Thread Leonardo
Hi Milan! thank you for your answer.

I am actually not quite versed on the microcontroller universe, and i've
tried mplabx, yesterday. i'm still figuring things.

One thing i already figured, piklab seems outdated. one of the commands it
generated seems to be using sdcc parameters that aren't there anymore
(--ide for instance)

Also, the two backslashes are a typo yet harmless:

[sombriks@sephiroth ~]$ ls /usr/share/sdcc//lib/pic16/libio18f4550.lib
/usr/share/sdcc//lib/pic16/libio18f4550.lib
[sombriks@sephiroth ~]$ ls /usr/share/sdcc/lib/pic16/libio18f4550.lib
/usr/share/sdcc/lib/pic16/libio18f4550.lib
[sombriks@sephiroth ~]$






Em qui, 15 de set de 2016 às 13:54, Milan Baša 
escreveu:

> Hello.
> Why Piklab and no Mplabx with SDCC support?
>
> Dňa 14.09.2016 o 07:18 Leonardo napísal(a):
> > Hello all,
> >
> > i'm facing a problem using sdcc + piklab here.
> >
> > currently it compiles my hello world quite well, however the link step
> > (from .o file to .hex) seems problematic.
> >
> > the commands created by piklab to compile and link follows:
> >
> > sdcc --use-non-free -mpic16 -p18f4550 -V --debug
> > -I/home/sombriks/Documentos/samplepic/ -c main.c
> >
> > sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
> > -I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
> >
> >
> > the compile phase seems to work well, however the second command tries
> > to find a file called libdev18f4550.lib and then fails.
> >
> > searching the sdcc installation i've found a .lib file with similar
> > name, but i'm not sure if it's the same thing the linker is looking for:
> >
> > */usr/share/sdcc//lib/pic16/libio18f4550.lib*
> Two times backslash?
> >
> > any guidance is welcome.
> >
> >
> >
> --
> >
> >
> >
> > ___
> > Sdcc-user mailing list
> > Sdcc-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sdcc-user
> >
>
>
>
> --
> ___
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
--
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user