1
Linux / Re: [MinGW] Link problem with testall.exe
« on: October 08, 2010, 09:52:59 am »let me know whether it's fixed for you in the latest revision please
YES!
New board
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
let me know whether it's fixed for you in the latest revision please
Yes, I think I'll redo a complete checkout of repository just to be sure!
have you "make clean"?
$ make
===> LD [testall.exe]
release-mingw32-i386/testall/client/cl_language.c.o: In function `CL_LanguageTryToSet':
/opt/src/ufoai-GIT/src/client/cl_language.c:316: undefined reference to `_Sys_SetLocale'
release-mingw32-i386/testall/client/cl_language.c.o: In function `CL_LanguageInit':
/opt/src/ufoai-GIT/src/client/cl_language.c:233: undefined reference to `_Sys_GetLocale'
release-mingw32-i386/testall/client/cl_main.c.o: In function `CL_Frame':
/opt/src/ufoai-GIT/src/client/cl_main.c:1172: undefined reference to `_Sys_SetAffinityAndPriority'
collect2: ld returned 1 exit status
make: *** [testall.exe] Errore 1
build/install_windows.mk:wininstaller-ufoai: ufoai ufoded installer-pre
but now ufoai and ufoded doesn't seem to be defined anywhere, right?
make installer
MakeNSIS v24-Sep-2010.cvs - Copyright 1995-2009 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.
Command line defined: "PRODUCT_VERSION=2.4-dev"
Processing config:
Processing plugin dlls: "/opt/mingw/usr/i686-pc-mingw32/share/nsis/Plugins/*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- UserInfo::GetOriginalAccountType
- VPatch::GetFileCRC32
- VPatch::GetFileMD5
- VPatch::vpatchfile
- nsDialogs::Create
- nsDialogs::CreateControl
- nsDialogs::CreateItem
- nsDialogs::CreateTimer
- nsDialogs::GetUserData
- nsDialogs::KillTimer
- nsDialogs::OnBack
- nsDialogs::OnChange
- nsDialogs::OnClick
- nsDialogs::OnNotify
- nsDialogs::SelectFileDialog
- nsDialogs::SelectFolderDialog
- nsDialogs::SetRTL
- nsDialogs::SetUserData
- nsDialogs::Show
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "/opt/src/ufoai-GIT/contrib/installer/windows"
Processing script file: "contrib/installer/windows/ufoai.nsi"
!define: "PRODUCT_NAME"="UFO:Alien Invasion"
!define: "SHORT_PRODUCT_NAME"="UFO:AI"
!define: "PRODUCT_NAME_DEDICATED"="UFO:Alien Invasion Dedicated Server"
!define: "PRODUCT_VERSION" already defined!
Error in script "contrib/installer/windows/ufoai.nsi" on line 4 -- aborting creation process
make: *** [wininstaller-ufoai] Errore 1
the first error is fixed - the second not
i don't have a working solution yet - though i've changed the way it works in latest git master revision:
http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=commitdiff;h=7d351d4da7fdc9ac7673193bf6079ba338bdf2a2
that might fix the issue, too - not sure (and i doubt, because the amount of files is still the same).
then you should add this to config.mkCode: [Select]ufo_LDFLAGS += -lrmtp
ufoded_LDFLAGS += -lrmtp
testall_LDFLAGS += -lrmtp
this is imo more a problem of your curl-config file (where you can fix this of course, too)
OK, the new build system now works for me.
Just for reference:
- build shared GTK
- add -lstdc++ for uforadiant & uforadiant-brushexport
Now I only need to find how to compile maps and to find a way to package everything!
well - i don't know about that linking problem - maybe add the -lwinmm stuff to build/plattform_specific.mk
it would be very nice if you could test the patch for the new build system with mingw-cross-env. the patch is at http://mattn.ninex.info/files/newbuildsystem.diff
you should add your the mingw-cross-env bin dir to your path then you don't have to patch the makefiles (see Makefile.local)
about the missing libs for mingw - that should not be added like this but like this:Code: [Select]ufo_LDFLAGS += -lws2_32 -lwinmm -lgdi32 -lintl -lfreetype
ufoded_LDFLAGS += -lws2_32 -lwinmm -lgdi32
testall_LDFLAGS += -lwinmm -lgdi32
ufo2map_LDFLAGS += -lwinmm
ufomodel_LDFLAGS += -lwinmm
uforadiant_LDFLAGS += -lglib-2.0 -lgtk-win32-2.0 -lgobject-2.0
yes, in mingw32.mk is the pkg-config call for the libs of gtkglext missing.
GTK_GLEXT_CFLAGS ?= $(call PKG_CFLAGS,gtkglext-1.0)
GTK_GLEXT_LIBS ?= $(call PKG_LIBS,gtkglext-1.0)