Jump to content
The Dark Mod Forums

DarkRadiant won't compile from source (ubuntu 20.04)


Recommended Posts

The compilation for the latest version pulled from Github fails for me with the following error messages:

 

/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::~DeflatedInputStream()':
DeflatedInputStream.cpp:(.text+0x1b): undefined reference to `inflateEnd'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::read(unsigned char*, unsigned long)':/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::~DeflatedInputStream()':
DeflatedInputStream.cpp:(.text+0x1b): undefined reference to `inflateEnd'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::read(unsigned char*, unsigned long)':
DeflatedInputStream.cpp:(.text+0xaa): undefined reference to `inflate'
/usr/bin/ld: DeflatedInputStream.cpp:(.text+0xca): undefined reference to `inflate'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::DeflatedInputStream(InputStream&)':
DeflatedInputStream.cpp:(.text+0x149): undefined reference to `inflateInit2_'
collect2: error: ld returned 1 exit status
make[2]: *** [radiantcore/CMakeFiles/radiantcore.dir/build.make:4154: radiantcore/libradiantcore.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:787: radiantcore/CMakeFiles/radiantcore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
DeflatedInputStream.cpp:(.text+0xaa): undefined reference to `inflate'
/usr/bin/ld: DeflatedInputStream.cpp:(.text+0xca): undefined reference to `inflate'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::DeflatedInputStream(InputStream&)':
DeflatedInputStream.cpp:(.text+0x149): undefined reference to `inflateInit2_'
collect2: error: ld returned 1 exit status
make[2]: *** [radiantcore/CMakeFiles/radiantcore.dir/build.make:4154: radiantcore/libradiantcore.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:787: radiantcore/CMakeFiles/radiantcore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

 

Any idea how I can fix this? Thanks

{ 0 | 🞵 }

My missions:          the Factory Heist

Link to post
Share on other sites

I followed the instructions at https://wiki.thedarkmod.com/index.php?title=DarkRadiant_-_Compiling_in_Linux#Ubuntu_20.04

I cloned the git repository into a new folder and installed all the packages it recommended, which includes zlib1g-dev, so that's unlikely to be the issue. I then did

cmake .
make

and it failed.

 

(btw, libjpeg-dev is also needed, but isn't listed on the wiki)

Edited by thebigh
typo

{ 0 | 🞵 }

My missions:          the Factory Heist

Link to post
Share on other sites

Could you please post the error using verbose make, i.e.

make VERBOSE=1

We don't need the whole build log, just the part where it tries to link the problematic library (which will probably say something like "Linking CXX shared module libradiantcore.so").

Link to post
Share on other sites

OK, here you go:

 

[ 30%] Linking CXX shared module libradiantcore.so
cd /home/thebigh/Games/DarkRadiant/radiantcore && /usr/bin/cmake -E cmake_link_script CMakeFiles/radiantcore.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC  -pthread -O3 -DNDEBUG -Wl,-z,defs -shared  -o libradiantcore.so CMakeFiles/radiantcore.dir/brush/Brush.cpp.o CMakeFiles/radiantcore.dir/brush/BrushModule.cpp.o CMakeFiles/radiantcore.dir/brush/BrushNode.cpp.o CMakeFiles/radiantcore.dir/brush/csg/CSG.cpp.o CMakeFiles/radiantcore.dir/brush/export/CollisionModel.cpp.o CMakeFiles/radiantcore.dir/brush/Face.cpp.o CMakeFiles/radiantcore.dir/brush/FaceInstance.cpp.o CMakeFiles/radiantcore.dir/brush/FacePlane.cpp.o CMakeFiles/radiantcore.dir/brush/FixedWinding.cpp.o CMakeFiles/radiantcore.dir/brush/TexDef.cpp.o CMakeFiles/radiantcore.dir/brush/TextureMatrix.cpp.o CMakeFiles/radiantcore.dir/brush/TextureProjection.cpp.o CMakeFiles/radiantcore.dir/brush/Winding.cpp.o CMakeFiles/radiantcore.dir/camera/Camera.cpp.o CMakeFiles/radiantcore.dir/camera/CameraManager.cpp.o CMakeFiles/radiantcore.dir/clipper/BrushByPlaneClipper.cpp.o CMakeFiles/radiantcore.dir/clipper/Clipper.cpp.o CMakeFiles/radiantcore.dir/clipper/ClipPoint.cpp.o CMakeFiles/radiantcore.dir/clipper/SplitAlgorithm.cpp.o CMakeFiles/radiantcore.dir/commandsystem/CommandSystem.cpp.o CMakeFiles/radiantcore.dir/eclass/Doom3EntityClass.cpp.o CMakeFiles/radiantcore.dir/eclass/EClassColourManager.cpp.o CMakeFiles/radiantcore.dir/eclass/EClassManager.cpp.o CMakeFiles/radiantcore.dir/entity/AngleKey.cpp.o CMakeFiles/radiantcore.dir/entity/curve/CurveCatmullRom.cpp.o CMakeFiles/radiantcore.dir/entity/curve/Curve.cpp.o CMakeFiles/radiantcore.dir/entity/curve/CurveEditInstance.cpp.o CMakeFiles/radiantcore.dir/entity/curve/CurveNURBS.cpp.o CMakeFiles/radiantcore.dir/entity/Doom3Entity.cpp.o CMakeFiles/radiantcore.dir/entity/doom3group/Doom3Group.cpp.o CMakeFiles/radiantcore.dir/entity/doom3group/Doom3GroupNode.cpp.o CMakeFiles/radiantcore.dir/entity/eclassmodel/EclassModelNode.cpp.o CMakeFiles/radiantcore.dir/entity/EntityModule.cpp.o CMakeFiles/radiantcore.dir/entity/EntityNode.cpp.o CMakeFiles/radiantcore.dir/entity/EntitySettings.cpp.o CMakeFiles/radiantcore.dir/entity/generic/GenericEntity.cpp.o CMakeFiles/radiantcore.dir/entity/generic/GenericEntityNode.cpp.o CMakeFiles/radiantcore.dir/entity/KeyValue.cpp.o CMakeFiles/radiantcore.dir/entity/KeyValueObserver.cpp.o CMakeFiles/radiantcore.dir/entity/light/Light.cpp.o CMakeFiles/radiantcore.dir/entity/light/LightNode.cpp.o CMakeFiles/radiantcore.dir/entity/light/Renderables.cpp.o CMakeFiles/radiantcore.dir/entity/ModelKey.cpp.o CMakeFiles/radiantcore.dir/entity/NameKeyObserver.cpp.o CMakeFiles/radiantcore.dir/entity/NamespaceManager.cpp.o CMakeFiles/radiantcore.dir/entity/RotationKey.cpp.o CMakeFiles/radiantcore.dir/entity/RotationMatrix.cpp.o CMakeFiles/radiantcore.dir/entity/ShaderParms.cpp.o CMakeFiles/radiantcore.dir/entity/speaker/SpeakerNode.cpp.o CMakeFiles/radiantcore.dir/entity/speaker/SpeakerRenderables.cpp.o CMakeFiles/radiantcore.dir/entity/target/TargetableNode.cpp.o CMakeFiles/radiantcore.dir/entity/target/TargetKeyCollection.cpp.o CMakeFiles/radiantcore.dir/entity/target/TargetKey.cpp.o CMakeFiles/radiantcore.dir/entity/target/TargetLineNode.cpp.o CMakeFiles/radiantcore.dir/entity/target/TargetManager.cpp.o CMakeFiles/radiantcore.dir/filetypes/FileTypeRegistry.cpp.o CMakeFiles/radiantcore.dir/filters/BasicFilterSystem.cpp.o CMakeFiles/radiantcore.dir/filters/XMLFilter.cpp.o CMakeFiles/radiantcore.dir/filters/XmlFilterEventAdapter.cpp.o CMakeFiles/radiantcore.dir/fonts/FontLoader.cpp.o CMakeFiles/radiantcore.dir/fonts/FontManager.cpp.o CMakeFiles/radiantcore.dir/fonts/GlyphInfo.cpp.o CMakeFiles/radiantcore.dir/fonts/GlyphSet.cpp.o CMakeFiles/radiantcore.dir/grid/GridManager.cpp.o CMakeFiles/radiantcore.dir/imagefile/BMPLoader.cpp.o CMakeFiles/radiantcore.dir/imagefile/dds.cpp.o CMakeFiles/radiantcore.dir/imagefile/ddslib.cpp.o CMakeFiles/radiantcore.dir/imagefile/ImageLoader.cpp.o CMakeFiles/radiantcore.dir/imagefile/JPEGLoader.cpp.o CMakeFiles/radiantcore.dir/imagefile/PNGLoader.cpp.o CMakeFiles/radiantcore.dir/imagefile/TGALoader.cpp.o CMakeFiles/radiantcore.dir/layers/LayerInfoFileModule.cpp.o CMakeFiles/radiantcore.dir/layers/LayerManager.cpp.o CMakeFiles/radiantcore.dir/layers/LayerModule.cpp.o CMakeFiles/radiantcore.dir/log/COutRedirector.cpp.o CMakeFiles/radiantcore.dir/log/LogFile.cpp.o CMakeFiles/radiantcore.dir/log/LogStreamBuf.cpp.o CMakeFiles/radiantcore.dir/log/LogStream.cpp.o CMakeFiles/radiantcore.dir/log/LogWriter.cpp.o CMakeFiles/radiantcore.dir/log/StringLogDevice.cpp.o CMakeFiles/radiantcore.dir/map/aas/AasFileManager.cpp.o CMakeFiles/radiantcore.dir/map/aas/Doom3AasFile.cpp.o CMakeFiles/radiantcore.dir/map/aas/Doom3AasFileLoader.cpp.o CMakeFiles/radiantcore.dir/map/aas/Doom3AasFileSettings.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/Export.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/Import.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/MapExporter.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/MapImporter.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/Models.cpp.o CMakeFiles/radiantcore.dir/map/algorithm/Skins.cpp.o CMakeFiles/radiantcore.dir/map/ArchivedMapResource.cpp.o CMakeFiles/radiantcore.dir/map/CounterManager.cpp.o CMakeFiles/radiantcore.dir/map/EditingStopwatch.cpp.o CMakeFiles/radiantcore.dir/map/EditingStopwatchInfoFileModule.cpp.o CMakeFiles/radiantcore.dir/map/format/Doom3MapFormat.cpp.o CMakeFiles/radiantcore.dir/map/format/Doom3MapReader.cpp.o CMakeFiles/radiantcore.dir/map/format/Doom3MapWriter.cpp.o CMakeFiles/radiantcore.dir/map/format/Doom3PrefabFormat.cpp.o CMakeFiles/radiantcore.dir/map/format/MapFormatManager.cpp.o CMakeFiles/radiantcore.dir/map/format/portable/PortableMapFormat.cpp.o CMakeFiles/radiantcore.dir/map/format/portable/PortableMapReader.cpp.o CMakeFiles/radiantcore.dir/map/format/portable/PortableMapWriter.cpp.o CMakeFiles/radiantcore.dir/map/format/primitiveparsers/BrushDef3.cpp.o CMakeFiles/radiantcore.dir/map/format/primitiveparsers/BrushDef.cpp.o CMakeFiles/radiantcore.dir/map/format/primitiveparsers/Patch.cpp.o CMakeFiles/radiantcore.dir/map/format/primitiveparsers/PatchDef2.cpp.o CMakeFiles/radiantcore.dir/map/format/primitiveparsers/PatchDef3.cpp.o CMakeFiles/radiantcore.dir/map/format/Quake3MapFormat.cpp.o CMakeFiles/radiantcore.dir/map/format/Quake3MapReader.cpp.o CMakeFiles/radiantcore.dir/map/format/Quake4MapFormat.cpp.o CMakeFiles/radiantcore.dir/map/format/Quake4MapReader.cpp.o CMakeFiles/radiantcore.dir/map/infofile/InfoFile.cpp.o CMakeFiles/radiantcore.dir/map/infofile/InfoFileExporter.cpp.o CMakeFiles/radiantcore.dir/map/infofile/InfoFileManager.cpp.o CMakeFiles/radiantcore.dir/map/Map.cpp.o CMakeFiles/radiantcore.dir/map/MapFileManager.cpp.o CMakeFiles/radiantcore.dir/map/MapModules.cpp.o CMakeFiles/radiantcore.dir/map/MapPosition.cpp.o CMakeFiles/radiantcore.dir/map/MapPositionManager.cpp.o CMakeFiles/radiantcore.dir/map/MapPropertyInfoFileModule.cpp.o CMakeFiles/radiantcore.dir/map/MapResource.cpp.o CMakeFiles/radiantcore.dir/map/MapResourceLoader.cpp.o CMakeFiles/radiantcore.dir/map/MapResourceManager.cpp.o CMakeFiles/radiantcore.dir/map/mru/MRU.cpp.o CMakeFiles/radiantcore.dir/map/namespace/ComplexName.cpp.o CMakeFiles/radiantcore.dir/map/namespace/Namespace.cpp.o CMakeFiles/radiantcore.dir/map/namespace/NamespaceFactory.cpp.o CMakeFiles/radiantcore.dir/map/PointFile.cpp.o CMakeFiles/radiantcore.dir/map/RegionManager.cpp.o CMakeFiles/radiantcore.dir/map/RootNode.cpp.o CMakeFiles/radiantcore.dir/model/export/AseExporter.cpp.o CMakeFiles/radiantcore.dir/model/export/Lwo2Chunk.cpp.o CMakeFiles/radiantcore.dir/model/export/Lwo2Exporter.cpp.o CMakeFiles/radiantcore.dir/model/export/ModelExporter.cpp.o CMakeFiles/radiantcore.dir/model/export/ModelScalePreserver.cpp.o CMakeFiles/radiantcore.dir/model/export/PatchSurface.cpp.o CMakeFiles/radiantcore.dir/model/export/ScaledModelExporter.cpp.o CMakeFiles/radiantcore.dir/model/export/WavefrontExporter.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5AnimationCache.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5Anim.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5Model.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5ModelLoader.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5ModelNode.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5Module.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5Skeleton.cpp.o CMakeFiles/radiantcore.dir/model/md5/MD5Surface.cpp.o CMakeFiles/radiantcore.dir/model/ModelCache.cpp.o CMakeFiles/radiantcore.dir/model/ModelFormatManager.cpp.o CMakeFiles/radiantcore.dir/model/NullModel.cpp.o CMakeFiles/radiantcore.dir/model/NullModelNode.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/PicoModelLoader.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/PicoModelModule.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/StaticModel.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/StaticModelNode.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/StaticModelSurface.cpp.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/clip.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/envelope.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/list.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/lwio.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/lwo2.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/lwob.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/pntspols.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/surface.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/vecmath.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/lwo/vmap.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/picointernal.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/picomodel.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/picomodules.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_3ds.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_ase.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_fm.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_lwo.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_md2.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_md3.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_mdc.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_ms3d.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_obj.c.o CMakeFiles/radiantcore.dir/model/picomodel/lib/pm_terrain.c.o CMakeFiles/radiantcore.dir/modulesystem/ModuleLoader.cpp.o CMakeFiles/radiantcore.dir/modulesystem/ModuleRegistry.cpp.o CMakeFiles/radiantcore.dir/particles/ParticleDef.cpp.o CMakeFiles/radiantcore.dir/particles/ParticleNode.cpp.o CMakeFiles/radiantcore.dir/particles/ParticleParameter.cpp.o CMakeFiles/radiantcore.dir/particles/ParticlesManager.cpp.o CMakeFiles/radiantcore.dir/particles/RenderableParticleBunch.cpp.o CMakeFiles/radiantcore.dir/particles/RenderableParticle.cpp.o CMakeFiles/radiantcore.dir/particles/RenderableParticleStage.cpp.o CMakeFiles/radiantcore.dir/particles/StageDef.cpp.o CMakeFiles/radiantcore.dir/patch/algorithm/General.cpp.o CMakeFiles/radiantcore.dir/patch/algorithm/Prefab.cpp.o CMakeFiles/radiantcore.dir/patch/Patch.cpp.o CMakeFiles/radiantcore.dir/patch/PatchModule.cpp.o CMakeFiles/radiantcore.dir/patch/PatchNode.cpp.o CMakeFiles/radiantcore.dir/patch/PatchRenderables.cpp.o CMakeFiles/radiantcore.dir/patch/PatchTesselation.cpp.o CMakeFiles/radiantcore.dir/precompiled.cpp.o CMakeFiles/radiantcore.dir/Radiant.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/GLProgramFactory.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/glprogram/GenericVFPProgram.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/glprogram/GLSLBumpProgram.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/glprogram/GLSLDepthFillProgram.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/OpenGLShader.cpp.o CMakeFiles/radiantcore.dir/rendersystem/backend/OpenGLShaderPass.cpp.o CMakeFiles/radiantcore.dir/rendersystem/debug/SpacePartitionRenderer.cpp.o CMakeFiles/radiantcore.dir/rendersystem/GLFont.cpp.o CMakeFiles/radiantcore.dir/rendersystem/OpenGLModule.cpp.o CMakeFiles/radiantcore.dir/rendersystem/OpenGLRenderSystem.cpp.o CMakeFiles/radiantcore.dir/rendersystem/RenderSystemFactory.cpp.o CMakeFiles/radiantcore.dir/rendersystem/SharedOpenGLContextModule.cpp.o CMakeFiles/radiantcore.dir/scenegraph/Octree.cpp.o CMakeFiles/radiantcore.dir/scenegraph/SceneGraph.cpp.o CMakeFiles/radiantcore.dir/scenegraph/SceneGraphFactory.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Curves.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Entity.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/General.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Group.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/GroupCycle.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Patch.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Planes.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Primitives.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Shader.cpp.o CMakeFiles/radiantcore.dir/selection/algorithm/Transformation.cpp.o CMakeFiles/radiantcore.dir/selection/clipboard/Clipboard.cpp.o CMakeFiles/radiantcore.dir/selection/group/SelectionGroupInfoFileModule.cpp.o CMakeFiles/radiantcore.dir/selection/group/SelectionGroupManager.cpp.o CMakeFiles/radiantcore.dir/selection/group/SelectionGroupModule.cpp.o CMakeFiles/radiantcore.dir/selection/ManipulationPivot.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/DragManipulator.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/ManipulatorBase.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/ManipulatorComponents.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/ModelScaleManipulator.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/RotateManipulator.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/ScaleManipulator.cpp.o CMakeFiles/radiantcore.dir/selection/manipulators/TranslateManipulator.cpp.o CMakeFiles/radiantcore.dir/selection/RadiantSelectionSystem.cpp.o CMakeFiles/radiantcore.dir/selection/SelectedNodeList.cpp.o CMakeFiles/radiantcore.dir/selection/selectionset/SelectionSet.cpp.o CMakeFiles/radiantcore.dir/selection/selectionset/SelectionSetInfoFileModule.cpp.o CMakeFiles/radiantcore.dir/selection/selectionset/SelectionSetManager.cpp.o CMakeFiles/radiantcore.dir/selection/selectionset/SelectionSetModule.cpp.o CMakeFiles/radiantcore.dir/selection/SelectionTestWalkers.cpp.o CMakeFiles/radiantcore.dir/selection/shaderclipboard/ClosestTexturableFinder.cpp.o CMakeFiles/radiantcore.dir/selection/shaderclipboard/ShaderClipboard.cpp.o CMakeFiles/radiantcore.dir/selection/shaderclipboard/Texturable.cpp.o CMakeFiles/radiantcore.dir/selection/TransformationVisitors.cpp.o CMakeFiles/radiantcore.dir/settings/ColourScheme.cpp.o CMakeFiles/radiantcore.dir/settings/ColourSchemeManager.cpp.o CMakeFiles/radiantcore.dir/settings/Game.cpp.o CMakeFiles/radiantcore.dir/settings/GameManager.cpp.o CMakeFiles/radiantcore.dir/settings/LanguageManager.cpp.o CMakeFiles/radiantcore.dir/settings/PreferencePage.cpp.o CMakeFiles/radiantcore.dir/settings/PreferenceSystem.cpp.o CMakeFiles/radiantcore.dir/shaders/CameraCubeMapDecl.cpp.o CMakeFiles/radiantcore.dir/shaders/CShader.cpp.o CMakeFiles/radiantcore.dir/shaders/Doom3ShaderLayer.cpp.o CMakeFiles/radiantcore.dir/shaders/Doom3ShaderSystem.cpp.o CMakeFiles/radiantcore.dir/shaders/MapExpression.cpp.o CMakeFiles/radiantcore.dir/shaders/ShaderExpression.cpp.o CMakeFiles/radiantcore.dir/shaders/ShaderLibrary.cpp.o CMakeFiles/radiantcore.dir/shaders/ShaderTemplate.cpp.o CMakeFiles/radiantcore.dir/shaders/TableDefinition.cpp.o CMakeFiles/radiantcore.dir/shaders/textures/GLTextureManager.cpp.o CMakeFiles/radiantcore.dir/shaders/textures/TextureManipulator.cpp.o CMakeFiles/radiantcore.dir/skins/Doom3SkinCache.cpp.o CMakeFiles/radiantcore.dir/undo/UndoSystem.cpp.o CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o CMakeFiles/radiantcore.dir/vfs/DirectoryArchive.cpp.o CMakeFiles/radiantcore.dir/vfs/Doom3FileSystem.cpp.o CMakeFiles/radiantcore.dir/vfs/Doom3FileSystemModule.cpp.o CMakeFiles/radiantcore.dir/vfs/ZipArchive.cpp.o CMakeFiles/radiantcore.dir/xmlregistry/RegistryTree.cpp.o CMakeFiles/radiantcore.dir/xmlregistry/XMLRegistry.cpp.o  -Wl,-rpath,/home/thebigh/Games/DarkRadiant/libs/wxutil:/home/thebigh/Games/DarkRadiant/libs/xmlutil:/home/thebigh/Games/DarkRadiant/libs/scene:/home/thebigh/Games/DarkRadiant/libs/math: ../libs/wxutil/libwxutil.so ../libs/module/libmodule.a -ljpeg -lpng12 ../libs/xmlutil/libxmlutil.so -lxml2 ../libs/scene/libscenegraph.so ../libs/math/libmath.so -L/usr/lib/x86_64-linux-gnu -pthread -lwx_baseu-3.0 -lwx_gtk3u_core-3.0 -lwx_gtk3u_stc-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_gl-3.0 -lwx_gtk3u_xrc-3.0 -lsigc-2.0 -lftgl -lGLEW -lGLU -lGL -ldl 
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::~DeflatedInputStream()':
DeflatedInputStream.cpp:(.text+0x1b): undefined reference to `inflateEnd'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::read(unsigned char*, unsigned long)':
DeflatedInputStream.cpp:(.text+0xaa): undefined reference to `inflate'
/usr/bin/ld: DeflatedInputStream.cpp:(.text+0xca): undefined reference to `inflate'
/usr/bin/ld: CMakeFiles/radiantcore.dir/vfs/DeflatedInputStream.cpp.o: in function `archive::DeflatedInputStream::DeflatedInputStream(InputStream&)':
DeflatedInputStream.cpp:(.text+0x149): undefined reference to `inflateInit2_'
collect2: error: ld returned 1 exit status
make[2]: *** [radiantcore/CMakeFiles/radiantcore.dir/build.make:4154: radiantcore/libradiantcore.so] Error 1
make[2]: Leaving directory '/home/thebigh/Games/DarkRadiant'
make[1]: *** [CMakeFiles/Makefile2:787: radiantcore/CMakeFiles/radiantcore.dir/all] Error 2
make[1]: Leaving directory '/home/thebigh/Games/DarkRadiant'
make: *** [Makefile:130: all] Error 2

 

{ 0 | 🞵 }

My missions:          the Factory Heist

Link to post
Share on other sites

Thanks.

Definitely no -lz in there, which looks like a deficiency in the CMakeLists. We are not explicitly linking against ZLIB, which probably worked fine on my system because some other library was including it by default but for some reason this doesn't happen on your system.

Link to post
Share on other sites

In Git commit 5ae45caff3147b8baf99ea0917b0068a62d79752 I've added ZLIB as a link dependency when building the radiantcore module, which hopefully will fix this problem. Since I don't see the issue on my system (it looks like linking with libpng automatically includes -lz as well) I can't guarantee that this will be the only place that linking with ZLIB is needed, but any other issues ought to be similarly easy to fix.

Link to post
Share on other sites

Thanks, I've pulled your changes into my repo.

What about the libjpeg package being required instead of libjpeg62? I can update the wiki to adjust the necessary packages, but what's the difference anyway?

Link to post
Share on other sites
10 hours ago, greebo said:

What about the libjpeg package being required instead of libjpeg62? I can update the wiki to adjust the necessary packages, but what's the difference anyway?

I'm not sure about the situation on Ubuntu 20.04, but on 20.10 which I'm currently using, it seems that libjpeg-dev depends on libjpeg-8-dev which in turn depends on libjpeg-turbo8-dev and finally on libjpeg-turbo8, which I presume has been selected as the default JPEG library instead of libjpeg62 for some reason (maybe performance).

I think on all Ubuntu versions the development package to install is libjpeg-dev, which might depend on libjpeg62 on some versions and libjpeg-turbo8 on others, but developers don't generally need to worry about the precise libjpeg implementation unless they are using advanced JPEG features.

Link to post
Share on other sites

Now I am getting these errors from the latest version:

 

[ 31%] Building CXX object radiantcore/CMakeFiles/radiantcore.dir/layers/LayerModule.cpp.o
/home/thebigh/Games/DarkRadiant/radiantcore/layers/LayerModule.cpp: In lambda function:
/home/thebigh/Games/DarkRadiant/radiantcore/layers/LayerModule.cpp:139:45: error: ‘_’ was not declared in this scope
  139 |                 throw cmd::ExecutionFailure(_("Cannot use an empty string as new layer name"));
      |                                             ^
/home/thebigh/Games/DarkRadiant/radiantcore/layers/LayerModule.cpp: In lambda function:
/home/thebigh/Games/DarkRadiant/radiantcore/layers/LayerModule.cpp:161:45: error: ‘_’ was not declared in this scope
  161 |                 throw cmd::ExecutionFailure(_("This layer ID doesn't exist"));
      |                                             ^
make[2]: *** [radiantcore/CMakeFiles/radiantcore.dir/build.make:1012: radiantcore/CMakeFiles/radiantcore.dir/layers/LayerModule.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:787: radiantcore/CMakeFiles/radiantcore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

 

{ 0 | 🞵 }

My missions:          the Factory Heist

Link to post
Share on other sites
  • 2 weeks later...

I'm afraid I have another compilation  error

 

/home/thebigh/Games/DarkRadiant/radiant/ui/modelselector/ModelSelector.cpp: In member function ‘void ui::ModelSelector::onModelLoaded(const ModelNodePtr&)’:
/home/thebigh/Games/DarkRadiant/radiant/ui/modelselector/ModelSelector.cpp:250:25: error: ‘GlobalEntityClassManager’ was not declared in this scope
  250 |         auto modelDef = GlobalEntityClassManager().findModel(modelName);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [radiant/CMakeFiles/darkradiant.dir/build.make:1714: radiant/CMakeFiles/darkradiant.dir/ui/modelselector/ModelSelector.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:818: radiant/CMakeFiles/darkradiant.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

 

I'm starting to think my machine is set up weirdly somehow and being pedantic about things other builds let slide, because I seem to be the only one getting errors like this. Still, bugs like this might pop up again later as OSses and packages get updated, so better to squelch them now instead of later when nobody can remember why "GlobalEntityClassManager" was handled this way in the first place.

{ 0 | 🞵 }

My missions:          the Factory Heist

Link to post
Share on other sites

No, it's not you or your machine, it's just me breaking the gcc build on a regular basis. The reason why I keep breaking it all that often is that I'm using precompiled headers in VC++ to speed up compilation, so I have a set of #include headers that are always and implicitly included in VC++, but gcc doesn't see that. I do fire up my VM s here and there to have a look and fixing the builds, but often I'm not fast enough and people run into it and report it first - and I'm glad you do, so keep it coming.

Actually, it would be nice to get precompiled headers working in g++ too, because it's really chopping down build times.

Link to post
Share on other sites

The latest CMake versions do support precompiled headers. Failing that, we have a custom hacked-together solution for it for TDM's CMake builds. I could also assist you in setting up an automated build pipeline for your repository to spot compile errors faster - just let me know :)

Link to post
Share on other sites

Some CI would actually be nice, but I haven't started looking for it so far, except for reading the github page.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...