PCT Compilation Error

thanhhm

New Member
Hi all,

I am just quite a newbie to Progress. I am packaging Progress Project using PCT and ANT build and I am coming up against with the ****ing following problem under Linux box 2.x, PCT 0.8 and ANT 1.6.5

============================================

Buildfile: build.xml

init:

initialise:
[delete] Deleting directory /home/thanhhm/build
[delete] Deleting directory /home/thanhhm/package
[mkdir] Created dir: /home/thanhhm/build
[mkdir] Created dir: /home/thanhhm/package

mycompile:
[PCTCompile] PCTCompile - Progress Code Compiler
[PCTCompile] ** "pct/pctCompile.p" was not found. (293)


============================================


For more detail on how I have placed code and build, please see the followings

/home/thanhhm/src/helloworld.p: is where I've placed my helloworld.p

/home/thanhhm/src/antscripts/build/build.xml: is where I've placed my build.xml

Under Linux box I've done the followings

cd /home/thanhhm/src/antscripts/build

ant -f build.xml

The following is my build.xml's content

<?xml version="1.0" encoding="utf-8"?>
<project name="icabs" default="init" basedir="../../..">
<property environment="env" />
<taskdef resource="PCT.properties" classpath="${PCT_HOME}/lib/PCT.jar"/>
<target name="init" description="Builds source files">
<antcall target="initialise" />
<antcall target="mycompile" />
</target>


<target name="mycompile" description="My PCTCompile">
<PCTCompile graphicalMode="false" destDir="build" dlcHome="${env.DLC}" stackSize="80" inputChars="32000" compileUnderscore="true" token="5000" forceCompile="true" cpInternal="${env.CODEPAGE}" cpStream="${env.CODEPAGE}">
<fileset dir="src">
<include name="**/*.p"/>
</fileset>
<propath>
<pathelement path="src" />
</propath>
</PCTCompile>

<PCTConnection dbName="myDB" singleUser="false" dbPort="${env.myDB_PORT}" HostName="${env.HOST_NAME}" LogicalName="core" />

</target>
.....

Note that: I've executed "PCTRun" successfully meaning you are not worried about the connection to my progress Database.

I've wanted to compile my helloworld.p, no pctCompile.p is in my code and I've searched for pctCompile.p on the internet as I think I may lack the file from my pct build box but no relevant data found unfortunately.

When I play with PCTCompile task, this ****ing stupid error keeps happening.

I don't really know why.

Please please help me get it sorted out.

Many thanks

Thanh
 
Hi there,

I never use ANT for such cases. But then again I'm only a Progress developper. I also never heard of PCT...

The error you get has to do with the propath (read progress searchpath) which you have to set correclty. You can set the environment variable PROPATH which contains a ';' (windows) or ':' seperated list of directories which progress searches in that order to find the sources needed for running or compiling.

Saying that: It seems that this PCT thing is somehow setting the propath to a directory 'src', is this where all your sources are relative to the place where you start the build? Or is there a directory src/pct/pctCompile.p?
You have to find out how this xml configured utility sets propath and then verify if this is correct. (If all sources you need can be found there).

Casper.
 
Thanks Casper!

It is so confusing that PCTRun is also an XML tag in PCT build box that execute a progress procedure, and as said I have successed in dealing with that. I have assumed, Progress has found my procedure, compile and run it properly. However, next to PCTRun, I have placed PCTCompile, the build process has failed and thrown out the error message. The followings are for some of your suggestions

Saying that: It seems that this PCT thing is somehow setting the propath to a directory 'src', is this where all your sources are relative to the place where you start the build? >>Yes, all my source code is relative to src folder, which you can see again in what I've done

cd /home/thanhhm/src/antscripts/build:

This src folder is where I've placed all my source code

Or is there a directory src/pct/pctCompile.p? >>No, not at all. There is not any folder or file named though...

I am so confused where I should start again or what to debug.


Your suggestions are highly appreciated.

Thanks

Thanh





Hi there,

I never use ANT for such cases. But then again I'm only a Progress developper. I also never heard of PCT...

The error you get has to do with the propath (read progress searchpath) which you have to set correclty. You can set the environment variable PROPATH which contains a ';' (windows) or ':' seperated list of directories which progress searches in that order to find the sources needed for running or compiling.

Saying that: It seems that this PCT thing is somehow setting the propath to a directory 'src', is this where all your sources are relative to the place where you start the build? Or is there a directory src/pct/pctCompile.p?
You have to find out how this xml configured utility sets propath and then verify if this is correct. (If all sources you need can be found there).

Casper.
 
The error now has been fixed. To fix it, the followings should be noticed.

PCT v0.8:

Note for previous versions users : PCT uses .r files for its internal use : these files had previously to be copied to your $DLC directory. This is no longer the case as of 0.10 : r-code is wrapped in PL, extracted on the fly from PCT.jar when running a PCT tasks. PCT.jar contains both the v9 and v10 r-code versions. 2 options stick with the version of PCT you have and extract the .r's from the jar file and copy to $DLC or download the latest version.

Thanks for your all assistances.
 
Back
Top