Jump to content

pb compile premier programme


bioprof
 Share

Recommended Posts

salut,

j'ai tenté de compiler un programme d'essai et quand j'ai lancé make main.c, j'ai obtenu des messages d'erreur indiquant :

makefile:28:\include\makefile\common.mk: no such file or directory

makefile:31:\modules\app_lcd\dummy\app_lcd.mk: no such file or directory

make: *** No rule to make target '\modules\app_lcd\dummy\app_lcd.mk'. stop

Ces répertoires sont pourtant dans le dossier mio_base_v1_0b

Faut-il configurer le path ?

Link to comment
Share on other sites

salut,

thanks for information and it works but, now, when i try to compile an example programme , i have the error message from msys :

C:\programmes\essai>make

rm -rf _output/*

rm -rf _output

make: *** [clean] Error 1

I don't understand what does it mean

And now, ladies and gentllemen, the french version

quand j'essaie de compiler un programme d'exemple, j'obtiens de la part de msys le message d'erreur suivant :

C:\programmes\essai>make

rm -rf _output/*

rm -rf _output

make: *** [clean] Error 1

qu'est-ce que cela signifie ?

Link to comment
Share on other sites

I am unsure... I wonder if it is this bug: I think my compile environment is broke   :-[

Is the error different, each time you run 'make'?

I am an ubuntu now, so it is difficult for me to test this...

Perhaps try this:

set PATH=c:\MSYS\1.0\bin;c:\Program Files\gputils\bin;c:\Program Files\SDCC\bin;c:\M
inGW\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\
System32\Wbem

make

Sorry I can't answer in French! :( Can anyone help?

Link to comment
Share on other sites

I think the problem come from vista 64 bits because i have installed all tool chain in windows xp and i have a compilation.

I have some errors like unsigned pin not defined and it sound like the compilation works normally. ( sorry for the english but you are a master and i want to write in your language)

Thanks a lot for all replies.

Link to comment
Share on other sites

salut / Hi!

Ca ressemble à un problème de Makefile, rien de grave ;) (l'erreur du début).

tu peux me dire ou trouver le truc que tu essais de compiler? (ca fait un moment que j'ai pas regardé tout ca, je suis un peu perdu...).

Pour les autres, je sais pas, tu peux poster les messages d'erreurs? C'est des erreurs, ou juste des warnings?

Pilo

Link to comment
Share on other sites

salut,

c'est dans le pack mios_base_v1_0b en téléchargement. Repertoire apps/exemples/ sdcard/sysex sender/

Voici exactement le message de compilation que j'obtiens :

putils\bin;%programfiles (86)%\SDCC\bin;%PATH%

C:\programmes\essai>make

rm -rf _output/*

rm -rf _output

rm -rf *.cod *.map *.lst

rm -rf *.hex

mkdir -p _output

sh c:\mios_base_v1_0b\bin/mios-gpasm -c -p p18f452 -I./src -I c:\mios_base_v1_0b

/include/asm -I c:\mios_base_v1_0b/include/share -I c:\mios_base_v1_0b/modules/a

pp_lcd/dummy -DDEBUG_MODE=0  -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I c:\mio

s_base_v1_0b/modules/mios_wrapper c:\mios_base_v1_0b/modules/mios_wrapper/mios_w

rapper.asm  -o _output/mios_wrapper.o

sh c:\mios_base_v1_0b\bin/mios-gpasm -c -p p18f452 -I./src -I c:\mios_base_v1_0b

/include/asm -I c:\mios_base_v1_0b/include/share -I c:\mios_base_v1_0b/modules/a

pp_lcd/dummy -DDEBUG_MODE=0  c:\mios_base_v1_0b/modules/app_lcd/dummy/app_lcd.a

sm -o _output/app_lcd.o

sh c:\mios_base_v1_0b\bin/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer -

-optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2  -I./src -I c:\m

ios_base_v1_0b/include/c -I c:\mios_base_v1_0b/include/share -DDEBUG_MODE=0  mai

n.c -o _output/main.o

main.c:89: error 20: Undefined identifier 'pin'

main.c:89: error 20: Undefined identifier 'pin'

main.c:94: error 20: Undefined identifier 'pin'

main.c:94: error 20: Undefined identifier 'pin'

make: *** [_output/main.o] Error 1

Link to comment
Share on other sites

Merci, pilo! I'll watch quietly from the background now

You can still be usefull I think :) so keep watching  :P

Alors j'ai tout installé, et ca compile sans problème ici... (mais je suis sous linux c'est peut etre un peu plus simple, je sais pas).

je note toutefois des différence entre nos ligne de compilation... ce qui est étrange et certainement la source du probème

(j'ai remplacer le chemin vers mios par mios_base pour comparer rapidement).

sh mios_base/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./ -I./src -I mios_base/include/c -I mios_base/include/share -I mios_base_v1_0b/modules/sdcard -DDEBUG_MODE=0  main.c -o _output/main.o
sh mios_base/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2  -I./src -I mios_base/include/c -I mios_base/include/share -DDEBUG_MODE=0  main.c -o _output/main.o

j'ai un -I. et -Imios_base_v1_0b/modules/sdcard ... on va demander à stryd_one  :)

Hey stryd, it seems that his make is not dealing with declaration of SDCC_INCLUDE over multiple files? The only include are those declared from common.mk, but the -I. (from the makefile in example directory) and

-I $(MIOS_PATH)/modules/sdcard (from sdcard.mk) are ignored....

I don't know if this comes from make under windows... any idea?

Thanks ;)

Pilo

Link to comment
Share on other sites

Glad that it's working :)

Pilo: yeh, something seems 'not right' there... But there's also that strange error about the 'pin' identifier, which comes from a line of code which only has a closing brace... It seems that the files have been edited or perhaps corrupted.

Perhaps, all that is required here, is to download and unzip a fresh copy of the mios_base zip (obviously this would have been done on the XP box, so that would make sense)...  Or maybe it's a strange msys/vista64 bug....

Link to comment
Share on other sites

Ah super que ca marche :)

sauf sdcard? je pense que comme le suggère stryd, tu devrais essayer de retelecharger l'archive, et de compiler a partir de ca.

stryd thanks for the help ;) you're right about the pin identifier error... it cames from lines where there can't really be an error.

Link to comment
Share on other sites

salut,

Je voudrais encore vous remercier du support que vous apportez patiemment à des débutants et cela m'a été très utile.

Je ne souhaite pas vraiment compiler sdcard parce que mon but était de créer un programme qui envoie certain message SysEx en fonction de l'interrupteur sur lequel on appuie.

Grâce à vous j'ai créé le programme, il fonctionne et affiche ce que je souhaite.

Par contre, je ne comprends pas bien la fonction display_tick.

Link to comment
Share on other sites

Salut,

y'a pas de quoi, c'est normal de donner un coup de main :)

Alors pour le Display_Tick : c'est une fonction qui est appellé par MIOS pour mettre à jour l'affichage. C'est une fonction qui est a redéfinir dans ton programme, pour afficher ce que tu veux. C'est fait ainsi, car l'affichage n'a pas forcément besoin d'etre mis à jour "souvent", et de ce fait, MIOS s'occupe de gérer quand il faut l'appeller.

N'hésite pas à poster ton code, et si il y a des problèmes etc ;)

Pilo

Link to comment
Share on other sites

  • 9 months later...

I think the problem come from vista 64 bits because i have installed all tool chain in windows xp and i have a compilation.

I have some errors like unsigned pin not defined and it sound like the compilation works normally. ( sorry for the english but you are a master and i want to write in your language)

Thanks a lot for all replies.

comment t'as fait pour monter la toolchain sur un OS 64bits?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...