OSX: ld: library not found for -lfeature_selection

Bug #1069683 reported by David Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Fix Released
High
linas

Bug Description

%make test
[ 1%] Generating feature_selectionUTest.cpp
[ 2%] Building CXX object tests/learning/feature-selection/CMakeFiles/feature_selectionUTest.dir/feature_selectionUTest.cpp.o
Linking CXX executable feature_selectionUTest
ld: library not found for -lfeature_selection
collect2: error: ld returned 1 exit status
make[3]: *** [tests/learning/feature-selection/feature_selectionUTest] Error 1
make[2]: *** [tests/learning/feature-selection/CMakeFiles/feature_selectionUTest.dir/all] Error 2
make[1]: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2

Revision history for this message
linas (linasvepstas) wrote :

I'm guessing that the following will fix this:

bzr rev 7886

=== modified file 'opencog/CMakeLists.txt'
--- opencog/CMakeLists.txt 2012-10-21 22:53:00 +0000
+++ opencog/CMakeLists.txt 2012-10-22 16:13:40 +0000
@@ -9,12 +9,12 @@
 ADD_SUBDIRECTORY (util)
 ADD_SUBDIRECTORY (comboreduct)
 ADD_SUBDIRECTORY (reasoning)
+ADD_SUBDIRECTORY (learning)

 IF (HAVE_ATOMSPACE)
     ADD_SUBDIRECTORY (atomspace)
     ADD_SUBDIRECTORY (benchmark)
     ADD_SUBDIRECTORY (query)
- ADD_SUBDIRECTORY (learning) # Dimensional reduction needs atomspace
     ADD_SUBDIRECTORY (nlp)
     ADD_SUBDIRECTORY (persist)
 ENDIF (HAVE_ATOMSPACE)

=== modified file 'opencog/learning/CMakeLists.txt'
--- opencog/learning/CMakeLists.txt 2012-10-12 06:25:24 +0000
+++ opencog/learning/CMakeLists.txt 2012-10-22 16:16:20 +0000
@@ -1,6 +1,9 @@

-ADD_SUBDIRECTORY (moses)
-ADD_SUBDIRECTORY (feature-selection)
+IF (HAVE_MOSES)
+ ADD_SUBDIRECTORY (moses)
+ ADD_SUBDIRECTORY (feature-selection)
+ENDIF (HAVE_MOSES)
+
 ADD_SUBDIRECTORY (statistics)

 IF (HAVE_DIMEMBED)

=== modified file 'tests/learning/CMakeLists.txt'
--- tests/learning/CMakeLists.txt 2010-11-01 16:18:59 +0000
+++ tests/learning/CMakeLists.txt 2012-10-22 16:17:40 +0000
@@ -1,4 +1,11 @@
 #ADD_SUBDIRECTORY (hillclimbing)
-ADD_SUBDIRECTORY (moses)
-ADD_SUBDIRECTORY (dimensionalembedding)
-ADD_SUBDIRECTORY (feature-selection)
+
+IF (HAVE_MOSES)
+ ADD_SUBDIRECTORY (moses)
+ ADD_SUBDIRECTORY (feature-selection)
+ENDIF (HAVE_MOSES)
+
+IF (HAVE_DIMEMBED)
+ ADD_SUBDIRECTORY (dimensionalembedding)
+ENDIF (HAVE_DIMEMBED)
+

Changed in opencog:
assignee: nobody → linas (linasvepstas)
importance: Undecided → High
status: New → Fix Committed
linas (linasvepstas)
Changed in opencog:
status: Fix Committed → Fix Released
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.