Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-12-2016, 06:17   #16
kb1
Registered User

Join Date: Dec 2016
Posts: 13
Re: Compiling for Android

Egon,
In my OpenCPN root directory there's a file called VERSION.cmake.

This contains:
SET(VERSION_MAJOR "4")
SET(VERSION_MINOR "5")
SET(VERSION_PATCH "0")
SET(VERSION_DATE "2016-07-19")

When I used the wxqt branch it had:
SET(VERSION_MAJOR "3")
SET(VERSION_MINOR "3")
SET(VERSION_PATCH "2118")
SET(VERSION_DATE "2014-09-18")

Let me know what you find
Keith
kb1 is offline   Reply With Quote
Old 16-12-2016, 11:33   #17
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Compiling for Android

Quote:
Originally Posted by kb1 View Post
egon,
Update:
Just hit your problem with the plugins!
commented out the hard coded stuff - building libopencpn.so comes later
and presumably so does:
${NDK_Base}/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/libgnustl_shared.so

More:
cd /home/kb/OpenCPN/plugins
kb@kb-VPCYB15AB:~/OpenCPN/plugins$ find .|xargs grep -n -dskip Projects
./dashboard_pi/orig_CMakeLists.txt:214: #KB /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./dashboard_pi/CMakeLists.txt:214: #KB /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./dashboard_pi/CMakeLists.txt~:214: #KB /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./grib_pi/orig_CMakeLists.txt:188: #KB /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./grib_pi/CMakeLists.txt:188: #KB s/home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./grib_pi/CMakeLists.txt~:188: #KB s/home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./grib_pi/data/selzone.svg:20: inkscape:export-filename="C:\Users\Jeanpierremartine\Documents\Vis ual Studio 2013\Projects\OpenCPN\build\plugins\grib_pi\data\s elzone.png"
./grib_pi/data/request_end.svg:20: inkscape:export-filename="C:\Users\Jeanpierremartine\Documents\Vis ual Studio 2013\Projects\OpenCPN\build\plugins\grib_pi\data\r equest_end.png"

./wmm_pi/cmake/PluginConfigure.cmake:141: /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so
./chartdldr_pi/cmake/PluginConfigure.cmake:105: /home/dsr/Projects/opencpn_sf/opencpn/build-opencpn-Android_for_armeabi_v7a_GCC_4_8_Qt_5_5_0-Debug/libopencpn.so

./chartdldr_pi/src/unrar/UnRARDll.vcproj:76: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.d ef"
./chartdldr_pi/src/unrar/UnRARDll.vcproj:158: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.d ef"
./chartdldr_pi/src/unrar/UnRARDll.vcproj:248: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.d ef"
./chartdldr_pi/src/unrar/UnRARDll.vcproj:340: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll.d ef"
./chartdldr_pi/src/unrar/UnRARDll.vcproj:433: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll_n ocrypt.def"
./chartdldr_pi/src/unrar/UnRARDll.vcproj:525: ModuleDefinitionFile="D:\Projects\WinRAR\rar\dll_n ocrypt.def"

