Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Android and allegro5 error cmake

This thread is locked; no one can reply to it. rss feed Print
Android and allegro5 error cmake
Iwan91
Member #14,487
August 2012

I'm using cywin on Windows 7 to compile allegro5 (5.1.7) with android-ndk-r8e.
I do my step according to README_android.txt but when I tried do this step
"mkdir build
cd build
cmake .. -DANDROID_NDK_TOOLCHAIN_ROOT=$TC -DWANT_ANDROID=on \
-DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF \
-DCMAKE_BUILD_TYPE=Debug
make && make install"

I get:

-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- The C compiler identification is GNU 4.6.0
-- The CXX compiler identification is GNU 4.6.0
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc
CMake Error: your C compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc -- broken
CMake Error at /usr/share/cmake-2.8.9/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler
"c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" is
not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)

CMake Error: your C compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

This file c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc exist but cmake don't see him. I don't know why.
Can you help me?

Max Savenkov
Member #4,613
May 2004
avatar

Do not use cygwin's cmake to create project, it won't work. Use Windows cmake, and it will create cygwin-compatible makefile.

Iwan91
Member #14,487
August 2012

When I tried windows camke (GUI) I get too error.

Selected Android toolchain: C:/androidSDK/android-ndk-r8e/toolchains
The C compiler identification is GNU 4.6.0
The CXX compiler identification is GNU 4.6.0
CMake Error: your RC compiler: "rc" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
Check for working C compiler: C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc
CMake Error: your RC compiler: "rc" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check for working C compiler: C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" is
not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)

CMake Error: your C compiler: "C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "C:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Configuring incomplete, errors occurred!

Here screenshot: http://imageshack.us/a/img46/1848/cmake.png

Max Savenkov
Member #4,613
May 2004
avatar

It's strange that it's trying to find an RC compiler. I didn't try to get cmake-gui to create Android project for me. Command line cmake, on the other hand, worked (but make sure you're using Windows console cmake; check output of 'which cmake' if you have cygwin in your PATH).

I used the following command line (inside allegro-5.1.6\buildandroid\ dir that I created):

cmake -G"Unix Makefiles" -DANDROID_NDK_TOOLCHAIN_ROOT=C:\alleg\android_toolchain\ -DWANT_ANDROID=on -DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF -DCMAKE_BUILD_TYPE=Debug -DWANT_MONOLITH=ON -DWANT_X11=OFF -DCMAKE_VERBOSE_MAKEFILE=ON ..

Iwan91
Member #14,487
August 2012

When I add windows cmake to environment variables PATH and then want compile in cygwin I get this error:

-- Building for: Visual Studio 9 2008
-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler using: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTes tCCompiler.cmake:61 (message):
The C compiler
"c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" is
not able to compile a simple test program. It fails with the following output: Change Dir: C:/androidSDK/android-ndk-r8e/toolchains/build/CMakeFiles/CMakeTm p Run Build Command:C:\cygwin\bin\make.exe CMAKE_TRY_COMPILE.sln /build Debug
/project cmTryCompileExec3286511663 make: Nie ma nic do zrobienia w `CMAKE_TRY_COMPILE.sln'. make: *** Brak reguĊ‚ do wykonania obiektu `/build'. Stop. CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)-- Configuring incomplete, errors occurred!

Cygwin using widnows cmake.
Here is command to cmake:
cmake d:/Projekty/C++/android_allegro5/allegro/ -DANDROID_NDK_TOOLCHAIN_ROOT=c:/androidSDK/android-ndk-r8e/toolchains -DWANT_ANDROID=on -DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF -DCMAKE_BUILD_TYPE=Debug

When I use windows cmd I get:

-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler using: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008 -- broken
CMake Error at c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTes
tCCompiler.cmake:61 (message):
The C compiler
"c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" is
not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/androidSDK/android-ndk-r8e/toolchains/build/CMakeFiles/CMakeTm
p

Run Build Command:C:\PROGRA~2\Borland\Delphi7\Bin\make.exe
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec878019602

MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.

Fatal: Unable to open makefile

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)

-- Configuring incomplete, errors occurred!

Max Savenkov
Member #4,613
May 2004
avatar

