Fix Qt path

epel8
Ding-Yi Chen 17 years ago
parent b9ecb474a8
commit cb285d07f3

@ -371,7 +371,7 @@ diff -up ./FAQ.html.orig ./FAQ.html
diff -up ./svm-predict.c.orig ./svm-predict.c
diff -up ./svm-toy/qt/Makefile.orig ./svm-toy/qt/Makefile
--- ./svm-toy/qt/Makefile.orig 2007-10-14 16:29:12.000000000 +1000
+++ ./svm-toy/qt/Makefile 2008-04-03 12:55:56.000000000 +1000
+++ ./svm-toy/qt/Makefile 2008-04-03 13:32:39.000000000 +1000
@@ -1,19 +1,48 @@
CXX? = g++
-CFLAGS = -Wall -O3 -DQT_THREAD_SUPPORT
@ -382,9 +382,9 @@ diff -up ./svm-toy/qt/Makefile.orig ./svm-toy/qt/Makefile
-#INCLUDE = /usr/include/qt3
-#LIB = /usr/lib/qt3
+CFLAGS = -Wall -O3
+QT4_DIR= $(shell if [ -e /usr/lib/qt4 ]; then echo /usr/lib/qt4; fi)
+#LIBDIR=/usr/lib64
+#LIBDIR?=/usr/lib64
+#QT4_DIR=
+QT4_DIR= $(shell if [ -e ${LIBDIR}/qt4 ]; then echo ${LIBDIR}/qt4; fi)
-svm-toy: svm-toy.cpp svm-toy.moc ../../svm.o
- $(CXX) -I$(INCLUDE) $(CFLAGS) svm-toy.cpp ../../svm.o -o svm-toy -L$(LIB) -lqt-mt

@ -1,6 +1,6 @@
Name: libsvm
Version: 2.86
Release: 7%{?dist}
Release: 8%{?dist}
Summary: A Library for Support Vector Machines
Group: Development/Libraries
@ -203,7 +203,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Mar 13 2008 Ding-Yi Chen <dchen@redhat.com> - 2.86-7
* Thu Mar 13 2008 Ding-Yi Chen <dchen@redhat.com> - 2.86-8
- Fix the Qt path problem
* Wed Mar 12 2008 Ding-Yi Chen <dchen@redhat.com> - 2.86-4

Loading…
Cancel
Save