📄 step_by_step_en.htm
字号:
(2)Server has gcc, gdb installed and work normally</p>
<h6 class="postbody"><br>
<span class="style11">For standard SSH and TELNET mode</span></h6>
<p class="postbody">1. Installing client component - IDE</p>
<p class="postbody">Enter client directory and use your mouse to double click Setup.exe then follow the setup instructions step by step. Enter any characters when prompted for serial number to evaluate the software for 45 days. </p>
<p>2. Hints for SSH or TELNET mode: </p>
<p> Some server OS need update to latest OpenSSH to work with Magic C++ include Redhat 7.1 and FreeBSD5.3. If your server has compatible problems with Magic C++, please switch to expert RDA mode and try again. You can also contact <a href="mailto:support@magicunix.com">support@magicunix.com </a> for more technical support. </p>
<h6 class="style12"> For expert RDA mode</h6> <p class="postbody"><br>
<strong>Magic C++</strong> works based on a client/server architecture, installation need two phase to complete.<br>
One for server component - <strong>Remote Development Agent(RDA)</strong>, the other is client component - <strong>integrated development environment(IDE)</strong>.<br>
<br>
1.unzip software package<br>
Unzip software package by zip tool(winzip, winrar etc.), and the directory after unzipping looks like this:</p>
<p><span class="postbody"><em>Server</em>\ -- Source codes for server component<br>
<em>Client</em>\ -- Windows setup package for client component<br>
<em>Doc</em>\ -- Document<br>
<br>
2.install server component - <strong>Remote Development Agent(RDA)</strong><br>
</span>(1) Transfer the source codes package to the server via FTP or other measures </p>
<p>(2) Extract files from the package, execute command as: </p>
<p><em>tar -zxvf magicd-x.tar.gz </em></p>
<p>( *** Notice: x is the release version of the package*** ) </p>
<p>If an old version of this software package exists please remove it first. </p>
<p>(3) Compile the source codes and install </p>
<p><em>./configure </em></p>
<p>or </p>
<p><em>./configure --prefix=your_magicd_install_path </em></p>
<p><em>make </em></p>
<p><em>make install </em></p>
<p><span class="postbody"><br>
(4)start <strong>Remote Development Agent(daemon process)</strong><br>
<em># cd /your_magicd_install_path/bin</em><br>
<em># ./magicd</em><br>
default listen socket port is 2004. <br>
You can change listen socket port by command option -p like this:<br>
<em># ./magicd -p 5000</em><br>
***If you have changed this listen socket port, you MUST change the server property in IDE to work normally.***<br>
(5)stop <strong>Remote Development Agent(daemon process)</strong><br>
<em># cd /your_magicd_install_path/bin<br>
# ./killit.sh</em><br>
<br>
3.install client component - <strong>integrated development environment(IDE).</strong><br>
enter MagicC directory and mouse double click <em>Setup.exe</em> then do step by step with the guide.</span> </p>
<h5><a href="#remote" name="configure">for local development on Windows</a></h5>
<p class="postbody">Installing client component - IDE</p>
<p class="postbody">Enter client directory and use your mouse to double click Setup.exe then follow the setup instructions step by step. Enter any characters when prompted for serial number to evaluate the software for 45 days. </p> <p><font size="2"><a href="#top">Back to Top</a></font>
</p>
<hr>
<h3><a href="#configure" name="configure"></a><a href="#configure">Configure Magic C++</a></h3>
<h5><a href="#remote" name="configure">Configure Remote Server Profile( for remote development on Unix/Linux/BSD server )</a></h5>
<p>There are two ways to create a remote server profile</p>
<p>1.Wizard mode</p>
<p>Select menu <strong>File/New...</strong></p>
<p>(1)Configure basic information</p>
<p>Select <strong>Server </strong>property sheet of the pop-up dialog,</p>
<p>input server name,IP address then click <strong>OK</strong> button.</p>
<p><img src="jpg/srv_wiz_server.jpg" width="470" height="328"></p>
<p>(2)Configure development environment </p>
<p><img src="jpg/dev.jpg" width="540" height="375"></p>
<p>Select operation system and development environment of the remote server,</p>
<p>Click <strong>Next</strong> button.</p>
<p>(3) Select Session Working mode.</p>
<p>There are
there are 3 kinds of working mode can be selected by users.</p>
<ul>
<li>standard SSH mode
<li>standard TELNET mode
<li>expert Remote Development Agent( RDA ) mode </li>
</ul> <p><img src="jpg/Session.jpg" width="540" height="375"> </p>
<p>Select one working mode according to your case. </p>
<p>Click <strong>Next</strong> button.</p>
<p>(4) Input Session user name and password.</p>
<p><img src="jpg/Session_auth.jpg" width="540" height="375"></p>
<p>input username and password for remote login(telnet) authentication,</p>
<p>input the port number which server session damon listen at.if you are using RDA , default port is 2004 , and port 22 for ssh , port 23 for telnet. </p>
<p>***If you have changed the server session damon listen port, you <strong>MUST</strong> change this option to work normally.***</p>
<p>Click <strong>Test</strong> button to test the connection and check the information you have input.</p>
<p>Click <strong>Next</strong> button.</p>
<p>(5) Input SFTP/FTP user name and password </p>
<p><img src="jpg/ftp_auth.jpg" width="540" height="375"></p>
<p> </p>
<p>input username and password for File transfer protocol authentication,</p>
<p>input the port number which FTP service(daemon process) listen at.</p>
<p>if you are using SFTP instead of ftp , select the checkbox named "Use SFTP" .</p>
<p>Click <strong>Test</strong> button to test the SFTP/FTP connection and check the information you have input. </p>
<p> <strong> Magic C++ </strong>uses FTP protocols to transfer files to and from the PC to provide identical functionality when editing files regardless of their location. </p>
<p>Click <strong>Finish</strong> button.</p>
<p>2.Expert mode</p>
<p>Select menu <strong>File/Remote Server Manager </strong>and click <strong>Property</strong> button,the <strong>Server Property</strong> dialog will pop up.</p>
<p>(1)Configure server basic information and development environment </p>
<p><img src="jpg/serv_prop_gen.jpg" width="345" height="424"></p>
<p>(2)Configure session authentication information</p>
<p><img src="jpg/serv_prop_session.jpg" width="345" height="424"></p>
<p>(2)Configure FTP information</p>
<p><img src="jpg/serv_prop_ftp.jpg" width="345" height="424"></p>
<p>(3) Configure Post-login commands and Pre-login commands(you can <strong>leave it blank</strong>)</p>
<p><img src="jpg/serv_prop_Cmd.jpg" width="345" height="424"> </p>
<p>(3)Configure advanced properties(you can<strong> leave it as default</strong> if you are not sure what does it mean.)</p>
<p><img src="jpg/serv_prop_adv.jpg" width="345" height="424"></p>
<h5><a href="#remote" name="configure">Configure Local Host Profile( for local development on Windows )</a></h5>
<p>You need configure the local environment settings before using <strong>Cygwin/MinGW</strong> in <strong>Magic C++</strong>.</p>
<p>Click <strong>File->Local Host Settings</strong> to open the <strong>Local Host Settings</strong> dialog</p>
<p><img src="jpg/mc3_local_set.jpg" width="333" height="418"></p>
<p>(1)<br>
select correct local development environment type in <strong>Local Host</strong><br>
(2)<br>
change the installation directory of <strong>Cygwin</strong> or <strong>MinGW</strong> in <strong>Installation directory</strong> if necessary, and click <strong>Test</strong> button to do a test. <br>
(3)<br>
change the toolchains's names include compiler, debugger, make etc. of <strong>Cygwin</strong> or <strong>MinGW</strong> by clicking <strong>customize</strong> button in <strong>Development tool </strong>if necessary.</p>
<p><img src="jpg/mc3_set_tool.jpg" width="800" height="600"> </p>
<p>If you've choosed to use your MinGW instead of which provided by <strong>Magic C++</strong>, please make sure you have add the path of <strong>MinGW</strong> to your environment variable <strong>PATH</strong>. To finish this task please </p>
<p><img src="jpg/mc3_env_set.jpg" width="411" height="471"></p>
<p>Open <strong>Control Panel->System->Advance->Environment->PATH</strong><br>
and append your <strong>MinGW</strong>'s bin directory such as <em>c:\MinGW\bin</em> there</p>
<p><font size="2"><a href="#top">Back to Top</a></font> </p>
<hr>
<h3><a href="#hello" name="hello">"Hello World" Project</a> </h3>
<p>1.Create project</p>
<p>Select <strong>File/New...</strong></p>
<p>Select <strong>Project</strong> property sheet of the pop-up dialog,select <em>Console EXE</em> as project type and</p>
<p>input <em>Hello</em> as project name then click <strong>OK</strong> button.</p>
<p><img border="0" src="jpg/new_prj_hel.jpg" width="800" height="600"></p>
<p> </p>
<p>it will show <strong>Project wizard step1</strong> dialog,select program language and <em>hello world</em>,click <strong>Next</strong> button,</p>
<p><img border="0" src="jpg/new_prj_hel2.jpg" width="800" height="600"></p>
<p>it will show <strong>Project summary </strong>dialog,check the information and click <strong>OK</strong> to generate the <em>Hello World </em>project.</p>
<p><img border="0" src="jpg/new_prj_hel3.jpg" width="800" height="600"></p>
<p>2.Edit the source codes</p>
<p> Edit the source codes according to your needs.<strong>Magic C++</strong> provide a fully customizable code editor designed specifically for C/C++ programmers includes color syntax highlighting, auto-text, virtually unlimited undo and redo, changed line markers, split-windows, bookmarks, block text select, bracket matching.</p>
<p><img border="0" src="jpg/hello_edit.jpg" width="800" height="600"></p>
<p>3.Compile</p>
<p>Select menu <strong>Compile/Build</strong> <em>Hello</em> to build the project with existing remote server-based compilers.With compiler output redirected to the Magic C++ IDE, you can highlight errors with a mouse double-click.As each warning and error is highlighted, <strong>Magic C++</strong> will attempt to load the file containing the error, (if it is not already loaded), and highlight the line on which the error is determined to have occurred.</p>
<p><img border="0" src="jpg/hello_build.jpg" width="800" height="600"></p>
<p>4.Set breakpoints</p>
<p> Before debugging the specified target, you can set breakpoints within the code editor or the breakpoints window.</p>
<p><img border="0" src="jpg/hello_bp.jpg" width="800" height="600"></p>
<p>5.Start debugging</p>
<p>Select menu <strong>Compile/Debug/Go</strong> or press <strong>F5</strong> to start debuggin,<strong>Magic C++ </strong>will suspend all further debug options until it has detected that the debugger has suspended execution of the debug target (this may have happened as result of a breakpoint being reached).After that</p>
<p>(1)the debugging information will be shown on the <strong>Debug output </strong>tab sheet,</p>
<p>(2)it will highlight the debug target's current statement in the code editor, opening any necessary files.</p>
<p>(3)the values of variables will be shown on the <strong>Local/This/Watch</strong> output tab sheet,you can change the values according to your needs.</p>
<p>(4)the console dialog will be shown and provide the ability to interactive with the debugging program.</p>
<p><img border="0" src="jpg/hello_debug.jpg" width="800" height="600"></p>
<p><img border="0" src="jpg/hello_console.jpg" width="800" height="600"></p>
<font size="2"><a href="#top">Back to Top</a></font>
<hr>
<h3><a href="#more" name="more">How to get more support?</a></h3>
<p>If you have more questions about <strong>Magic C++</strong>,you can use online help document,web forum and customer service support to get more information.</p>
<font size="2"><a href="#top">Back to Top</a></font>
<hr>
<h3><a href="#contact" name="contact">Contact us</a></h3>
<p><em><a href="http:://www.magicunix.com">http:://www.magicunix.com</a></em></p>
<p><font size="2"><a href="#top">Back to Top</a></font></p>
<hr>
Copyright(C)2005 MagicUnix Information Technology Limited. All rights reserved.</TD>
</TR>
<TR>
<TD vAlign=top align=left> </TD>
<TD> </TD></TR></TBODY></TABLE>
<P> </P></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top align=left bgColor=#ffffff colSpan=2 height=14></TD></TR>
<TR>
<TD vAlign=top align=left bgColor=#ffffff colSpan=10 height=14></TD>
<TD vAlign=top align=left bgColor=#ffffff colSpan=2 height=14></TD></TR>
<TR>
<TD vAlign=top align=left bgColor=#ffffff colSpan=12 height=28></TD></TR>
<TR>
<TD height=25></TD>
<TD vAlign=bottom align=middle colSpan=11>
<P class=text1><A class=style5
href="http://www.magicunix.com/index.htm">Home</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/product01.htm">Product</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/purchase01.htm">Purchase</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/download.htm">Download</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/support.htm">Support</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/partner01.htm">Partner</A><IMG height=8
src="jpg/line03.GIF" width=13><A class=style5
href="http://www.magicunix.com/contact.htm">Contact</A></P></TD></TR>
<TR>
<TD></TD>
<TD vAlign=center align=middle colSpan=11>
<P class="text1 style6">Copyright © 2005 Magicunix Information Technology
Limited. All rights reserved.</P></TD></TR>
<TR>
<TD></TD>
<TD colSpan=11> </TD></TR></TBODY></TABLE>
<P> </P>
<P> </P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -