Re: The Euphoria Editor

new topic     » goto parent     » topic index » view thread      » older message » newer message
xecronix said...

Nice work! I'll try to get it working on the Raspberry Pi and submit a package if I can get it working.

-xecronix

Well... I got IUP to work on the Raspberry Pi

Install pre-req libs

sudo apt-get install libreadline-dev \ 
g++ \ 
libgl1-mesa-dev \ 
libglu1-mesa-dev \ 
libx11-dev \ 
libxpm-dev \ 
libxmu-dev \ 
libxft-dev \ 
libwebkitgtk-3.0-dev  

Set up build env

mkdir ~/dev 
cd ~/dev 
mkdir iup 
cd iup 

Download the source: (current as of 10/19/2015)

wget http://sourceforge.net/projects/luabinaries/files/5.3/Docs and Sources/lua-5.3_Sources.tar.gz/download && mv download lua.tgz 
wget http://sourceforge.net/projects/imtoolkit/files/3.10/Docs%20and%20Sources/im-3.10_Sources.tar.gz/download && mv download im.tgz 
wget http://sourceforge.net/projects/canvasdraw/files/5.9/Docs%20and%20Sources/cd-5.9_Sources.tar.gz/download && mv download cd.tgz 
wget http://sourceforge.net/projects/iup/files/3.16/Docs%20and%20Sources/iup-3.16_Sources.tar.gz/download && mv download iup.tgz 
Build lua
tar -xzvf *.tgz 
cd lua53 
make -j 4 linux 
sudo make install 

Build everything else... in this order

cd im/src 
make -j 4 
cd ../.. 
 
cd cd/src 
make -j 4 
cd ../.. 
 
cd iup 
make -j 4 
 
cd srcimglib 
make -j 4 
cd ../ 
 
cd srcscintilla 
make -j 4 
cd ../.. 

Install libs

sudo cp cd/lib/Linux41_arm/lib* /usr/lib/ 
sudo cp im/lib/Linux41_arm/lib* /usr/lib 
sudo cp iup/lib/Linux41_arm/lib* /usr/lib 

Install dev aka header files

sudo mkdir -p /usr/include/im 
sudo cp -fR im/include/*.h /usr/include/im 
 
sudo mkdir -p /usr/include/cd 
sudo cp -f cd/include/*.h /usr/include/cd 
 
sudo mkdir -p /usr/include/iup 
sudo cp -f iup/include/*.h /usr/include/iup      

create helloworld.c for testing:

mkdir ~/dev/myc/iuptesting && cd ~/dev/myc/iuptesting 

#include <stdlib.h> 
#include <iup.h> 
/* 
 * to compile 
 * gcc -I/usr/include/iup -liup -o helloworld helloworld.c 
 *  
 * */ 
int main(int argc, char **argv) 
{ 
  IupOpen(&argc, &argv); 
   
  IupMessage("Hello World 1", "Hello world from IUP."); 
   
  IupClose(); 
  return EXIT_SUCCESS; 
} 

-xecronix

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu