Bug #7302

Erreur compilation bibliothèque Raydium

Added by Ilyas Boumriche over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:06/05/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Lors de la compilation du .i conçu à partir de index.h (fichier entête contenant tous les autres entêtes des fonctions de Raydium), en tapant la commande : gcc -c index.c index_wrap.c -I/Python27/include nous obtenons l'erreur:

In file included from main.c:9:0,
from index.c:32:
common.h:85:21: fatal error: GL/glew.h: No such file or directory
#include <GL/glew.h>
^
compilation terminated.
In file included from main.h:9:0,
from index.h:27,
from index_wrap.c:3019:
common.h:85:21: fatal error: GL/glew.h: No such file or directory
#include <GL/glew.h>
^
compilation terminated.

Cette erreur disparait lors de l'ajout de -I/include à la commande.
Une nouvelle erreur apparait indiquant : fatal error: php.h: No such file or directory

Puis en tapant la commande : gcc -c index.c index_wrap.c -I/Python27/include -I/include -I/Users/Ilyas/Documents/RAYDIUM/raydium/headers

L'erreur obtenue est :

C:\Users\Ilyas\Documents\RAYDIUM\raydium>gcc -c index.c index_wrap.c -I/Python27
/include -I/include -I/Users/Ilyas/Documents/RAYDIUM/raydium/headers
In file included from common.h:159:0,
from main.c:9,
from index.c:32:
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:29:1: error: unknown type n
ame 'zend_compiler_globals'
extern zend_compiler_globals *compiler_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:30:1: error: unknown type n
ame 'zend_executor_globals'
extern zend_executor_globals *executor_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:31:1: error: unknown type n
ame 'php_core_globals'
extern php_core_globals *core_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:32:1: error: unknown type n
ame 'sapi_globals_struct'
extern sapi_globals_struct *sapi_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:57:51: error: unknown type
name 'uint'
__rayapi int raydium_php_uwrite (const char *str, uint str_length TSRMLS_DC);
^
In file included from main.c:9:0,
from index.c:32:
common.h:160:25: fatal error: php_version.h: No such file or directory
#include "php_version.h"
^
compilation terminated.
In file included from common.h:159:0,
from main.h:9,
from index.h:27,
from index_wrap.c:3019:
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:29:1: error: unknown type n
ame 'zend_compiler_globals'
extern zend_compiler_globals *compiler_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:30:1: error: unknown type n
ame 'zend_executor_globals'
extern zend_executor_globals *executor_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:31:1: error: unknown type n
ame 'php_core_globals'
extern php_core_globals *core_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:32:1: error: unknown type n
ame 'sapi_globals_struct'
extern sapi_globals_struct *sapi_globals;
^
/Users/Ilyas/Documents/RAYDIUM/raydium/headers/php.h:57:51: error: unknown type
name 'uint'
__rayapi int raydium_php_uwrite (const char *str, uint str_length TSRMLS_DC);
^
In file included from main.h:9:0,
from index.h:27,
from index_wrap.c:3019:
common.h:160:25: fatal error: php_version.h: No such file or directory
#include "php_version.h"
^
compilation terminated.

Ces erreurs sont-elle due à de mauvaises commandes utilisées ou doit-on les corriger une par une en incluant les chemins vers les dossiers nécessaires comme nous avions commencé à le faire ?

History

#1 Updated by Jacques LAFFONT over 3 years ago

Attention, la compilation de raydium nécessite que les chemins d'include en particulier soient correctement définis.

Regarder le fichier .bat de compilation ou bien la ligne de compilation d'un exemple dans CodeBlocks.

#2 Updated by Jacques LAFFONT over 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF