PDA

View Full Version : Is there a simple way to have all the ClanLib featues installed?



Samnang
10-26-2014, 02:44 PM
./autogen.sh
./configure --prefix=/usr
Is there a simple way to have all the ClanLib featues installed?

Here is what I get.
The following options are set: (use ./configure --help for more options)

Installation Include Dir = /usr/include/ClanLib-3.0
Installation Library Dir = /usr/lib
Installation Docs Dir = /usr/share/doc/clanlib-3.0

The following modules will be built:

clanGL = no
clanApp = yes
clanDatabase = yes
clanSqlite = no
clanGUI = no
clanCompute = no
clanSWRender = no
clanCSSLayout = no
clanScene3D = no
clanPhysics3D = auto
clanPhysics2D = auto
clanGameIDE = no
clanCore = yes (SSE2 Enabled)
clanSound = yes (ALSA Disabled)
clanNetwork = yes
clanDisplay = no

Build Documentation = no
Debug Build = no (Use --enable-debug to enable)

Samnang
10-26-2014, 04:45 PM
./configure --prefix=/usr --enable-sse2 --enable-docs --enable-clanDisplay --enable-clanGL --enable-clanSound --enable-clanDatabase --enable-clanSqlite --enable-clanNetwork--enable-clanGUI --enable-clanCSSLayout --enable-clanScene3D --enable-clanPhysics3D --enable-clanPhysics2D --enable-clanGameIDE --enable-clanSWRender --enable-clanCompute --enable-getaddr --enable-debug --enable-profile --enable-maintainer-mode[QUOTE=Samnang;896271]./autogen.sh
./configure --prefix=/usr
And I get this :
Checking for clanDisplay stuff
==============================
checking for ttf... yes
checking linux/joystick.h usability... yes
checking linux/joystick.h presence... yes
checking for linux/joystick.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking for fontconfig... no
configure: error: *** Cannot find fontconfig (See http://fontconfig.org/ ) (Try libfontconfig1-dev or better)

ianborn@ianborn-HP-G62-Notebook-PC:~/freetype-2.4.1$ sudo apt-get install fontconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
fontconfig is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 283 not upgraded.
ianborn@ianborn-HP-G62-Notebook-PC:~/freetype-2.4.1$

So, what is a solution to this?

rombust
10-26-2014, 10:37 PM
Install the dependencies

See - http://clanlib.org/build-environment-linux-gcc.html

Samnang
10-28-2014, 09:49 AM
./configure --prefix=/usr --enable-sse2 --enable-docs --enable-clanDisplay --enable-clanGL --enable-clanSound --enable-clanDatabase --enable-clanSqlite --enable-clanNetwork --enable-clanGUI --enable-clanCSSLayout --enable-clanScene3D --enable-clanPhysics3D --enable-clanPhysics2D --enable-clanGameIDE --enable-clanSWRender --enable-clanCompute --enable-getaddr --enable-debug --enable-profile --enable-maintainer-mode

And it seems to work. When I run make, it gives me an error :
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"3.0.1\" -DPACKAGE_STRING=\"ClanLib\ 3.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"3.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DUSE_GETADDR=1 -I. -g -O2 -std=c++0x -msse2 -I/usr/include/freetype2 -I../../Sources -DDEBUG=1 -g -O0 -Wall -pg -g3 -ggdb3 -ftest-coverage -fprofile-arcs -Werror -MT Render/libclan30Display_la-graphic_context.lo -MD -MP -MF Render/.deps/libclan30Display_la-graphic_context.Tpo -c -o Render/libclan30Display_la-graphic_context.lo `test -f 'Render/graphic_context.cpp' || echo './'`Render/graphic_context.cpp
libtool: compile: g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"3.0.1\" "-DPACKAGE_STRING=\"ClanLib 3.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"3.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DUSE_GETADDR=1 -I. -g -O2 -std=c++0x -msse2 -I/usr/include/freetype2 -I../../Sources -DDEBUG=1 -g -O0 -Wall -pg -g3 -ggdb3 -ftest-coverage -fprofile-arcs -Werror -MT Render/libclan30Display_la-graphic_context.lo -MD -MP -MF Render/.deps/libclan30Display_la-graphic_context.Tpo -c Render/graphic_context.cpp -fPIC -DPIC -o Render/.libs/libclan30Display_la-graphic_context.o
Render/graphic_context.cpp: In member function 'clan::Texture clan::GraphicContext::get_texture(int) const':
Render/graphic_context.cpp:146:49: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if ((unit < 0) || (unit >= impl->textures.size()))
^
cc1plus: all warnings being treated as errors
make[2]: *** [Render/libclan30Display_la-graphic_context.lo] Error 1
make[2]: Leaving directory `/home/ianborn/ClanLib-3.0.1/Sources/Display'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ianborn/ClanLib-3.0.1/Sources'
make: *** [all-recursive] Error 1

rombust
10-30-2014, 12:50 PM
Just use: "./configure --prefix=/usr"

Samnang
10-30-2014, 08:01 PM
cc1plus: all warnings being treated as errors

After I change -Werror to --W in configure, everything are compiling fine.
There are a lot of warnings.