|
@@ -80,17 +80,17 @@ script:
|
|
|
- cp open62541-linux64.tar.gz ..
|
|
|
- cp open62541.h .. #copy single file-release
|
|
|
- cp open62541.c .. #copy single file-release
|
|
|
-- echo "Building the C++ example"
|
|
|
-- gcc -std=c99 -c open62541.c
|
|
|
-- g++ ../examples/server.cpp -I./ open62541.o -o cpp-server
|
|
|
-- cd .. && rm build -rf && mkdir -p build && cd build
|
|
|
- echo "Upgrade to gcc 4.8"
|
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
|
- sudo apt-get update -qq
|
|
|
-- sudo apt-get install -qq gcc-4.8 valgrind
|
|
|
+- sudo apt-get install -qq gcc-4.8 g++-4.8 valgrind
|
|
|
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
|
|
|
- sudo update-alternatives --config gcc
|
|
|
- echo "Compile multithreaded version"
|
|
|
+- echo "Building the C++ example"
|
|
|
+- gcc -std=c99 -c open62541.c
|
|
|
+- g++-4.8 ../examples/server.cpp -I./ open62541.o -o cpp-server
|
|
|
+- cd .. && rm build -rf && mkdir -p build && cd build
|
|
|
- cmake -DENABLE_MULTITHREADING=ON -DBUILD_EXAMPLESERVER=ON ..
|
|
|
- make
|
|
|
- cd .. && rm build -rf && mkdir -p build && cd build
|