Development > Newbie Coding

(log) Actually got new build system to (partially) work on Windows 7

<< < (7/13) > >>

Muton:
> i've added a per-target-linker-option. so uforadiant related targets are now linked with g++

Is working like expected

> are there any other changes you've made in order to get that far?

.)shared
mingw32.mk
uforadiant_LDFLAGS       += -lglib-2.0 -lgtk-win32-2.0 -lgobject-2.0 -static-libstdc++
uforadiant-brushexport_LDFLAGS+= -static-libstdc++

.)static
mingw32.mk
uforadiant_LDFLAGS       += -lglib-2.0 -lgtk-win32-2.0 -lgobject-2.0 -static-libstdc++
uforadiant-brushexport_LDFLAGS+= -static-libstdc++
ifeq ($(UNIVERSAL),1)
   PKG_CONFIG            += --static
   ufo_LDFLAGS           += -static
   ufoded_LDFLAGS        += -static
   testall_LDFLAGS       += -static
   ufo2map_LDFLAGS       += -static
   ufomodel_LDFLAGS      += -static
endif
ufo.mk (needed by smpeg cant be set in mingw32.mk [wrong order {static and shared does work with it}])
$(TARGET)_LDFLAGS  += -lpng  ..... -lstdc++
testall.mk
$(TARGET)_LDFLAGS  += -lcunit ..... -lstdc++


>about w2k, i'll do some research, too (but i can't test here, no w2k)

I'm still able to compile ufo.exe in C::B
C::B is using mingw32-gcc.exe, but using it doesn't solve the problem
Maybe an option .... ???

Mattn:
is that static-libstdc++ still needed?

the UNIVERSAL stuff is only for mac - to build binaries that run on ppc and i386

the uforadiant ldflags should come from the pkg-config file for gtk - please post the outout of pkg-config --libs gtk-2.0 and pkg-config --libs glib-2.0

Mattn:
ufo and testall should not need stdc++ at all - they are not c++ but normal c

Muton:
> is that static-libstdc++ still needed?
yes

> the UNIVERSAL stuff is only for mac
than we need a static option

please post the outout

--- Code: ---$ pkg-config --libs gtk+-2.0         
-LD:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
-lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl 

$ pkg-config --libs glib-2.0
-LD:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib -lglib-2.0 -lintl 

--- End code ---

ufo and testall should not need stdc++ at all - they are not c++ but normal c
But smpeg is
if you do a static build
you'll need it

--- Code: (smpeg) ---./configure --enable-static --enable-shared --prefix= --enable-mmx --disable-gtktest --enable-opengl-player=no --disable-gtk-player CFLAGS="-mms-bitfields $1 -mthreads $2 $3 $4" LDFLAGS="-static-libgcc -static-libstdc++" &&
make CC=g++ CXX=g++ CXXLD='$(CXX) -no-undefined' &&

--- End code ---

Mattn:
please edit build/flags.mk and change the PKG_LIBS macro - add a "--static" there please at the beginning of the call . if that works for you i will add a static option, too

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version