"Check for working C compiler using: Visual Studio 9 2008" - this is strange. Did you specify -G"Unix Makefiles" in command line? I do not see this switch in your initial command line, but you NEED to specify it.

(You should run Windows cmake from Windows command line).

Iwan91
Member #14,487
August 2012

When I specify my command with -G "Unix Makefiles" on cygwin or widnows cmd

cmake -G"Unix Makefiles" d:/Projekty/C++/android_allegro5/allegro/ -DANDROID_NDK_TOOLCHAIN_ROOT=c:/androidSDK/android-ndk-r8e/toolchains -DWANT_ANDROID=on -DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF -DCMAKE_BUILD_TYPE=Debug

I get again error:
-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- The C compiler identification is GNU 4.6.0
-- The CXX compiler identification is GNU 4.6.0
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc
CMake Error: your C compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" is
not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)

CMake Error: your C compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc really exist but cmake don't see him.

Max Savenkov
Member #4,613
May 2004
avatar

I don't really know what's wrong, but I see one more suspicious thing. Notice how it looks for "c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++" - without ".exe"! This usually happens when you try to use cygwin cmake, because under cygwin CMAKE_EXECUTABLE_SUFFIX is an empty string, and under Windows it's ".exe" (see cmake/Toolchain-android.cmake for its use).

I had exactly the same problem, but my only solution was to use Windows cmake, this helped me.

I assume you did create standalone android toolchain?

Iwan91
Member #14,487
August 2012

"I assume you did create standalone android toolchain?"
Yes

When I add .exe suffix I still get errors:
-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- The C compiler identification is GNU 4.6.0
-- The CXX compiler identification is GNU 4.6.0
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc.exe
-- Check for working C compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working CXX compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++.exe
-- Check for working CXX compiler: c:/androidSDK/android-ndk-r8e/toolchains/bin/arm-linux-androideabi-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:423 (test_big_endian)

-- Configuring incomplete, errors occurred!

Max Savenkov
Member #4,613
May 2004
avatar

A-ha! But we're getting somewhere. Now, compiler is OK, but size checks are failing. I've checked my notes and found I had this problem too. For now, nothing to do about it, but disabled failing check.

Modify your CMakeLists.txt, by commenting out this lines:

#include(TestBigEndian)

#if(NOT IPHONE)
# test_big_endian(ALLEGRO_BIG_ENDIAN)
#endif(NOT IPHONE)

Iwan91
Member #14,487
August 2012

Thanks a lot.
But now I must compile some example program and test it on android.

Max Savenkov
Member #4,613
May 2004
avatar

Good luck. It isn't so hard, although I prefer to use Visual Studio plugin from NVidia to do my Android development and soon will be getting a Tegra-based device specifically to get the most out of it.

Iwan91
Member #14,487
August 2012

I'm new to programming on android.
You mean that you use visual studio to compile stuff on android?
Can you give ma a tutorial or link to this pluing, becasue I want use visual studio to develop my application.

I do this step:

Run the ndk-build script from the NDK while in the root directory of your
project.

1. ANDROID_NDK_TOOLCHAIN_ROOT=$TC /home/username/android-ndk/ndk-build

2. Run "android update project -p .".

3. Run ant debug. This should completely build your project
resulting in an installable .apk file.

Now I have problem with NDK when perform step 1.
And don't know how to interpret 2 and 3 step.

Android NDK: ERROR:jni/Android.mk:allegro-prebuilt: LOCAL_SRC_FILES points to a
missing file
Android NDK: Check that jni/armeabi-v7a/liballegro-debug.so exists or that its
path is correct
c:/androidSDK/android-ndk-r8e/build/core/prebuilt-library.mk:45: *** Android NDK
: Aborting . Stop.

I don't have liballegro-debug.so file on HDD. I checked Allegro5 and NDK folder.

Do you think that can be problem with build cmake before because I get in cmd:
-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find FLAC (missing: FLAC_INCLUDE_DIR OGG_LIBRARY FLAC_LIBRARY)
WARNING: libFLAC not found or compile test failed, disabling support.
-- Could NOT find DUMB (missing: DUMB_INCLUDE_DIR DUMB_LIBRARY)
WARNING: libdumb not found or compile test failed, disabling support. <http://du mb.sourceforge.net/>
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
WARNING: libvorbis not found or compile test failed, disabling support.
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
WARNING: FreeType not found, disabling support.
-- Could NOT find PhysFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
-- Could NOT find PHYSFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
WARNING: allegro_video wanted but no supported backend found
-- Not building tests due to missing library. Have: allegro allegro_main allegro _image allegro_color allegro_font allegro_primitives
-- Configuring done
-- Generating done
-- Build files have been written to: C:/androidSDK/android-ndk-r8e/toolchains/bu ild

Max Savenkov
Member #4,613
May 2004
avatar

I never tried to compile allegro-based projects with command-line tools, so maybe someone else can help you with your errors.

As for VS plugin, while it's easier to use in the long run, it have some initial problems, the main being there is no ready-made project to compile Allegro for it. I managed it in about a week of mucking around, but I don't have a ready instruction on how to do it. I assume you wouldn't want to repeat my effort right now, because it will take too much time.

Still, if you're interested, you'll have to register at NVidia developers site (https://developer.nvidia.com/) apply for Tegra Developer Program, wait for approval (usually several days, but I had to wait a few weeks because of site glitch) and then download Nvidia Tegra Android Developer Pack 2.0 (TADP). It will include a plugin for Visual Studio (>=2010) as well as a copy of NDK and other Android stuff.

EDIT: now that I wrote it, it sounds awful :)

Iwan91
Member #14,487
August 2012

Why programming in c++ on android must be so complicated :/
Anyway thanks a lot again.

Thomas Fjellstrom
Member #476
June 2000
avatar

You need to copy the built allegro libs into your project's 'jni/armeabi-v7a' folder.

also, when you did step #1 above, what did you set $TC to? I'm assuming right now that it was never actually set, so what actually happened was you ran:

`ANDROID_NDK_TOOLCHAIN_ROOT= /home/username/android-ndk/ndk-build`

Because $TC was never set to anything.

Also I hope you actually ran ndk-build from the right location, and not /home/username/android-ndk/ndk-build because that is almost certainly not where it would be located.

Iwan91 said:

Why programming in c++ on android must be so complicated :/

The Native development platform for Android is Linux. Especially so when using the NDK.

There are various tools (ie: the classic Eclipse Android tools, the new Android Studio IDE from Google based on IntelliJ, and NVidia's Tegra toolkit) you can use to make android dev on other platforms a bit easier, but its still not going to be as easy.

Also, Google may never make Native development on Android easy. they really don't want it to be. You're supposed to make Android/Java applications, not native C/C++ applications.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Iwan91
Member #14,487
August 2012

"You need to copy the built allegro libs into your project's 'jni/armeabi-v7a' folder."
You mean allegro_monolith-debug-5.pc ? because I have only this one.

I have:
ANDROID_NDK_TOOLCHAIN_ROOT := c:/androidSDK/android-ndk-r8e/toolchains

I add to Widnows environemnt variable(PATH), path to c:\androidSDK\android-ndk-r8e\
So I go to my a android-project allegro5 and write ndk-build.cmd and I get:

Android NDK: ERROR:jni/Android.mk:allegro-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/armeabi-v7a/liballegro-debug.so exists or that its path is correct
/cygdrive/c/androidSDK/android-ndk-r8e/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.

It's weird because I don't have files *.so on my HDD. I was looking everywhere but no luck.

Maybe I do something wrong, because it's my first time when I compile application on android.

I want to know if default pack with allegro 5.1.7 have in android-project folder example project?

I forgot about something when I do:
"The following steps will build Allegro and install it to the Android toolchain
directory.

mkdir build
cd build
cmake .. -DANDROID_NDK_TOOLCHAIN_ROOT=$TC -DWANT_ANDROID=on \
-DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF \
-DCMAKE_BUILD_TYPE=Debug
make && make install
"
and I tried do make && make install I get error:

CMakeFiles/allegro_monolith.dir/build.make:55: *** wzorzec obiektu nie zawiera `%'. Stop.
CMakeFiles/Makefile2:63: recipe for target `CMakeFiles/allegro_monolith.dir/all' failed
make[1]: *** [CMakeFiles/allegro_monolith.dir/all] Error 2
Makefile:116: recipe for target `all' failed
make: *** [all] Error 2

Thomas Fjellstrom
Member #476
June 2000
avatar

Iwan91 said:

You mean allegro_monolith-debug-5.pc ? because I have only this one.

No. Shared Libraries end in .so, static end in .a (I'm not sure we have static libs working with android atm).

Quote:

It's weird because I don't have files *.so on my HDD. I was looking everywhere but no luck.

Then you didn't build allegro.

Quote:

I forgot about something when I do:

Can you paste the exact commands you've run? not just the example commands from the readme? It's important.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Iwan91
Member #14,487
August 2012

First I run this script:
export TC=c:/androidSDK/android-ndk-r8e/toolchains/
c:/androidSDK/android-ndk-r8e/build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=$TC

Result:
cygwin warning:
MS-DOS style path detected: c:/androidSDK/android-ndk-r8e/build/tools/make-standalone-toolchain.sh
Preferred POSIX equivalent is: /cygdrive/c/androidSDK/android-ndk-r8e/build/tools/make-standalone-toolchain.sh
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Auto-config: --toolchain=arm-linux-androideabi-4.6
Copying prebuilt binaries...
Copying sysroot headers and libraries...
Copying libstdc++ headers and libraries...
Copying files to: c:/androidSDK/android-ndk-r8e/toolchains/
Cleaning up...
Done.

Next I run this script:
cmake -G"Unix Makefiles" d:/Projekty/C++/android_allegro5/allegro/ -DANDROID_NDK_TOOLCHAIN_ROOT=c:/androidSDK/android-ndk-r8e/toolchains -DWANT_ANDROID=on -DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF -DCMAKE_BUILD_TYPE=Debug -DWANT_MONOLITH=ON

Result:
-- Selected Android toolchain: c:/androidSDK/android-ndk-r8e/toolchains
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find FLAC (missing: FLAC_INCLUDE_DIR OGG_LIBRARY FLAC_LIBRARY)
WARNING: libFLAC not found or compile test failed, disabling support.
-- Could NOT find DUMB (missing: DUMB_INCLUDE_DIR DUMB_LIBRARY)
WARNING: libdumb not found or compile test failed, disabling support. <http://dumb.sourceforge.net/>
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
WARNING: libvorbis not found or compile test failed, disabling support.
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
WARNING: FreeType not found, disabling support.
-- Could NOT find PhysFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
-- Could NOT find PHYSFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
-- Could NOT find OGG (missing: OGG_INCLUDE_DIR OGG_LIBRARY)
WARNING: allegro_video wanted but no supported backend found
-- Not building tests due to missing library. Have: allegro allegro_main allegro_image allegro_color allegro_font allegro_primitives
-- Configuring done
-- Generating done
-- Build files have been written to: C:/androidSDK/android-ndk-r8e/toolchains/build

Next I want run this:
make && make install

Result:
CMakeFiles/allegro_monolith.dir/build.make:55: *** wzorzec obiektu nie zawiera `%'. Stop.
CMakeFiles/Makefile2:63: recipe for target `CMakeFiles/allegro_monolith.dir/all' failed
make[1]: *** [CMakeFiles/allegro_monolith.dir/all] Error 2
Makefile:116: recipe for target `all' failed
make: *** [all] Error 2

I think that error in last command don't give me good files.

Thomas Fjellstrom
Member #476
June 2000
avatar

Yup. The last command failed. I've never used cygwin to build allegro and the android stuff, so I can't really help there. Might be that you should try a different version of make? I'm not sure.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Iwan91
Member #14,487
August 2012

I think that I find make.exe that can compile this. Command:
c:/androidSDK/android-ndk-r8e/prebuilt/windows/bin/make.exe && c:/androidSDK/android-ndk-r8e/prebuilt/windows/bin/make.exe install

But again I get error:
Linking CXX shared library lib/liballegro_monolith-debug.so
arm-linux-androideabi-g++.exe: error: CMakeFiles/allegro_monolith.dir/src/allegr o.c.o CMakeFiles/allegro_monolith.dir/src/bitmap.c.o CMakeFiles/allegro_monolith .dir/src/bitmap_draw.c.o CMakeFiles/allegro_monolith.dir/src/bitmap_io.c.o CMake Files/allegro_monolith.dir/src/bitmap_lock.c.o CMakeFiles/allegro_monolith.dir/s rc/bitmap_pixel.c.o CMakeFiles/allegro_monolith.dir/src/bitmap_type.c.o CMakeFil es/allegro_monolith.dir/src/blenders.c.o CMakeFiles/allegro_monolith.dir/src/con fig.c.o CMakeFiles/allegro_monolith.dir/src/convert.c.o CMakeFiles/allegro_monol ith.dir/src/debug.c.o CMakeFiles/allegro_monolith.dir/src/display.c.o CMakeFiles allegro_monolith.dir/src/display_settings.c.o CMakeFiles/allegro_monolith.dir/s rc/drawing.c.o CMakeFiles/allegro_monolith.dir/src/dtor.c.o CMakeFiles/allegro_m onolith.dir/src/events.c.o CMakeFiles/allegro_monolith.dir/src/evtsrc.c.o CMakeF iles/allegro_monolith.dir/src/exitfunc.c.o CMakeFiles/allegro_monolith.dir/src/f ile.c.o CMakeFiles/allegro_monolith.dir/src/file_slice.c.o CMakeFiles/allegro_mo nolith.dir/src/file_stdio.c.o CMakeFiles/allegro_monolith.dir/src/fshook.c.o CMa keFiles/allegro_monolith.dir/src/fshook_stdio.c.o CMakeFiles/allegro_monolith.di r/src/fullscreen_mode.c.o CMakeFiles/allegro_monolith.dir/src/inline.c.o CMakeFi les/allegro_monolith.dir/src/joynu.c.o CMakeFiles/allegro_monolith.dir/src/keybd nu.c.o CMakeFiles/allegro_monolith.dir/src/libc.c.o CMakeFiles/allegro_monolith. dir/src/math.c.o CMakeFiles/allegro_monolith.dir/src/memblit.c.o CMakeFiles/alle gro_monolith.dir/src/memdraw.c.o CMakeFiles/allegro_monolith.dir/src/memory.c.o CMakeFiles/allegro_monolith.dir/src/monitor.c.o CMakeFiles/allegro_monolith.dir src/mousenu.c.o CMakeFiles/allegro_monolith.dir/src/mouse_cursor.c.o CMakeFiles/ allegro_monolith.dir/src/path.c.o CMakeFiles/allegro_monolith.dir/src/pixels.c.o CMakeFiles/allegro_monolith.dir/src/shader.c.o CMakeFiles/allegro_monolith.dir/ src/system.c.o CMakeFiles/allegro_monolith.dir/src/threads.c.o CMakeFiles/allegr o_monolith.dir/src/timernu.c.o CMakeFiles/allegro_monolith.dir/src/tls.c.o CMake Files/allegro_monolith.dir/src/touch_input.c.o CMakeFiles/allegro_monolith.dir/s rc/transformations.c.o CMakeFiles/allegro_monolith.dir/src/tri_soft.c.o CMakeFil es/allegro_monolith.dir/src/utf8.c.o CMakeFiles/allegro_monolith.dir/src/misc/aa tree.c.o CMakeFiles/allegro_monolith.dir/src/misc/bstrlib.c.o CMakeFiles/allegro _monolith.dir/src/misc/list.c.o CMakeFiles/allegro_monolith.dir/src/misc/vector. c.o CMakeFiles/allegro_monolith.dir/src/unix/utime.c.o CMakeFiles/allegro_monoli th.dir/src/unix/uxthread.c.o CMakeFiles/allegro_monolith.dir/src/android/android _apk_file.c.o CMakeFiles/allegro_monolith.dir/src/android/android_display.c.o CM akeFiles/allegro_monolith.dir/src/android/android_joystick.c.o CMakeFiles/allegr o_monolith.dir/src/android/android_mouse.c.o CMakeFiles/allegro_monolith.dir/src android/android_keyboard.c.o CMakeFiles/allegro_monolith.dir/src/android/androi d_system.c.o CMakeFiles/allegro_monolith.dir/src/android/android_touch.c.o CMake Files/allegro_monolith.dir/src/android/jni_helpers.c.o CMakeFiles/allegro_monoli th.dir/src/opengl/extensions.c.o CMakeFiles/allegro_monolith.dir/src/opengl/ogl_ bitmap.c.o CMakeFiles/allegro_monolith.dir/src/opengl/ogl_display.c.o CMakeFiles allegro_monolith.dir/src/opengl/ogl_draw.c.o CMakeFiles/allegro_monolith.dir/sr c/opengl/ogl_fbo.c.o CMakeFiles/allegro_monolith.dir/src/opengl/ogl_lock.c.o CMa keFiles/allegro_monolith.dir/src/opengl/ogl_lock_es.c.o CMakeFiles/allegro_monol ith.dir/src/opengl/ogl_render_state.c.o CMakeFiles/allegro_monolith.dir/src/open gl/ogl_shader.c.o CMakeFiles/allegro_monolith.dir/addons/primitives/high_primiti ves.c.o CMakeFiles/allegro_monolith.dir/addons/primitives/line_soft.c.o CMakeFil es/allegro_monolith.dir/addons/primitives/point_soft.c.o CMakeFiles/allegro_mono lith.dir/addons/primitives/polygon.c.o CMakeFiles/allegro_monolith.dir/addons/pr imitives/polyline.c.o CMakeFiles/allegro_monolith.dir/addons/primitives/prim_dir ectx.cpp.o CMakeFiles/allegro_monolith.dir/addons/primitives/prim_opengl.c.o CMa keFiles/allegro_monolith.dir/addons/primitives/prim_soft.c.o CMakeFiles/allegro_ monolith.dir/addons/primitives/prim_util.c.o CMakeFiles/allegro_monolith.dir/add ons/primitives/primitives.c.o CMakeFiles/allegro_monolith.dir/addons/primitives triangulator.c.o CMakeFiles/allegro_monolith.dir/addons/image/bmp.c.o CMakeFiles allegro_monolith.dir/addons/image/iio.c.o CMakeFiles/allegro_monolith.dir/addon s/image/pcx.c.o CMakeFiles/allegro_monolith.dir/addons/image/tga.c.o CMakeFiles allegro_monolith.dir/addons/image/android.c.o CMakeFiles/allegro_monolith.dir/ad dons/font/font.c.o CMakeFiles/allegro_monolith.dir/addons/font/fontbmp.c.o CMake Files/allegro_monolith.dir/addons/font/stdfont.c.o CMakeFiles/allegro_monolith.d ir/addons/font/text.c.o CMakeFiles/allegro_monolith.dir/addons/audio/audio.c.o C MakeFiles/allegro_monolith.dir/addons/audio/audio_io.c.o CMakeFiles/allegro_mono lith.dir/addons/audio/kcm_dtor.c.o CMakeFiles/allegro_monolith.dir/addons/audio kcm_instance.c.o CMakeFiles/allegro_monolith.dir/addons/audio/kcm_mixer.c.o CMak eFiles/allegro_monolith.dir/addons/audio/kcm_sample.c.o CMakeFiles/allegro_monol ith.dir/addons/audio/kcm_stream.c.o CMakeFiles/allegro_monolith.dir/addons/audio /kcm_voice.c.o CMakeFiles/allegro_monolith.dir/addons/audio/recorder.c.o CMakeFi les/allegro_monolith.dir/addons/audio/opensl.c.o CMakeFiles/allegro_monolith.dir /addons/acodec/acodec.c.o CMakeFiles/allegro_monolith.dir/addons/acodec/wav.c.o CMakeFiles/allegro_monolith.dir/addons/acodec/helper.c.o CMakeFiles/allegro_mono lith.dir/addons/color/color.c.o CMakeFiles/allegro_monolith.dir/addons/memfile/m emfile.c.o CMakeFiles/allegro_monolith.dir/addons/main/generic_main.c.o : No suc h file or directory
make[2]: *** [lib/liballegro_monolith-debug.so] Error 1
make[1]: *** [CMakeFiles/allegro_monolith.dir/all] Error 2
make: *** [all] Error 2

What do you think?

Go to: