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
LEMON(1)						    BSD General Commands Manual 						  LEMON(1)

NAME
lemon -- The Lemon Parser Generator SYNOPSIS
lemon [-bcgmqsx] input DESCRIPTION
lemon is an LALR(1) parser generator for C or C++. It does the same job as bison and yacc. But lemon is not another bison or yacc clone. It uses a different grammar syntax which is designed to reduce the number of coding errors. lemon also uses a more sophisticated parsing engine that is faster than yacc and bison and which is both reentrant and thread-safe. Furthermore, lemon implements features that can be used to eliminate resource leaks, making is suitable for use in long-running programs such as graphical user interfaces or embedded con- trollers. lemon will read the grammer from input and write out a parser for that grammar in the C language. OPTIONS
-b Print only the basis in report. -c Don't compress the action table. -g Print grammar without actions. -m Output a makeheaders compatible file. -q (Quiet) Don't print the report file. -s Print parser stats to standard output. -x Print the version number. FILES
/usr/share/lemon/lempar.c Driver template for the lemon parser generator. AUTHOR
lemon has been written by D. Richard Hipp <drh@hwaci.com>. This manual page was written by Guus Sliepen <guus@debian.org> for the Debian GNU/Linux system. Debian GNU/Linux June 1, 2019 Debian GNU/Linux
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy