gumanchang / tmsvm Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/tmsvm
Automatically exported from code.google.com/p/tmsvm
您好,我按照要求重新编译libsvm.so.2,具体做法,首先找到lib
svm-3.12.tar 这个文件,解压,然后切换到python
目录,执行make,但是结果是失败的请问是什么原因呢
我使用的是32位 liunx系统 ubuntu14.01
下面是make之后的输出:
make -C .. lib
make[1]: 正在进入目录
`/home/xujingyang/下载/tmsvm_for_linux/libsvm-3.12'
if [ "Linux" = "Darwin" ]; then \
SHARED_LIB_FLAG="-dynamiclib -W1,-install_name,libsvm.so.2"; \
else \
SHARED_LIB_FLAG="-shared -W1,-soname,libsvm.so.2"; \
fi; \
g++ ${SHARED_LIB_FLAG} svm.o -o libsvm.so.2
g++: error: unrecognized command line option ‘-W1,-soname,libsvm.so.2’
make[1]: *** [lib] 错误 1
make[1]:正在离开目录 `/home/xujingyang/下载/tmsvm_for_linux/libsvm-3.12'
make: *** [lib] 错误 2
谢谢~
Original issue reported on code.google.com by [email protected]
on 19 Aug 2015 at 2:48
由于我的输入太大,直接使用tmsvm会报错,说memory
error,所以不知道我能不能直接用index 和
频率作为输入然后再训练模型呢,谢谢。
Original issue reported on code.google.com by [email protected]
on 26 Jun 2014 at 3:21
不知道算不算bug吧
环境是ubuntu12.04 32bit python2.7
在使用example.py过程中,发生如下错误
Traceback (most recent call last):
File "/home/sleeperqp/tmsvm/dependence/pymmseg.py", line 15, in <module>
mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.so.64"))
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /home/sleeperqp/tmsvm/dependence/./mmseg.so.64: wrong ELF class:
ELFCLASS64
在pymmseg.py第15行中找到了原因,将mmseg.so.64修改成32即可
# -*- coding: utf-8 -*-
import sys
from ctypes import *
from ctypes.util import find_library
from os.path import join, dirname, abspath, exists
import os
if find_library('mmseg'):
mmseg = CDLL(find_library('mmseg'))
else:
if sys.platform == 'win32':
mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.dll"))
else:
mmseg = CDLL(os.path.join(os.path.dirname(__file__),"./mmseg.so.64"))
最后感谢你的这些工作,真心感谢~
Original issue reported on code.google.com by [email protected]
on 25 Aug 2013 at 8:36
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.