zwar in der CMD eine ordentliche Ausgabe gibt, unter cygwin erhalte ich als Antwort jedoch, dass gtkmm-2.4 nicht gefunden wurde, und ich gtkmm-2.4.pc zur PKG_CONFIG_PATH Variable hinzufügen soll. Das habe ich aber bereits getan!
wollte mir das eigentlich über's Wochenende ansehen, hab's aber leider verpennt.
Setz am Dienstag noch mal 'n Post hierrein oder 'ne E-Mail an mich ab, falls ich's wieder vergesse.
als Compiler-Befehl schreiben, wenn dieser Befehl doch gar nicht geht!
Ja, also diesen Befehl kannst du z.B. in die msys oder cygwin Shell eintippen. Die arbeitet sehr gut mit MinGW zusammen. pkg-config übernimmt im Prinzip für dich das Angeben der Paktete, die zum Linken benötigt werden.
zwar in der CMD eine ordentliche Ausgabe gibt, unter cygwin erhalte ich als Antwort jedoch, dass gtkmm-2.4 nicht gefunden wurde, und ich gtkmm-2.4.pc zur PKG_CONFIG_PATH Variable hinzufügen soll. Das habe ich aber bereits getan!
Zeig mal bitte deine profile-Datei von cygwin.
Noch was: Dev-Cpp ist ein ziemlich verbuggtes Tool, weshalb man oft damit Probleme hat. Wenn du willst bzw. kannst, empfehle ich dir den Umstieg auf das Visual Studio 2005 Express Edition. In den FAQ des Andere GUIs Forum gibt es ein Tutorial, wie man GTK+ und gtkmm damit zum Laufen bringt.
# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix path
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 3) from HOMEDRIVE/HOMEPATH
# 4) / (root)
# If the home directory doesn't exist, create it.
if [ ! -d "${HOME}" ]; then
mkdir -p "${HOME}"
echo "Copying skeleton files."
echo "These files are for the user to personalise"
echo "their cygwin experience."
echo
echo "These will never be overwritten."
echo
cd /etc/skel
/bin/find . -type f | while read f; do
fDest=`echo ${f} | sed -e 's/^\.//g'`
if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
/usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
fi
done
fi
chmod 1777 /tmp 2>/dev/null
# Default to unix make mode
MAKE_MODE=unix
export MAKE_MODE
# It is recommended that cvs uses ssh for it's remote shell environment
CVS_RSH=/bin/ssh
export CVS_RSH
# Shell dependent settings
case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_//'`" in
bash | -bash | */bash | \
bash.exe | -bash.exe | */bash.exe )
# Set a HOSTNAME variable
HOSTNAME=`hostname`
export HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
;;
ksh* | -ksh* | */ksh* | \
ksh*.exe | -ksh*.exe | */ksh*.exe )
# Set a HOSTNAME variable
typeset -l HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='^[]0;${PWD}^G
^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m
$ '
;;
zsh* | -zsh* | */zsh* | \
zsh*.exe | -zsh*.exe | */zsh*.exe )
# Set a default prompt of: user@host, a command counter, and current_directory
PS1='(%n@%m)[%h] %~ %% '
# Set SHELL if not set
if [ ! -z "${ZSH_NAME}" -a -z "${SHELL}" ]; then
SHELL="/bin/zsh"
export SHELL
fi
;;
sh | -sh | */sh | \
sh.exe | -sh.exe | */sh.exe )
# Set a simple prompt
PS1='$ '
;;
* )
# Sorry, this shell has no defaults in /etc/profile,
# feel free to add your own.
# If you have some recommendations for what these defaults
# should be, please contact cygwin@cygwin.com with the
# shell details and what you would like added.
# Thanks
PS1='$ '
;;
esac
export PS1
# Run all of the profile.d scripts
# Note that these are supplied by separate packages
# Ascending alphanumerical order enforced
if [ -d "/etc/profile.d" ]; then
while read f; do
if [ -f "${f}" ]; then
. "${f}"
fi
done <<- EOF
`/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort`
EOF
fi
# Uncomment to use the terminal colours set in DIR_COLOR
# eval "`dircolors -b /etc/DIR_COLORS`"
# Default to removing the write permission for group and other
# (files normally created with mode 777 become 755; files created with
# mode 666 become 644)
umask 022
# Define default printer
PRINTER=""
case `uname -s` in
CYGWIN_NT-*)
PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`"
;;
CYGWIN_9?-*)
PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
;;
esac
export PRINTER
# Make sure we start in home unless invoked by CHERE
if [ ! -z "${CHERE_INVOKING}" ]; then
unset CHERE_INVOKING
else
cd "${HOME}"
fi
# Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails
# about this on the lists!
# If this message keeps appearing and you are sure it's a mistake (ie, don't
# email about it!), comment out the test below.
case `id -ng` in
mkpasswd )
echo "Your group is currently \"mkpasswd\". This indicates that"
echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup )
echo "Your group is currently \"mkgroup\". This indicates that"
echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup_l_d )
echo "Your group name is currently \"mkgroup_l_d\". This indicates that not"
echo "all domain users and groups are listed in the /etc/passwd and"
echo "/etc/group files."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l -d > /etc/passwd"
echo "mkgroup -l -d > /etc/group"
echo
echo "This message is only displayed once (unless you recreate /etc/group)"
echo "and can be safely ignored."
# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix path
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 3) from HOMEDRIVE/HOMEPATH
# 4) / (root)
# If the home directory doesn't exist, create it.
if [ ! -d "${HOME}" ]; then
mkdir -p "${HOME}"
echo "Copying skeleton files."
echo "These files are for the user to personalise"
echo "their cygwin experience."
echo
echo "These will never be overwritten."
echo
cd /etc/skel
/bin/find . -type f | while read f; do
fDest=`echo ${f} | sed -e 's/^\.//g'`
if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
/usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
fi
done
fi
chmod 1777 /tmp 2>/dev/null
# Default to unix make mode
MAKE_MODE=unix
export MAKE_MODE
# It is recommended that cvs uses ssh for it's remote shell environment
CVS_RSH=/bin/ssh
export CVS_RSH
# Shell dependent settings
case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_//'`" in
bash | -bash | */bash | \
bash.exe | -bash.exe | */bash.exe )
# Set a HOSTNAME variable
HOSTNAME=`hostname`
export HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
;;
ksh* | -ksh* | */ksh* | \
ksh*.exe | -ksh*.exe | */ksh*.exe )
# Set a HOSTNAME variable
typeset -l HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='^[]0;${PWD}^G
^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m
$ '
;;
zsh* | -zsh* | */zsh* | \
zsh*.exe | -zsh*.exe | */zsh*.exe )
# Set a default prompt of: user@host, a command counter, and current_directory
PS1='(%n@%m)[%h] %~ %% '
# Set SHELL if not set
if [ ! -z "${ZSH_NAME}" -a -z "${SHELL}" ]; then
SHELL="/bin/zsh"
export SHELL
fi
;;
sh | -sh | */sh | \
sh.exe | -sh.exe | */sh.exe )
# Set a simple prompt
PS1='$ '
;;
* )
# Sorry, this shell has no defaults in /etc/profile,
# feel free to add your own.
# If you have some recommendations for what these defaults
# should be, please contact cygwin@cygwin.com with the
# shell details and what you would like added.
# Thanks
PS1='$ '
;;
esac
export PS1
# Run all of the profile.d scripts
# Note that these are supplied by separate packages
# Ascending alphanumerical order enforced
if [ -d "/etc/profile.d" ]; then
while read f; do
if [ -f "${f}" ]; then
. "${f}"
fi
done <<- EOF
`/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort`
EOF
fi
# Uncomment to use the terminal colours set in DIR_COLOR
# eval "`dircolors -b /etc/DIR_COLORS`"
# Default to removing the write permission for group and other
# (files normally created with mode 777 become 755; files created with
# mode 666 become 644)
umask 022
# Define default printer
PRINTER=""
case `uname -s` in
CYGWIN_NT-*)
PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`"
;;
CYGWIN_9?-*)
PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
;;
esac
export PRINTER
# Make sure we start in home unless invoked by CHERE
if [ ! -z "${CHERE_INVOKING}" ]; then
unset CHERE_INVOKING
else
cd "${HOME}"
fi
# Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails
# about this on the lists!
# If this message keeps appearing and you are sure it's a mistake (ie, don't
# email about it!), comment out the test below.
case `id -ng` in
mkpasswd )
echo "Your group is currently \"mkpasswd\". This indicates that"
echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup )
echo "Your group is currently \"mkgroup\". This indicates that"
echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup_l_d )
echo "Your group name is currently \"mkgroup_l_d\". This indicates that not"
echo "all domain users and groups are listed in the /etc/passwd and"
echo "/etc/group files."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l -d > /etc/passwd"
echo "mkgroup -l -d > /etc/group"
echo
echo "This message is only displayed once (unless you recreate /etc/group)"
echo "and can be safely ignored."
# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix path
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 3) from HOMEDRIVE/HOMEPATH
# 4) / (root)
# If the home directory doesn't exist, create it.
if [ ! -d "${HOME}" ]; then
mkdir -p "${HOME}"
echo "Copying skeleton files."
echo "These files are for the user to personalise"
echo "their cygwin experience."
echo
echo "These will never be overwritten."
echo
cd /etc/skel
/bin/find . -type f | while read f; do
fDest=`echo ${f} | sed -e 's/^\.//g'`
if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
/usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
fi
done
fi
chmod 1777 /tmp 2>/dev/null
# Default to unix make mode
MAKE_MODE=unix
export MAKE_MODE
# It is recommended that cvs uses ssh for it's remote shell environment
CVS_RSH=/bin/ssh
export CVS_RSH
# Shell dependent settings
case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_//'`" in
bash | -bash | */bash | \
bash.exe | -bash.exe | */bash.exe )
# Set a HOSTNAME variable
HOSTNAME=`hostname`
export HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
;;
ksh* | -ksh* | */ksh* | \
ksh*.exe | -ksh*.exe | */ksh*.exe )
# Set a HOSTNAME variable
typeset -l HOSTNAME
# Set a default prompt of: user@host and current_directory
PS1='^[]0;${PWD}^G
^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m
$ '
;;
zsh* | -zsh* | */zsh* | \
zsh*.exe | -zsh*.exe | */zsh*.exe )
# Set a default prompt of: user@host, a command counter, and current_directory
PS1='(%n@%m)[%h] %~ %% '
# Set SHELL if not set
if [ ! -z "${ZSH_NAME}" -a -z "${SHELL}" ]; then
SHELL="/bin/zsh"
export SHELL
fi
;;
sh | -sh | */sh | \
sh.exe | -sh.exe | */sh.exe )
# Set a simple prompt
PS1='$ '
;;
* )
# Sorry, this shell has no defaults in /etc/profile,
# feel free to add your own.
# If you have some recommendations for what these defaults
# should be, please contact cygwin@cygwin.com with the
# shell details and what you would like added.
# Thanks
PS1='$ '
;;
esac
export PS1
# Run all of the profile.d scripts
# Note that these are supplied by separate packages
# Ascending alphanumerical order enforced
if [ -d "/etc/profile.d" ]; then
while read f; do
if [ -f "${f}" ]; then
. "${f}"
fi
done <<- EOF
`/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort`
EOF
fi
# Uncomment to use the terminal colours set in DIR_COLOR
# eval "`dircolors -b /etc/DIR_COLORS`"
# Default to removing the write permission for group and other
# (files normally created with mode 777 become 755; files created with
# mode 666 become 644)
umask 022
# Define default printer
PRINTER=""
case `uname -s` in
CYGWIN_NT-*)
PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`"
;;
CYGWIN_9?-*)
PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
;;
esac
export PRINTER
# Make sure we start in home unless invoked by CHERE
if [ ! -z "${CHERE_INVOKING}" ]; then
unset CHERE_INVOKING
else
cd "${HOME}"
fi
# Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails
# about this on the lists!
# If this message keeps appearing and you are sure it's a mistake (ie, don't
# email about it!), comment out the test below.
case `id -ng` in
mkpasswd )
echo "Your group is currently \"mkpasswd\". This indicates that"
echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup )
echo "Your group is currently \"mkgroup\". This indicates that"
echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup_l_d )
echo "Your group name is currently \"mkgroup_l_d\". This indicates that not"
echo "all domain users and groups are listed in the /etc/passwd and"
echo "/etc/group files."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l -d > /etc/passwd"
echo "mkgroup -l -d > /etc/group"
echo
echo "This message is only displayed once (unless you recreate /etc/group)"
echo "and can be safely ignored."
So, ziemlich viel. Hoffe du kannst was damit anfangen.
Danke
P.S.: Der Sinn des Tutorials aus der FAQ erschließt sich mir irgendwie nicht so ganz. Ich habe auf den gtkmm Seiten auch etwas über das Benutzen von gtkmm mit Visual C++ gefunden und werde mir das mal anschauen. Es wäre mir aber lieber, den gcc weiterhin verwenden zu können, zumal ich von Visual C++ nicht so angetan bin und das Einrichten von gtkmm für Visual C++ auch recht aufwändig aussieht.
So, ziemlich viel. Hoffe du kannst was damit anfangen.
Jo, knall mal
export PKG_CONFIG_PATH = /usr/local/lib/pkgconfig
Da rein. Bzw. ersetze den Pfad zu pkgconfig, wohin du ihn installiert hast.
Ansonsten: Hast du eine .bashrc in deinem cygwin home-Verzeichnis?
Zitat:
P.S.: Der Sinn des Tutorials aus der FAQ erschließt sich mir irgendwie nicht so ganz.
Äh, ich war halt zu faul, ständig Fragen zu "Wie benutze ich gtkmm mit VC++" zu beantworten. Daher das tut. Komischerweise kommen ungefähr seit dem Zeitpunkt keine Fragen mehr, wie man GTK+ bzw. gtkmm unter Win mit dem VS einrichtet... entweder nach dem Tut ist alles klar oder alle sind verstört/verängstigt und nehmen doch lieber die WinAPI oder die .NET WinForms
Zitat:
[...] und das Einrichten von gtkmm für Visual C++ auch recht aufwändig aussieht.
Wie man sieht ist die Datei da. Langsam weiß ich echt nicht mehr weiter. Es muss doch irgendwie machbar sein, dieses verfluchte GTKmm unter Windows benutzen zu können .
ich würde dir ja gerne helfen, kann aber momentan nicht (siehe hier ). Sorry, aber auf die schnelle kann ich ich dein Problem so nicht lösen.
Was mir auffällt: Du hast den Verzeichnisinhalt von pangomm gelistet, aber wir bräuchten eigentlich den von cairomm.
Nächstes Thema anzeigen Vorheriges Thema anzeigen
Sie können keine Beiträge in dieses Forum schreiben. Sie können auf Beiträge in diesem Forum antworten. Sie können Ihre Beiträge in diesem Forum nicht bearbeiten. Sie können Ihre Beiträge in diesem Forum nicht löschen. Sie können an Umfragen in diesem Forum nicht mitmachen.
c++.de ist Teilnehmer des Partnerprogramms von Amazon Europe S.à.r.l. und Partner des Werbeprogramms, das zur Bereitstellung eines Mediums
für Websites konzipiert wurde, mittels dessen durch die Platzierung von Werbeanzeigen und Links zu amazon.de
Werbekostenerstattung verdient werden kann.
Die Vervielfältigung der auf den Seiten www.c-plusplus.de, www.c-plusplus.info, www.c-sar.de, www.c-plusplus.net und www.baeckmann.de
enthaltenen Informationen ohne eine schriftliche Genehmigung des Seitenbetreibers ist untersagt
(vgl. §4 Urheberrechtsgesetz). Die Nutzung und Änderung der vorgestellten Strukturen und Verfahren in
privaten und kommerziellen Softwareanwendungen ist ausdrücklich erlaubt, soweit keine Rechte Dritter verletzt werden.
Der Seitenbetreiber übernimmt keine Gewähr für die Funktion einzelner Beiträge oder Programmfragmente, insbesondere
übernimmt er keine Haftung für eventuelle aus dem Gebrauch entstehenden Folgeschäden.