Skip to content

Can’t compile on Ubuntu 20 #199

@acarioni

Description

@acarioni

Hello,

I can’t compile the library on Ubuntu 20.4. It seems that std::function is not declared in InterpreterMonitor.h. There are also errors about Xerces.

This is the error log.

The output of cmake is this:

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11_FLAG
-- Performing Test COMPILER_SUPPORTS_CXX11_FLAG - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X_FLAG
-- Performing Test COMPILER_SUPPORTS_CXX0X_FLAG - Success
-- Performing Test CXX_HAS_THREADS
-- Performing Test CXX_HAS_THREADS - Success
-- Performing Test CXX_HAS_SHARED_PTR
-- Performing Test CXX_HAS_SHARED_PTR - Success
-- Performing Test CXX_HAS_AUTOTYPE
-- Performing Test CXX_HAS_AUTOTYPE - Success
-- Performing Test CXX_HAS_LAMBDAS
-- Performing Test CXX_HAS_LAMBDAS - Success
-- Performing Test CXX_HAS_MEMBER_INIT
-- Performing Test CXX_HAS_MEMBER_INIT - Success
-- Performing Test CXX_HAS_INLINE_INIT
-- Performing Test CXX_HAS_INLINE_INIT - Success
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.68.0")
-- Performing Test CURL_HAS_SMTP
-- Performing Test CURL_HAS_SMTP - Success
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Found XercesC: /usr/lib/x86_64-linux-gnu/libxerces-c.so (found version "3.2.2")
-- Found LIBEVENT: optimized;/usr/lib/x86_64-linux-gnu/libevent.so;debug;/usr/lib/x86_64-linux-gnu/libevent.so;optimized;/usr/lib/x86_64-linux-gnu/libevent_openssl.so;debug;/usr/lib/x86_64-linux-gnu/libevent_openssl.so;/usr/lib/x86_64-linux-gnu/libevent_pthreads.so;/usr/lib/x86_64-linux-gnu/libevent_extra.so;/usr/lib/x86_64-linux-gnu/libevent_core.so
-- Performing Test LIBEVENT_HAS_BEVCB
-- Performing Test LIBEVENT_HAS_BEVCB - Success
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
-- Could NOT find JSC (missing: JSC_INCLUDE_DIR JSC_LIBRARY)
-- Could NOT find V8 (missing: V8_LIBRARY V8_INCLUDE_DIR)
-- Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
-- No swig binary found, not generating DOM classes
-- No swig binary found, skipping wrapper generation
-- No ant binary found, not generating Java tests / bindings
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
--
-- Linking against libraries (check if you need to export in LD_LIBRARY_PATH or PATH):
--   /usr/lib/x86_64-linux-gnu/libcurl.so
--   /usr/lib/x86_64-linux-gnu/libevent.so
--   /usr/lib/x86_64-linux-gnu/libevent.so
--   /usr/lib/x86_64-linux-gnu/libevent_core.so
--   /usr/lib/x86_64-linux-gnu/libevent_extra.so
--   /usr/lib/x86_64-linux-gnu/libevent_openssl.so
--   /usr/lib/x86_64-linux-gnu/libevent_openssl.so
--   /usr/lib/x86_64-linux-gnu/libevent_pthreads.so
--   /usr/lib/x86_64-linux-gnu/libxerces-c.so
-- Targets:
--   Available datamodels ........... : promela null
--   Available invokers ............. : dirmon scxml
--   Available ioprocessors ......... : http basichttp scxml
--   Available custom elements ...... : respond
--   Available language bindings .... :
-- General information:
--   Build type ..................... : Release for linux-x86_64-gnu
--   Building library as ............ : SHARED without plugins
--   CXX Flags   :  -std=c++11 -pedantic -Wall -O3 -DNDEBUG
--   C   Flags   :  -O3 -DNDEBUG
--   Definitions :  USCXML_EXPORT
--   Libraries will end up in ....... : BUILD_DIR/lib
--   Binaries will end up in ........ : BUILD_DIR/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/foo/uscxml/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions