Missing libs in dev pkg

For code related discussions and questions
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Missing libs in dev pkg

Post by milo christiansen »

The title says it all, these libs appear to be missing from my dev pkg;
iconv
dbghelp
freetype
fontconfig
expat

I am compiling with QT Creator using the .pro files I got from i-Nod.
(Thank you btw)

I have the latest dev pkg downloaded from source forge yesterday.
I also looked though my collection of old dev pkgs for the libs but I don't have them anywhere.

Also I get several errors for code that looks kind of like this;

Code: Select all

"some format string %"WhatIThinkIsAConstant"The rest of the format string"
Creator complains of a "Dangling % in format string". Since these are all writes to log files I can comment them out to continue.

Also when I try to link Creator can't find any libs unless I Change the Libs+= line in...Common.pri I think, to use full paths.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Missing libs in dev pkg

Post by i-NoD »

Should be here somewhere.

Usually devpkg is expected in "devpkg" folder in wzsrc root directory, alternatively you could specify full path into DEVDIR var(common.pri).
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: Missing libs in dev pkg

Post by milo christiansen »

Ok I think I now have all the libs I need but I still get this;

Code: Select all

Running build steps for project Warzone2100...
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w 
mingw32-make: Entering directory `C:/WZ2100/Warzone2100-build-desktop' 
cd build_tools\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[1]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/build_tools' 
cd autorevision\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/build_tools/autorevision' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/build_tools/autorevision' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/build_tools/autorevision' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/build_tools/autorevision' 
mingw32-make[1]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/build_tools' 
cd lib\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[1]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib' 
cd exceptionhandler\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/exceptionhandler' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/exceptionhandler' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/exceptionhandler' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/exceptionhandler' 
cd framework\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/framework' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/framework' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/framework' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/framework' 
cd gamelib\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/gamelib' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/gamelib' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/gamelib' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/gamelib' 
cd iniparser\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/iniparser' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/iniparser' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/iniparser' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/iniparser' 
cd ivis_common\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_common' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_common' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_common' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_common' 
cd ivis_opengl\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_opengl' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_opengl' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_opengl' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/ivis_opengl' 
cd netplay\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/netplay' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/netplay' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/netplay' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/netplay' 
cd script\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/script' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/script' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/script' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/script' 
cd sequence\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/sequence' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/sequence' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/sequence' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/sequence' 
cd sound\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/sound' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/sound' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/sound' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/sound' 
cd widget\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/widget' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[3]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/lib/widget' 
mingw32-make[3]: Nothing to be done for `first'. 
mingw32-make[3]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/widget' 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib/widget' 
mingw32-make[1]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/lib' 
cd src\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile 
mingw32-make[1]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/src' 
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug 
mingw32-make[2]: Entering directory `C:/WZ2100/Warzone2100-build-desktop/src' 
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o ..\data\Warzone2100_3.0.exe object_script.Warzone2100_3.0.Debug -LC:\Qt\2010.04\mingw\lib "-LC:\WZ2100\3.0 beta 2\devpkg\lib" -L../lib/exceptionhandler/debug -L../lib/framework/debug -L../lib/gamelib/debug -L../lib/iniparser/debug -L../lib/ivis_common/debug -L../lib/ivis_opengl/debug -L../lib/netplay/debug -L../lib/script/debug -L../lib/sequence/debug -L../lib/sound/debug -L../lib/widget/debug -mwindows -lmingw32 -lexceptionhandler -lframework -lgamelib -liniparser -livis_common -livis_opengl -lnetplay -lscript -lsequence -lsound -lwidget -lSDLmain -lSDL -lpng12 -lphysfs -lz -lpopt -lvorbisfile -lvorbis -logg -lintl -liconv -lGLC -lglu32 -lopengl32 -lopenal32 -ldbghelp -lbfd -liberty -lfreetype -lfontconfig -lexpat -ltheora -lshell32 -lws2_32 -lshlwapi -lshfolder -luser32 -lgdi32 -lwinmm 
mingw32-make[2]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/src' 
mingw32-make[1]: Leaving directory `C:/WZ2100/Warzone2100-build-desktop/src' 
mingw32-make: Leaving directory `C:/WZ2100/Warzone2100-build-desktop' 
C:\WZ2100\3.0 beta 2\devpkg\lib/libz.a(inflate.o):inflate.c:(.text+0xa0): multiple definition of `inflatePrime' 
C:\WZ2100\3.0 beta 2\devpkg\lib/libphysfs.a(inflate.obj):/home/dschridde/Projects/Warzone/devpkg/src/physfs-2.0.0/zlib123/inflate.c:132: first defined here 
C:\WZ2100\3.0 beta 2\devpkg\lib/libz.a(inflate.o):inflate.c:(.text+0x2a0): multiple definition of `inflateGetHeader' 
C:\WZ2100\3.0 beta 2\devpkg\lib/libphysfs.a(inflate.obj):/home/dschridde/Projects/Warzone/devpkg/src/physfs-2.0.0/zlib123/inflate.c:1214: first defined here 
C:\WZ2100\3.0 beta 2\devpkg\lib/libz.a(crc32.o):crc32.c:(.text+0x310): multiple definition of `crc32_combine' 
C:\WZ2100\3.0 beta 2\devpkg\lib/libphysfs.a(crc32.obj):/home/dschridde/Projects/Warzone/devpkg/src/physfs-2.0.0/zlib123/crc32.c:374: first defined here 
C:\WZ2100\3.0 beta 2\devpkg\lib/libz.a(adler32.o):adler32.c:(.text+0x290): multiple definition of `adler32_combine' 
C:\WZ2100\3.0 beta 2\devpkg\lib/libphysfs.a(adler32.obj):/home/dschridde/Projects/Warzone/devpkg/src/physfs-2.0.0/zlib123/adler32.c:132: first defined here 
./debug\structure.o: In function `setTileHeight': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src//map.h:359: undefined reference to `markTileDirty' 
./debug\lighting.o: In function `colourTile': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/lighting.c:467: undefined reference to `getTileColour' 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/lighting.c:497: undefined reference to `setTileColour' 
./debug\init.o: In function `stageOneShutDown': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/init.c:892: undefined reference to `shutdownTerrain' 
./debug\init.o: In function `campaignReset': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/init.c:1237: undefined reference to `shutdownTerrain' 
./debug\edit3d.o: In function `raiseTile': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/edit3d.c:70: undefined reference to `markTileDirty' 
./debug\edit3d.o: In function `lowerTile': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/edit3d.c:89: undefined reference to `markTileDirty' 
./debug\display3d.o: In function `drawTiles': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/display3d.c:849: undefined reference to `setTileColour' 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/display3d.c:874: undefined reference to `drawTerrain' 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/display3d.c:924: undefined reference to `drawWater' 
./debug\display3d.o: In function `init3DView': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src/display3d.c:1007: undefined reference to `initTerrain' 
./debug\bridge.o: In function `setTileHeight': 
C:\WZ2100\Warzone2100-build-desktop\src/../../3.0 beta 2/src//map.h:359: undefined reference to `markTileDirty' 
collect2: ld returned 1 exit status 
mingw32-make[2]: *** [..\data\Warzone2100_3.0.exe] Error 1 
mingw32-make[1]: *** [debug] Error 2 
mingw32-make: *** [sub-src-make_default-ordered] Error 2 
The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project Warzone2100 (target: Desktop)
When executing build step 'Make
The build steps:
Extract devpkg and source to "c:\wz2100\3.0 beta 2"
extract "3.0 pros.zip" (Thank You i-Nod) to "c:\wz2100\3.0 beta 2"
open "warzone2100.pro" in qt creator
click build
get errors for png.h
change png.h contents from "libpng12/png.h" to "#include "libpng12/png.h""
click build
creator can't find ANY libs
change libs line in common.pri to "LIBS += -L"C:\Qt\2010.04\mingw\lib" -L"C:\WZ2100\3.0 beta 2\devpkg\lib""
click build
get above output



Am I the only person who has these kind of problems compiling warzone? :augh:
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Missing libs in dev pkg

Post by i-NoD »

You should recompile physfs without internal libz (there should be some special definition, check the manual), as there is already libz in wz. Or you could try removing -lz from src project.

Undefined references is due to some missing source/header file in src project. Check terrain.c/.h or re-add all files in that folder.
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: Missing libs in dev pkg

Post by milo christiansen »

i-NoD wrote:You should recompile physfs without internal libz (there should be some special definition, check the manual), as there is already libz in wz. Or you could try removing -lz from src project.
I Should? I'm using the official dev pkgs, why aren't they that way already?
i-NoD wrote: Undefined references is due to some missing source/header file in src project. Check terrain.c/.h or re-add all files in that folder.
Will do.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual