(you are viewing a thread; or go back to
list of threads)
Using the Make batch to compile LDmicro.exe (by Roy)
Hi
I am trying compile LDmicro using the Make file. I am using Visual C++ Express Edition 2008, I also have perl installed . I am using windows XP. I managed to compile all the obj files and the last thing it does is helptext.cpp. It then tries to run the resouce compiler and then gives an error 'mv' is not recognized as an internal or external command. It then exits the batch file.
Many Thanks
Roy
(no subject) (by Jonathan Westhues)
Ldmicro Compile (by Roy)
Hi Jonathan
I am a little uncertain if Ldmicro has been compiled under Windows XP using Microsoft Visual C++ Express 2008. I have tried your suggestion with regard to the Unix utilities which I downloaded however there didn't seem to be any exe file except SH.exe which looks like the unix operating system.
Thanks again for help
Rgds
Roy
(no subject) (by Jonathan Westhues)
IO LIST (by Roy)
Hi Jonathan
I am making good progress with my alterations - one aspect which I battling with is the IO list. I can see that you created a child window for the IO list but I am not sure where you output the list to the window.
I would like take out the pin numbers in the actual display list - obviously not remove them from the program as they are needed - just remove them from IO list display on the screen.
Thanks
Roy
(no subject) (by Jonathan Westhues)
The listview is created around line 77 of maincontrols.cpp. The columns in the listview are created shortly afterward, and the items are added around line 552.
The text of the listview items is provided in a callback; so we service that ourselves, around line 773 of iolist.cpp.
(no subject) (by BoumPower)
Hi Roy
Good luck to modify LDmicro !
I'm writing a command line compiler (see http://sourceforge.net/projects/ldcompiler/)
I will modify the way of storing IO and CPU definition in the .ld file. Can you include these changes in your work on LDmicro ?
It will also help me to have a menu item that invoke my compiler tool chain.
Best regards
BournPower (by Roy)
Hi
This sounds useful. I have added an extra menu item - I want to program the pic (using the bootstrap loader) using a program which I have found written in Delphi and assembler. See http://www.microchipc.com/PIC16bootload/ .
My one problem here is to convert it into visual C++ otherwise run it from the menu as an exe file.
Regards
Roy
boar
(no subject) (by BoumPower)
Hi
My philosophy wish :
LDmicro.exe for editing/simul ladder logic with minium of hard-coded : remove device info from code and use a text file instead for example.
External tools (invoked by menu item) for compiling and uploading to target device.
Regards
Olivier
Assign IO Window (by Roy)
Hi Jonathan
I would like to have only available Inputs showing in the assign list when I select a digital input and similarly only available Outputs when I select a digital output . I am looking at the IOlist around line 648 . It seems to build the list in this procedure ?
Thanks
Roy
(no subject) (by Jonathan Westhues)
That's correct.
Dialog Assign Box (by Roy)
Hi Jonathan
I can't seem to find the variable that will tell me which line I have clicked on in the IO List to bring up the IO list Assign dialog box. I need to be able to refere to port data which is on the line I clicked .
Thanks
Roy
(no subject) (by Jonathan Westhues)
The dialog box where you can assign an I/O pin to an input or output runs from the message loop around line 713 of iolist.cpp.
The input or output being assigned is Prog.io.assignment[item], where 'item' is passed as a parameter to ShowIoDialog(). The pin selected by the user is retrieved as the variable 'pin' around line 733.
Excluding Inputs when selecting Outputs and Visa Versa (by Roy)
Hi Jonathan
I am not quite getting the result I want.
I am using if ((Prog.io.assignment[item].type == IO_TYPE_DIG_OUTPUT) && (Prog.io.assignment[item].pin == 21))
{
goto cant_use_this_io;
}// brace 3
Here I am hoping to exclude Pin 21 in the dialog list when selecting an output however this statement blocks all the outputs but only once the pin has been assigned. IE once I have assigned pin 21 to an output you will not see any pins available when this output which has pin 21 assigned.
What I would like to see is when selecting an Type Dig_output is only the available output pins which can be assigned to it.
I would also like to get the same result when I select Type Dig_inputs - only available input pins.
Thanks for your help
Regards
Roy
(no subject) (by Jonathan Westhues)
Prog.io.assignment[item].pin is the currently-assigned pin, not the pin about to be added to the list. So the code that you reproduce above does nothing useful.
You want to compare against Prog.mcu->pinInfo[i], same as the routines that don't show non-analog pins for analog inputs, or don't allow the UART pins to be assigned as GPIOs when they're already in use for the UART.
(no subject) (by Napoleon)
Hi,
I have found following errors in visual c++ 6.0 how to solve this pls kindly reply assp.
Build Log
--------------------Configuration: make - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6B.tmp" with contents
[
/nologo /MLd /w /W0 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/make.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\ansic.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\avr.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\circuit.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\commentdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\compilecommon.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\confdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\contactsdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\draw.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\draw_outputdev.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\common\win32\freeze.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\helpdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\intcode.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\interpreted.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\iolist.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\lang.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\ldinterpret.c"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\ldmicro.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\loadsave.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\lutdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\maincontrols.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\miscutil.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\pic16.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\resetdialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\schematic.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\simpledialog.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\simulate.cpp"
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\undoredo.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6B.tmp"
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6C.tmp" with contents
[
/nologo /MLd /w /W0 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR"Debug/" /Fp"Debug/make.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\coildialog.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6C.tmp"
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6D.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/make.pdb" /debug /machine:I386 /out:"Debug/make.exe" /pdbtype:sept
".\Debug\ansic.obj"
".\Debug\avr.obj"
".\Debug\circuit.obj"
".\Debug\coildialog.obj"
".\Debug\commentdialog.obj"
".\Debug\compilecommon.obj"
".\Debug\confdialog.obj"
".\Debug\contactsdialog.obj"
".\Debug\draw.obj"
".\Debug\draw_outputdev.obj"
".\Debug\freeze.obj"
".\Debug\helpdialog.obj"
".\Debug\intcode.obj"
".\Debug\interpreted.obj"
".\Debug\iolist.obj"
".\Debug\lang.obj"
".\Debug\ldinterpret.obj"
".\Debug\ldmicro.obj"
".\Debug\loadsave.obj"
".\Debug\lutdialog.obj"
".\Debug\maincontrols.obj"
".\Debug\miscutil.obj"
".\Debug\pic16.obj"
".\Debug\resetdialog.obj"
".\Debug\schematic.obj"
".\Debug\simpledialog.obj"
".\Debug\simulate.obj"
".\Debug\undoredo.obj"
]
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP6D.tmp"
Output Window
Compiling...
ansic.cpp
avr.cpp
circuit.cpp
commentdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\commentdialog.cpp(36) : error C2065: 'WC_EDIT' : undeclared identifier
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\commentdialog.cpp(42) : error C2065: 'WC_BUTTON' : undeclared identifier
compilecommon.cpp
confdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\confdialog.cpp(38) : error C2146: syntax error : missing ';' before identifier 'PrevCrystalProc'
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\confdialog.cpp(38) : fatal error C1004: unexpected end of file found
contactsdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\contactsdialog.cpp(38) : error C2146: syntax error : missing ';' before identifier 'PrevNameProc'
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\contactsdialog.cpp(38) : fatal error C1004: unexpected end of file found
draw.cpp
draw_outputdev.cpp
C:\Documents and Settings\Administrator\Desktop\DMICRO VC++ 2005\ldmicro\draw_outputdev.cpp(344) : error C2664: 'SetTimer' : cannot convert parameter 4 from 'void (struct HWND__ *,unsigned int,unsigned long,unsigned long)' to 'void (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'
None of the functions with this name in scope match the target type
freeze.cpp
helpdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\helpdialog.cpp(86) : fatal error C1189: #error : "Bad language"
intcode.cpp
interpreted.cpp
iolist.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\iolist.cpp(578) : error C2065: 'WC_STATIC' : undeclared identifier
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\iolist.cpp(583) : error C2065: 'WC_LISTBOX' : undeclared identifier
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\iolist.cpp(588) : error C2065: 'WC_BUTTON' : undeclared identifier
lang.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\lang.cpp(45) : fatal error C1083: Cannot open include file: 'obj/lang-tables.h': No such file or directory
ldinterpret.c
ldmicro.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\ldmicro.cpp(34) : fatal error C1083: Cannot open include file: 'freeze.h': No such file or directory
loadsave.cpp
lutdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\lutdialog.cpp(47) : error C2146: syntax error : missing ';' before identifier 'PrevValuesProc'
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\lutdialog.cpp(47) : fatal error C1004: unexpected end of file found
maincontrols.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\maincontrols.cpp(93) : error C2065: 'WC_SCROLLBAR' : undeclared identifier
miscutil.cpp
pic16.cpp
resetdialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\resetdialog.cpp(36) : error C2146: syntax error : missing ';' before identifier 'PrevNameProc'
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\resetdialog.cpp(36) : fatal error C1004: unexpected end of file found
schematic.cpp
simpledialog.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\simpledialog.cpp(39) : error C2146: syntax error : missing ';' before identifier 'PrevAlnumOnlyProc'
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\simpledialog.cpp(39) : fatal error C1004: unexpected end of file found
simulate.cpp
c:\documents and settings\administrator\desktop\dmicro vc++ 2005\ldmicro\simulate.cpp(35) : fatal error C1083: Cannot open include file: 'freeze.h': No such file or directory
undoredo.cpp
Error executing cl.exe.
Results
make.exe - 21 error(s), 0 warning(s)
(no subject) (by Jonathan Westhues)
First, it looks like you're using completely different compiler and linker options from the makefile. Most of those seem harmless, but the include path is set up wrong, for example, which explains the freeze.h errors. I'm guessing that you've also failed to build the .h files with the manual and translated strings.
Use the provided makefile, like the README.txt file says.
And check your install of the Platform SDK. It's probably wrong, which probably explains WC_XXX errors.
http://cq.cx/ladder-forum.pl?action=viewthread&parent=7
Freeze.h file (by Adnan)
there is no freeze.h file in source. please let me know where it is
compilition error (by Adnan)
please read in jpg file
(no subject) (by Jonathan Westhues)
Please look more carefully at the zip file with the source. freeze.h is included, in common/win32.
The answer to your other question is above, in this very thread; your Platform SDK (and maybe other tools) are wrong.
Post a reply to this comment:
|