Author Topic: How configure Code::Blocks svn build rev 3988 for Sony PSP.  (Read 8280 times)

Eridano

  • Guest
Hi folks.
I'd like to use Code::Blocks to make c++ (short) program for Sony PSP.
I installed PSPDevWin32.zip (http://dl.qj.net/PSPDev-for-Win32-PSP-Development/pg/12/fid/8185/catid/204).
The core directory structure for PSP compiler is :
C:\pspdev
   |
   +-- bin
   +-- i686-pc-cygwin
   +-- include
   +-- info
   +-- lib
   +-- libexec
   +-- man
   +-- psp
   +-- pspdev.bat
   +-- psplink
   +-- readme.txt
   +-- share
   +-- uninstall.exe
How can I customize code::blocks to compile my short psp c++ source programs?
Thanks in advance.
Ivan Cella
eridano@hotmail.com

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #1 on: May 23, 2007, 05:19:41 pm »
I had posted a short video tutorial explaining steps to add another compiler in C::B. The tutorial demonstrates adding TurboC++ compiler in C::B. Go through that tutorial and make a copy of GCC compiler same way and tweak it as necessary.

Quote
http://biplab.in/2007/01/09/add-turbo-c-explorers-compiler-to-codeblocks/

Hopefully this will shed some light.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #2 on: May 23, 2007, 05:36:50 pm »
I would like to add the following.

I have some projects with TinyXml, and they sometimes fail to compile with the 'old' free Borland Compiler. Though they compile ok, with 7 other compilers !!!

I am gonna check (planning already for months now :-(  ) if it compiles ok with the Turbo C++ version.
If so I think we should replace our 'old' Borland compiler support with the new one. Just like we do with Gcc, we have Gcc, but we don't make distinction between versions.

Now suppose some people still need the old one, well then those people should do the xtra hassle of adding a compiler instead of the TurboC++ ones.

EDIT : you can download it for free, and I think you can get keys for free also (for one Turbo product I think). And the question is, is the key at runtime needed for the IDE or for the compiler programs, since for integration in CB we just need the compiler programs ?
Anyone any experienc on this matter of TurboC++ ??
« Last Edit: May 23, 2007, 05:39:40 pm by killerbot »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #3 on: May 23, 2007, 05:58:22 pm »
I am gonna check (planning already for months now :-(  ) if it compiles ok with the Turbo C++ version.
If so I think we should replace our 'old' Borland compiler support with the new one. Just like we do with Gcc, we have Gcc, but we don't make distinction between versions.

No need to drop old compiler support. I'll add it tomorrow as a new compiler (Borland 5.82).

EDIT : you can download it for free, and I think you can get keys for free also (for one Turbo product I think). And the question is, is the key at runtime needed for the IDE or for the compiler programs, since for integration in CB we just need the compiler programs ?
Anyone any experienc on this matter of TurboC++ ??

The key is necessary for if you want to run IDE.
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #4 on: May 23, 2007, 06:00:12 pm »
I would throw away the old one, otherwise our list will become too long ... ;-)

You decide ;-)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #5 on: May 23, 2007, 06:00:58 pm »
I think once we have compiler settings in xml (post 1.0) it will be much easier, since we don't have code to maintain then ...

EDIT :say I want to upgrade to the new compiler, then I will have to adjust all my projects, since the compiler id will different. Real hassle, and bigger hassle when there's a version control system in play ... :-(

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #6 on: May 23, 2007, 06:04:58 pm »
I think once we have compiler settings in xml (post 1.0) it will be much easier, since we don't have code to maintain then ...

There are couple of differences in the new version which are not available in BCC 5.5.1. One example, specifying one header to be used to compile pre-compiled header which is missing in old version. So if new version replaces old one, it may create problem if an user chooses wrong option.

I agree with you that the list has become too long. ;)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #7 on: May 23, 2007, 06:08:27 pm »
ok, new option, but projects for th old oneee will keep on working, backwards compatible, so there's no problem then.

It's like with gcc, suddenly there are also new options. If you want to use them, know what they stand for, otherwise don't touch them.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #8 on: May 23, 2007, 06:14:36 pm »
OK, I'll add detection code for new compiler and keep the old detection code, too. In case both are present, new compiler will be set as default. The compiler name will not contain any version number. :)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #9 on: May 23, 2007, 06:46:13 pm »
great ...

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #10 on: May 23, 2007, 06:54:23 pm »
BTW, as you wrote that old bcc fails to compile latest codes. I faced one such problem. I'm writing a bakefile to compile C::B with different compiler. BCC 5.5.1 failed to compile Squirrel. :)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: How configure Code::Blocks svn build rev 3988 for Sony PSP.
« Reply #11 on: May 23, 2007, 07:48:13 pm »
for me it starts to go wrong on one the the header files  on TinyXml. So weird....
Will experiment tomorrow by reducing the project. It goes wron because of another include.
And order of includes was also important.