mirror of https://github.com/buggins/dlangui.git
fix linux build, and build instructions
This commit is contained in:
parent
6526083bf9
commit
21cf6bd401
13
README.md
13
README.md
|
@ -106,7 +106,7 @@ Win32 builds
|
||||||
|
|
||||||
Build and run using DUB:
|
Build and run using DUB:
|
||||||
|
|
||||||
git clone git@github.com:buggins/dlangui.git
|
git clone https://github.com/buggins/dlangui.git
|
||||||
cd dlangui
|
cd dlangui
|
||||||
dub run dlangui:example1
|
dub run dlangui:example1
|
||||||
|
|
||||||
|
@ -114,11 +114,12 @@ Build and run using DUB:
|
||||||
|
|
||||||
To develop using Visual-D, download sources for dlabgui and dependencies into some directory:
|
To develop using Visual-D, download sources for dlabgui and dependencies into some directory:
|
||||||
|
|
||||||
git clone git@github.com:buggins/dlangui.git
|
git clone https://github.com/buggins/dlangui.git
|
||||||
git clone https://github.com/DerelictOrg/DerelictUtil.git
|
git clone https://github.com/DerelictOrg/DerelictUtil.git
|
||||||
git clone https://github.com/DerelictOrg/DerelictFT.git
|
|
||||||
git clone https://github.com/DerelictOrg/DerelictFI.git
|
|
||||||
git clone https://github.com/DerelictOrg/DerelictGL3.git
|
git clone https://github.com/DerelictOrg/DerelictGL3.git
|
||||||
|
git clone https://github.com/DerelictOrg/DerelictFI.git
|
||||||
|
git clone https://github.com/DerelictOrg/DerelictFT.git
|
||||||
|
git clone https://github.com/DerelictOrg/DerelictSDL2.git
|
||||||
|
|
||||||
Then open .sln using Visual D.
|
Then open .sln using Visual D.
|
||||||
|
|
||||||
|
@ -140,6 +141,10 @@ To build dlangui apps, development packages for following libraries required:
|
||||||
|
|
||||||
xcb, xcb-util, xcb-shm, xcb-image, xcb-keysyms, X11-xcb, X11
|
xcb, xcb-util, xcb-shm, xcb-image, xcb-keysyms, X11-xcb, X11
|
||||||
|
|
||||||
|
E.g. in Ubuntu, you can use:
|
||||||
|
|
||||||
|
sudo apt-get install libxcb-image0-dev libxcb-shm0-dev libxcb-keysyms1-dev libfreeimage-dev
|
||||||
|
|
||||||
In runtime, .so for following libraries are being loaded (binary packages required):
|
In runtime, .so for following libraries are being loaded (binary packages required):
|
||||||
|
|
||||||
freetype, opengl, freeimage
|
freetype, opengl, freeimage
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<UseDefaultCompiler>true</UseDefaultCompiler>
|
<UseDefaultCompiler>true</UseDefaultCompiler>
|
||||||
<IncrementalLinking>true</IncrementalLinking>
|
<IncrementalLinking>true</IncrementalLinking>
|
||||||
<PreferOneStepBuild>true</PreferOneStepBuild>
|
<PreferOneStepBuild>true</PreferOneStepBuild>
|
||||||
<Compiler>DMD</Compiler>
|
<Compiler>DMD2</Compiler>
|
||||||
<Includes>
|
<Includes>
|
||||||
<Includes>
|
<Includes>
|
||||||
<Path>/home/lve/src/d/DerelictFT/source</Path>
|
<Path>/home/lve/src/d/DerelictFT/source</Path>
|
||||||
|
@ -30,6 +30,9 @@
|
||||||
<Target>StaticLibrary</Target>
|
<Target>StaticLibrary</Target>
|
||||||
<ExtraCompilerArguments>-version=USE_OPENGL
|
<ExtraCompilerArguments>-version=USE_OPENGL
|
||||||
</ExtraCompilerArguments>
|
</ExtraCompilerArguments>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<OutputPath>bin\Release</OutputPath>
|
<OutputPath>bin\Release</OutputPath>
|
||||||
|
@ -38,6 +41,9 @@
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<Target>StaticLibrary</Target>
|
<Target>StaticLibrary</Target>
|
||||||
<ExtraCompilerArguments>-version=USE_OPENGL</ExtraCompilerArguments>
|
<ExtraCompilerArguments>-version=USE_OPENGL</ExtraCompilerArguments>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Unittest|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Unittest|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -47,6 +53,9 @@
|
||||||
<OutputName>dlanguilib</OutputName>
|
<OutputName>dlanguilib</OutputName>
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<Target>StaticLibrary</Target>
|
<Target>StaticLibrary</Target>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="src\dlangui\core\logger.d" />
|
<Compile Include="src\dlangui\core\logger.d" />
|
||||||
|
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual Studio 2010
|
# Visual Studio 2010
|
||||||
Project("{3947E667-4C90-4C3A-BEB9-7148D6FE0D7C}") = "dlanguilib", "dlanguilib.dproj", "{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}"
|
Project("{3947E667-4C90-4C3A-BEB9-7148D6FE0D7C}") = "dlanguilib", "dlanguilib.dproj", "{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{3947E667-4C90-4C3A-BEB9-7148D6FE0D7D}") = "example1", "examples\example1\example1.dproj", "{440816C8-DBD6-454C-A0D7-B6E59CA1ED87}"
|
Project("{3947E667-4C90-4C3A-BEB9-7148D6FE0D7C}") = "example1", "examples\example1\example1.dproj", "{440816C8-DBD6-454C-A0D7-B6E59CA1ED87}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -13,16 +13,10 @@ Global
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.Build.0 = Release|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.ActiveCfg = Unittest|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.ActiveCfg = Unittest|Any CPU
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.ActiveCfg = Unittest|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.Build.0 = Unittest|Any CPU
|
|
||||||
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.Build.0 = Unittest|Any CPU
|
{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}.Unittest|Any CPU.Build.0 = Unittest|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<String>{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}</String>
|
<String>{440816C8-DBD6-454C-A0D7-B6E59CA1ED86}</String>
|
||||||
</DependentProjectIds>
|
</DependentProjectIds>
|
||||||
</DependentProjectIds>
|
</DependentProjectIds>
|
||||||
<Compiler>DMD</Compiler>
|
<Compiler>DMD2</Compiler>
|
||||||
<Includes>
|
<Includes>
|
||||||
<Includes>
|
<Includes>
|
||||||
<Path>/home/lve/src/d/dlangui/src</Path>
|
<Path>/home/lve/src/d/dlangui/src</Path>
|
||||||
|
@ -34,6 +34,9 @@
|
||||||
<ObjectsDirectory>obj/Debug</ObjectsDirectory>
|
<ObjectsDirectory>obj/Debug</ObjectsDirectory>
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<Target>Executable</Target>
|
<Target>Executable</Target>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<OutputPath>bin\Release</OutputPath>
|
<OutputPath>bin\Release</OutputPath>
|
||||||
|
@ -41,6 +44,9 @@
|
||||||
<ObjectsDirectory>obj/Release</ObjectsDirectory>
|
<ObjectsDirectory>obj/Release</ObjectsDirectory>
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<Target>Executable</Target>
|
<Target>Executable</Target>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Unittest|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Unittest|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -50,6 +56,9 @@
|
||||||
<OutputName>dlanguilib</OutputName>
|
<OutputName>dlanguilib</OutputName>
|
||||||
<Externalconsole>true</Externalconsole>
|
<Externalconsole>true</Externalconsole>
|
||||||
<Target>Executable</Target>
|
<Target>Executable</Target>
|
||||||
|
<UnittestMode>false</UnittestMode>
|
||||||
|
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
|
||||||
|
<DebugLevel>0</DebugLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="src\main.d" />
|
<Compile Include="src\main.d" />
|
||||||
|
|
Loading…
Reference in New Issue