Trying to native compile Linux Dialog


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Trying to native compile Linux Dialog
# 1  
Old 03-26-2009
Trying to native compile Linux Dialog

Hi,

as my thread has been moved to Debian.
I don't run Debian machine.
My machine is Linux embedded router - mipsel.
Sources come from Debian, but Dialog sources are GNU,
so no Debian specific.

Native compilation vs. crosscompilation,
exactly to let you know, that I don't run Debian machine.

Today native compiled Dialog once again.
No errors.

Code:
LEDIR=\"/opt/dialog/share/locale\" -c textbox.c
gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/opt/dialog/share/locale\" -c ui_getc.c
gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/opt/dialog/share/locale\" -c util.c
gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/opt/dialog/share/locale\" -c version.c
gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/opt/dialog/share/locale\" -c yesno.c
ar -cr libdialog.a trace.o rc.o calendar.o fselect.o timebox.o formbox.o guage.o pause.o progressbox.o tailbox.o mixedform.o mixedgauge.o arrows.o buttons.o checklist.o columns.o dlg_keys.o editbox.o inputbox.o inputstr.o menubox.o mouse.o mousewget.o msgbox.o textbox.o ui_getc.o util.o version.o yesno.o
ranlib libdialog.a
gcc -g -O2  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -I. -I. -DLOCALEDIR=\"/opt/dialog/share/locale\" -c dialog.c
gcc -o dialog dialog.o -L. -ldialog  -lncurses  -lm -L/lib
[admin@oo dialog]$ make install
making install
./mkdirs.sh /opt/dialog/bin
mkdir /opt/dialog/bin
/opt/bin/install -c dialog /opt/dialog/bin/`echo dialog |sed s,x,x,`
./mkdirs.sh /opt/dialog/man/man1
mkdir /opt/dialog/man
mkdir /opt/dialog/man/man1
/opt/bin/install -c -m 644 ./dialog.1 /opt/dialog/man/man1/`echo dialog |sed s,x,x,`.1
made install
[admin@oo dialog]$ dialog
-sh: dialog: not found
[admin@oo dialog]$ cd .
[admin@oo dialog]$ /
-sh: /: Permission denied
[admin@oo dialog]$ cd .
[admin@oo dialog]$ cd ..
[admin@oo /opt]$ cd ..
[admin@oo /]$ mc

[admin@oo /]$ dialog
-sh: dialog: not found
[admin@oo /]$ cd opt/dialog
[admin@oo dialog]$ dialog
-sh: dialog: not found
[admin@oo dialog]$

Could you kindly
Trying to native compile Debian Dialog
# 2  
Old 03-27-2009
It looks like it's not in your shell's search path.

Go to the directory where the dialog binary is and do

./dialog

To make sure the file is there, do

ls ./dialog

HTH
# 3  
Old 03-29-2009
Quote:
Originally Posted by mgessner
It looks like it's not in your shell's search path.

Go to the directory where the dialog binary is and do

./dialog

To make sure the file is there, do

ls ./dialog

HTH
I have added path, exported path and it worked as in your example only.
My friend helped me a lot and now I can run
dialog from a command line from any directory.

It works really excellent as I try some examples from the next
and changing directory each time was a nightmare.

thanks

Jack

[admin@oo bin]$ dialog
cdialog (ComeOn Dialog!) version 1.1-20080819

[admin@oo /]$ dialog
cdialog (ComeOn Dialog!) version 1.1-20080819

[admin@oo /tmp]$ dialog
cdialog (ComeOn Dialog!) version 1.1-20080819
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Wanna learn native GUI programming in UNIX - Linux ?

Hi , wanna learn native GUI programming in Unix-Linux instead of Gtk and Qt. No problem. You don't need a cross platform Gui toolkit like Gtk and Qt. And the code and syntax is also not more or less than others. Check out this code for a simple mainwindow for your application that is openend in... (0 Replies)
Discussion started by: Sennenmut
0 Replies

2. UNIX for Beginners Questions & Answers

Keep Linux in english while windows in native language

hi, I want that a language change in windows won't effect Linux language (which should be always English). I had that feature but A Windows update changed it. How can I fix it? (7 Replies)
Discussion started by: daivon
7 Replies

3. Linux

GUI for a Linux router - WWW or ncurses Dialog ?

Hi, Linux router is my only "full" Linux application. I native compiled and installed Linux Unix dialog utility. Dialog comes with a limited set of objects, called widgets. Some work fine, some need improvements. But what I really need is graphical interface to shell scripts run on my... (0 Replies)
Discussion started by: jack2
0 Replies

4. Shell Programming and Scripting

Unix / Linux Dialog Utility - how to open 2+ more dialog windows ?

Hi, example of Unix / Linux dialog utility is below. I am going to use dialog as simple GUI for testing of a modem. So I need to combine some dialog boxes into one. I need to have input box, output box, info box, dialog box, radiobox as in any standard program with graphical user... (2 Replies)
Discussion started by: jack2
2 Replies

5. Debian

Trying to native compile Debian Dialog

Hi, tried to native compile Debian Dialog as ncurses-dev is available. I am trying native compile Debian Dialog using gcc on Linux embedded router. What's wrong, as running than make I get errors. Mayby this line in the log file is an exaplanation to a problem ? " checking if we have... (1 Reply)
Discussion started by: jack2
1 Replies

6. UNIX for Dummies Questions & Answers

HoHow to compile Linux dialog - "curses.h" missing ?

Hi, I tried native compile Linux dialog for Linux embedded device and got "curses.h" error message. As Linux dialog is already compiled and working as Debian .deb package (installed it). What is a way to import curses.h from other package sources to work for dialog sources compilation in my... (2 Replies)
Discussion started by: darius2
2 Replies

7. UNIX for Dummies Questions & Answers

Compile C++ under linux, need help

I am a Linux noob, and have been trying to compile some source in Linux and I am lost. I am a game modder and I have some open source code which I have compiled in windows a million times but now I need to compile in Linux. If this thread fails to help me, I will credit anyone who can... (4 Replies)
Discussion started by: fire_noob
4 Replies

8. Programming

compile C under linux?

hi everyone, i am a beginner of C and doing a subject which involved c programming under unix. i tried compile the c program under linux. but i can only get the a.out file in /usr/bin, not in the current dir. can anyone know how to change the sys. configration. Please help. thanks (2 Replies)
Discussion started by: ctchung
2 Replies

9. UNIX for Dummies Questions & Answers

format to linux native?

hi again all, i am still trying to get my old win95 pc to become a unix/linux pc, running with redhat. i managed to install it on my old win32/fat partition (which is the whole hdd), but when i did this it said it may result in lower operating speed, but i couldn't manage to create a linux native... (2 Replies)
Discussion started by: gan
2 Replies
Login or Register to Ask a Question

Featured Tech Videos