Problem Running NXTTOOLS

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
behanius
Posts: 8
Joined: 18 May 2011, 20:05

Problem Running NXTTOOLS

Post by behanius »

Hello,

I am currently trying to run 'nxttools' on an Ubuntu 10.04 LTS (64-bit) and cannot run the program. This is my error message:

>nxttools: 1: Syntax error: "(" unexpected

and I do have permissions to execute the file (output of ls -ao)

>-rwxrwx--- 1 behanius 6701444 2010-05-25 17:10 nxttools

I resorted to running nxttools from the terminal (Bash) as trying to execute through Gnome leads to no response.

Any help is appreciated, thank you.

- Behanius
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Problem Running NXTTOOLS

Post by afanofosc »

I can't tell what you are running and what parameters you are passing. Can you post your full command line that you type in the terminal window? nxttools is a command line application without any GUI so it cannot be run by double clicking on the executable. If you prefer GUI tools you can use NeXTTools for Linux or my early release binary of NeXT Command Center (nxtcc) for Linux.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
behanius
Posts: 8
Joined: 18 May 2011, 20:05

Re: Problem Running NXTTOOLS

Post by behanius »

I'm trying to run NeXT Tools via http://bricxcc.sourceforge.net/nexttools_linux.zip

After I extract the zip, I try to run the file 'nxttools' with 'sudo sh nxttools' (yes, I am root).

The error message and system parameters are in my first post and are still relevant. Also, I'm not sure of the parameters you are referring to as I did not find documentation for such features for this program.

Hopefully this yields more info.
behanius
Posts: 8
Joined: 18 May 2011, 20:05

Re: Problem Running NXTTOOLS

Post by behanius »

Instead of providing a binary file is it possible to post the source for NeXT Tools?
bullestock
Posts: 27
Joined: 29 Sep 2010, 19:34
Location: Denmark
Contact:

Re: Problem Running NXTTOOLS

Post by bullestock »

behanius wrote:I'm trying to run NeXT Tools via http://bricxcc.sourceforge.net/nexttools_linux.zip

After I extract the zip, I try to run the file 'nxttools' with 'sudo sh nxttools' (yes, I am root).

Code: Select all

torsten@czernobog$ file nxttools 
nxttools: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
That is, nxttools is a compiled program, not a shell script, so simply run it with

Code: Select all

./nxttools
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Problem Running NXTTOOLS

Post by afanofosc »

The source code for all my tools is available in the BricxCC SVN repository. To build NeXT Tools for Linux you will need FreePascal and Lazarus installed for Linux. Then you can simply use the toolsunix.mak to make nxttools or nxtcc. Here's a URL that shows what this makefile looks like:

http://bricxcc.svn.sourceforge.net/view ... xt%2Fplain

You would modify this file, if needed, to point to where you have Lazarus/FreePascal installed.

make -ftoolsunix.mak nxttools realclean
make -ftoolsunix.mak nxttools

The command line tool called nexttool can be built using nexttool.mak:

http://bricxcc.svn.sourceforge.net/view ... xt%2Fplain

Hope this helps,

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
behanius
Posts: 8
Joined: 18 May 2011, 20:05

Re: Problem Running NXTTOOLS

Post by behanius »

Thank you both bullestock and alanofosc. I'm up and running and look forward to tinkering!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest