Sponsored Content
Top Forums UNIX for Advanced & Expert Users Pango 1.20 does not compile when passing Cairo or X server packages as backends Post 303042598 by Neo on Wednesday 1st of January 2020 01:24:27 AM
Old 01-01-2020
You will get some good knowledge and benefit if you learn how to use the -L and -I flags when you use gcc.

Code:
https://www.unix.com/man-page/linux/1/x86_64-linux-gnu-gcc/

Code:
gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...] [-mmachine-option...] [-o outfile] [@file] infile...

Code:
Linker Options
object-file-name -llibrary -nostartfiles -nodefaultlibs -nostdlib -pie -rdynamic -s -static -static-libgcc -shared -shared-libgcc -symbolic -T script -Wl,option -Xlinker option -u symbol
Directory Options
-Bprefix -Idir -iquotedir -Ldir -specs=file -I- --sysroot=dir

We see this kinds of "I tried to compile and get errors" posts all the time.

The solution is always the same.

For libs, look in your filesystem for the missing files. If they are missing, install them. If they are already installed; include the full path of the directory where the libs are installed using the -L flag.

For header files, look in your filesystem for the missing files. If they are missing, install them. If they are already installed; include the full path of the directory where the header files are installed using the -I flag.

That is all there is to it..... it is not rocket science to read the error messages, look for the missing files, install them when the are missing (if you need them) and to use the appropriate flags to includes those directories and files in your makefile or gcc command like code.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find Packages running on a server

On a HP machine I used this /usr/sbin/cmviewcl But on a Sun machine what is the command to find out the packages installed on it. Thanks (4 Replies)
Discussion started by: venu_nbk
4 Replies

2. Solaris

Should I delete openssl SFW packages and compile

I have a new solaris 10 install and would like to install the 64 bit versions. When I installed other packaged (mysql, gcc), I removed the preinstalled verion first. These are the currently installed packages and which should be removed (if any). Thank you system SUNWopenssl-commands ... (2 Replies)
Discussion started by: csross
2 Replies

3. Shell Programming and Scripting

Shell Script to query packages from a http server.

Hello Unix Gurus, Does anybody have an idea on how to verify packages exist on a remote or ftp server connected through http. Here is my task at hand. We have a central repository in which we retrieve our packages. eg. http://packageserver/packages. What i have done is compiled a list of... (2 Replies)
Discussion started by: liketheshell
2 Replies

4. Programming

client/server compile question

Hi, I have 2 files-->server.c and client.c My server.c takes local ip as saying: *.sin_addr.s_addr=INADDR_ANY; client.c is in the same machine.It has a line like: *.sin_addr.s_addr=inet_addr(argv); I don't know how to compile.I tried ./client 127.0.0.1 It used port 7777 in both client... (2 Replies)
Discussion started by: mlhazan
2 Replies

5. Programming

Top v3.7 and v3.8beta1 will not compile on Power7/AIX6.1 server.

Please help! We are upgrading our server to a new Power7/AIX6.1 from Power5/AIX5.3. I have some programs that rely on output of the TOP command to do various things, however, I keep getting an error when I try to re-compile TOP on my new server (see below). I have tried TOP 3.7 (current... (1 Reply)
Discussion started by: troym72
1 Replies

6. UNIX for Dummies Questions & Answers

Installing deb packages from Ubuntu Server CD

Hi, I have mounted the Ubuntu server edition 10.10 ISO on my server under a directory media/servercd. I would like to install some services from this. I edited the sources.list file to say: deb file:/media/servercd maverick main restricted and it's properly mounted but when I try... (1 Reply)
Discussion started by: shadowcat
1 Replies

7. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

8. UNIX for Advanced & Expert Users

How to find required packages needed by cairo?

Hello, I am currently trying to install and old version of Cairo. I tried two versions, 10.5 and 1.1.1 and they say similar things. Pango 1.1.1 says: and Pango 1.0.5 says: So quite similar. I downloaded two freetype packages, versions number 2.9.1 and 2.2.1 and passed them through... (2 Replies)
Discussion started by: colt
2 Replies
Gtk2::index(3)						User Contributed Perl Documentation					    Gtk2::index(3)

NAME
Gtk2 - API Reference Pod Index PAGES
Gtk2::AboutDialog Gtk2::AccelGroup Gtk2::AccelLabel Gtk2::AccelMap Gtk2::Accelerator Gtk2::Action Gtk2::ActionGroup Gtk2::Adjustment Gtk2::Alignment Gtk2::Arrow Gtk2::AspectFrame Gtk2::Assistant Gtk2::Bin Gtk2::BindingSet Gtk2::Box Gtk2::Buildable Gtk2::Buildable::ParseContext Gtk2::Builder Gtk2::Button Gtk2::ButtonBox Gtk2::Calendar Gtk2::CellEditable Gtk2::CellLayout Gtk2::CellLayout::DataFunc Gtk2::CellRenderer Gtk2::CellRendererAccel Gtk2::CellRendererCombo Gtk2::CellRendererPixbuf Gtk2::CellRendererProgress Gtk2::CellRendererSpin Gtk2::CellRendererText Gtk2::CellRendererToggle Gtk2::CellView Gtk2::CheckButton Gtk2::CheckMenuItem Gtk2::Clipboard Gtk2::ColorButton Gtk2::ColorSelection Gtk2::ColorSelectionDialog Gtk2::Combo Gtk2::ComboBox Gtk2::ComboBoxEntry Gtk2::Container Gtk2::Curve Gtk2::Dialog Gtk2::Drag Gtk2::DrawingArea Gtk2::Editable Gtk2::Entry Gtk2::EntryCompletion Gtk2::EventBox Gtk2::Expander Gtk2::FileChooser Gtk2::FileChooserButton Gtk2::FileChooserDialog Gtk2::FileChooserWidget Gtk2::FileFilter Gtk2::FileSelection Gtk2::Fixed Gtk2::FontButton Gtk2::FontSelection Gtk2::FontSelectionDialog Gtk2::Frame Gtk2::GC Gtk2::GammaCurve Gtk2::Gdk Gtk2::Gdk::Atom Gtk2::Gdk::Bitmap Gtk2::Gdk::Cairo::Context Gtk2::Gdk::Color Gtk2::Gdk::Colormap Gtk2::Gdk::Cursor Gtk2::Gdk::Device Gtk2::Gdk::Display Gtk2::Gdk::DisplayManager Gtk2::Gdk::DragContext Gtk2::Gdk::Drawable Gtk2::Gdk::Event Gtk2::Gdk::Event::Button Gtk2::Gdk::Event::Client Gtk2::Gdk::Event::Configure Gtk2::Gdk::Event::Crossing Gtk2::Gdk::Event::DND Gtk2::Gdk::Event::Expose Gtk2::Gdk::Event::Focus Gtk2::Gdk::Event::GrabBroken Gtk2::Gdk::Event::Key Gtk2::Gdk::Event::Motion Gtk2::Gdk::Event::NoExpose Gtk2::Gdk::Event::OwnerChange Gtk2::Gdk::Event::Property Gtk2::Gdk::Event::Proximity Gtk2::Gdk::Event::Scroll Gtk2::Gdk::Event::Selection Gtk2::Gdk::Event::Setting Gtk2::Gdk::Event::Visibility Gtk2::Gdk::Event::WindowState Gtk2::Gdk::GC Gtk2::Gdk::Geometry Gtk2::Gdk::Input Gtk2::Gdk::Keymap Gtk2::Gdk::Pango::AttrEmbossColor Gtk2::Gdk::Pango::AttrEmbossed Gtk2::Gdk::Pango::AttrStipple Gtk2::Gdk::PangoRenderer Gtk2::Gdk::Pixbuf Gtk2::Gdk::PixbufAnimation Gtk2::Gdk::PixbufAnimationIter Gtk2::Gdk::PixbufFormat Gtk2::Gdk::PixbufLoader Gtk2::Gdk::PixbufSimpleAnim Gtk2::Gdk::Pixmap Gtk2::Gdk::Rectangle Gtk2::Gdk::Region Gtk2::Gdk::Rgb Gtk2::Gdk::Screen Gtk2::Gdk::Selection Gtk2::Gdk::Threads Gtk2::Gdk::Visual Gtk2::Gdk::Window Gtk2::Gdk::X11 Gtk2::HBox Gtk2::HButtonBox Gtk2::HPaned Gtk2::HRuler Gtk2::HScale Gtk2::HScrollbar Gtk2::HSeparator Gtk2::HandleBox Gtk2::IMContext Gtk2::IMContextSimple Gtk2::IMMulticontext Gtk2::IconFactory Gtk2::IconInfo Gtk2::IconSet Gtk2::IconSize Gtk2::IconSource Gtk2::IconTheme Gtk2::IconView Gtk2::Image Gtk2::ImageMenuItem Gtk2::InputDialog Gtk2::Invisible Gtk2::Item Gtk2::ItemFactory Gtk2::Label Gtk2::Layout Gtk2::LinkButton Gtk2::List Gtk2::ListItem Gtk2::ListStore Gtk2::Menu Gtk2::MenuBar Gtk2::MenuItem Gtk2::MenuShell Gtk2::MenuToolButton Gtk2::MessageDialog Gtk2::Misc Gtk2::Notebook Gtk2::Object Gtk2::OptionMenu Gtk2::Orientable Gtk2::PageSetup Gtk2::Paned Gtk2::Pango::AttrBackground Gtk2::Pango::AttrColor Gtk2::Pango::AttrFallback Gtk2::Pango::AttrFamily Gtk2::Pango::AttrFontDesc Gtk2::Pango::AttrForeground Gtk2::Pango::AttrGravity Gtk2::Pango::AttrGravityHint Gtk2::Pango::AttrInt Gtk2::Pango::AttrIterator Gtk2::Pango::AttrLanguage Gtk2::Pango::AttrLetterSpacing Gtk2::Pango::AttrList Gtk2::Pango::AttrRise Gtk2::Pango::AttrScale Gtk2::Pango::AttrShape Gtk2::Pango::AttrSize Gtk2::Pango::AttrStretch Gtk2::Pango::AttrStrikethrough Gtk2::Pango::AttrStrikethroughColor Gtk2::Pango::AttrString Gtk2::Pango::AttrStyle Gtk2::Pango::AttrUnderline Gtk2::Pango::AttrUnderlineColor Gtk2::Pango::AttrVariant Gtk2::Pango::AttrWeight Gtk2::Pango::Attribute Gtk2::Pango::Cairo Gtk2::Pango::Cairo::Context Gtk2::Pango::Cairo::Font Gtk2::Pango::Cairo::FontMap Gtk2::Pango::Color Gtk2::Pango::Context Gtk2::Pango::Font Gtk2::Pango::FontDescription Gtk2::Pango::FontFace Gtk2::Pango::FontFamily Gtk2::Pango::FontMap Gtk2::Pango::FontMetrics Gtk2::Pango::Fontset Gtk2::Pango::Gravity Gtk2::Pango::Language Gtk2::Pango::Layout Gtk2::Pango::LayoutIter Gtk2::Pango::LayoutLine Gtk2::Pango::Matrix Gtk2::Pango::Renderer Gtk2::Pango::Script Gtk2::Pango::ScriptIter Gtk2::Pango::TabArray Gtk2::Pango::version Gtk2::PaperSize Gtk2::Plug Gtk2::Print Gtk2::PrintContext Gtk2::PrintOperation Gtk2::PrintOperationPreview Gtk2::PrintSettings Gtk2::ProgressBar Gtk2::RadioAction Gtk2::RadioButton Gtk2::RadioMenuItem Gtk2::RadioToolButton Gtk2::Range Gtk2::Rc Gtk2::RcStyle Gtk2::RecentAction Gtk2::RecentChooser Gtk2::RecentChooserDialog Gtk2::RecentChooserMenu Gtk2::RecentChooserWidget Gtk2::RecentFilter Gtk2::RecentInfo Gtk2::RecentManager Gtk2::Requisition Gtk2::Ruler Gtk2::Scale Gtk2::ScaleButton Gtk2::Scrollbar Gtk2::ScrolledWindow Gtk2::Selection Gtk2::SelectionData Gtk2::Separator Gtk2::SeparatorMenuItem Gtk2::SeparatorToolItem Gtk2::SizeGroup Gtk2::Socket Gtk2::SpinButton Gtk2::StatusIcon Gtk2::Statusbar Gtk2::Stock Gtk2::Style Gtk2::Table Gtk2::TargetEntry Gtk2::TargetList Gtk2::TearoffMenuItem Gtk2::TextAttributes Gtk2::TextBuffer Gtk2::TextChildAnchor Gtk2::TextIter Gtk2::TextMark Gtk2::TextTag Gtk2::TextTagTable Gtk2::TextView Gtk2::ToggleAction Gtk2::ToggleButton Gtk2::ToggleToolButton Gtk2::ToolButton Gtk2::ToolItem Gtk2::ToolShell Gtk2::Toolbar Gtk2::Tooltip Gtk2::Tooltips Gtk2::TreeDragDest Gtk2::TreeDragSource Gtk2::TreeIter Gtk2::TreeModel Gtk2::TreeModelFilter Gtk2::TreeModelSort Gtk2::TreePath Gtk2::TreeRowReference Gtk2::TreeSelection Gtk2::TreeSortable Gtk2::TreeSortable::IterCompareFunc Gtk2::TreeStore Gtk2::TreeView Gtk2::TreeViewColumn Gtk2::UIManager Gtk2::VBox Gtk2::VButtonBox Gtk2::VPaned Gtk2::VRuler Gtk2::VScale Gtk2::VScrollbar Gtk2::VSeparator Gtk2::Viewport Gtk2::VolumeButton Gtk2::Widget Gtk2::Window Gtk2::WindowGroup Gtk2::main Gtk2::version perl v5.12.1 2010-07-05 Gtk2::index(3)
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy