Jump to content

Photo

[answered] Help Compiling Elementary Code Examples


  • Please log in to reply
4 replies to this topic

#1 llnathanll

llnathanll

    Member

  • Members
  • 14 posts

Posted 27 February 2015 - 05:17 AM

I'm attempting to compile some of the simple code examples using Elementary.  These are the two instructional pages I found:

 

https://build.enligh...oup__Start.html

https://phab.enlight...g/w/elementary/

 

The first page suggests using a Makefile for compiling.  This leads to a compile error:

fatal error: Elementary.h: No such file or directory #include <Elementary.h>
The second page suggest using 
gcc hello.c -o hello `pkg-config elementary --cflags --libs`
This gets me a string of unmet dependencies.  I gave up at 
Package 'mount', required by 'eeze', not found
I'm on Bodhi 3.0.0
 
 
 




A big thank you to everyone who contributes to Bodhi Linux


#2 Jeff

Jeff

    Lead Developer

  • Developer
  • 12430 posts
  • LocationBloomington, IL

Posted 27 February 2015 - 05:44 AM

Bodhi has Elementary/EFL headers installed by default. We do not split them out like a lot of packagers do. Your first message implies gcc isn't finding the headers.

 

Your third code snippet means you are missing a dependency.



#3 llnathanll

llnathanll

    Member

  • Members
  • 14 posts

Posted 28 February 2015 - 01:02 AM

Hi Jeff -  Thanks for your quick reply.  I have two questions:

How do I check if my EFL headers are installed correctly, and if not, where/how do I best install them?

 

These are the packages I installed by hand - they showed up as missing depencies just like 'mount'.  Is there an easier way than to install these one by one?

 

pkg-config

libglib2

libssl-dev

libpng12-dev

libharfbuzz

libfribidi

libexpat1

luajit

libsndfile1

libbullet-dev



#4 Jeff

Jeff

    Lead Developer

  • Developer
  • 12430 posts
  • LocationBloomington, IL

Posted 28 February 2015 - 02:54 AM

The packages in this script -> https://github.com/J.../installdeps.sh

 

Are what is required to build the E desktop itself. If you aren't pressed for space installing all of that should do the trick.



#5 llnathanll

llnathanll

    Member

  • Members
  • 14 posts

Posted 01 March 2015 - 04:42 AM

Thanks Jeff.  Indeed, that did the trick!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users