Jump to content

eclipse ubuntu settings error 127


Phatline
 Share

Recommended Posts

OS: ubuntu 14.04 LTS (I am the only user who use this Computer... no multiuser needet)

 

DO YOU SEE ANY FAILS ON THE SCREENSHOTS:

I put the mios32toolchain to:

/home/wermitgeht/mios32

post-20788-0-03528400-1403995761_thumb.j

these are the write read rights:

post-20788-0-83680000-1403996371_thumb.j

 

 

in eclipse i set this settings:

post-20788-0-32593800-1403995875_thumb.j

& this:

post-20788-0-04208900-1403995966_thumb.j

 

then I imported the app_skeleton_cpp

post-20788-0-16913600-1403996472_thumb.j

 

after right-click on the skeleton - then leftclick on "project build"

I got error 127

post-20788-0-16937000-1403996676_thumb.j

 

 

I gues it has something to do with the PATH

-I will defentivly not modyfie the operating system, - because I tryed and I dont get it work - as described in:

http://www.midibox.org/dokuwiki/doku.php?id=linux_mios32_toolchain_core

You can add these lines to your ~/.profile file to ensure that they are always set, the editor pico (or nano) is a fairly simple text editor but you may have your favourite.

after one nigth googling and searching i gave it up... this sentence is definitivly not enough describtion for a newbee.

 

but hey dont need... written in this Tutorial: http://www.midibox.org/dokuwiki/doku.php?id=eclipse

You can define Environment variables that will only be used by Eclipse. You can use this feature instead of modifying the operating system environment variables. To define Environment variables, select C/C++→Build→Environment in the 'Preferences' window and click the 'Add' button on the right. These environment variables will automatically apply to all projects in the workspace, and you can override them on a per-project basis by modifying the projects' configurations.

.....

${HOME}/mios32_toolchain/bin:${env_var:PATH}

 

up to now hardstuff that everyday when I try to get this run - ends by NOTHING, end by the frustrationt "to not wrote a single code line"...

 

I have tryed it on a windows computer, and also get sucked on this variables, i finally made a Batchfile... in ubuntu i get sucked by trying to do the same (scribt).

 

please take  a look on my screenshots - do you see any Fails? do you need more details - what?

Edited by Phatline
Link to comment
Share on other sites

command line = console?

 

console says:

 

