Qtopia compilation in fedora14

Source: Internet
Author: User
Tags crypt

When the strrchr function is used, the conversion from the 'const char * 'type to the 'Char *' type is invalid. The new version g ++ does not support an error.

Error 1:
Backend/vobject. cpp: In function 'vobject * addgroup (vobject *, const char *)':
Backend/vobject. cpp: 419: Error: Invalid conversion from 'const char * 'to 'Char *'

Modify/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia/backend/vobject. cpp: 419 rows
Char * dot = strrchr (G ,'.');
Char * dot = (char *) strrchr (G ,'.');

Error 2:
Wavplugin. cpp: In the member function 'virtual bool wavplugin: isfilesupported (const qstring:
Wavplugin. cpp: 435: 45: error: the conversion from type 'const char * 'to type 'Char *' is invalid.

Corrected/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin. cpp: 435 rows
Char * ext = strrchr (path. Latin1 (),'.');
Char * ext = (char *) strrchr (path. Latin1 (),'.');

Error 3:

/Usr/bin/ld:. OBJ/release-shared/transferserver. O: Undefined reference to symbol 'crypt @ glibc_2.0'
/Usr/bin/ld: Note: 'crypt @ glibc_2.0 'is defined in DSO/lib/libcrypt. so.1 so try adding it to the linker command line

This was found to use the crypt function for a long time without using-lcrypt, qtopia-2.2.0-FriendlyARM/qtopia/configure 1373 rows to join

Print config_pri "libs + =-lcrypt/N ";

As follows:

Print config_pri "qtopia_font_sizes = $ opt_fontsizes/N ";
Print config_pri "qtopia_font_families = $ opt_fontfamilies/N ";
Print config_pri "libs + =-lcrypt/N ";

Every time a build is modified, it is decompressed from qtopia-2.2.0.tar.gz. then, the files in qtopia-2.2.0.tar.gz are modified, or the files in each build will be overwritten.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.