User forums > Using Code::Blocks
lib enlightenment on code blocks, how to add it?
(1/1)
Issa:
--- Quote ---Bonjour,
j'aimerais faire du développement des enlightenment foundation library,mais pour sa, il faut que je sache comment rajouter les libs dans Code::Blocks,
les libs se download ici --> http://packages.enlightenment.org/windows/
Pendant l'install il faut bien rajouter, les sources.
Dans Code::Blocks, je créer un nouveau projet en C, et je fait mon premier programme en EFL, pour tester,mais quand je ocmpile j'ai cette erreur :
--- Code: ---||=== testEFL, Debug ===|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|2|Ecore.h: No such file or directory|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|3|Ecore_Evas.h: No such file or directory|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c||In function `main':|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: `Ecore_Evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: (Each undeclared identifier is reported only once|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: for each function it appears in.)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: `ecran' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|9|error: `Evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|9|error: `evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|11|warning: implicit declaration of function `ecore_evas_init'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|14|warning: implicit declaration of function `ecore_evas_new'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|17|warning: implicit declaration of function `ecore_evas_shutdown'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|21|warning: implicit declaration of function `ecore_evas_show'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|23|warning: implicit declaration of function `ecore_evas_get'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|29|warning: implicit declaration of function `ecore_main_loop_begin'|
||=== Build finished: 8 errors, 6 warnings ===|
--- End code ---
je pense que les libs efl ce trouve dans mon dossier :
Si quelqu'un peut me dire comment régler sa dans Code::Blocks
Merci d'avance.
--- End quote ---
Hello,
i m interresting to make programme with enlightenment foundation library,
but i don't know how configure EFL libs on Code::Blocks,
u can download libs here --> http://packages.enlightenment.org/windows/
Now i create new project :
In Code::Blocks, i create new C project, ndi create my first EFL programme :
--- Code: ---#include <stdlib.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
int
main (int argc, char *argv[])
{
Ecore_Evas *ecran;
Evas *evas;
if (!ecore_evas_init ())
return -1;
ecran = ecore_evas_new ("software_x11", 0, 0, 320, 240, NULL);
if (!ecran)
{
ecore_evas_shutdown ();
return -1;
}
ecore_evas_show (ecran);
evas = ecore_evas_get (ecran);
/*
Mettre son code ici
*/
ecore_main_loop_begin();
ecore_evas_shutdown ();
return 0;
}
--- End code ---
And i compile and i have this error :
--- Code: ---||=== testEFL, Debug ===|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|2|Ecore.h: No such file or directory|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|3|Ecore_Evas.h: No such file or directory|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c||In function `main':|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: `Ecore_Evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: (Each undeclared identifier is reported only once|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: for each function it appears in.)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|8|error: `ecran' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|9|error: `Evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|9|error: `evas' undeclared (first use in this function)|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|11|warning: implicit declaration of function `ecore_evas_init'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|14|warning: implicit declaration of function `ecore_evas_new'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|17|warning: implicit declaration of function `ecore_evas_shutdown'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|21|warning: implicit declaration of function `ecore_evas_show'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|23|warning: implicit declaration of function `ecore_evas_get'|
C:\Documents and Settings\Administrateur\Bureau\tmp\testEFL\main.c|29|warning: implicit declaration of function `ecore_main_loop_begin'|
||=== Build finished: 8 errors, 6 warnings ===|
--- End code ---
i have installed lib on this directory :
if someone can help me to config Code::Blocks for the EFL
Thanks.
Issa:
--- Quote ---<Issa> hello
<Issa> anyone can help me
<Issa> with my little problem,
<Issa> i need to knwo how add new library on code blocks
<Issa> i m on windows xp, with the last codebcks released
<Issa> somoeon or not?
<obfuscated> you need to link to a library or to make a library?
<Issa> link
<Issa> i use this lib http://enlightenment.org/
<Issa> on windows
<obfuscated> :)
<obfuscated> ok, you need to do two things: add the require lib ecore/evas/ewl or whatever you want to link to to the project-> build options -> linker settings -> link libraries
<obfuscated> then you need to specify the path where the compiler can find the libs, if they are not in a path the compiler knows about
<obfuscated> that is done in build options -> search dirs -> linker
<obfuscated> you could use variables, so the thing is not hard coded: $(#efl_base)/libs
<obfuscated> take a look here: http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
<Issa> thnals
<Issa> thanks
<Issa> don't wokr
<Issa> k
<obfuscated> read this: http://wiki.codeblocks.org/index.php?title=FAQ and in particular: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
<Issa> okthanks i wiill see that
--> Now talking on #codeblocks
* Topic for #codeblocks is: Welcome to #codeblocks! | Latest stable: 8.02 | No, this is not an official channel. | We don't need a topic | pastes --> https://sh.nu/p/ | run VALGRIND on crashes first. (before asking!) --> www.valgrind.org | SVN: svn checkout svn://svn.berlios.de/codeblocks/trunk | Here be dragons! We eat n00bs and idiots. | DO NOT PRIVATE MESSAGE THE CHANNEL OPS.
* Topic for #codeblocks set by robert_ at Wed May 20 08:51:50 2009
<Issa> hillo
<AmonX> hello
<AmonX> hillo
<Issa> hello obfuscated , i have make a video, with codeblocks, and all my manipulation, maybeu can see it, and tell my what is wrong please?
<Issa> http://frechdesign.free.fr/EFL/video/efl_windows.avi
<obfuscated> Issa: you have not read the faq carefully!!!!
<obfuscated> also you do not understand the errors, that are emitted ...
<obfuscated> what do they say?
<obfuscated> undefined symbol or missing include file?
<obfuscated> it's the first, so you have no problem with linking bug with the includes
<obfuscated> so the solution: project -> build options -> click the root of the tree on the left (to make it global for the project) -> search dirs -> compiler -> $(#efl_base)/include or $(#efl_base)/includes
<obfuscated> it depends how it is named on disk
<obfuscated> then when the popup comes up asking you to specify the efl_base you choose C:\program files\efl\
<obfuscated> and adding all libs in one go is not necessary
<obfuscated> also having ../../../some/path/libecore.a is dangerous
<obfuscated> you should add ecore only and if the search path is correct the lib will be found
<obfuscated> if not you fix the search pach
<obfuscated> pach=path
<obfuscated> see this: http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Link-Options.html#Link-Options
<obfuscated> and this http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Directory-Options.html#Directory-Options
<obfuscated> the relevant options are -I -L -l
--- End quote ---
solution is here :
in video :http://frechdesign.free.fr/EFL/video/efl_windows.avi
and thanks to obfuscated
Navigation
[0] Message Index
Go to full version