Using lte engine

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
darkyien
Posts: 2
Joined: Tue May 20, 2008 3:11 am

Using lte engine

Post by darkyien »

Hi there,

First let me salute you all, as I'm a newbie here!

My first post will be to ask for help (what a surprise heh?)

I'm new at PSP developement, and I have a request :
Could someone point me toward a tutorial that explain, in detail how to install
everything that is needed to use the LTE engine (which seems interesting)?

Actually, I need a explanation from the start, as nothing except Visual Studio C++ 2008 is installed.

I'm using a Windows platform, but I can switch to Linux if needed (and if it is, I would like to know which distribution is fitted).

Thanks in advance for any help!
darkyien
Posts: 2
Joined: Tue May 20, 2008 3:11 am

Post by darkyien »

Sorry for the double post, but still no answers... Even a link should do! Please, help me!
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Setting Up LTE Engine

Post by nikmes »

hi,
Start by following the instructions here
to set up the psp sdk
http://www.psp-programming.com/tutorials/
Then you need to download the latest LTE Engine and install and try compile the examples

I am interesting in resurecting this project now that they made it open source. I start compiling the engine under Latest Red Hat advanced servcer but i got into some problems due to gcc upgrade.

I ll create a new thred so i can get help from the community to compile the engine under latest pspsdk

Regards
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

You should have started by searching the forums on info on how to install the compiler in your system. A simple search would lead you to 2 options:

Cygwin or MinPSPW.

For cygwin you'll have to build the Toolchain yourself (it is quite easy but some people have trouble doing it).

MinPSPW is easier, just an installer and you're done.

then install LTE, either by getting some pre compiled libs or by building it yourself.

After this just follow the tutorials.

links:

cygwin: get the toolchain module from svn://svn.ps2dev.org
minpspw: http://forums.ps2dev.org/viewtopic.php?t=9812
lte... someone else as already explained you
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

I recomend you NTO USING CYGWIN on windows
and also NOT USING this tutorial:
http://www.psp-programming.com/tutorials/

Because
1) you have to compile it which takes several hours
2) cygwin is slow

Youd better use this instead:
http://forums.ps2dev.org/viewtopic.php?t=9812
(thanks to Heimdal)

Its win32 native - no need to compile
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Using Linux Native environment

Post by nikmes »

Hi,
I am using a Linux machine that is why i suggested that.
I am currently compiling LTE engine. I made a few modification to get the engine to compile. I will create a new thread with my findings.

Maybe we can optimize several areas of this engine to take advantage of PSP hardware. Currently the author of the engine in the readme file metnions that he lost the code that he enhanced for pspgl and he just provide the lib file.

Regards
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

hi nikmes,

that would be great if you managed to improve pspgl and shared with everyone.
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Just managed to compile succesfully!!

Post by nikmes »

Hi,
I created a new thread you can check it out :)
I think the next step is to compile with the existing pspgl frp svn and stop using the object and liv file provided..
then we can see how we can improve it..
Regards
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Errog when linking latest PSPGL with LTE

Post by nikmes »

Looks like we are missing the implementation of this:

../../libs/libengine.a(CSoftwareDriver2.o): In function `engine::video::CSoftwareDriver2::drawCelshadingMultitexture(engine::video::CSoftwareDriver2::__verttex*, unsigned short const*, int)':
CSoftwareDriver2.cpp:(.text+0xc78): undefined reference to `glBlendFuncFixPSP'
../../libs/libengine.a(CSoftwareDriver2.o): In function `engine::video::COpenGLMultipassRender_REFLECTION_2_LAYER::setPass(int)':
CSoftwareDriver2.cpp:(.text._ZN6engine5video41COpenGLMultipassRender_REFLECTION_2_LAYER7setPassEi[engine::video::COpenGLMultipassRender_REFLECTION_2_LAYER::setPass(int)]+0x60): undefined reference to `glBlendFuncFixPSP'
collect2: ld returned 1 exit status
make: *** [SpecialFX.elf] Error 1

The LTE team metioned in Readme that they lost the gl code they modified.. so we have to figure out what to do...
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Post by nikmes »

ok,
got over that with the following
i replaced this calls from LTE engine glBlendFuncFixPSP
with this
glBlendFunc

Regards
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Tested with latest pspgl

Post by nikmes »

hi,
After testing with latest pspgl everything looks fine
and exmples are running smoothly..
deadheat
Posts: 1
Joined: Thu May 22, 2008 6:38 pm
Location: Singapore
Contact:

How to install LTE libs???

Post by deadheat »

I'm unable to use LTE libs because when i compile the examples the errors are at the syntax of the library.

Can anyone help? Thanks in advance ^^
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Re: How to install LTE libs???

Post by J.F. »

deadheat wrote:I'm unable to use LTE libs because when i compile the examples the errors are at the syntax of the library.

Can anyone help? Thanks in advance ^^
Use the version of LTE I posted in the other thread. It's been updated for the Slim (everything is now a 3.xx user mode app). All the syntax errors have been dealt with. It doesn't yet use the latest PSPGL. Sounds like from the previous posts that it shouldn't be much work to get that done as well.
nikmes
Posts: 26
Joined: Tue May 20, 2008 6:00 pm

Use JFs version

Post by nikmes »

and then if you will use the latest pspgl
just
replace function calls from lte/src from glBlendFuncFixPSP with this glBlendFunc
Post Reply