Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Actual progress - now on gtk itself: (7 Items)
   
Actual progress - now on gtk itself  
Only minor tweaking lead me really to the build of gtk! All dependencies are build - I'm happy! Patches are committed.

The library itself is compiled successfully, but then comes this the error message 8-( :
GDK_PIXBUF_MODULE_FILE=../gdk-pixbuf/gdk-pixbuf.loaders ./gtk-update-icon-cache --force --ignore-theme-index            
\
           --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
        mv gtkbuiltincache.h.tmp gtkbuiltincache.h
GLib: Cannot convert message: Conversion from character set 'UTF-8' to 'C' is not supported
No theme index file in '--force'.
If you really want to create an icon cache here, use --ignore-theme-index.
gmake[2]: *** [gtkbuiltincache.h] Error 1
gmake[2]: Leaving directory `/usr/src/HEAD/pkgsrc/x11/gtk2/work/gtk+-2.12.0/gtk'


Here is the list of newly build and packaged packages:

libX11-1.1.3        Base X libraries from modular Xorg X11
fixesproto-4.0      Fixes extension headers from X.org
compositeproto-0.4  Composite extension headers from modular X.org
damageproto-1.1.0   Damage extension headers from modular X.org
evieext-1.0.2       EvIE extension headers
fontsproto-2.0.2    Fonts extension headers from X.org
randrproto-1.2.1    Randr extension headers from modular X.org
renderproto-0.9.2   Render extension headers from modular X.org
resourceproto-1.0.2 Resource extension headers from X.org
scrnsaverproto-1.1.0 ScrnSaver extension headers from X.org
libXext-1.0.3       X Extension library
libXi-1.1.3         X Input extension library
trapproto-3.4.3     Trap extension headers
videoproto-2.2.2    Video extension headers from modular X.org X11
xf86dgaproto-2.0.2  XF86DGA extension headers
glproto-1.4.8       GL extension headers
glib2-2.14.1        Some useful routines for C programming (glib2)
py-gobject-shared-2.12.3 Python bindings for glib2 gobject
xineramaproto-1.1.2 Xinerama extension headers from X.org
xdg-dirs-1.4        Shared XDG directories
libXfixes-4.0.3     Xfixes library and extension of X RandR from modular X.org
libXrender-0.9.2    X Render Library
libXcursor-1.1.8    Client-side cursor loading library for X
libXinerama-1.0.2   X PanoramiX extension library
libXrandr-1.2.2     X RandR Library from X.org
libICE-1.0.3        Inter Client Exchange (ICE) library for X
libSM-1.0.3         X Session Management Library
libXt-1.0.5         X Toolkit Intrinsics library
atk-1.20.0          Set of interfaces for accessibility
freetype2-2.3.5     Font rendering engine and library API
expat-2.0.1         XML parser library written in C
fontconfig-2.4.2nb3 Library for configuring and customizing font access
libXft-2.1.12       Library for configuring and customizing font access
makedepend-1.0.1    Dependency generator for make
MesaLib-6.4.2nb3    Graphics library similar to SGI's OpenGL
glitz-0.5.6nb2      OpenGL 2D graphics library and a backend for gl output in cairo
cairo-1.4.10        Vector graphics library with cross-device output support
pango-1.18.2        Library for layout and rendering of text
Re: Actual progress - now on gtk itself  
Christian, 

Did you succeed in building gtk finally? I'm trying to build in now, and I encountered error when building libX11 
package:

"checking dependency style of qcc... (cached) gcc3
checking for cpp... no
checking for ucpp... no
checking if qcc -E requires -undef... cc: no files to process
cc: unknown option: '-undef'
configure: error: qcc -E defines unix with or without -undef.  I don't know what to do.
*** Error code 1

Stop.
bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11"

I've tried to add USE_LANGUAGES+= c++ in the usr/pkg/etc/mk.conf file. What can be done to build this package? Thanks 
for any advice.
Re: Actual progress - now on gtk itself  
On Wed, Apr 02, 2008 at 02:19:19PM -0400, Lukasz Popowski wrote:
> Christian, 
> 
> Did you succeed in building gtk finally? I'm trying to build in now, and I encountered error when building libX11 
package:
> 
> "checking dependency style of qcc... (cached) gcc3
> checking for cpp... no
> checking for ucpp... no
> checking if qcc -E requires -undef... cc: no files to process
> cc: unknown option: '-undef'
> configure: error: qcc -E defines unix with or without -undef.  I don't know what to do.
> *** Error code 1
> 
> Stop.
> bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11
> WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
> WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.
> *** Error code 1
> 
> Stop.
> bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11"
> 
> I've tried to add USE_LANGUAGES+= c++ in the usr/pkg/etc/mk.conf file. What can be done to build this package? Thanks 
for any advice.

This is another gcc vs qcc issue.  cpp (the gcc preprocessor)
can take a file on its stdin.  I'm trying to get cpp included
in 6.4 (PR 56006).

-seanb
Re: Actual progress - now on gtk itself  
Hi,

> Did you succeed in building gtk finally?

yes, it does build later on. I was able to successfully this package
/usr/pkgsrc/packages/All/gtk2+-2.12.0nb1.tgz

The required changes are all in the svn repository (and you are using them)

> I'm trying to build in now, and I 
> encountered error when building libX11 package:
> 
> "checking dependency style of qcc... (cached) gcc3
> checking for cpp... no
> checking for ucpp... no

this test is my addition. Install the package ucpp and the build will succeed. 

> checking if qcc -E requires -undef... cc: no files to process
> cc: unknown option: '-undef'
> configure: error: qcc -E defines unix with or without -undef.  I don't know 
> what to do.
> *** Error code 1
> 
> Stop.
> bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11
> WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package 
> Makefile.
> WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package 
> Makefile.
> *** Error code 1
> 
> Stop.
> bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11"
> 
> I've tried to add USE_LANGUAGES+= c++ in the usr/pkg/etc/mk.conf file. What 
> can be done to build this package? Thanks for any advice.

BUT I was not able to get any gtk example running 8-( Here are my findings:

You will at least need an X server. I used the old one from QNX 6.2. This way I got the example app from pango up and 
running.

In the newer Xfree86 releases the Xphoton server has been dropped. You will find the old X server code in the xfree86 
repository in an Attic directory. Therefore the Xorg code does not have any QNX related server, too. At this point I 
stopped my work on the gtk side of pkgsrc. I am not able to revive the Xphoton server in Xorg (both from knowledge and 
time frame side).

I would love to see pygtk working on QNX. This would provide the users of QNX with a portable RAD solution. The 
interface from python to the real-time applications is easily done with the boost::python library. Python does already a
 perfect job without a GUI, but having pygtk working would be a really big plus.

I hope that QNX will revive the Xphoton server and move it to an up to date Xorg release.

Bye
Christian


Re: Actual progress - now on gtk itself  
Christian,

Again me :). Indeed there is no further issue with ucpp, but next the xproto package seems to be not found. I've tried 
deleting (pkg_delete) it and building it one more time (again it is listed when using pkg_info). This package is not 
found when building libX11:

checking whether to use XCB... (cached) no
checking pkg-config is at least version 0.9.0... yes
checking for XPROTO... configure: error: Package requirements (xproto >= 7.0.6) were not met:

No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XPROTO_CFLAGS
and XPROTO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

*** Error code 1

Stop.
bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
bmake: stopped in /root/thisone/HEAD/pkgsrc/x11/libX11

Should I set the XPROTO_CFLAGS and XPROTO_LIBS? 

Thanks in advance.
Re: Actual progress - now on gtk itself  
> Should I set the XPROTO_CFLAGS and XPROTO_LIBS

I am not aware of that.

In addition to check the source out I have added a symbolic link to be able to use the standard paths, e.g.

/usr/pkgsrc/x11/libX11/work

In this directory you may find the .work.log.

In my one there are some entries related to xproto, e.g.

[*] /usr/src/HEAD/pkgsrc/x11/libX11/work/.tools/bin/pkg-config --exists --print-errors xproto >= 7.0.6
<.> PKG_CONFIG_LIBDIR=/usr/src/HEAD/pkgsrc/x11/libX11/work/.buildlink/lib/pkgconfig:/usr/src/HEAD/pkgsrc/x11/libX11/wor
k/.buildlink/share/pkgconfig /usr/pkg/bin/pkg-config  --exists --print-errors xproto >= 7.0.6

These commands are working on the shell, too:
#  /usr/src/HEAD/pkgsrc/x11/libX11/work/.tools/bin/pkg-config --exists --print-errors "xproto >= 7.0.6"
#  /usr/src/HEAD/pkgsrc/x11/libX11/work/.tools/bin/pkg-config --exists --print-errors "xproto >= 7.1.6"
Requested 'xproto >= 7.1.6' but version of Xproto is 7.0.10

Have you all the packages listed in my first posting in this thread? Perhaps the build dependency is not that perfect. 

package build sequence leading to gtk2+  
This is the list of packages I was able to successfully build and install an a QNX machine. The packages are listed in 
the order they where build and installed:

# pkg_info
bootstrap-mk-files-20070810 *.mk files for the bootstrap bmake utility
bmake-20051105nb4   Portable (autoconf) version of NetBSD 'make' utility
nbsed-20040821nb1   NetBSD-current's sed(1)
install-sh-20070712 install script compatible with the BSD install program
pax-20060202nb1     POSIX standard archiver with many extensions
pkg_install-20070916 Package management and administration tools for pkgsrc
digest-20070803     Message digest wrapper utility
figlet-2.2.2        Print text banners in fancy ASCII art characters
libtool-base-1.5.24nb5 Generic shared library support script (the script itself)
pkg-config-0.21nb2  System for managing library compile/link flags
bzip2-1.0.4         Block-sorting file compressor
perl-5.8.8nb4       Practical Extraction and Report Language
zlib-1.2.3          General purpose data compression library
pkg_install-info-4.5nb3 Standalone GNU info file installation utility
libiconv-1.11       Character set conversion library
fixesproto-4.0      Fixes extension headers from X.org
vim-7.1.116         Vim editor (vi clone) without GUI
gettext-lib-0.14.6  Internationalized Message Handling Library (libintl)
openssl-0.9.7inb4   Secure Socket Layer and cryptographic library
tcp_wrappers-7.6.1nb4 Monitor and filter incoming requests for network services
vim-share-7.1.116   Data files for the vim editor (vi clone)
m4-1.4.10nb2        GNU version of UNIX m4 macro language processor
autoconf-2.61       Generates automatic source code configuration scripts
automake-1.10       GNU Standards-compliant Makefile generator
openssh-4.7.1nb1    Open Source Secure shell client and server (remote login program)
py-gobject-shared-2.12.3 Python bindings for glib2 gobject
python24-2.4.4      Interpreted, interactive, object-oriented programming language
bash-3.2.25         The GNU Bourne Again Shell
unzip-5.52nb3       List, test and extract compressed files in a ZIP archive
jpeg-6bnb4          IJG's jpeg compression utilities
jasper-1.900.1nb1   Software-based reference implementation of the JPEG-2000 codec
png-1.2.20          Library for manipulating PNG images
tiff-3.8.2nb3       Library and tools for reading and writing TIFF data files
pkgdiff-0.119       Tools to create, maintain and send back patches for pkgsrc
xmlcatmgr-2.2nb1    XML and SGML catalog manager
groff-1.19.2nb4     GNU roff text processing suite
bison-2.3           GNU yacc(1) replacement
psutils-1.17nb2     Utilities for manipulating PostScript documents
ghostscript-fonts-8.11nb1 Postscript fonts for Aladdin Ghostscript
gtexinfo-4.8nb7     GNU info documentation utilities
gmake-3.81          GNU version of 'make' utility
ncurses-5.6nb1      CRT screen handling and optimization package
gettext-tools-0.14.6 Tools for providing messages in different languages
db4-4.5.20.2        Berkeley DB version 4 from Oracle
tcl-8.4.15          Ousterhout's Tool Command Language, a scripting language
mktemp-1.5          Small program for safe temporary file and directory creation
pkg_chk-1.87        Check installed package versions against pkgsrc
checkperms-1.10     Check and correct file permissions
bigreqsproto-1.0.2  BigReqs extension headers from modular Xorg X11
kbproto-1.0.3       KB extension headers from X.org
xcmiscproto-1.1.2   XCMisc extension headers from X.org
xextproto-7.0.2     XExt extension headers from X.org
inputproto-1.4.2.1  Input extension headers from X.org
xf86bigfontproto-1.1.2 XF86BigFont extension headers from X.org
xproto-7.0.10       X protocol and ancillary headers from Xorg X11
xtrans-1.0.4        Network API translation layer to insulate X
libXau-1.0.3        Authorization Protocol for X from X.org
libXdmcp-1.0.2      X Display Manager Control Protocol library from X.org
ucpp-1.3            C preprocessor...
View Full Message