Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trying to native compile Linux Dialog Post 302301241 by jack2 on Thursday 26th of March 2009 09:31:05 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
POPULARITY-CONTEST(8)													     POPULARITY-CONTEST(8)

NAME
popularity-contest - list the most popular Debian packages SYNOPSIS
popularity-contest DESCRIPTION
The popularity-contest command gathers information about Debian packages installed on the system, and prints the name of the most recently used executable program in that package as well as its last-accessed time (atime) and last-attribute-changed time (ctime) to stdout. When aggregated with the output of popularity-contest from many other systems, this information is valuable because it can be used to determine which Debian packages are commonly installed, used, or installed and never used. This helps Debian maintainers make decisions such as which packages should be installed by default on new systems. The resulting statistic is available from the project home page https://popcon.debian.org/. Normally, popularity-contest is run from a cron(8) job, /etc/cron.daily/popularity-contest, which automatically submits the results to Debian package maintainers (only once a week) according to the settings in /etc/popularity-contest.conf and /usr/share/popularity-con- test/default.conf. SEE ALSO
The popularity-contest FAQ at /usr/share/doc/popularity-contest/FAQ popcon-largest-unused(8), cron(8) Additional documentation is in /usr/share/doc/popularity-contest/. AUTHOR
Avery Pennarun <apenwarr@debian.org>. Debian/GNU Linux November 2001 POPULARITY-CONTEST(8)
All times are GMT -4. The time now is 01:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy