OpenWrt Forum Archive

Topic: OpenWRT & Eclipse enviroment

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello!!

I would like to use Eclipse to develop my own packages for openWRT( I would like to use either C or C++ src), the point is that I'm using the pdf of wiki(http://wiki.openwrt.org/doc/devel/eclipse), and I have few doubts

1- after running  the command

 make toolchain/install

I have to create the crosscompiler using make right?? And once done that I should look for the tool command prefix with

find ./staging_dir -path "./staging_dir/toolchain*" -name
*openwrt-linux

shouldn't I?


2 If I get this error is due to the fact that I haven't set the path and prefix properly?

make all
Building file: ../src/HelloOpenwrt.cpp
Invoking: Cross G++ Compiler
mips-openwrt-linux-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/HelloOpenwrt.d" -MT"src/HelloOpenwrt.d" -o "src/HelloOpenwrt.o" "../src/HelloOpenwrt.cpp"
/bin/sh: 1: mips-openwrt-linux-g++: not found
make: *** [src/HelloOpenwrt.o] Error 127

Thanks in advance!!

mitja.gti wrote:

Hi ndarkness

are you trying to remote debug with eclipse?

If you are just trying to basically write the code in Eclipse instead of any other software or basic text editor, then your problem is in one or both make files. Check the wiki (http://wiki.openwrt.org/doc/devel/packages) or look at https://forum.openwrt.org/viewtopic.php?id=36745 or https://forum.openwrt.org/viewtopic.php?id=32781.

Yes it was,thanks mitja.gti I did manage to achive it, it was a problem with execution permissions.

thanks,

ndarkness

The discussion might have continued from here.