cmake cython issue

312 views
Skip to first unread message

Hujie Wang

unread,
May 5, 2014, 1:19:09 AM5/5/14
to ope...@googlegroups.com
Hi, I've been testing relex2logic and atomspace and just realized that I couldn't load mindagent into atomspace since there was no "loadpy" command in it.
I thought that it's probably due to lack of cython, so I installed cython and recompiled it and I got:

Linking CXX shared library atomspace.so
/usr/bin/ld: cannot find -lembodiment-types
collect2: error: ld returned 1 exit status
make[2]: *** [opencog/cython/opencog/atomspace.so] Error 1
make[1]: *** [opencog/cython/opencog/CMakeFiles/atomspace_cython.dir/all] Error 2

------------------------------------------------------------------------------------------------------------


Latest repository.
Using make -j8
Python 2.7.6, Gcc 4.8.2, cython 0.20.1(it was installed by using "easy_install cython"), ubuntu 14.04
BTW, I remember everything was fine when I was using ubuntu 13 and an old repository few weeks ago, I did some mind agent deduction tests at that time.

Thanks for the help!!
------------------------------------------------------------------------------------------------------------
Here is my cmake configuration:

-- Build type: Release
-- Found libbfd: /usr/lib/libbfd.so
-- Binutils found.
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   serialization
--   system
--   thread
-- Boost version 105400 found.
-- Found Boost::program_options
-- Found Boost::math
-- Expat XML parser found.
-- GSL found.
-- Could NOT find GTK3 (missing:  GTK3_LIBRARIES GTK3_INCLUDE_DIRS) 
-- GTK missing: needed for the the gtk-visualizer.
-- Guile (2.0.9 >= 2.0.0) was found.
-- Found these hypertable libs: /opt/hypertable/current/lib/libHyperCommon.a;/opt/hypertable/current/lib/libHyperDfsBroker.a
-- Found hypertable install path: /opt/hypertable/current
-- Found hypertable config file: /opt/hypertable/current/conf/hypertable.cfg
-- Hypertable was found.
-- Not Found SIGAR: SIGAR_LIBRARY-NOTFOUND
CMake Warning at CMakeLists.txt:247 (MESSAGE):
  SIGAR was not found! It is needed for Hypertable support.


-- IBERTY not found
-- Libiberty-dev missing: No pretty stack-trace printing.
-- Link Grammar (5.0.8 >= 4.7.12) found.
-- MPI was found.
-- OpenGL was found.
-- Protobuf was not found. Make sure PROTOBUF_LIBRARY and PROTOBUF_INCLUDE_DIR are set.
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) 
-- Protobuf was not found; the new message decoding functions would not work.
   To over-ride, make sure PROTOBUF_LIBRARIES and PROTOBUF_INCLUDE_DIRS are set.
-- Python libs found.
-- Cython ( 0.20.1 >= 0.19.0) found.
-- Python destination dir found: /usr/lib/python2.7/dist-packages
-- SDL was found.
-- SDL_gfx was found
-- Could NOT find TCL (missing:  TCL_INCLUDE_PATH) 
-- Could NOT find TCLTK (missing:  TCL_INCLUDE_PATH TK_INCLUDE_PATH) 
-- Could NOT find TK (missing:  TK_INCLUDE_PATH) 
-- TCL shell was found here: /usr/bin/tclsh
-- UnixODBC was found.
-- Valgrind Prefix: 
-- Could NOT find VALGRIND (missing:  VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM) 
-- VALGRIND missing: needed for thread debugging.
-- Found Xerces 2.8.0 -- /usr/lib/libxerces-c.so
-- Found ZeroMQ library: /usr/lib/x86_64-linux-gnu/libzmq.so
-- Detected ZeroMQ version number: 4.0.4
-- ZeroMQ was found.
-- Found Intel TBB
-- 
CMake Warning at tests/persist/sql/CMakeLists.txt:50 (MESSAGE):
  SQL database not configured for unit tests! See the README!



The following components will be built:
-----------------------------------------------
   AtomSpace          - A weighted and typed hypergraph database.
   Attention          - Agents for attention allocation dynamics.
   ComboReduct        - Library for reduction of combo program trees.
   Cython bindings    - Cython (python) bindings.
   Dim. Embedding     - Compute dimensional embedding of the AtomSpace.
   Doxygen            - Code documentation.
   Feature selection  - MOSES based feature selection tool.
   Hypertable         - HyperTable for scalable persistance (experimental).
   MOSES              - Meta-Optimizing Semantic Evolutionary Search.
   Python tests       - Python bindings nose tests.
   Scheme bindings    - Scheme bindings and shell.
   Server             - The CogServer.
   Spatial            - Vizualisation of the 3D spacemap.
   SQL persistance    - Save/Restore of AtomSpace to database.
   StackPrint         - Pretty printing of stack traces.
   Ubigraph           - Visualisation of the AtomSpace.
   Util               - General utility library.
   Viterbi            - Viterbi Parser for Link Grammar.
   ZMQ                - ZMQ-based OAC GUI reports, AtomSpace publisher module.
   TBB                - Intel TBB (Threaded Building Blocks) for multithreading.

The following components WILL NOT be built:
-----------------------------------------------
   Embodiment         - Architecture for embodiment.
   GTK Visualizer     - GTK3-based Atomspace Visualizer.

 

Linas Vepstas

unread,
May 5, 2014, 11:26:17 AM5/5/14
to opencog
Hi Hujie,

I just pushed a fix for this. If you pull and recompile, it should work.

--linas


--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/opencog.
For more options, visit https://groups.google.com/d/optout.

Hujie Wang

unread,
May 5, 2014, 7:00:57 PM5/5/14
to ope...@googlegroups.com, linasv...@gmail.com
Thanks, Linas! It's working right now.
Reply all
Reply to author
Forward
0 new messages