and now in the 90's % !!!!!
But next one:
[ 92%] Building CXX object plugins/chartdldr_pi/CMakeFiles/chartdldr_pi.dir/src/unrar/strfn.cpp.obj
cd /home/kb/OpenCPN/build_android/plugins/chartdldr_pi && /home/kb/android_ndk_toolchain/bin/arm-linux-androideabi-g++ -DANDROID -DARMHF -DLIBUNRAR_BUILD -DOCPN_USE_WRAPPER -DQT_WIDGETS_LIB -DRARDLL -DSILENT -DTIXML_USE_STL -DUNRAR -DUSE_GARMINHOST -DUSE_GLU_TESS -DUSE_S57 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__OCPN_USE_CURL__ -D__OCPN__ANDROID__ -D__WXQT__ -Dchartdldr_pi_EXPORTS -DocpnUSE_GL -DocpnUSE_GLES -pthread -fPIC -s -O2 -g -fPIC -I/home/kb/OpenCPN/include -I/home/kb/OpenCPN/src -I/home/kb/Qt/5.2.1/android_armv7/include/QtCore -I/home/kb/Qt/5.2.1/android_armv7/include -I/home/kb/Qt/5.2.1/android_armv7/include/QtWidgets -I/home/kb/Qt/5.2.1/android_armv7/include/QtGui -I/home/kb/Qt/5.2.1/android_armv7/include/QtOpenGL -I/home/kb/Qt/5.2.1/android_armv7/include/QtTest -I/home/kb/wxqt/wxWidgets/build_android/lib/wx/include/arm-linux-androideabi-qt-unicode-static-3.1 -I/home/kb/wxqt/wxWidgets/include -I/home/kb/OpenCPN/src/nmea0183 -I/home/kb/OpenCPN/src/mygdal -I/home/kb/OpenCPN/src/garmin/jeeps -I/home/kb/OpenCPN/src/texcmp/lz4 -I/home/kb/OpenCPN/src/texcmp/squish -I/home/kb/OpenCPN/build_android/plugins/chartdldr_pi/CMakeFiles/include -I/home/kb/OpenCPN/plugins/chartdldr_pi/include -I/home/kb/OpenCPN/plugins/chartdldr_pi/src -I/home/kb/OpenCPN/plugins/chartdldr_pi/src/unrar -I/home/kb/OpenCPN/plugins/chartdldr_pi/src/tinyxml -Wall -Wno-unused -fexceptions -rdynamic -g -fno-strict-aliasing -DPREFIX=\"/usr/local\" -Wall -Wno-unused-result -g -O2 -fexceptions -o CMakeFiles/chartdldr_pi.dir/src/unrar/strfn.cpp.obj -c /home/kb/OpenCPN/plugins/chartdldr_pi/src/unrar/strfn.cpp
/home/kb/OpenCPN/plugins/chartdldr_pi/src/unrar/strfn.cpp: In function 'void IntToExt(const char*, char*, size_t)':
/home/kb/OpenCPN/plugins/chartdldr_pi/src/unrar/strfn.cpp:22:35: error: 'UnkToWide' was not declared in this scope
UnkToWide(Src,DestW,ASIZE(DestW));
^
plugins/chartdldr_pi/CMakeFiles/chartdldr_pi.dir/build.make:218: recipe for target 'plugins/chartdldr_pi/CMakeFiles/chartdldr_pi.dir/src/unrar/strfn.cpp.obj' failed
make[2]: *** [plugins/chartdldr_pi/CMakeFiles/chartdldr_pi.dir/src/unrar/strfn.cpp.obj] Error 1

Can you simply comment the add_directory line in CMakeLists.txt to build without plugins first?

Did you build with success using wxqt on linux? You also might be interested in my latest work on wxqt:

https://github.com/wxWidgets/wxWidgets/pull/319

which should also improve things and afaik dave hasn't pulled yet.
seandepagnier is offline   Reply With Quote
Old 21-12-2016, 05:52   #18
kb1
Registered User

Join Date: Dec 2016
Posts: 13
Re: Compiling for Android

Hi boat_alexandra,
Are you seandepagnier?

Finally got it compiled and almost working!
Been too busy to look at your wxqt mods.

But I now have a SIGSEGV crash

In chart1.cpp at about line 2076
gFrame->Show( TRUE );

seems to cause this crash (from logcat):
F/libc ( 5832): Fatal signal 11 (SIGSEGV), code 2, fault addr 0xa27d2fe0 in tid 5859 (Thread-529)

I configured wxqt --with-opengl
I think that the fault is due to the qt version of toplevel.cpp being used in the build.
wxTopLevelWindowQt::Show doesn't exist! (Not very much seems to exist!)
But it exists in the gtk and gtk1 versions

So I commented out line 2076, but then got another similar crash.
Probably from another missing function.

Any ideas?
What config should I be using? OpenCPN seems to need --with-opengl.
How does toplevel.cpp get into the make?
I tried changing the qt version, but it didn't re-compile when I ran make.

Regards,
Keith
kb1 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Android Anchor Drag Alarm for Android? phantomracer Marine Electronics 17 14-11-2021 09:33
Compiling Under PowerPC - Missed libgps19 adolfogal OpenCPN 5 14-10-2010 12:56
Make - Problems (Compiling) schotenandi OpenCPN 2 10-10-2010 17:57
Compiling on Fedora 12 teejayevans OpenCPN 29 01-04-2010 00:34
Compiling OpenCPN on Fedora 12 inSaNo OpenCPN 9 08-12-2009 04:09

Advertise Here


All times are GMT -7. The time now is 07:20.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.