PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Setup issues

Dave Johnston · 06 Jun 2002, 13:05 UTC
Ok, I have Frog extracted and the STLPort set up (to the extent that its include directory is first in the eVC list). However, what next? Compiling the Blit example provides this:

Code:
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config_compat.h(33) : warning RC4011: identifier truncated to '__STL_MINIMUM_DEFAULT_TEMPLATE_'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config_compat.h(33) : warning RC4011: identifier truncated to '_STLP_MINIMUM_DEFAULT_TEMPLATE_'
D:\~POCKET\STLPORT-4.5.3\STLPORT/config/stl_mycomp.h(33) : error RC2188: #error : "Your compiler version is not recognized by STLport. Please edit config/stl_mycomp.h"
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(102) : warning RC4011: identifier truncated to '_STLP_NO_MEMBER_TEMPLATE_CLASSE'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(106) : warning RC4011: identifier truncated to '_STLP_NO_CLASS_PARTIAL_SPECIALI'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(106) : warning RC4011: identifier truncated to '_STLP_CLASS_PARTIAL_SPECIALIZAT'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(110) : warning RC4011: identifier truncated to '_STLP_FUNCTION_TMPL_PARTIAL_ORD'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(110) : warning RC4011: identifier truncated to '_STLP_NO_FUNCTION_TMPL_PARTIAL_'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(207) : warning RC4011: identifier truncated to '_STLP_NATIVE_OLD_STREAMS_INCLUD'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(215) : warning RC4011: identifier truncated to '_STLP_NATIVE_CPP_RUNTIME_INCLUD'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(421) : warning RC4011: identifier truncated to '_STLP_USE_WRAPPER_FOR_ALLOC_PAR'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(563) : warning RC4011: identifier truncated to '_STLP_BOGUS_TEMPLATE_TYPE_MATCH'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(598) : warning RC4011: identifier truncated to '_STLP_NO_TYPENAME_ON_RETURN_TYP'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(681) : warning RC4011: identifier truncated to '_STLP_CLASS_PARTIAL_SPECIALIZAT'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(689) : warning RC4011: identifier truncated to '_STLP_CLASS_PARTIAL_SPECIALIZAT'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_config.h(871) : warning RC4011: identifier truncated to '_STLP_DLLEXPORT_NEEDS_PREDECLAR'
D:\~POCKET\STLPORT-4.5.3\STLPORT/stl/_prolog.h(15) : warning RC4011: identifier truncated to '_STLP_HAS_SPECIFIC_PROLOG_EPILO'
D:\~POCKET\STLPORT-4.5.3\STLPORT/ctype.h(23) : fatal error RC1015: cannot open include file '.../include/ctype.h'.


Now, if anyone could give some tips on where to go from here, they'd be greatly appreciated. I for one want to know why its looking for ctype.h in a non-existant directory...

Also, as you can see it wants me to setup stl_mycomp.h - I looked, then escaped as quick as I could. What settings should be used? or can I just uncomment the error and stick to the defaults?

Any clues?
Conan · 06 Jun 2002, 14:05 UTC — Blit sample on it's own
Hi Dave, I got 27 errors when I tried to compile the blit sample from the sample folder but managed to get the project in the make folder which includes Blit & PocketFrog to compile & link correctly. See the post a couple down from here.

When I tried to install PocketFrog on a 2nd PC I got messed up & could not get past 2 errors so I copied over the version from one PC to the other.

If you want to know any setting I have let me know.

There are solutions to a few of the errors further down the board.

