• AVR Freaks

Hot!makefile generator

Author
adi1525
New Member
  • Total Posts : 27
  • Reward points : 0
  • Joined: 2017/01/15 08:52:24
  • Location: 0
  • Status: offline
2019/08/12 11:40:10 (permalink)
0

makefile generator

Hi,
I try generate makefile by prjMakefilesGenerator.bat. I added path to folder to PATH and after run everything look right, but makefile is not created.
 
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X> prjMakefilesGenerator.bat %CD% -v -f
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem this batch file runs java -jar ..\lib\PrjMakefilesGenerator.jar
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem but first extracts from ..\etc\mplab_ide.conf the location where java exists
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem in the current MPLAB X installation
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>set here=C:\Program Files (x86)\Microchip\MPLABX\v5.10\mplab_platform\bin\
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>SET mplabx_dir=C:\Program Files (x86)\Microchip\MPLABX\v5.10\mplab_platform\bin\..\
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>SET gen_jar=C:\Program Files (x86)\Microchip\MPLABX\v5.10\mplab_platform\bin\..\\lib\PrjMakefilesGenerator.jar
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem extract jdkhome from mplab_ide.conf without assuming command extensions (for /F)
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem and without using echo | set /p=set since that fails in some machines.
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>findstr /B jdkhome "C:\Program Files (x86)\Microchip\MPLABX\v5.10\mplab_platform\bin\..\\etc\mplab_ide.conf" 1>C:\Users\Adrian\AppData\Local\Temp\jdk.txt
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>set /p xxx= 0<C:\Users\Adrian\AppData\Local\Temp\jdk.txt
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>echo set jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v5.10\sys\java\jre1.8.0_181\"\bin\java.exe 1>C:\Users\Adrian\AppData\Local\Temp\setjdkhome.bat
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>call C:\Users\Adrian\AppData\Local\Temp\setjdkhome.bat
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>set jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v5.10\sys\java\jre1.8.0_181\"\bin\java.exe
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem at this point jdkhome="c:\XXXXXXX\"java\bin
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem jdkhome has a trailing \ followed by a "
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem if we call java from jre7, it gets confused by the \"
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem so we need to remove the quotes
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>set jdkhome=C:\Program Files (x86)\Microchip\MPLABX\v5.10\sys\java\jre1.8.0_181\\bin\java.exe
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>rem finally, call java on the jar (remove the final space added by the last set
C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>"C:\Program Files (x86)\Microchip\MPLABX\v5.10\sys\java\jre1.8.0_181\\bin\java.exe " -jar "C:\Program Files (x86)\Microchip\MPLABX\v5.10\mplab_platform\bin\..\\lib\PrjMakefilesGenerator.jar" C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X -v -f
PS C:\Users\Adrian\Documents\Projekty\mplabX\PIC32-test.X>

 
What can be wrong ??
I readed "developer help" and don't find anything helpful.
 
Regards,
Adrian
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5