On Mon, 17 Jan 2011 16:19:17 +1100 Travis Simon <tsi...@gmail.com> said:
> Thanks for the reply, but I'm still not sure I understand why it's not > compiling. Just in case you are skimming: > > > example.c:(.text+0x150): undefined reference to > > `ecore_evas_software_X11_new' > > collect2: ld returned 1 exit status > > That is from GCC, /not/ from running the program. And I can run E and apps, > so the code and libs are fine, just not my gcc call. yes - saw that. gcc cant fine that symbol. from your link line it is linking the right lib (-lecore_evas). of course if it literally is saying it can't find libecore_evas.so elsewhere inb errors then that'd explain it - but i'm assuming for now it is and you somehow have this lib without that symbol - which makes no sense. > I'm following the Application Development with Edje PDF ( > http://trac.enlightenment.org/e/export/head/trunk/DOCS/devwithedje/pre-rendered/devwithedje.pdf), > which is not giving any compiling hints. > > Shouldn't this work? > gcc -o example `pkg-config --cflags --libs evas ecore-evas edje` example.c > > Everything is under /opt/e17/... > > > > On 17 January 2011 16:03, Carsten Haitzler <ras...@rasterman.com> wrote: > > > On Mon, 17 Jan 2011 10:56:39 +1100 Travis Simon <tsi...@gmail.com> said: > > > > > Hi guys, > > > > > > Sorry for the noob question that most likely has been answered several > > > times, but . . . > > > > > > Working against the evas tutorial, I'm having trouble compiling. > > > > > > I've dl'ed and compiled EFL into /opt/e17/lib using the easy_e17 script > > > (whose link is now defunct) on ubuntu 10.10. My gcc incantation is: > > > > > > > export PKG_CONFIG_PATH="/opt/e17/lib/pkgconfig" > > > > gcc -o example `pkg-config --cflags --libs evas ecore-evas edje` > > example.c > > > > > > However, the compile is not loading the X11 loader: > > > > > > example.c:(.text+0x150): undefined reference to > > > `ecore_evas_software_X11_new' > > > collect2: ld returned 1 exit status > > > > > > The output from pkg-config is: > > > -I/opt/e17/include/evas-1 -I/opt/e17/include/eet-1 > > -I/opt/e17/include/eina-1 > > > -I/opt/e17/include/eina-1/eina -I/opt/e17/include/ecore-1 > > > -I/opt/e17/include/edje-1 -I/opt/e17/include/embryo-1 > > > -I/usr/include/freetype2 -I/usr/include/glib-2.0 > > -I/usr/lib/glib-2.0/include > > > -I/usr/include/lua5.1 -L/opt/e17/lib -levas -lecore_evas -ledje > > > > > > Any ideas? I also had a look in the tutorials, and nowhere is compiling > > > discussed. I'm happy to update the docs if someone can point me in the > > right > > > direction. > > > > that sounds most wrong. ecore-evas - no matter if compiled with > > software-x11 > > support or not ALWAYs provides ecore_evas_software_x11_new(). > > > > #ifdef BUILD_ECORE_EVAS_SOFTWARE_X11 > > EAPI Ecore_Evas * > > ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, > > int x, int y, int w, int h) > > { > > Evas_Engine_Info_Software_X11 *einfo; > > ... > > return ee; > > } > > #else > > EAPI Ecore_Evas * > > ecore_evas_software_x11_new(const char *disp_name __UNUSED__, > > Ecore_X_Window > > parent __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, > > int h > > __UNUSED__) { > > return NULL; > > } > > #endif > > > > so no matter what you get it - it may always return NULL (fail) or may run > > the > > real init code and try... but you never miss it - unless you have been > > stripping the libs of symbols or something. > > > > -- > > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > > The Rasterman (Carsten Haitzler) ras...@rasterman.com > > > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users