Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

with emerge : C++ compiler cannot create executables

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

with emerge : C++ compiler cannot create executables

  • Quote

Post by manouchk » Mon Mar 24, 2008 8:27 am

Hi,

I'm preparing a new ebuild for objcryst-fox (http://objcryst.sourceforge.net/) and I had a problem when trying to emerge the new ebuild I prepared (http://emmanuelfavrenicolin.free.fr/Pub ... 962.ebuild).

At some stage, during a "./configure" emerging this program would end up by :
cd /home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/w
ork/Fox-1.7.5.1-R962/Fox/src/../../fftw && ./configure --enable-sing
le --prefix /home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5
.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../static-libs && make inst
all
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles
... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... configure: error
: C compiler cannot create executables
See `config.log' for more details.

If I go to the same place and manually run ./configure I don't see this error. What could be the problem?
Top
aceFruchtsaft
Guru
Guru
User avatar
Posts: 438
Joined: Sun May 16, 2004 12:56 pm
Location: Vienna, Austria

  • Quote

Post by aceFruchtsaft » Mon Mar 24, 2008 10:17 am

Something like this can happen if your CFLAGS of CXXFLAGS are incorrect. Please post the output of emerge --info
Top
didl
Retired Dev
Retired Dev
User avatar
Posts: 1106
Joined: Tue Sep 09, 2003 11:01 pm
Location: Pittsburgh, PA

Re: with emerge : C++ compiler cannot create executables

  • Quote

Post by didl » Mon Mar 24, 2008 10:26 am

manouchk wrote: See `config.log' for more details.
This should tell you.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Mon Mar 24, 2008 11:35 pm

# emerge --info
* Overlay eclass overrides eclass from PORTDIR:
*
* '/usr/local/sci/eclass/fortran.eclass'
*
* It is best to avoid overridding eclasses from PORTDIR because it will
* trigger invalidation of cached ebuild metadata that is distributed with
* the portage tree. If you must override eclasses from PORTDIR then you
* are advised to run `emerge --regen` after each time that you run `emerge
* --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
* would like to disable this warning.
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.50GHz
Timestamp of tree: Sun, 23 Mar 2008 20:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python: 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/portage_distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://gentoo.virginmedia.com/sites/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="en fr pt_BR"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/science /usr/portage/local/layman/xeffects /usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X aac acl acpi aim alsa audiofile avahi bash-completion berkdb blas bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emacs emboss encode esd ethereal evo exif fam ffmpeg fftw firefox flac foomaticdb fortran ftp gcj gdbm gif gphoto2 gpm gstreamer gtk gtk2 h323 hal iconv ieee1394 imagemagick imap ipv6 isdnlog jabber jpeg jpeg2k kde kdexdelta kerberos lapack ldap lirc mad maildir matroska mbox memlimit midi mikmod mmx mng mp3 mpeg msn mudflap ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pcre pdf perl plotutils png ppds pppd python qt qt3 qt3support qt4 quicktime readline recode reflection samba scanner sdl session sndfile sox speex spell spl sse sse2 ssl svg symlink tcpd tetex threads tiff truetype unicode usb v4l vcd vorbis wifi win32codecs wmf x86 xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr pt_BR" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I'm compiling again (it takes times!) in order to get the config.log again.
more /usr/local/portage/sci-physics/objcryst-fox/objcryst-fox-1.7.5.1-r962.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils flag-o-matic toolchain-funcs

MY_P=Fox-${PV}-R962
#S= ${WORKDIR}/${MY_P}
DESCRIPTION="ObjCryst++ : object-oriented Crystallographic Library, for the analysis of Crystal str
uctures from scattering experiments: optimized scattering computation, Graphical interface for stru
ctures and data, global optimization algorithms"
HOMEPAGE="http://objcryst.sourceforge.net"
SRC_URI="mirror://sourceforge/objcryst/Fox-${PV}-R962.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc opt"

RDEPEND="x11-libs/gtk+
x11-base/xorg-x11
media-libs/mesa"

DEPEND="${RDEPEND}"

if use opt; then
einfo "using optimized flags"
replace-flags -O2 -O3
append-flags -w -ffast-math -fstrict-aliasing -pipe -fomit-frame-pointer -funroll-loops
if [ "`gcc-major-version`" -ge "4" ]; then
einfo "ading vectorisation because gcc-version>4"
append-flags -ftree-vectorize
fi
fi

src_compile() {
cd "${WORKDIR}/${MY_P}/Fox"
if use doc; then
emake doc || "make doc failed"
fi
emake || die "make failed"
}

src_install() {
cd "${WORKDIR}/${MY_P}/Fox"

#install binary Fox
dobin src/Fox

#install doc
if use doc; then
dodoc README LICENSE ChangeLog
dohtml src-doc/*
fi


# Install the examples
insinto /usr/share/${PF}/examples/
doins -r example/*
}

I'm trying also to compile without optimization if it could be the problem. I will the return here thereafter.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Tue Mar 25, 2008 1:30 am

Yesterday I had tried to reinstall libstdc++-v3-3.3.6 and libtool-1.5.26 but it didn't resolve the problem.
TOday, I tried compiling without optimization (USE=-opt ) but the problem was still there.

Now I'm trying this : uninstalling old automake and reinstalling the last automake (1.10) and I'm compiling again (it's quite long to compile here with a dothan 1.5 GHz).
Top
didl
Retired Dev
Retired Dev
User avatar
Posts: 1106
Joined: Tue Sep 09, 2003 11:01 pm
Location: Pittsburgh, PA

  • Quote

Post by didl » Tue Mar 25, 2008 10:24 am

Why don't you post the relevent part of the config.log
instead of randomly re-emerging packages? Without
this information we won't be able to help you.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Tue Mar 25, 2008 2:03 pm

It's quite huge and I think the interesting part is in my first post.
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Tue Mar 25, 2008 4:02 pm

manouchk wrote:It's quite huge and I think the interesting part is in my first post.
Well to be frank you thought wrong. That error message could be from a whole bunch of things. It doesn't narrow it down whatsoever.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Tue Mar 25, 2008 10:54 pm

Here are the files :

http://emmanuelfavrenicolin.free.fr/Pub ... config.log
http://emmanuelfavrenicolin.free.fr/Pub ... nvironment

[ ] config.log 25-Mar-2008 23:47 13k
[ ] environment 25-Mar-2008 23:48 93k
[ ] objcryst-fox-1.7.5.1..> 24-Mar-2008 09:17 1k
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Wed Mar 26, 2008 1:26 am

From the config.log it's crapping out with saying -fcxxflags isn't a valid option for gcc. And a quick google search indicates this is something to do with them using backticks when they shouldn't so it's trying to execute something that shouldn't (as in the backticks work great in a shell but when it's not being run inside a shell since it's inside a part of the portage command). And I mean that it's a problem with the configure script being bad from the looks of it.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Wed Mar 26, 2008 10:52 am

In the config.log after the error it gives the program

configure: failed program was:

and later we find that the variable CXXFLAGS is :

Code: Select all

CXXFLAGS='-I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst/.. -I./ -I/include -I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst -I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../static-libs/include -DOBJCRYST_GL -I/usr/X11R6/include -IGL -DHAVE_GLUT -D__WX__CRYST__ `/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst/../static-libs/bin/wx-config --cxxflags` -DHAVE_FFTW '
If I catch all line with CXXFLAGS in configure we have:

Code: Select all

$ more configure|grep -i cxxflags
CXXFLAGS
CXXFLAGS
  CXXFLAGS    C++ compiler flags
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
   CXXFLAGS="-g"
        CXXFLAGS=""
         CXXFLAGS="-g"
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
    CXXFLAGS="-g -O2"
    CXXFLAGS="-g"
    CXXFLAGS="-O2"
    CXXFLAGS=
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
CXXFLAGS!$CXXFLAGS$ac_delim
configure script is there :
http://emmanuelfavrenicolin.free.fr/Pub ... /configure
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Wed Mar 26, 2008 11:00 am

If I run the command between `` it works but it is not in portage is it the problem?

running in a terminal :
/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/src/../../ObjCryst/../static-libs/bin/wx-config --cxxflags

gives me :
-I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/../static-libs/lib/wx/include/gtk2-ansi-release-static-2.8 -I/home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.1-r962/work/Fox-1.7.5.1-R962/Fox/../static-libs/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Wed Mar 26, 2008 3:52 pm

Like I said, the configure works fine when the whole thing is run from a terminal/shell. The configure script has something in it that uses backticks which only function correctly in a terminal. Since portage isn't running the configure inside a terminal the backticks don't function (which is the expected result).

So maybe send a message to the upstream devs about it. Or see if you can patch the confgure script yourself.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Wed Mar 26, 2008 5:48 pm

slycordinator wrote:Like I said, the configure works fine when the whole thing is run from a terminal/shell. The configure script has something in it that uses backticks which only function correctly in a terminal. Since portage isn't running the configure inside a terminal the backticks don't function (which is the expected result).

So maybe send a message to the upstream devs about it. Or see if you can patch the confgure script yourself.
Exactly. Thank you. Let say if I cna localise the problem tonight
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Mon Mar 31, 2008 2:31 am

Well, I'm having some difficulties with make script, because I don't how it works. Are there good material on makefile?

I modified the makefile that causes problems but, I had an unexpected results. I tried to use variables to avoid use of backticks.

I basically modified like this :
--- Fox-1.7.5.3-R973.orig/ObjCryst/rules-gnu.mak 2008-03-30 20:42:14.000000000 +0000
+++ Fox-1.7.5.3-R973/ObjCryst/rules-gnu.mak 2008-03-31 01:45:28.000000000 +0000
@@ -36,10 +36,20 @@
# header files
SEARCHDIRS = -I${DIR_CRYST}/.. -I./ -I$(DIR_TAU)/include -I${DIR_CRYST} -I$(DIR_STATIC_LIBS)/include

+#Use static linking to wx and freeglut libraries ?
+ifneq ($(shared),1)
+WXCONFIG= $(DIR_CRYST)/../static-libs/bin/wx-config
+else
+WXCONFIG= /usr/bin/wx-config
+endif
+
+WXCONFIGCXXFLAGS = ${WXCONFIG} --cxxflags
+WXCONFIGLIBS = ${WXCONFIG} --libs
+
#wxWindows flags
ifeq ($(wxcryst),1)
- WXCRYSTFLAGS = -D__WX__CRYST__ `$(WXCONFIG) --cxxflags`
- WX_LDFLAGS = -L/usr/X11R6/lib -lwxcryst `$(WXCONFIG) --libs` $(GL_WX_LIB)
+ WXCRYSTFLAGS = -D__WX__CRYST__ $(WXCONFIGCXXFLAGS)
+ WX_LDFLAGS = -L/usr/X11R6/lib -lwxcryst $(WXCONFIGLIBS) $(GL_WX_LIB)
else
WXCRYSTFLAGS :=
WX_LDFLAGS :=
@@ -64,19 +74,15 @@
endif
endif

-#Use static linking to wx and freeglut libraries ?
-ifneq ($(shared),1)
-WXCONFIG= $(DIR_CRYST)/../static-libs/bin/wx-config
-else
-WXCONFIG= wx-config
-endif
# If using glut (freeglut)
GLUT_FLAGS= -DHAVE_GLUT
GLUT_LIB= -lglut

#Using OpenGL ?
+WXCONFIG_GL_LIBS = ${WXCONFIG} --gl-libs
+
ifeq ($(opengl),1)
-GL_WX_LIB = `$(WXCONFIG) --gl-libs` -lGL -lGLU $(GLUT_LIB)
+GL_WX_LIB = `$(WXCONFIG_GL_LIBS) -lGL -lGLU $(GLUT_LIB)
GL_FLAGS = -DOBJCRYST_GL -I/usr/X11R6/include -IGL $(GLUT_FLAGS)
else
GL_WX_LIB :=
@@ -160,7 +166,7 @@
ifneq ($(shared),1)
libwx: $(BUILD_DIR)/static-libs/bin/wx-config libfreeglut
else
-libwx:
+libwx:
endif
else
libwx:
It definitely is not working well. I tried to understand the meaning of $(VAR) ${VAR}...
$(VAR) get the string content of VAR execute "as if" it was running in a shell and return the result of the command as a string
${VAR} return the content of VAR as a string?
There is also @... ?
I don't know are those things shell commands??

If someone can give an little help, for example a good reference to improve my knowledge in term of Makefile/bash script etc... I'd be recognizing/obliged.
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Mon Mar 31, 2008 1:32 pm

slycordinator wrote:So maybe send a message to the upstream devs about it.
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Mon Mar 31, 2008 2:26 pm

I already entered in contact with the dev which happens to be my brother but he is lately quite busy!

Anyway I progressed using variables but then I reach another error later in the Makefile

Code: Select all

make -f gnu.mak wxcryst=1 opengl=1 fftw=1 debug= shared=1 -C src Fox
make[1]: entrant dans le répertoire « /home/portage_tmp/portage/sci-physics/objcryst-fox-1.7.5.3-r973/work/Fox-1.7.5.3-R973/Fox/src »
Fox.cpp:23:29: erreur: wx/wxprec.h : Aucun fichier ou répertoire de ce type
...
#include "wx/wxprec.h"
...

it looks that's missing something like -I /usr/include/wx-2.6 somewhere... just have to find where!

Code: Select all

more Fox-1.7.5.3-R973.orig/Fox/src/gnu.mak
BUILD_DIR = $(CURDIR)/../..
include $(BUILD_DIR)/ObjCryst/rules.mak

ifeq ($(profile),2)
%.o : %.c
        @rm -f $(*F).gcda $(*F).gcno
        @$(MAKEDEPEND)
        ${CC} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
else
%.o : %.c
        @$(MAKEDEPEND)
        ${CC} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
endif

ifeq ($(profile),2)
%.o : %.cpp libwx
        @rm -f $(*F).gcda $(*F).gcno
        @$(MAKEDEPEND)
        ${CXX} ${CPPFLAGS} ${CXXFLAGS} -D'__FOXVERSION__="$(foxversion)"' -c $< -o $@
else
%.o : %.cpp libwx
        @$(MAKEDEPEND)
        ${CXX} ${CPPFLAGS} ${CXXFLAGS} -D'__FOXVERSION__="$(foxversion)"' -c $< -o $@
endif

%.o : %.rc
        windres -i $< -o $@ --include-dir ${DIR_WXWINDOWS}/include

-include Fox.dep

#Main Application
Fox: Fox.o libwx libnewmat libCrystVector libQuirks libRefinableObj libcctbx libCryst libwxCryst lib
fftw
        ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so lib%, $^} ${LOADLIBES}

Fox-nogui: Fox.o libnewmat libCrystVector libQuirks libRefinableObj libcctbx libCryst
        ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so lib%, $^} ${LOADLIBES}

fox: Fox

# target for making everything
.PHONY : all
all: Fox

# target for removing all object files
.PHONY : tidy
tidy::
        @${RM} core *.o *.dep

# target for removing all object files and libraries
.PHONY : clean
clean:: tidy
        @${RM} *.a Fox

cvsignore:
        cp -f ${DIR_CRYST}/.cvsignore ./


I've seen that I don't have any binary called windres? Is it for windows maybe and is not related to my problem here?
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Thu Apr 03, 2008 11:20 am

If I look at what's told to be done in makefile here : http://wiki.wxwidgets.org/Makefile

It just say to use backtics or variables!

If I use

CXXFLAGS = $(shell `which wx-config` --cxxflags)

it seems to work!
:D
Top
Post Reply

18 posts • Page 1 of 1

Return to “Portage & Programming”

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