12:42:36 **** Build of configuration Default for project app_skeleton_cpp ****
make all
rm -f project.hex
Creating object file for main.c
make: arm-none-eabi-gcc: Kommando nicht gefunden
make: *** [project_build//home/wermitgeht/mios32/programming_models/traditional/main.o] Fehler 127

12:42:36 Build Finished (took 173ms)

 

Kommando nicht gefunden = (command not found)

> as I thougt the Path-setting is not right, but I am not able to interpret the Manual that give us a screenshot for windows,

TUTORIAL SCREENSHOT from: http://www.midibox.org/dokuwiki/doku.php?id=eclipse

post-20788-0-47920600-1404039170_thumb.j

 

like on my very 1st picture my Path is: /home/wermitgeht/mios32

I come from max-msp - so i may know some stractions, may know that $ give us something like a variable --- but I am absulutely new to C for uC and of Course Eclipse.

 

Link to comment
Share on other sites

You´re missing your compiler binary - which must be in path, you can check your PATH by calling

 

$ set | grep PATH
 

Right now, "make" is trying to call "arm-none-eabi-gcc", which is not found.

Please find/locate your cross-platform compiler on your linux box and set the PATH or (re)install!

 

Many greets,

Peter

Link to comment
Share on other sites

$ set | grep PATH

 > in Linux console - or anywhere in eclipse (eclipse console only show data, i cant write anything in there)?

 

 

In this Tutorial http://www.midibox.org/dokuwiki/doku.php?id=eclipse is written:

For Linux, add a variable 'PATH'

${HOME}/mios32_toolchain/bin:${env_var:PATH}

my "arm-none-eabi-gcc" is under: /home/wermitgeht/mios32/bin

So how to write the Value of Variable "PATH" correct?

${HOME}/mios32/bin:${env_var:PATH}

${HOME}/wermitgeht/mios32/bin:${env_var:PATH}

${HOME/wermitgeht/mios32/bin}:${env_var:PATH}

$HOME/wermitgeht/mios32/bin:${env_var:PATH}

HOME/wermitgeht/mios32/bin:${env_var:PATH}

${HOME/wermitgeht/mios32/}bin:${env_var:PATH}

I dont have a glue - because of not understanding this $ ( ): $ (env_var:Path) thing

 

linux box and set the PATH

I dont have to set this in Linux when I set in Eclipse (thats what the Tutorial says)? (I will not set this temporary Thing every time i restart the Laptop, and for set this for "always" i dont have the linux knowledge to do that-as already said)

 

greets phat

Edited by Phatline
Link to comment
Share on other sites

set | grep PATH

needs to be typed on the command line (usually a bash shell).

 

----

 

To set your PATH variable to something else, do that outside of eclipse.

There are several ways.

 

Using the linux bash shell

 

export PATH=$PATH:/your/additional/path

 

this will concatenate /your/additional/path to your existing PATH

then you need to start eclipse from this commandline shell, or the setting will be lost!

 

To automatise setting the PATH:

search for a file named .bashrc in your linux home directory

in there you can place the above statement:

 

export PATH=$PATH:/your/additional/path

 

hope this helps,

many greets,

Peter

Edited by Hawkeye
Link to comment
Share on other sites

set grep Path give me this:

wermitgeht@wasmitgeht:~$ set | grep PATH
COMPIZ_BIN_PATH=/usr/bin/
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/wermitgeht/mios32/bin
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
_=PATH
    local cmd PATH=$PATH:/sbin;
    if [[ -z "${CDPATH:-}" || "$cur" == ?(.)?(.)/* ]]; then
    for i in ${CDPATH//:/'
    PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin type $1 &> /dev/null
    COMPREPLY=($( compgen -W "$( PATH="$PATH:/sbin" lsmod |         awk '{if (NR != 1) print $1}' )" -- "$1" ))
    local PATH=$PATH:/sbin;
    local PATH="$PATH:/sbin:/usr/sbin";
    COMPREPLY+=($( compgen -W         "$( PATH="$PATH:/sbin" lspci -n | awk '{print $3}')" -- "$cur" ))
    local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin;
    COMPREPLY+=($( compgen -W         "$( PATH="$PATH:/sbin" lsusb | awk '{print $6}' )" -- "$cur" ))

 

 

i found the .bashrc file in /home/wermitgeht (=home/username)

I addet in there the string
export PATH=$PATH:/home/wermitgeht/mios32/bin

at the end of the file:

....

    . /etc/bash_completion
  fi
fi

export PATH=$PATH:/home/wermitgeht/mios32/bin

then I restardet the engine

 

still the same problem...

 

in aclipse I ereased then the Path Variable  - because it override the system Variables (i read that anywhere)

So have to clear this variable in Eclipse?

post-20788-0-25474100-1404057423_thumb.j

 

but error is still the same:

18:08:35 **** Build of configuration Default for project app_skeleton_cpp ****
make all
rm -f project.hex
Creating object file for main.c
make: arm-none-eabi-gcc: Kommando nicht gefunden
make: *** [project_build//home/wermitgeht/mios32/programming_models/traditional/main.o] Fehler 127

18:08:35 Build Finished (took 202ms)
Edited by Phatline
Link to comment
Share on other sites

Did you restart your x-server?

Because that evaluates the .bashrc when you log into it.

 

Can you try to open a shell and type the following?

 

export PATH=$PATH:/home/wermitgeht/mios32/bin

 

and then

 

arm-none-eabi-gcc --version

 

?

Link to comment
Share on other sites

-I restardet the laptop-

 

gave me this

wermitgeht@wasmitgeht:~$ export PATH=$PATH:/home/wermitgeht/mios32/bin
wermitgeht@wasmitgeht:~$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601]
Copyright © 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
e

 


i also addet the other lines to the .bashrec file (i wrote them at the end of the file after "fi"
export PATH=$PATH:/home/wermitgeht/mios32/bin
export MIOS32_PATH=/home/wermitgeht/mios32/
export MIOS32_BIN_PATH=/home/wermitgeht/mios32/bin
export MIOS32_GCC_PREFIX=arm-none-eabi
export MIOS32_FAMILY=LPC17xx
export MIOS32_PROCESSOR=LPC1769
export MIOS32_BOARD=MBHP_CORE_LPC17
export MIOS32_LCD=universal

 

then I deletet all Variables in eclipse

 

then i build - i become following error:

 

18:33:50 **** Incremental Build of configuration Default for project app_skeleton_cpp ****
make all
Makefile:53: /programming_models/traditional/programming_model.mk: Datei oder Verzeichnis nicht gefunden
Makefile:56: /modules/app_lcd//app_lcd.mk: Datei oder Verzeichnis nicht gefunden
Makefile:60: /include/makefile/common.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/include/makefile/common.mk« zu erstellen.  Schluss.

18:33:50 Build Finished (took 172ms)
Edited by Phatline
Link to comment
Share on other sites

Now, that is some progress - the PATH is correct now.

 

I don´t use eclipse, but it seems you are working from the wrong directory, or the MIOS sources are not subversion-checked-out completely.

I guess you checked out the mios sources into the directory /home/wermitgeht/mios32

 

Let´s try from the command-line...

 

can you open a shell, then

 

cd /home/wermitgeht/mios32/trunk/apps/sequencers/midibox_seq_v4

followed by

make

 

this should build the mbseq v4 for your platform. If not, please (re)checkout all sources via subversion to ./home/wermitgeht/mios32

 

Will have to leave the machine now, perhaps others can help from here on! :smile:

 

Many greets,

Peter

Edited by Hawkeye
Link to comment
Share on other sites

Thank you for the .bashrec thing :santa:  --- eclipse thing is still unsolved

 

I changed your command to:

cd /home/wermitgeht/mios32/apps/sequencers/midibox_seq_v4 (dont get trunk, hold hirachy low...)

and hit "make"

 

YES it is Working gave mi this:

 

wermitgeht@wasmitgeht:~$ cd /home/wermitgeht/mios32/apps/sequencers/midibox_seq_v4
wermitgeht@wasmitgeht:~/mios32/apps/sequencers/midibox_seq_v4$ make
rm -f project.hex
Creating object file for app.c
Creating object file for tasks.c
Creating object file for seq_hwcfg.c
Creating object file for seq_ui.c
Creating object file for seq_ui_todo.c
Creating object file for seq_ui_menu.c
Creating object file for seq_ui_bookmarks.c
Creating object file for seq_ui_edit.c
Creating object file for seq_ui_mute.c
Creating object file for seq_ui_pmute.c
Creating object file for seq_ui_pattern.c
Creating object file for seq_ui_pattern_remix.c
Creating object file for seq_ui_song.c
Creating object file for seq_ui_trkevnt.c
Creating object file for seq_ui_trkmode.c
Creating object file for seq_ui_trkdir.c
Creating object file for seq_ui_trkdiv.c
Creating object file for seq_ui_trklen.c
Creating object file for seq_ui_trktran.c
Creating object file for seq_ui_trkgrv.c
Creating object file for seq_ui_trkmorph.c
Creating object file for seq_ui_trkrnd.c
Creating object file for seq_ui_trkeuclid.c
Creating object file for seq_ui_trkrec.c
Creating object file for seq_ui_trgasg.c
Creating object file for seq_ui_fx.c
Creating object file for seq_ui_fx_echo.c
Creating object file for seq_ui_fx_humanize.c
Creating object file for seq_ui_fx_limit.c
Creating object file for seq_ui_fx_lfo.c
Creating object file for seq_ui_fx_dupl.c
Creating object file for seq_ui_fx_scale.c
Creating object file for seq_ui_manual.c
Creating object file for seq_ui_util.c
Creating object file for seq_ui_bpm.c
Creating object file for seq_ui_bpm_presets.c
Creating object file for seq_ui_opt.c
Creating object file for seq_ui_save.c
Creating object file for seq_ui_midi.c
Creating object file for seq_ui_sysex.c
Creating object file for seq_ui_disk.c
Creating object file for seq_ui_eth.c
Creating object file for seq_ui_metronome.c
Creating object file for seq_ui_midimon.c
Creating object file for seq_ui_mixer.c
Creating object file for seq_ui_cv.c
Creating object file for seq_ui_info.c
Creating object file for seq_ui_stepsel.c
Creating object file for seq_ui_trgsel.c
Creating object file for seq_ui_parsel.c
Creating object file for seq_ui_tracksel.c
Creating object file for seq_ui_trklive.c
Creating object file for seq_cv.c
Creating object file for seq_midi_port.c
Creating object file for seq_midi_in.c
Creating object file for seq_midi_sysex.c
Creating object file for seq_midi_router.c
Creating object file for seq_midply.c
Creating object file for seq_midexp.c
Creating object file for seq_midimp.c
Creating object file for seq_blm.c
Creating object file for seq_cc.c
Creating object file for seq_cc_labels.c
Creating object file for seq_core.c
Creating object file for seq_scale.c
Creating object file for seq_groove.c
Creating object file for seq_morph.c
Creating object file for seq_humanize.c
Creating object file for seq_lfo.c
Creating object file for seq_chord.c
Creating object file for seq_pattern.c
Creating object file for seq_record.c
Creating object file for seq_live.c
Creating object file for seq_file.c
Creating object file for seq_file_b.c
Creating object file for seq_file_m.c
Creating object file for seq_file_s.c
Creating object file for seq_file_g.c
Creating object file for seq_file_c.c
Creating object file for seq_file_gc.c
Creating object file for seq_file_t.c
Creating object file for seq_file_bm.c
Creating object file for seq_file_hw.c
Creating object file for seq_layer.c
Creating object file for seq_random.c
Creating object file for seq_trg.c
Creating object file for seq_par.c
Creating object file for seq_mixer.c
Creating object file for seq_song.c
Creating object file for seq_label.c
Creating object file for seq_lcd.c
Creating object file for seq_lcd_logo.c
Creating object file for seq_ui_fx_loop.c
Creating object file for seq_terminal.c
Creating object file for seq_statistics.c
Creating object file for seq_led.c
Creating object file for seq_tpd.c
Creating object file for main.c
Creating object file for strtol.c
Creating object file for tasks.c
/home/wermitgeht/mios32//FreeRTOS/Source/tasks.c: In function 'vTaskStartScheduler':
/home/wermitgeht/mios32//FreeRTOS/Source/tasks.c:1277:3: warning: implicit declaration of function 'FREERTOS_UTILS_PerfCounterInit' [-Wimplicit-function-declaration]
Creating object file for list.c
Creating object file for queue.c
Creating object file for timers.c
Creating object file for port.c
Creating object file for umm_malloc.c
Creating object file for startup_LPC17xx.c
Creating object file for mios32_srio.c
Creating object file for mios32_din.c
Creating object file for mios32_dout.c
Creating object file for mios32_enc.c
Creating object file for mios32_lcd.c
Creating object file for mios32_midi.c
Creating object file for mios32_osc.c
Creating object file for mios32_com.c
Creating object file for mios32_uart_midi.c
Creating object file for mios32_spi_midi.c
Creating object file for mios32_iic_midi.c
Creating object file for mios32_iic_bs.c
Creating object file for mios32_mf.c
Creating object file for mios32_sdcard.c
Creating object file for mios32_enc28j60.c
Creating object file for mios32_timestamp.c
Creating object file for mios32_bsl.c
Creating object file for mios32_sys.c
Creating object file for mios32_irq.c
Creating object file for mios32_spi.c
Creating object file for mios32_i2s.c
Creating object file for mios32_board.c
Creating object file for mios32_timer.c
Creating object file for mios32_stopwatch.c
Creating object file for mios32_delay.c
Creating object file for mios32_ain.c
Creating object file for mios32_usb.c
Creating object file for mios32_usb_midi.c
Creating object file for mios32_usb_com.c
Creating object file for mios32_uart.c
Creating object file for mios32_iic.c
Creating object file for printf-stdarg.c
Creating object file for core_cm3.c
Creating object file for usbhw_lpc.c
Creating object file for usbcontrol.c
/home/wermitgeht/mios32//drivers/LPC17xx/usbstack/src/usbcontrol.c: In function 'StallControlPipe':
/home/wermitgeht/mios32//drivers/LPC17xx/usbstack/src/usbcontrol.c:127:6: warning: variable 'pb' set but not used [-Wunused-but-set-variable]
Creating object file for usbstdreq.c
Creating object file for usbinit.c
Creating object file for app_lcd.c
Creating object file for glcd_font_normal.c
Creating object file for glcd_font_normal_inv.c
Creating object file for glcd_font_big.c
Creating object file for glcd_font_small.c
Creating object file for glcd_font_tiny.c
Creating object file for glcd_font_knob_icons.c
Creating object file for glcd_font_meter_icons_h.c
Creating object file for glcd_font_meter_icons_v.c
Creating object file for blm.c
Creating object file for blm_x.c
Creating object file for aout.c
Creating object file for seq_bpm.c
Creating object file for seq_midi_out.c
Creating object file for notestack.c
Creating object file for mid_parser.c
Creating object file for diskio.c
Creating object file for ccsbcs.c
Creating object file for ff.c
Creating object file for file.c
Creating object file for jsw_rand.c
Creating object file for freertos_utils.c
/home/wermitgeht/mios32//modules/freertos_utils/freertos_utils.c:171:12: warning: 'FREERTOS_UTILS_PrintBuffer' defined but not used [-Wunused-function]
Creating object file for uip.c
Creating object file for uip_arp.c
Creating object file for uiplib.c
Creating object file for psock.c
/home/wermitgeht/mios32//modules/uip/uip/psock.c: In function 'psock_send':
/home/wermitgeht/mios32//modules/uip/uip/psock.c:179:3: warning: variable 'PT_YIELD_FLAG' set but not used [-Wunused-but-set-variable]
/home/wermitgeht/mios32//modules/uip/uip/psock.c: In function 'psock_generator_send':
/home/wermitgeht/mios32//modules/uip/uip/psock.c:218:3: warning: variable 'PT_YIELD_FLAG' set but not used [-Wunused-but-set-variable]
/home/wermitgeht/mios32//modules/uip/uip/psock.c: In function 'psock_readto':
/home/wermitgeht/mios32//modules/uip/uip/psock.c:274:3: warning: variable 'PT_YIELD_FLAG' set but not used [-Wunused-but-set-variable]
/home/wermitgeht/mios32//modules/uip/uip/psock.c: In function 'psock_readbuf':
/home/wermitgeht/mios32//modules/uip/uip/psock.c:301:3: warning: variable 'PT_YIELD_FLAG' set but not used [-Wunused-but-set-variable]
Creating object file for timer.c
Creating object file for uip-neighbor.c
Creating object file for memb.c
Creating object file for clock-arch.c
Creating object file for network-device.c
Creating object file for lpc17xx_emac.c
Creating object file for uip_task.c
Creating object file for dhcpc.c
Creating object file for osc_server.c
Creating object file for osc_client.c
Creating object file for uip_terminal.c
Creating object file for mini_cpp.cpp
Creating object file for freertos_heap.cpp
-------------------------------------------------------------------------------
Application successfully built for:
Processor: LPC1769
Family:    LPC17xx
Board:     MBHP_CORE_LPC17
LCD:       universal
-------------------------------------------------------------------------------
arm-none-eabi-size project_build/project.elf
   text       data        bss        dec        hex    filename
 347212        496      63432     411140      64604    project_build/project.elf
10000000 B __ram_start
10007cd0 B __ram_end
2007c000 D __ram_start_ahb
20083ce8 B __ram_end_ahb

 

in eclipse i still get some missing Folders/Files when  i build:

 

19:46:27 **** Build of configuration Default for project midibox_seq_v4 ****
make all
Makefile:146: /programming_models/traditional/programming_model.mk: Datei oder Verzeichnis nicht gefunden
Makefile:149: /modules/app_lcd//app_lcd.mk: Datei oder Verzeichnis nicht gefunden
Makefile:152: /modules/blm/blm.mk: Datei oder Verzeichnis nicht gefunden
Makefile:155: /modules/blm_x/blm_x.mk: Datei oder Verzeichnis nicht gefunden
Makefile:158: /modules/aout/aout.mk: Datei oder Verzeichnis nicht gefunden
Makefile:161: /modules/sequencer/sequencer.mk: Datei oder Verzeichnis nicht gefunden
Makefile:164: /modules/notestack/notestack.mk: Datei oder Verzeichnis nicht gefunden
Makefile:167: /modules/midifile/midifile.mk: Datei oder Verzeichnis nicht gefunden
Makefile:170: /modules/fatfs/fatfs.mk: Datei oder Verzeichnis nicht gefunden
Makefile:173: /modules/file/file.mk: Datei oder Verzeichnis nicht gefunden
Makefile:176: /modules/random/random.mk: Datei oder Verzeichnis nicht gefunden
Makefile:179: /modules/freertos_utils/freertos_utils.mk: Datei oder Verzeichnis nicht gefunden
Makefile:182: /modules/uip/uip.mk: Datei oder Verzeichnis nicht gefunden
Makefile:185: /modules/uip_task_standard/uip_task_standard.mk: Datei oder Verzeichnis nicht gefunden
Makefile:189: /include/makefile/common.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/include/makefile/common.mk« zu erstellen.  Schluss.

19:46:27 Build Finished (took 78ms)

grüße von "nähe Linz" nach München :phone:

Edited by Phatline
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...