Problems building or running the engine, queries about how to use features etc.
ddeath
Kobold
Posts: 37 Joined: Sat Sep 28, 2013 9:15 am
x 2
Quote
0
login to like this post
Post
by ddeath » Sat May 17, 2014 11:35 pm
Hi there,
I`m trying to compile Ogre for android with boost...
I have boost compiled for android already, but when I run
Code: Select all
cmake -DCMAKE_TOOLCHAIN_FILE="`pwd`/../CMake/toolchain/android.toolchain.cmake" -DOGRE_DEPENDENCIES_DIR="`pwd`/../AndroidDependencies" -DANDROID_ABI=armeabi -DANDROID_NATIVE_API_LEVEL=9 ..
Feature sumary looks like:
Code: Select all
----------------------------------------------------------------------------
FEATURE SUMMARY
----------------------------------------------------------------------------
Building components:
+ Paging
+ MeshLodGenerator
+ Terrain
+ RTShader System
+ RTShader System Core Shaders
+ RTShader System Extensions Shaders
+ Volume
+ Overlay
Building plugins:
+ Octree scene manager
+ Particle FX
Building rendersystems:
+ OpenGL ES 2.x
Building executables:
+ Samples
Building core features:
+ Mesh Lod
+ DDS image codec
+ PVRTC image codec
+ ETC image codec
+ FreeImage codec
+ ZIP archives
Build type: static
Threading support: none
Use double precision: disabled
Assert mode: standard
Allocator type: nedmalloc (pooling)
STL containers use allocator: enabled
Strings use allocator: disabled
Memory tracker (debug): disabled
Memory tracker (release): disabled
Use Boost: disabled
Last edited by
ddeath on Sun May 18, 2014 5:46 pm, edited 3 times in total.
Linux Mint 16
CPU: i5-430M
GPU: ATI Mobility Radeon HD 5650
c6burns
Beholder
Posts: 1512 Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138
Quote
1
login to like this post
Post
by c6burns » Sat May 17, 2014 11:53 pm
It probably isn't finding boost for any number of reasons. The most common one being that your boost libraries are not named as CMake expects, either because they aren't compiled with the same settings you are passing to CMake, or because boost's build system has some naming inconsistency. Make use of the Boost_DEBUG flag (eg. cmake -DBoost_DEBUG=ON) so you can see where CMake is searching and what library names/versions it is using in the search. The way I ended up building boost was with a modified user-config.jam and there were naming inconsistencies which I had to correct at the end.
ddeath
Kobold
Posts: 37 Joined: Sat Sep 28, 2013 9:15 am
x 2
Quote
0
login to like this post
Post
by ddeath » Sat May 17, 2014 11:57 pm
I tried that flag before and it is strange because:
Code: Select all
- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:493 ] _boost_TEST_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:495 ] Boost_USE_MULTITHREADED = TRUE
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:497 ] Boost_USE_STATIC_LIBS = TRUE
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:499 ] Boost_USE_STATIC_RUNTIME =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:501 ] Boost_ADDITIONAL_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:503 ] Boost_NO_SYSTEM_PATHS =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:555 ] Declared as CMake or Environmental Variables:
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:557 ] BOOST_ROOT =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:559 ] BOOST_INCLUDEDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:561 ] BOOST_LIBRARYDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:563 ] _boost_TEST_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:657 ] location of version.hpp: /home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/version.hpp
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:681 ] version.hpp reveals boost 1.53.0
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:757 ] guessed _boost_COMPILER = -gcc48
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:767 ] _boost_MULTITHREADED = -mt
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:810 ] _boost_RELEASE_ABI_TAG = -
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:812 ] _boost_DEBUG_ABI_TAG = -d
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:861 ] _boost_LIBRARY_SEARCH_DIRS = /home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/lib;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/../lib;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/../lib/;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:949 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc48-mt-1_53;boost_thread-gcc48-mt;boost_thread-mt-1_53;boost_thread-mt;boost_thread
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:985 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc48-mt-d-1_53;boost_thread-gcc48-mt-d;boost_thread-mt-d-1_53;boost_thread-mt-d;boost_thread-mt;boost_thread
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:949 ] Searching for DATE_TIME_LIBRARY_RELEASE: boost_date_time-gcc48-mt-1_53;boost_date_time-gcc48-mt;boost_date_time-mt-1_53;boost_date_time-mt;boost_date_time
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:985 ] Searching for DATE_TIME_LIBRARY_DEBUG: boost_date_time-gcc48-mt-d-1_53;boost_date_time-gcc48-mt-d;boost_date_time-mt-d-1_53;boost_date_time-mt-d;boost_date_time-mt;boost_date_time
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1036 ] Boost_FOUND = 1
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:493 ] _boost_TEST_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:495 ] Boost_USE_MULTITHREADED = TRUE
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:497 ] Boost_USE_STATIC_LIBS = OFF
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:499 ] Boost_USE_STATIC_RUNTIME =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:501 ] Boost_ADDITIONAL_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:503 ] Boost_NO_SYSTEM_PATHS =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:555 ] Declared as CMake or Environmental Variables:
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:557 ] BOOST_ROOT =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:559 ] BOOST_INCLUDEDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:561 ] BOOST_LIBRARYDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:563 ] _boost_TEST_VERSIONS = 1.55;1.55.0;1.54;1.54.0;1.53;1.53.0;1.52;1.52.0;1.51;1.51.0;1.50;1.50.0;1.49;1.49.0;1.48;1.48.0;1.47;1.47.0;1.46;1.46.0;1.45;1.45.0;1.44;1.44.0;1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:657 ] location of version.hpp: /home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/version.hpp
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:681 ] version.hpp reveals boost 1.53.0
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:757 ] guessed _boost_COMPILER = -gcc48
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:767 ] _boost_MULTITHREADED = -mt
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:810 ] _boost_RELEASE_ABI_TAG = -
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:812 ] _boost_DEBUG_ABI_TAG = -d
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:861 ] _boost_LIBRARY_SEARCH_DIRS = /home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/lib;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/../lib;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/../lib/;/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:949 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc48-mt-1_53;boost_thread-gcc48-mt;boost_thread-mt-1_53;boost_thread-mt;boost_thread
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:985 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc48-mt-d-1_53;boost_thread-gcc48-mt-d;boost_thread-mt-d-1_53;boost_thread-mt-d;boost_thread-mt;boost_thread
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:949 ] Searching for DATE_TIME_LIBRARY_RELEASE: boost_date_time-gcc48-mt-1_53;boost_date_time-gcc48-mt;boost_date_time-mt-1_53;boost_date_time-mt;boost_date_time
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:985 ] Searching for DATE_TIME_LIBRARY_DEBUG: boost_date_time-gcc48-mt-d-1_53;boost_date_time-gcc48-mt-d;boost_date_time-mt-d-1_53;boost_date_time-mt-d;boost_date_time-mt;boost_date_time
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1036 ] Boost_FOUND = 1
I suppose that it means that boost was found..
wait... probably name inconsistency....
Linux Mint 16
CPU: i5-430M
GPU: ATI Mobility Radeon HD 5650
ddeath
Kobold
Posts: 37 Joined: Sat Sep 28, 2013 9:15 am
x 2
Quote
0
login to like this post
Post
by ddeath » Sun May 18, 2014 12:09 am
Ok it was just name inconsistency...
as output said it was looking for: boost_thread-gcc48-mt-1_53 and I had boost_thread-gcc-mt-1_53
Linux Mint 16
CPU: i5-430M
GPU: ATI Mobility Radeon HD 5650
ddeath
Kobold
Posts: 37 Joined: Sat Sep 28, 2013 9:15 am
x 2
Quote
0
login to like this post
Post
by ddeath » Sun May 18, 2014 6:35 am
Hi I`m almost done but I have a problem with linker no...
Code: Select all
/home/ddeath/android/ogre/OgreMain/include/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()'
/home/ddeath/android/ogre/OgreMain/include/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()'
/home/ddeath/android/ogre/OgreMain/include/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/system/error_code.hpp:214: error: undefined reference to 'boost::system::generic_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/system/error_code.hpp:215: error: undefined reference to 'boost::system::generic_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/system/error_code.hpp:216: error: undefined reference to 'boost::system::system_category()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:79: error: undefined reference to 'boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:84: error: undefined reference to 'boost::detail::get_tss_data(void const*)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:105: error: undefined reference to 'boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:79: error: undefined reference to 'boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/home/ddeath/android/ogre/OgreMain/src/OgreRoot.cpp:170: error: undefined reference to 'boost::thread::hardware_concurrency()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:79: error: undefined reference to 'boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:84: error: undefined reference to 'boost::detail::get_tss_data(void const*)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:84: error: undefined reference to 'boost::detail::get_tss_data(void const*)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/tss.hpp:84: error: undefined reference to 'boost::detail::get_tss_data(void const*)'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/condition_variable.hpp:84: error: undefined reference to 'boost::this_thread::interruption_point()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:169: error: undefined reference to 'boost::this_thread::disable_interruption::disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:178: error: undefined reference to 'boost::this_thread::disable_interruption::~disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:178: error: undefined reference to 'boost::this_thread::disable_interruption::~disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:69: error: undefined reference to 'boost::this_thread::disable_interruption::disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:77: error: undefined reference to 'boost::this_thread::disable_interruption::~disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/shared_mutex.hpp:77: error: undefined reference to 'boost::this_thread::disable_interruption::~disable_interruption()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:91: error: undefined reference to 'boost::detail::thread_data_base::~thread_data_base()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:91: error: undefined reference to 'boost::detail::thread_data_base::~thread_data_base()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/thread_data.hpp:185: error: undefined reference to 'boost::detail::get_current_thread_data()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/pthread/condition_variable.hpp:187: error: undefined reference to 'boost::this_thread::interruption_point()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:725: error: undefined reference to 'boost::thread::native_handle()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:751: error: undefined reference to 'boost::thread::join_noexcept()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:251: error: undefined reference to 'boost::thread::joinable() const'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/thread/detail/thread.hpp:180: error: undefined reference to 'boost::thread::start_thread_noexcept()'
/home/ddeath/android/ogre/AndroidDependencies/include/boost-1_53/boost/smart_ptr/detail/shared_count.hpp:132: error: undefined reference to 'vtable for boost::detail::thread_data_base'
/home/ddeath/android/ogre/build/lib/libOgreMainStatic.a(OgreDefaultWorkQueueStandard.cpp.o):OgreDefaultWorkQueueStandard.cpp:function typeinfo for boost::detail::thread_data<Ogre::DefaultWorkQueueBase::WorkerFunc>: error: undefined reference to 'typeinfo for boost::detail::thread_data_base'
I have boost libs in AndroidDep dir.. so it should be ok... so idk....
Linux Mint 16
CPU: i5-430M
GPU: ATI Mobility Radeon HD 5650
ddeath
Kobold
Posts: 37 Joined: Sat Sep 28, 2013 9:15 am
x 2
Quote
0
login to like this post
Post
by ddeath » Sun May 18, 2014 5:47 pm
I modified Android.mk.in file and appended full path to all boost libs, then it was ok...
Linux Mint 16
CPU: i5-430M
GPU: ATI Mobility Radeon HD 5650