mess Posted December 18, 2005 Report Share Posted December 18, 2005 Hello,I have always get an error when I try to compile a c applicationbelow are some examples of my problem (no modifications were made to the c apps)and the contents of my path variableI have installed sdcc v2.5, perl and gputils-0.13.2-1.exe to e:\mioscE:\data\midibox\analog_toolbox_v1_1c>makeMakefile generated.Makefile.bat generated.Assembling MIOS SDCC wrapper==========================================================================Compiling eg.cProcessor: 18F452e:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directoryERROR!E:\data\midibox\clockbox_v1_0>makeMakefile generated.Makefile.bat generated.Assembling MIOS SDCC wrapper==========================================================================Compiling mclock.cProcessor: 18F452e:\miosc\sdcc\bin\sdcpp.exe: mclock.c: No such file or directoryERROR!PATH=e:\miosc\sdcc\bin;e:\miosc\gputils\bin;E:\miosc\perl\bin\;etc...Michael Quote Link to comment Share on other sites More sharing options...
TK. Posted December 18, 2005 Report Share Posted December 18, 2005 Hi,note this error message:[tt]e:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directory[/tt][tt]e:\miosc\sdcc\bin\sdcpp.exe: mclock.c: No such file or directory[/tt]how and from where are you starting the make.bat?Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
mess Posted December 18, 2005 Author Report Share Posted December 18, 2005 hello thorstenthank you for your time and your quick reply :DI'm starting the bat file from the dos terminal (run cmd.exe)then I navigate to the folder wich contains the app directory,for the analog toolbox: E:\data\midibox\analog_toolbox_v1_1cthen I type make and press enter...below is the content of the analog toolbox directory:E:\data\midibox\analog_toolbox_v1_1c>dir De volumenaam van station E is LOCAL Map van E:\data\midibox\analog_toolbox_v1_1c18/12/2005 15:51 <DIR> .18/12/2005 15:51 <DIR> ..10/11/2005 23:34 6.202 aout.c10/11/2005 23:34 3.479 aout.h10/11/2005 23:34 305 CHANGELOG.txt10/11/2005 23:34 207 clean.bat10/11/2005 23:34 13.413 cmios.h10/11/2005 23:34 18.671 COPYRIGHT.txt10/11/2005 23:34 3.978 eg.c10/11/2005 23:34 2.583 eg.h10/11/2005 23:34 7.216 eg_table.inc10/11/2005 23:34 2.951 lfo.c10/11/2005 23:34 2.139 lfo.h10/11/2005 23:34 7.473 lfo_table.inc10/11/2005 23:34 7.751 main.c10/11/2005 23:34 2.350 main.h10/11/2005 23:34 66 make.bat18/12/2005 16:29 1.128 Makefile18/12/2005 16:29 4.345 Makefile.bat10/11/2005 23:34 1.469 MAKEFILE.SPEC10/11/2005 23:34 6.262 map.c10/11/2005 23:34 3.019 map.h10/11/2005 23:34 3.384 midi.c10/11/2005 23:34 2.343 midi.h18/12/2005 15:51 <DIR> mios_wrapper10/11/2005 23:34 5.377 pic18f452.c10/11/2005 23:34 21.979 pic18f452.h10/11/2005 23:34 17.302 project.hex10/11/2005 23:34 1.118 project.lkr10/11/2005 23:34 7.104 project.syx10/11/2005 23:34 8.610 readme.txt18/12/2005 15:51 <DIR> tools18/12/2005 15:51 <DIR> utils18/12/2005 15:51 <DIR> _output 28 bestand(en) 162.224 bytes 6 map(pen) 18.034.728.960 bytes beschikbaarthank you very much,Michael Quote Link to comment Share on other sites More sharing options...
TK. Posted December 18, 2005 Report Share Posted December 18, 2005 So, everything seems to be on place.Are you working with Win98 or WinME? Then it might be useful to add the PATH extensions into the C:\AUTOEXEC.BAT file, and to reboot the PCBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
mess Posted December 22, 2005 Author Report Share Posted December 22, 2005 Hi Thorsten,Yesterday I tried installing the compiler etc on my girlfriends computer,everything works as expected...I will try again on my computer after I finish my examsbye,Michaël Quote Link to comment Share on other sites More sharing options...
mess Posted June 18, 2006 Author Report Share Posted June 18, 2006 Old topic, but I still have this (still compiling on girlfriend's pc :P)I have a problem with the make macros when I compile a c projecteverything works fine on my girlfriends computer(even when I compile the source files from my own pc over network) but on my computer I allways get the same errors (see below)error message:Makefile generated.Makefile.bat generated.Assembling MIOS SDCC wrapper==========================================================================Compiling iohandler.c: No such file or directoryERROR!I can make it work on my computer if I manually edit the makefile.bat fileand add the absolute paths to the source fileafter running the the make:I've replaced thisecho ==========================================================================echo Compiling dseq.csdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 dseq.c -o _output\dseq.asmif errorlevel 1 goto end_errorperl tools\fixasm.pl _output\dseq.asmif errorlevel 1 goto end_errorgpasm -c _output\dseq.asm -o _output\dseq.oif errorlevel 1 goto end_errorwith this (I've added the absolute path to c source file)echo ==========================================================================echo Compiling dseq.csdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 Z:\firstdseq\dseq.c -o _output\dseq.asmif errorlevel 1 goto end_errorperl tools\fixasm.pl _output\dseq.asmif errorlevel 1 goto end_errorgpasm -c _output\dseq.asm -o _output\dseq.oif errorlevel 1 goto end_errorand so on for each c file...can I modify the mkmk.pl script to add the absolute pathso I don't have to do this manually? Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 19, 2006 Report Share Posted June 19, 2006 Wow I reckon it might be about time to rebuild that PC huh :) Quote Link to comment Share on other sites More sharing options...
audiocommander Posted June 19, 2006 Report Share Posted June 19, 2006 Z:\firstdseq\dseq.c -o _output\dseq.asme:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directory(...)then I navigate to the folder wich contains the app directory,for the analog toolbox: E:\data\midibox\analog_toolbox_v1_1cthen I type make and press enter...Hi Michaël,it seems to me, that the cd to your working directory hasn't been recognized properly, or maybe SDCC srewed up, because it didn't expected to be installed on E:\ but to compile on Z:\?I know SDCC supports installations in other folders than the default one, but I'm not sure it can also be installed on other than the system's partition? Do you know if that's supported for your installed SDCC version?(I expect your girlfriends computer just has C:\ ;D)I would try moving your project (or better: a fresh ClockBox-Example) to E:\ and try if it compiles from this partition...Regards,Michael Quote Link to comment Share on other sites More sharing options...
mess Posted June 19, 2006 Author Report Share Posted June 19, 2006 Wow I reckon it might be about time to rebuild that PC huh :)Hi StrydI probably *should* format my pc and change my drive letter to C:\but I rather spend some time on my midibox project than reinstalling everything from scratch ::)Hi Michaël,it seems to me, that the cd to your working directory hasn't been recognized properly, or maybe SDCC srewed up, because it didn't expected to be installed on E:\ but to compile on Z:\?I know SDCC supports installations in other folders than the default one, but I'm not sure it can also be installed on other than the system's partition? Do you know if that's supported for your installed SDCC version?(I expect your girlfriends computer just has C:\ ;D)I would try moving your project (or better: a fresh ClockBox-Example) to E:\ and try if it compiles from this partition...Regards,MichaelHi Michael, I did try to compile the standard clockbox project frome:\clockboxsame results...the Z drive is a network drive mapped to my midibox directory,I did the same on the other pc (mapped to same dir on my pc)and it works finethe really strange thing is:C mapped to e:\data\electronics\midiboxdoesn't work[any drive letter] mapped to e:\data\electronics\midibox\firstdseq (->project dir)works finethank you for your help,Michaël Quote Link to comment Share on other sites More sharing options...
tos Posted June 19, 2006 Report Share Posted June 19, 2006 Haven't read the whole tread but try using sysinternals ntfilemonitor. Set it's filters and run the compilation. Then look at the log for NOT FOUND files. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.