ps: I'm writing a beginner's guide web page at the moment to help other newbies like myself ( I'm an experienced games developer new to PocketFrog )
You don't need to modify your STL_MYCOMP_H. It seems STLport is not recognizing your compiler, which is really weird.

What platform/SDK are you targetting? PocketPC2000? Arm? MIPS? ... That would help me isolate the problem.

The only thing you have to change in STLport is defning _STLP_NO_IOSTREAMS in STL_USER_CONFIG.H
Actually, doesn't "RC" in "RC4011" stands for "Resource Compiler" ?

Looks like your RC is trying to include STLport??? That's really weird...
Dave Johnston · 06 Jun 2002, 16:04 UTC
I'm targetting PPC2002/ARM, and have the includes set up as such.

All I did was:
- extract pocketfrog
- extract STLport
- add to eVC(3.0)'s include directories for PPC2002/ARM the STLport include directory as per the instructions
- load Blit workspace

Surely that's all that needs be done?!

I searched in this forum before but couldn't find anything similar to this error, or indeed anything that looked related.

On the bright side, the setup has so far gone a lot smoother than EasyCE2.0 (which took me a week or two to get working!)
Conan · 06 Jun 2002, 16:44 UTC — I managed to recreate the problem
I switched my project over to PocketPC 2002 & reproduced the same errors during a build

Note that you can compile & build for PocketPC 2002 using PocketPC as that's what I'm doing.
Try using "PocketPC/ARM" as the target and see how it goes...

I will check PocketPC 2002 tonight...

Please note that there is no "Blit" workspace...

.dsp --> Project file
.dsw --> Workspace file
Dave Johnston · 07 Jun 2002, 12:08 UTC
Kzinti wrote:
Try using "PocketPC/ARM" as the target and see how it goes...

I will check PocketPC 2002 tonight...


Tried it - same errors as before.

Kzinti wrote:
Please note that there is no "Blit" workspace...

.dsp --> Project file
.dsw --> Workspace file


It says 'workspace' in the eVC titlebar - may not be accurate, but its good enough for me :)
It says workspace because when you open a DSP directly, a DSW is automatically generated.
Conan · 07 Jun 2002, 16:57 UTC — what's in a name ?
Who cares what it's called, Workspace or Project. When you are new to VC it's not obvious what the difference is.

The poor chap just wants to build the Blit app :lol:

As suggested Dave you should use the PocketPC configuration so you are the same as others & report the erros from that build. If they are the same ( did you post to that effect already ) then something else is wrong.

I expect that by the time 'PF' gets to a version 1 product all these install / build issues will be sorted out
Well I am trying to help the guy setup his stuff. If we don't speak the same langage, then how the hell am I going to help him?

I see multiple possiblities...

1) He is using the .dsw in \make
2) He is opening the dsp
3) He created is own workspace called Blit
4) ...

The distinction between a workspace and a project is really important when you want your things to work properly.

You are welcome to help him if you find my comments too obnoxious.
BurningSheep · 07 Jun 2002, 19:08 UTC
I don't want to confuse you guys any more than you already are :) but this is how I like to compile the blit sample (and all of my own made stuff as well). Step by step:

1. Open the blit project file (vcp), results in the automatic generation of the workspace file (vcw)

2. Insert the pocketfrog project file into the blit workspace (in file view right click on the workspace)

3. Make the blit project dependent of the pocketfrog project (project->dependencies)

4. Compile and execute the blit project (don't forget to make it active)...
Ok, I've been able to reproduce the problem... It occurs when compiling Blit.dsp with the PocketPC 2002 SDK. I wasn't able to reproduce it before because I was compiling PocketFrog.

For some reason, when compiling the resources for Blit (blit.rc), the resource compiler includes some part of STLport. STLport is unable to recognize the compiler and the result is a bunch of misleading errors.

I will try to sort this out and see what can be done to solve the problem. Meanwhile, use the PocketPC 2000 SDK and you shouln't have any problems.
There is a file in STLport that the resource compiler is trying to include and I can't figure out which one.

A simple workaround if to move the "stlport" include directory at the bottom of the include directories list. This works well as there is no STL implementation in the PocketPC 2002 SDK...

Perhaps it would be better to specify that the include directory for STLport should be moved at the end of the list (instead of the top) in EVC. Of course, this is not the case for VC6.
Dave Johnston · 09 Jun 2002, 22:13 UTC
Ok, just in case anyone else in the future has similar problems, take heed:

Load the PocketFrog.vcp file, not the Blit.vcp one!

/me slaps self on head