Mginit problem when worker tuminigui installs the final running program
Source: Internet
Author: User
The mginit problem occurs when worker tuminigui installs the final program-Linux general technology-Linux technology and application information. The following is a detailed description. I use ubuntu8.0.4.
1. Install the miniguiresource file, minigui-res-1.6.10.tar.gz, and the resources used by miniGUI, including the basic font, icon, bitmap, mouse, and cursor.
Decompress the resource package minigui-res-1.6.10.tar.gz,/work/minigui/is the working directory of my minigui.
Tar-xvzf minigui-res-1.6.10.tar.gz-C/work/minigui/
# Enter the decompressed Resource Directory for Installation
Cd/work/minigui/minigui-res-1.6.10/
Make install
# If Permission denied is prompted, the Permission is incorrect. Run the command as root or use sudo before the command.
# If the resource file does not need to be compiled, install the file directly and perform a simple copy operation. The resource contains icons and cursors.
2. Install the libminigui-1.6.10.tar.gz file and the source code of the MiniGUI function library, including libminigui, libmgext, and libvcongui.
# The lib file is the library file. It should be the core part of the library that supports programming using minigui.
# The source code needs to be compiled by yourself, which may take a long time. Of course, the first step is to decompress the package.
Tar-xvzf libminigui-1.6.10.tar.gz-C/work/minigui/
# Enter the decompressed source code directory
Cd/work/minigui/libminigui-1.6.10/
# Configuration, compilation, and installation
./Configure
Make
Make install
# The default installation path is "/usr/local/lib/". After the installation is complete, you can see the library file "libminigui.
# In some documents, add the path/usr/local/lib/to the lib search path. The related configuration file is "/etc/ld. so. conf ".
# However, this configuration file contains "/etc/ld. so. conf. d/", which contains the"/usr/local/lib "path.
3. Install qvfb.
# MiniGUI is based on the frame cache, rather than the X Window on the PC platform at ordinary times. Therefore, qvfb needs to simulate the frame cache to run the display effect.
You can use qvfb-1.1.tar.gz to install qvfbby using ghost. However, I encountered an error when installing./configure. Fortunately, there is a software package in the ubuntu source that contains qvfb.
Sudo apt-get install qt3-dev-tools-embedded
# Run qvfb on the terminal and you will see the window. There are also some configuration options.
The header file cannot be found :. /configure -- with-qt-dir =/usr/share/qt3/-- with-qt-separated des =/usr/include/qt3/-- with-qt-libraries =/usr/ lib
4. Supports dig and png, dig src.v6b.tar.gz, and libpng_src.tgz.
# Decompress the package to the working directory
Tar-xvzf restart src.v6b.tar.gz-C/work/minigui/
Tar-xvzf libpng_src.tgz-C/work/minigui/
# Enter the decompressed source code directory and compile
Cd/work/minigui/jpeg-6b/
Make install
Cd/work/minigui/libpng
Make install
5. Compile and test the sample code of the miniguiprogramming example, and then run the *** samples-1.6.10.tar.gz command.
#《Miniguiprogramming example can be downloaded from the official website. All the examples on the manual are in * samples-1.6.10.tar.gz.
Tar-xvzf mg-samples-1.6.10.tar.gz-C/work/minigui/
Cd/work/minigui/mg-samples-1.6.10/
./Configure
Make
# After compilation, many executable files are generated under the source code directory.
6. Use qvfb to test the example.
# Open the terminal and run qvfb. Be sure to run it in the background.
Qvfb &
# At this time, you can see the window for running the program. In File, you can set the window size. According to the following prompt, first select the window size as 640*480 "VGA ", otherwise, subsequent operations are also incorrect.
# Open the sample program, such as helloworld.
./Helloworld
# Now we can see the window where the "helloworld" program runs.
When step 6 is run,./helloworld is displayed.
"Attachsharedresource: no such file or directory"
"Initgui (step 8): can not attach shared resource, please run 'mginit 'first"
I entered the mg-samples-1.6.10/src directory and couldn't find mginit, only the mginit. c file, there are a lot of errors with gcc Compilation
I haven't found a solution for a long time on the Internet. Could you tell me how to solve this problem. Thank you ~~
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service