Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish) Polish OTW
  • Search

Statycznie kompilowany program z systemowym themem gtk

Rozmowy nie związane ściśle z Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
kneczaj
Apprentice
Apprentice
Posts: 169
Joined: Fri Oct 13, 2006 10:01 am
Location: Zamosc

Statycznie kompilowany program z systemowym themem gtk

  • Quote

Post by kneczaj » Wed Oct 14, 2009 11:46 am

No właśnie jak to zrobić? Mam program gnat-gps, który jest statycznie skompilowany z gtk 2.14, gdyż na nowszym nie ruszy. Jest to IDE do języka Ada. Mam ustawione, aby gtk używało qtcurve, a niestety w tym programie używa domyślnego Raleigh. Uruchamiam go z takiego skryptu:

Code: Select all

#!/bin/sh
# .gps_wrapper
#
# Copyright 2002-2008 AdaCore

prog=`basename $0`
root=`dirname $0`

## Run with "gps debug ..." to run under the debugger
debug=${1:-false}
if [ $debug = debug ]; then
   shift;
fi

if [ "$root" = "." ]; then
   root=`pwd`
fi

# Strip 'bin' directory to retrieve the real root

root=`dirname $root`

GPS_STARTUP_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
GPS_STARTUP_PATH=$PATH
export GPS_STARTUP_LD_LIBRARY_PATH GPS_STARTUP_PATH

LD_LIBRARY_PATH=$root/lib/gps:$root/lib:$LD_LIBRARY_PATH
#GTK_DATA_PREFIX=$root
#GTK_EXE_PREFIX=$root

#if [ -d $root/lib/gps ]; then
#  unset GTK2_RC_FILES
#fi

#if [ -f $root/etc/fonts/fonts.conf ]; then
#  FONTCONFIG_FILE=$root/etc/fonts/fonts.conf
#  export FONTCONFIG_FILE
#fi

if [ -f /etc/fonts/fonts.conf ]; then
  if grep '<cachedir>' /etc/fonts/fonts.conf > /dev/null 2>&1; then
    FONTCONFIG_FILE=/etc/fonts/fonts.conf
    export FONTCONFIG_FILE
  fi
fi

#if [ -f $root/etc/pango/pangorc ]; then
#  PANGO_RC_FILE=$root/etc/pango/pangorc
#  export PANGO_RC_FILE
#fi

#if [ -f $root/etc/gtk-2.0/gdk-pixbuf.loaders ]; then
#  GDK_PIXBUF_MODULE_FILE=$root/etc/gtk-2.0/gdk-pixbuf.loaders
#  export GDK_PIXBUF_MODULE_FILE
#fi

if [ "$CHARSET" = "" ]; then
  CHARSET=ISO-8859-1
  export CHARSET
fi

export LD_LIBRARY_PATH # GTK_DATA_PREFIX GTK_EXE_PREFIX
if [ $debug = debug ]; then
   gdb -args $root/bin/${prog}_exe "$@"
else
   exec $root/bin/${prog}_exe "$@"
fi
Zakomentowałem linijki, które mogły być przyczyną takiego stanu rzeczy, lecz to nie pomogło.
Top
Qlawy
Apprentice
Apprentice
Posts: 200
Joined: Tue Jul 11, 2006 5:22 pm

  • Quote

Post by Qlawy » Thu Oct 15, 2009 1:09 pm

Eee... Kamil, o ile się nie mylę to w programie ze statycznym gtk nie podmienisz za bardzo stylu zmieniając go w reszcie systemu. Tak samo jest ze skype i Operą z qt-static. Ale ofc mogę się mylić...
Top
kneczaj
Apprentice
Apprentice
Posts: 169
Joined: Fri Oct 13, 2006 10:01 am
Location: Zamosc

  • Quote

Post by kneczaj » Thu Oct 15, 2009 1:13 pm

W qt style są kompilowane, więc przy zmianie wersji mogą wymagać przekompilowania, aby działały. Z gtk jest trochę inaczej, bo style nie są kompilowane, więc teoretycznie powinny chodzić przy odpowiedniej konfiguracji. Może nie automatycznie, ale od tego mam skrypt startowy aby jakoś je zmusić do działania.
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Polish OTW”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic