spca5xx make錯誤? - Linux

Table of Contents

make會讀到一個spca5xx.c檔,這個.c檔我改了兩個include

#incldue <linux/config.h> => #include <linux/autoconf.h>
這個是比較新的核心版本以autoconf.h取代config.h ?

#include <asm/semaphore.h> => #include </usr/include/semaphore.h>
我asm目錄裡沒有semaphore.h這個檔案,是不是另外應該裝個什麼xxx-dev之類的
我想應該是我亂套上一個semaphore.h才衝突的..

/usr/include/semaphore.h 49行附近內容:

43 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW;
44
45 /* Close descriptor for named semaphore SEM. */
46 extern int sem_close (sem_t *__sem) __THROW;
47
48 /* Remove named semaphore NAME. */
49 extern int sem_unlink (__const char *__name) __THROW;
50
51 /* Wait for SEM being posted.
52
53 This function is a cancellation point and therefore not marked with
54 __THROW. */
55 extern int sem_wait (sem_t *__sem);
56
57 #ifdef __USE_XOPEN2K

--

All Comments

Gilbert avatarGilbert2012-05-04
原來是有改 #include, 看來有可能是此軟體與 linux 核心
Hazel avatarHazel2012-05-04
脫節過久,你可能要用 2006年(從前幾篇的文中可看到2006字
Margaret avatarMargaret2012-05-06
樣)左右的linux環境來build 才比較容易成功
Elvira avatarElvira2012-05-07
另外,你貼的semaphore.h和我系統的看上去大致相同,問題應
Gary avatarGary2012-05-07
不在這裏.應該是2006的dev相關檔案和目前相差較遠的關係
Rae avatarRae2012-05-10
看一下原軟體有無註明system requirement的kernel版本
Bennie avatarBennie2012-05-12
這的確是有段時間的東西了..說明檔說是支持2.4.x跟2.6.x的
Heather avatarHeather2012-05-16
google到這篇 https://help.ubuntu.com/community/Spca5xx
支援到Ubuntu8.04,文中說照著作,make應該沒有錯
Oliver avatarOliver2012-05-17
重點是開宗明義說已被 gspca 取代 XD