Jump to content



Photo
- - - - -

Como Compilar Add-in Con Classpad Dev-c++


  • Please log in to reply
4 replies to this topic

#1 george777

george777

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    HP 48GX,HP 49G,HP 50G, TI 89Titatium,Classpad 330

Posted 14 March 2010 - 12:38 AM

Hola a todos... tengo el siguiente problema... No sé que hacer al compilar un archivo o proyecto con el Classpad 300 SDK, he intentado compilar los programas de ejemplo, por ejemplo el "Hello World", según un pequeño manual que tengo abro el ejemplo como un ClassPad ADD-IN lo guardo y le doy compilar, pero el programa me da un error y al revisar el registro de compilación, sale lo siguiente:
Compilador: CPSDK Add-in and Windows Exe CompilerBuilding Makefile: "F:\PROGRAMACION\C++ Recursos\Classpad330\prueba\Makefile.win"Ejecutando  make...C:\ARCHIV~1\Dev-Cpp\Bin\make.exe -f "F:\PROGRAMACION\C++ Recursos\Classpad330\prueba\Makefile.win" allC:\ARCHIV~1\CASIO\ClassPad 300 SDK\Bin\gcc_shcgcc.exe -D__DEBUG__ -c Pegmain.cpp -o outputdir/Pegmain.o -I"C:/ARCHIV~1/CASIO/ClassPad 300 SDK/cp_include"    -cpu=sh3 -NOLOGO -RTTI=OFF -NOEX -w -g3"C:\ARCHIV~1\CASIO\ClassPad" no se reconoce como un comando interno o externo,programa o archivo por lotes ejecutable.C:\ARCHIV~1\Dev-Cpp\Bin\make.exe: *** [outputdir/Pegmain.o] Error 1Ejecución Terminada

¿Cuál es el problema, estoy usando el compilador que dice para "ClasspadSDK y Win" pero tampoco sirve con ninguno de los otros, y el programa esta instalado en la carpeta por default, es decir: C:\Archivos de programa\Dev-Cpp y el Classpad está instalado en C:\Archivos de programa\CASIO\ClassPad 300 SDK.

Agradezco la ayuda que me puedan dar...

#2 afshin_electronic

afshin_electronic

    Casio Addict

  • Members
  • PipPipPip
  • 50 posts

  • Calculators:
    casio classpad 300plus
    casia fx-991ms

Posted 14 March 2010 - 09:18 PM

in English please!! :huh:

#3 ASTRO491K

ASTRO491K

    Casio Addict

  • Members
  • PipPipPip
  • 94 posts

Posted 14 March 2010 - 11:48 PM

If you post in english maybe someone can help you.

#4 george777

george777

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    HP 48GX,HP 49G,HP 50G, TI 89Titatium,Classpad 330

Posted 15 March 2010 - 02:46 AM

Hello everyone, excuse me for my english, I don´t speak a lot of this idioms ... I have the following problem ... I do not know what to do when compiling a file or project with the ClassPad 300 SDK, I tried to compile the sample programs, such as "Hello World" as a small manual that I open the sample as a ClassPad ADD-IN I keep it and I will compile, but the program gives me an error and compilation review the record comes out the following:
[codebox]Compiler: CPSDK Add-in and Windows Exe Compiler
Building Makefile: "F:\PROGRAMACION\C++ Recursos\Classpad330\prueba1\Makefile.win"
Executing make...
C:\ARCHIV~1\Dev-Cpp\Bin\make.exe -f "F:\PROGRAMACION\C++ Recursos\Classpad330\prueba1\Makefile.win" all
C:\ARCHIV~1\CASIO\ClassPad 300 SDK\Bin\gcc_shcgcc.exe -D__DEBUG__ -c Pegmain.cpp -o outputdir/Pegmain.o -I"C:/ARCHIV~1/CASIO/ClassPad 300 SDK/cp_include" -cpu=sh3 -NOLOGO -RTTI=OFF -NOEX -w -g3

"C:\ARCHIV~1\CASIO\ClassPad" no se reconoce como un comando interno o externo,

programa o archivo por lotes ejecutable.

C:\ARCHIV~1\Dev-Cpp\Bin\make.exe: *** [outputdir/Pegmain.o] Error 1

Execution terminated[/codebox]

What is the problem, I am using the compiler that says to "ClasspadSDK and Win" but not served with any of the other, and the program is installed in the default folder, ie: C: \ Program Files \ Dev - cpp and the ClassPad is installed in C: \ Program Files \ CASIO \ ClassPad 300 SDK. In addition, the directory where I store files in any folders from different hard disk to the folder where you installed the program, but I think this does not affect ...

I appreciate the help I can give ...

#5 george777

george777

    Newbie

  • Members
  • Pip
  • 7 posts

  • Calculators:
    HP 48GX,HP 49G,HP 50G, TI 89Titatium,Classpad 330

Posted 15 March 2010 - 03:04 AM

This is the code for each example program that is included in the ClassPad SDK:
[codebox]File Pegmain.cpp

#include "HelloWindow.h"
#include "pegmain.hpp"

/*--------------------------------------------------------------------------*/
void PegAppInitialize(PegPresentationManager *pPresentation)
{
// create some simple Windows:

PegRect Rect;
Rect.Set(MAINFRAME_LEFT, MAINFRAME_TOP, MAINFRAME_RIGHT, MAINFRAME_BOTTOM);

CPMainFrame *mw = new CPMainFrame(Rect);

PegRect ChildRect = mw->FullAppRectangle();
HelloWindow* swin = new HelloWindow(ChildRect,mw);
mw->SetTopWindow(swin);

// Set a main window for this module. In our case, it is the hello window
mw->SetMainWindow(swin);

pPresentation->Add(mw);
}

[/codebox]
[codebox]FILE PEGMAIN.HPP

#ifndef PEGMAIN_INCLUDED
#define PEGMAIN_INCLUDED



#endif[/codebox]
[codebox]File HellowWindow.cpp

#include "HelloWindow.h"
//////////////////
///// ScribbleWindow functions
//////////////////

/// This is the over-written draw function for the Hello Window
void HelloWindow::Draw()
{
BeginDraw();
Invalidate(mClient);
DrawFrame();
AddR(new PegPrompt(10, 10, "Hello World"));
EndDraw();
}

extern "C" char *ExtensionGetLang(ID_MESSAGE MessageNo)
{
return "";
}[/codebox]

[codebox]HellowWindow.h

#ifndef EXAMPLE_INCLUDED
#define EXAMPLE_INCLUDED

#include "cfc.h"

class HelloWindow: public CPModuleWindow
{
public:

HelloWindow(PegRect rect,CPMainFrame* frame)
:CPModuleWindow(rect,0,0,frame)
{
}

~HelloWindow(){}

/// Overwritten draw function Draws the frame, and Adds "Hello World"
void Draw();

};

#endif[/codebox]

There is an error in this code?, this is how is the example of the ClassPad SDK ... Thanks for your help




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users