1 Star 0 Fork 0

ucgs/org.eclipse.4diac.forte

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup_plcnext.sh 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
echo "----------------------------------------------------------------------------"
echo " Automatically set up development environment for POSIX-platform"
echo "----------------------------------------------------------------------------"
echo ""
echo " Includes 64bit-datatypes, float-datatypes, Ethernet-Interface,"
echo " ASN1-encoding, ..."
echo ""
echo " To include tests set directories for boost-test-framework and "
echo " set FORTE_TESTS-option to 'ON'"
echo ""
echo "----------------------------------------------------------------------------"
export forte_bin_dir="../build/plcnext"
#set to boost-include directory
export forte_boost_test_inc_dirs=""
#set to boost-library directory
export forte_boost_test_lib_dirs=""
if [ ! -d "$forte_bin_dir" ]; then
mkdir -p "$forte_bin_dir"
fi
if [ -d "$forte_bin_dir" ]; then
echo "For building forte go to $forte_bin_dir and execute \"make\""
echo "forte can be found at ${forte_bin_dir}/src"
echo "forte_tests can be found at ${forte_bin_dir}/tests"
cd "./$forte_bin_dir"
cmake -G "Eclipse CDT4 - Unix Makefiles" -D TOOLCHAIN_ROOT=/opt/pxc/2.2.1 \
-D CMAKE_TOOLCHAIN_FILE=$1/axcf2152.cmake \
-DFORTE_ARCHITECTURE=PLCnext -DFORTE_COM_ETH=ON -DFORTE_COM_FBDK=ON -DFORTE_COM_LOCAL=ON -DFORTE_TESTS=OFF \
-DFORTE_MODULE_CONVERT=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_MODULE_UTILS=ON ../../org.eclipse.4diac.forte
else
echo "unable to create ${forte_bin_dir}"
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ucgs/org.eclipse.4diac.forte.git
git@gitee.com:ucgs/org.eclipse.4diac.forte.git
ucgs
org.eclipse.4diac.forte
org.eclipse.4diac.forte
master

搜索帮助