forked from FreeOpcUa/freeopcua
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix std::logic_err when client receive one request two times; add srcipt
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
export PATH=$PATH:/opt/buildroot-2017.02.5/output/host/usr/bin | ||
|
||
|
||
./configure CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --host=arm-linux CPPFLAGS="-I/home/jason/lib/arm-python/include -I/home/jason/lib/libxml2/build/include/libxml2 -I/home/jason/lib/libxml2/build/include -I/home/jason/lib/boost" LDFLAGS="-L/home/jason/lib/arm-python/lib -L/home/jason/lib/libxml2/build/lib -L/home/jason/lib/boost/stage/lib" --enable-static=no --prefix=/home/jason/workspace/freeopcua/output | ||
|
||
# After configure, DO EDIT Makefile | ||
# 1. change LIBS | ||
# 2. change /usr/include/libxmle to you libxml2 include path, use: %s/\/usr.... | ||
# 3. then do make | ||
|
||
|
||
# Build python ext: | ||
# 1. export CC=arm-linux-gnueabihf-gcc | ||
# 2. export LDSHARED="arm-linux-gnueabihf-gcc -shared" | ||
# 3. python2 setup.py build_ext --include-dirs="/home/jason/lib/boost:/home/jason/lib/arm-python/include/python2.7:/home/jason/lib/libxml2/build/include/libxml2:/home/jason/lib/libxml2/build/include" --library-dirs="/home/jason/lib/arm-python/lib:/home/jason/lib/libxml2/build/lib:/home/jason/lib/boost/stage/lib" --libraries=boost_atomic:boost_python:python2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
python2 setup.py clean | ||
rm -rf build | ||
export PATH=$PATH:/opt/buildroot-2017.02.5/output/host/usr/bin | ||
|
||
export CC=arm-linux-gnueabihf-gcc | ||
export LDSHARED="arm-linux-gnueabihf-gcc -shared" | ||
|
||
sudo cp /usr/bin/g++ /usr/bin/g++.bak | ||
sudo ln -sf /opt/buildroot-2017.02.5/output/host/usr/bin/arm-linux-gnueabihf-g++ /etc/alternatives/c++ | ||
#sudo ln -sf /opt/buildroot-2017.02.5/output/host/usr/bin/arm-linux-gnueabihf-g++ /usr/bin/g++ | ||
|
||
python2 setup.py build_ext --include-dirs="/home/jason/lib/boost:/home/jason/lib/arm-python/include/python2.7:/home/jason/lib/libxml2/build/include/libxml2:/home/jason/lib/libxml2/build/include" --library-dirs="/home/jason/lib/arm-python/lib:/home/jason/lib/libxml2/build/lib:/home/jason/lib/boost/stage/lib" --libraries="boost_atomic boost_python python2.7" | ||
|
||
echo "======================build done===========================" | ||
sudo ln -sf /usr/bin/g++ /etc/alternatives/c++ | ||
sudo cp /usr/bin/g++.bak /usr/bin/g++ | ||
OBJ=build/lib.linux-x86_64-2.7/opcua.so | ||
arm-linux-gnueabihf-strip $OBJ | ||
echo "======================cp to tftpboot=======================" | ||
cp $OBJ /tftpboot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters