★★★★★ linux 设置 环境变量 写入 /root/.bashrc

WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor

CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor

CM_TRACEPATH=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor


CM_ALLPATH=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor



★★★★★ set codeblock parameters:


(4)compile  Criteria.Libraries.bOS  (set codeblock parameters)


-W

-O0

-fPIC


SQLITE_OS_UNIX

WIN32

_DEBUG

_WINDOWS

_USRDLL

_USE_SQLITE3_

_CODEMANAGER_TRACE_ON_

BOS_EXPORTS

CODEMANAGER_EXPORTS


/opt/cBPM/criteria-lin/include/bOS

/opt/cBPM/criteria-lin/include/

/usr/include


Output file is ../../../bin/Criteria/Debug/bOS/libLibraries.so with size 3.20 MB


Running target post-build steps


cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/bOS/libLibraries.so /usr/lib64/



(4)compile Criteria.WorkflowEngine  (set codeblock parameters)


-W

-O0

-fPIC


WIN32

_DEBUG

_WINDOWS

_USRDLL

ENGINE_EXPORTS

WAPI_EXPORTS

_CODEMANAGER_TRACE_ON_

_USE_SQLITE3_

BOS_EXPORTS


Libraries


/opt/cBPM/criteria-lin/include/WorkflowEngine

/opt/cBPM/criteria-lin/include/bOS

/opt/cBPM/criteria-lin/include/

/usr/include


Output file is ../../../bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.so with size 7.63 MB


Running target post-build steps

cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.so /usr/lib64/



(4)compile  Criteria.Tools.Executor  (set codeblock parameters)


-W

-O0


WIN32

_DEBUG

_CONSOLE

_CODEMANAGER_TRACE_ON_

BOS_EXPORTS

ENGINE_EXPORTS


Libraries

WorkflowEngineD

xerces-c-3.1

mysqlclient


/opt/cBPM/criteria-lin/include/bOS

/opt/cBPM/criteria-lin/include/WorkflowEngine

/opt/cBPM/criteria-lin/include/

/usr/include


/usr/lib64/

/usr/lib64/mysql/




★★★★★to solve the problem:( return value of getenv   is   NULL )

Starting codeblocks from /root and commandline as    /usr/local/bin/codeblocks