Make examples fails, atom_types.h not found

Bug #1069708 reported by Alex van der Peet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenCog
Fix Released
Low
linas

Bug Description

alex@ubuntu:~/src/ochack/bin$ make examples
Building examples
[ 5%] Built target attention_atom_types
[ 5%] Built target opencog_atom_types
[ 5%] Building CXX object examples/atomtypes/CMakeFiles/customatomtypes.dir/CustomAtomTypesTester.cc.o
In file included from /home/alex/src/ochack/opencog/atomspace/TLB.h:29:0,
                 from /home/alex/src/ochack/opencog/atomspace/AtomTable.h:32,
                 from /home/alex/src/ochack/opencog/atomspace/AtomSpaceImpl.h:36,
                 from /home/alex/src/ochack/opencog/atomspace/AtomSpaceAsync.h:10,
                 from /home/alex/src/ochack/opencog/atomspace/AtomSpace.h:34,
                 from /home/alex/src/ochack/examples/atomtypes/CustomAtomTypesTester.cc:27:
/home/alex/src/ochack/opencog/atomspace/Atom.h:33:42: fatal error: opencog/atomspace/atom_types.h: No such file or directory
compilation terminated.
make[6]: *** [examples/atomtypes/CMakeFiles/customatomtypes.dir/CustomAtomTypesTester.cc.o] Error 1
make[5]: *** [examples/atomtypes/CMakeFiles/customatomtypes.dir/all] Error 2
make[4]: *** [all] Error 2
make[3]: *** [CMakeFiles/examples] Error 2
make[2]: *** [CMakeFiles/examples.dir/all] Error 2
make[1]: *** [CMakeFiles/examples.dir/rule] Error 2
make: *** [examples] Error 2

alex@ubuntu:~/src/ochack/bin$ bzr revno
7874

Revision history for this message
linas (linasvepstas) wrote :

This should fix it, I will push this shortly

=== modified file 'examples/atomtypes/CMakeLists.txt'
--- examples/atomtypes/CMakeLists.txt 2009-04-16 21:37:25 +0000
+++ examples/atomtypes/CMakeLists.txt 2012-10-22 15:18:03 +0000
@@ -10,6 +10,9 @@
 # you must add a dependency to this target, as follows:
 # ADD_DEPENDENCIES(lib_or_exec_name example_atom_types)

+# The atom_types.h file is written to the build directory
+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
+
 ADD_LIBRARY (customatomtypes SHARED
  atom_types
  CustomAtomTypesTester
@@ -18,3 +21,4 @@

 ADD_DEPENDENCIES(customatomtypes opencog_atom_types)
 ADD_DEPENDENCIES(customatomtypes attention_atom_types)
+ADD_DEPENDENCIES(customatomtypes examples_atom_types)

Changed in opencog:
assignee: nobody → linas (linasvepstas)
importance: Undecided → Low
Revision history for this message
linas (linasvepstas) wrote :

pushed in bzr rev 7883.

Changed in opencog:
status: New → Fix Committed
Revision history for this message
Karl Sackett (karlsackett) wrote :

Rev 7886

The problem is still present, but in a different context.

[ 36%] Building CXX object opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/DimEmbedModule.cc.o
In file included from /Users/krs/src/opencog/opencog/atomspace/TLB.h:29:0,
                 from /Users/krs/src/opencog/opencog/atomspace/AtomTable.h:32,
                 from /Users/krs/src/opencog/opencog/atomspace/AtomSpaceImpl.h:36,
                 from /Users/krs/src/opencog/opencog/atomspace/AtomSpaceAsync.h:10,
                 from /Users/krs/src/opencog/opencog/atomspace/AtomSpace.h:34,
                 from /Users/krs/src/opencog/opencog/learning/dimensionalembedding/DimEmbedModule.h:31,
                 from /Users/krs/src/opencog/opencog/learning/dimensionalembedding/DimEmbedModule.cc:25:
/Users/krs/src/opencog/opencog/atomspace/Atom.h:33:42: fatal error: opencog/atomspace/atom_types.h: No such file or directory
compilation terminated.
make[2]: *** [opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/DimEmbedModule.cc.o] Error 1
make[1]: *** [opencog/learning/dimensionalembedding/CMakeFiles/dimensionalembedding.dir/all] Error 2
make: *** [all] Error 2

Revision history for this message
linas (linasvepstas) wrote :

Argh... the patch below should fix it. There may be others, I have no easy way of finding these; report them here. I don't want to push any more patches to bzr until the move to github is over (in a day or less I hope)

=== modified file 'opencog/learning/dimensionalembedding/CMakeLists.txt'
--- opencog/learning/dimensionalembedding/CMakeLists.txt 2012-07-18 21:50:31 +0000
+++ opencog/learning/dimensionalembedding/CMakeLists.txt 2012-10-23 00:45:32 +0000
@@ -1,9 +1,12 @@
 ADD_LIBRARY (dimensionalembedding SHARED
  DimEmbedModule
- CoverTreePoint
+ CoverTreePoint
 )

+ADD_DEPENDENCIES(dimensionalembedding opencog_atom_types)
+
 INCLUDE_DIRECTORIES (
+ ${CMAKE_BINARY_DIR}
  ${ODBC_INCLUDE_DIRS}
 )

Revision history for this message
Karl Sackett (karlsackett) wrote :

Debian Linux
Rev 7889

Looks like the patch worked.

Revision history for this message
Alex van der Peet (alex-van-der-peet) wrote :

I concur, works beautifully now! Thanks so much for unblocking my progress!

linas (linasvepstas)
Changed in opencog:
status: Fix Committed → Fix Released
Revision history for this message
patrick samples (ptrakk) wrote :

opencog/dynamics/attention/atom_types.h: No such file or directory compilation terminated.

Revision history for this message
linas (linasvepstas) wrote :

Hi Patrick, we are no longer using launchpad for the OpenCog source repo; its all on github. See https://github.com/opencog/opencog/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.