It is important to test a new library installation, verifying that the header files can be located and library linked into your code. In this video, an issue is resolved where the header files cannot be found. Sample code shows how to display the XML prolog, outputting the XML version and encoding information.
- [Instructor] To test the libxml2 library installation, … I'm using this code, … which outputs the library's version number. … The header file at line 2 must be included. … Libxml/xmlversion.h … Now there's a problem in that … your installation may not have copied the header files … to the libxml folder. … They may instead be in a subfolder of libxml2, … and this issue must be addressed. … In a terminal window, … I'm going to save the current directory, … and then I'm going to go … to where the header files are stored in Unix, … the usr/include directory. … And what I want to look for … is to see if the libxml2 header file directory … has been installed here. … And, indeed, libxml2 is installed with a subdirectory … of libxml, which is where the header files are located. … This isn't good enough, … so we need to use some Unix kung fu to fix the situation. … I'm going to create an alias … in the usr/local/include directory … that's going to handle this problem for us. … What we need to do is to create an alias, or a link, …
- Finding, installing, and linking libraries
- Accessing and generating XML data
- Working with JSON
- Working with the libcurl library
- Text programming
- Reading, writing, and manipulating JPEG images
- Working with PNG images
Skill Level Advanced
1. Setup and Configuration
2. Data Structures
3. Web Access
4. Text Programming
5. Computer Graphics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.