Compiling wxWidgets 3.1.1 in Termux

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
igavronski
Knows some wx things
Knows some wx things
Posts: 30
Joined: Mon Jul 15, 2019 12:52 pm

Re: Compiling wxWidgets 3.1.1 in Termux

Post by igavronski »

Could someone please let me know the output of their (regular Linux box):

Code: Select all

$ cd wxWidgets
$ mkdir newbuild
$ ../configure --with-gtk=2
$ make
$ nm *.o | grep wxCmd
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
0000000000000000 W _ZN18wxCmdLineArgsArrayD2Ev
0000000000000000 T _ZN15wxCmdLineParser19ConvertStringToArgsERK8wxString18wxCmdLineSplitType
0000000000000000 W _ZN18wxCmdLineArgsArray4InitIwEEviPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
                 U _ZN15wxCmdLineParser19ConvertStringToArgsERK8wxString18wxCmdLineSplitType
                 U _ZN15wxCmdLineParser7SetDescEPK18wxCmdLineEntryDesc
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase15OnCmdLineParsedER15wxCmdLineParser
0000000000000270 T _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
000000000000029c T _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
0000000000000000 r _ZZN9wxAppBase13OnInitCmdLineER15wxCmdLineParserE14cmdLineGUIDesc
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
0000000000000000 W _ZN18wxCmdLineArgsArray4InitIwEEviPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
                 U _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
I would like to compare with mine.
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Compiling wxWidgets 3.1.1 in Termux

Post by DavidHart »

I have a wx3.1.1 gtk2 build (on debian stretch) that was configured with
../configure --prefix=`pwd` --enable-debug --enable-cxx11

The nm output is:

Code: Select all

                 U _ZN15wxCmdLineParser10SetCmdLineEiRK18wxCmdLineArgsArray
                 U _ZN15wxCmdLineParser4InitEv
                 U _ZN15wxCmdLineParser5ParseEb
                 U _ZN15wxCmdLineParser7SetDescEPK18wxCmdLineEntryDesc
0000000000000000 W _ZN15wxCmdLineParserC1EiRK18wxCmdLineArgsArray
0000000000000000 W _ZN15wxCmdLineParserC2EiRK18wxCmdLineArgsArray
0000000000000000 n _ZN15wxCmdLineParserC5EiRK18wxCmdLineArgsArray
                 U _ZN15wxCmdLineParserD1Ev
00000000000019b8 T _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
0000000000001916 T _ZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParser
00000000000019dc T _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
000000000000193c T _ZN16wxAppConsoleBase15OnCmdLineParsedER15wxCmdLineParser
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIcEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIwEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
0000000000000000 W _ZN18wxCmdLineArgsArrayC1Ev
0000000000000000 W _ZN18wxCmdLineArgsArrayC2Ev
0000000000000000 n _ZN18wxCmdLineArgsArrayC5Ev
0000000000000000 W _ZN18wxCmdLineArgsArrayD1Ev
0000000000000000 W _ZN18wxCmdLineArgsArrayD2Ev
0000000000000000 n _ZN18wxCmdLineArgsArrayD5Ev
                 U _ZNK15wxCmdLineParser5FoundERK8wxString
                 U _ZNK15wxCmdLineParser5UsageEv
0000000000000000 W _ZNK18wxCmdLineArgsArraycvbEv
0000000000000000 W _ZNK18wxCmdLineArgsArrayixEi
0000000000000000 d _ZZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParserE11cmdLineDesc
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase15OnCmdLineParsedER15wxCmdLineParser
0000000000007120 t _ZL11GetTypeName18wxCmdLineParamType
0000000000000e12 T _ZN11wxArrayArgs3AddERK16wxCmdLineArgImplm
0000000000000f28 T _ZN11wxArrayArgs6InsertERK16wxCmdLineArgImplmm
0000000000000000 W _ZN11wxArrayArgs9push_backERK16wxCmdLineArgImpl
0000000000000000 W _ZN12wxCmdLineArgC1ERKS_
0000000000000000 W _ZN12wxCmdLineArgC1Ev
0000000000000000 W _ZN12wxCmdLineArgC2ERKS_
0000000000000000 W _ZN12wxCmdLineArgC2Ev
0000000000000000 n _ZN12wxCmdLineArgC5ERKS_
0000000000000000 n _ZN12wxCmdLineArgC5Ev
0000000000000000 W _ZN12wxCmdLineArgD0Ev
0000000000000000 W _ZN12wxCmdLineArgD1Ev
0000000000000000 W _ZN12wxCmdLineArgD2Ev
0000000000000000 n _ZN12wxCmdLineArgD5Ev
0000000000000000 W _ZN13wxArrayParams3AddEPK14wxCmdLineParam
0000000000000868 T _ZN13wxArrayParams3AddERK14wxCmdLineParamm
000000000000097e T _ZN13wxArrayParams6InsertERK14wxCmdLineParammm
0000000000001896 T _ZN13wxCmdLineArgs14const_iteratormmEi
0000000000001874 T _ZN13wxCmdLineArgs14const_iteratormmEv
000000000000183c T _ZN13wxCmdLineArgs14const_iteratorppEi
000000000000181a T _ZN13wxCmdLineArgs14const_iteratorppEv
0000000000000000 W _ZN14wxArrayOptions3AddEPK15wxCmdLineOption
00000000000002ac T _ZN14wxArrayOptions3AddERK15wxCmdLineOptionm
00000000000003c2 T _ZN14wxArrayOptions6InsertERK15wxCmdLineOptionmm
0000000000000000 W _ZN14wxCmdLineParamC1ERK8wxString18wxCmdLineParamTypei
0000000000000000 W _ZN14wxCmdLineParamC1ERKS_
0000000000000000 W _ZN14wxCmdLineParamC2ERK8wxString18wxCmdLineParamTypei
0000000000000000 W _ZN14wxCmdLineParamC2ERKS_
0000000000000000 n _ZN14wxCmdLineParamC5ERK8wxString18wxCmdLineParamTypei
0000000000000000 n _ZN14wxCmdLineParamC5ERKS_
0000000000000000 W _ZN14wxCmdLineParamD1Ev
0000000000000000 W _ZN14wxCmdLineParamD2Ev
0000000000000000 n _ZN14wxCmdLineParamD5Ev
0000000000000000 W _ZN15wxCmdLineOptionC1E18wxCmdLineEntryTypeRK8wxStringS3_S3_18wxCmdLineParamTypei
0000000000000000 W _ZN15wxCmdLineOptionC1ERKS_
0000000000000000 W _ZN15wxCmdLineOptionC2E18wxCmdLineEntryTypeRK8wxStringS3_S3_18wxCmdLineParamTypei
0000000000000000 W _ZN15wxCmdLineOptionC2ERKS_
0000000000000000 n _ZN15wxCmdLineOptionC5E18wxCmdLineEntryTypeRK8wxStringS3_S3_18wxCmdLineParamTypei
0000000000000000 n _ZN15wxCmdLineOptionC5ERKS_
0000000000000000 W _ZN15wxCmdLineOptionD0Ev
0000000000000000 W _ZN15wxCmdLineOptionD1Ev
0000000000000000 W _ZN15wxCmdLineOptionD2Ev
0000000000000000 n _ZN15wxCmdLineOptionD5Ev
0000000000002158 T _ZN15wxCmdLineParser10SetCmdLineEiPPc
0000000000002186 T _ZN15wxCmdLineParser10SetCmdLineEiPPw
00000000000021b4 T _ZN15wxCmdLineParser10SetCmdLineEiRK18wxCmdLineArgsArray
00000000000021e2 T _ZN15wxCmdLineParser10SetCmdLineERK8wxString
0000000000002c50 T _ZN15wxCmdLineParser12AddUsageTextERK8wxString
0000000000002242 T _ZN15wxCmdLineParser14SetSwitchCharsERK8wxString
000000000000226e T _ZN15wxCmdLineParser17EnableLongOptionsEb
00000000000076fa T _ZN15wxCmdLineParser19ConvertStringToArgsERK8wxString18wxCmdLineSplitType
0000000000002106 T _ZN15wxCmdLineParser4InitEv
000000000000341a T _ZN15wxCmdLineParser5ParseEb
00000000000033a2 T _ZN15wxCmdLineParser5ResetEv
00000000000022d0 T _ZN15wxCmdLineParser7SetDescEPK18wxCmdLineEntryDesc
00000000000022a2 T _ZN15wxCmdLineParser7SetLogoERK8wxString
0000000000002ab2 T _ZN15wxCmdLineParser8AddParamERK8wxString18wxCmdLineParamTypei
000000000000298e T _ZN15wxCmdLineParser9AddOptionERK8wxStringS2_S2_18wxCmdLineParamTypei
000000000000286e T _ZN15wxCmdLineParser9AddSwitchERK8wxStringS2_S2_i
000000000000220c T _ZN15wxCmdLineParserD1Ev
000000000000220c T _ZN15wxCmdLineParserD2Ev
0000000000001766 T _ZN16wxCmdLineArgImpl10SetDateValERK10wxDateTime
00000000000016de T _ZN16wxCmdLineArgImpl10SetLongValEl
0000000000000000 W _ZN16wxCmdLineArgImpl10SetNegatedEv
0000000000000000 W _ZN16wxCmdLineArgImpl11SetHasValueEv
00000000000016a0 T _ZN16wxCmdLineArgImpl12SetDoubleValEd
0000000000000000 W _ZN16wxCmdLineArgImpl5ResetEv
000000000000171c T _ZN16wxCmdLineArgImpl9SetStrValERK8wxString
0000000000001110 T _ZN16wxCmdLineArgImplC1E18wxCmdLineEntryTypeRK8wxStringS3_18wxCmdLineParamType
0000000000000000 W _ZN16wxCmdLineArgImplC1ERKS_
0000000000001110 T _ZN16wxCmdLineArgImplC2E18wxCmdLineEntryTypeRK8wxStringS3_18wxCmdLineParamType
0000000000000000 W _ZN16wxCmdLineArgImplC2ERKS_
0000000000000000 n _ZN16wxCmdLineArgImplC5ERKS_
0000000000000000 W _ZN16wxCmdLineArgImplD0Ev
0000000000000000 W _ZN16wxCmdLineArgImplD1Ev
0000000000000000 W _ZN16wxCmdLineArgImplD2Ev
0000000000000000 n _ZN16wxCmdLineArgImplD5Ev
0000000000001ec2 T _ZN19wxCmdLineParserData10FindOptionERK8wxString
0000000000001a30 T _ZN19wxCmdLineParserData12SetArgumentsEiPPc
0000000000001c10 T _ZN19wxCmdLineParserData12SetArgumentsEiPPw
0000000000001cb4 T _ZN19wxCmdLineParserData12SetArgumentsEiRK18wxCmdLineArgsArray
0000000000001cec T _ZN19wxCmdLineParserData12SetArgumentsERK8wxString
0000000000001fd0 T _ZN19wxCmdLineParserData19FindOptionByAnyNameERK8wxString
0000000000001f52 T _ZN19wxCmdLineParserData20FindOptionByLongNameERK8wxString
00000000000018ce T _ZN19wxCmdLineParserDataC1Ev
00000000000018ce T _ZN19wxCmdLineParserDataC2Ev
0000000000000000 W _ZN19wxCmdLineParserDataD1Ev
0000000000000000 W _ZN19wxCmdLineParserDataD2Ev
0000000000000000 n _ZN19wxCmdLineParserDataD5Ev
000000000000103e T _ZNK11wxArrayArgs5IndexERK16wxCmdLineArgImplb
0000000000000a94 T _ZNK13wxArrayParams5IndexERK14wxCmdLineParamb
00000000000017ce T _ZNK13wxCmdLineArgs14const_iteratordeEv
0000000000001800 T _ZNK13wxCmdLineArgs14const_iteratorptEv
00000000000017a8 T _ZNK13wxCmdLineArgs4sizeEv
00000000000004d8 T _ZNK14wxArrayOptions5IndexERK15wxCmdLineOptionb
0000000000002e38 T _ZNK15wxCmdLineParser11FoundSwitchERK8wxString
00000000000032a4 T _ZNK15wxCmdLineParser13GetParamCountEv
0000000000006392 T _ZNK15wxCmdLineParser14GetUsageStringEv
000000000000228c T _ZNK15wxCmdLineParser21AreLongOptionsEnabledEv
0000000000002de8 T _ZNK15wxCmdLineParser5FoundERK8wxString
00000000000031aa T _ZNK15wxCmdLineParser5FoundERK8wxStringP10wxDateTime
00000000000030b2 T _ZNK15wxCmdLineParser5FoundERK8wxStringPd
0000000000002fbc T _ZNK15wxCmdLineParser5FoundERK8wxStringPl
0000000000002ebe T _ZNK15wxCmdLineParser5FoundERK8wxStringPS0_
0000000000006240 T _ZNK15wxCmdLineParser5UsageEv
00000000000032c8 T _ZNK15wxCmdLineParser8GetParamEm
0000000000001676 T _ZNK16wxCmdLineArgImpl10GetDateValEv
0000000000001622 T _ZNK16wxCmdLineArgImpl10GetLongValEv
0000000000000000 W _ZNK16wxCmdLineArgImpl11GetLongNameEv
00000000000015fa T _ZNK16wxCmdLineArgImpl12GetDoubleValEv
0000000000000000 W _ZNK16wxCmdLineArgImpl12GetShortNameEv
000000000000157e T _ZNK16wxCmdLineArgImpl5CheckE18wxCmdLineParamType
0000000000000000 W _ZNK16wxCmdLineArgImpl7GetKindEv
0000000000000000 W _ZNK16wxCmdLineArgImpl7GetTypeEv
0000000000000000 W _ZNK16wxCmdLineArgImpl8HasValueEv
000000000000164c T _ZNK16wxCmdLineArgImpl9GetStrValEv
0000000000000000 W _ZNK16wxCmdLineArgImpl9IsNegatedEv
0000000000000000 W _ZNK18wxCmdLineArgsArray12GetArgumentsEv
0000000000000000 W _ZNK18wxCmdLineArgsArrayixEi
0000000000000000 V _ZTI12wxCmdLineArg
0000000000000000 V _ZTI15wxCmdLineOption
0000000000000000 V _ZTI16wxCmdLineArgImpl
0000000000000000 V _ZTS12wxCmdLineArg
0000000000000000 V _ZTS15wxCmdLineOption
0000000000000000 V _ZTS16wxCmdLineArgImpl
0000000000000000 V _ZTV12wxCmdLineArg
0000000000000000 V _ZTV15wxCmdLineOption
0000000000000000 V _ZTV16wxCmdLineArgImpl
0000000000001570 r _ZZL11GetTypeName18wxCmdLineParamTypeE12__FUNCTION__
00000000000014e0 r _ZZN15wxCmdLineParser12AddUsageTextERK8wxStringE12__FUNCTION__
0000000000001511 r _ZZN15wxCmdLineParser5ParseEbE12__FUNCTION__
00000000000014a8 r _ZZN15wxCmdLineParser7SetDescEPK18wxCmdLineEntryDescE12__FUNCTION__
00000000000014d0 r _ZZN15wxCmdLineParser8AddParamERK8wxString18wxCmdLineParamTypeiE12__FUNCTION__
00000000000014c0 r _ZZN15wxCmdLineParser9AddOptionERK8wxStringS2_S2_18wxCmdLineParamTypeiE12__FUNCTION__
00000000000014b0 r _ZZN15wxCmdLineParser9AddSwitchERK8wxStringS2_S2_iE12__FUNCTION__
0000000000001470 r _ZZN16wxCmdLineArgImplC4E18wxCmdLineEntryTypeRK8wxStringS3_18wxCmdLineParamTypeE12__FUNCTION__
0000000000001490 r _ZZN19wxCmdLineParserData19FindOptionByAnyNameERK8wxStringE12__FUNCTION__
0000000000001560 r _ZZNK15wxCmdLineParser14GetUsageStringEvE12__FUNCTION__
00000000000014ff r _ZZNK15wxCmdLineParser5FoundERK8wxStringP10wxDateTimeE12__FUNCTION__
00000000000014f9 r _ZZNK15wxCmdLineParser5FoundERK8wxStringPdE12__FUNCTION__
00000000000014f3 r _ZZNK15wxCmdLineParser5FoundERK8wxStringPlE12__FUNCTION__
00000000000014ed r _ZZNK15wxCmdLineParser5FoundERK8wxStringPS0_E12__FUNCTION__
0000000000001555 r _ZZNK15wxCmdLineParser5UsageEvE12__FUNCTION__
0000000000001508 r _ZZNK15wxCmdLineParser8GetParamEmE12__FUNCTION__
0000000000001418 r _ZZNK16wxCmdLineArgImpl11GetLongNameEvE12__FUNCTION__
0000000000001428 r _ZZNK16wxCmdLineArgImpl12GetShortNameEvE12__FUNCTION__
0000000000001481 r _ZZNK16wxCmdLineArgImpl5CheckE18wxCmdLineParamTypeE12__FUNCTION__
0000000000001410 r _ZZNK16wxCmdLineArgImpl7GetTypeEvE12__FUNCTION__
0000000000001438 r _ZZNK16wxCmdLineArgImpl9IsNegatedEvE12__FUNCTION__
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase15OnCmdLineParsedER15wxCmdLineParser
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIcEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIwEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray4InitIwEEviPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
0000000000000000 W _ZNK18wxCmdLineArgsArrayixEi
0000000000000000 W _ZNK18wxCmdLineArgsArrayntEv
                 U _ZN15wxCmdLineParser19ConvertStringToArgsERK8wxString18wxCmdLineSplitType
                 U _ZN15wxCmdLineParser7SetDescEPK18wxCmdLineEntryDesc
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase15OnCmdLineParsedER15wxCmdLineParser
000000000000039e T _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
00000000000003d8 T _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
00000000000000c0 r _ZZN9wxAppBase13OnInitCmdLineER15wxCmdLineParserE14cmdLineGUIDesc
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIcEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray4FreeIwEEvRPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray4InitIwEEviPPT_
0000000000000000 W _ZN18wxCmdLineArgsArray8FreeArgsEv
                 U _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase13OnCmdLineHelpER15wxCmdLineParser
                 U _ZN16wxAppConsoleBase14OnCmdLineErrorER15wxCmdLineParser
                 U _ZN9wxAppBase13OnInitCmdLineER15wxCmdLineParser
                 U _ZN9wxAppBase15OnCmdLineParsedER15wxCmdLineParser
0000000000000000 W _ZNK18wxCmdLineArgsArrayixEi
igavronski
Knows some wx things
Knows some wx things
Posts: 30
Joined: Mon Jul 15, 2019 12:52 pm

Re: Compiling wxWidgets 3.1.1 in Termux

Post by igavronski »

When I make wxrc, I get the following errors:

Code: Select all

$ make wxrc
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory '/data/data/com.termux/files/home/wxWidgets/build3/utils/wxrc'
#g++ -o wxrc wxrc_wxrc.o    -L/data/data/com.termux/files/home/wxWidgets/build3/lib  -pthread   -L/data/data/com.termux/files/usr/lib    -lwx_baseu_xml-3.1 -lexpat -lwx_baseu-3.1     -lwxregexu-3.1  -pthread   -L/data/data/com.termux/files/usr/lib  -Wl,--version-script,/data/data/com.termux/files/home/wxWidgets/build3/version-script -lz -liconv -lm  -lz -liconv -lm
g++ -o wxrc wxrc_wxrc.o    -L/data/data/com.termux/files/home/wxWidgets/build3 -L/data/data/com.termux/files/home/wxWidgets/build3/lib  -pthread   -L/data/data/com.termux/files/usr/lib    -lwx_baseu_xml-3.1 -lexpat -lwx_baseu-3.1     -lwxregexu-3.1  -pthread   -L/data/data/com.termux/files/usr/lib  -Wl,--version-script,/data/data/com.termux/files/home/wxWidgets/build3/version-script -lz -liconv -lm  -lz -liconv -lm
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o: in function `XmlResApp::OnRun()':
wxrc.cpp:(.text+0x10f8): undefined reference to `wxCmdLineParser::Init()'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1108): undefined reference to `wxCmdLineParser::SetCmdLine(int, wxCmdLineArgsArray const&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1118): undefined reference to `wxCmdLineParser::SetDesc(wxCmdLineEntryDesc const*)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1124): undefined reference to `wxCmdLineParser::Parse(bool)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x119c): undefined reference to `wxCmdLineParser::~wxCmdLineParser()'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x11bc): undefined reference to `wxCmdLineParser::~wxCmdLineParser()'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o: in function `XmlResApp::ParseParams(wxCmdLineParser const&)':
wxrc.cpp:(.text+0x11fc): undefined reference to `wxCmdLineParser::Found(wxString const&) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1238): undefined reference to `wxCmdLineParser::Found(wxString const&) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1274): undefined reference to `wxCmdLineParser::Found(wxString const&) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x12b0): undefined reference to `wxCmdLineParser::Found(wxString const&) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x12f4): undefined reference to `wxCmdLineParser::Found(wxString const&) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o:wxrc.cpp:(.text+0x1338): more undefined references to `wxCmdLineParser::Found(wxString const&) const' follow
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o: in function `XmlResApp::ParseParams(wxCmdLineParser const&)':
wxrc.cpp:(.text+0x13c8): undefined reference to `wxCmdLineParser::Found(wxString const&, wxString*) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1404): undefined reference to `wxCmdLineParser::Found(wxString const&, wxString*) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x168c): undefined reference to `wxCmdLineParser::Found(wxString const&, wxString*) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x16c8): undefined reference to `wxCmdLineParser::GetParamCount() const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x16e4): undefined reference to `wxCmdLineParser::GetParam(unsigned long) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x1718): undefined reference to `wxCmdLineParser::GetParamCount() const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o: in function `XmlResApp::MakePackageCPP(wxArrayString const&)':
wxrc.cpp:(.text+0x3838): undefined reference to `wxTheMimeTypesManager'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x383c): undefined reference to `wxTheMimeTypesManager'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x3848): undefined reference to `wxMimeTypesManager::GetFileTypeFromExtension(wxString const&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x385c): undefined reference to `wxFileType::GetMimeType(wxString*) const'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc.cpp:(.text+0x3864): undefined reference to `wxFileType::~wxFileType()'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o:(.data.rel.ro+0x310): undefined reference to `wxAppConsoleBase::OnInitCmdLine(wxCmdLineParser&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o:(.data.rel.ro+0x318): undefined reference to `wxAppConsoleBase::OnCmdLineParsed(wxCmdLineParser&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o:(.data.rel.ro+0x320): undefined reference to `wxAppConsoleBase::OnCmdLineHelp(wxCmdLineParser&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: wxrc_wxrc.o:(.data.rel.ro+0x328): undefined reference to `wxAppConsoleBase::OnCmdLineError(wxCmdLineParser&)'
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: /data/data/com.termux/files/home/wxWidgets/build3/lib/libwx_baseu-3.1.so: undefined reference to `wxAppTraits::GetEventLoopSourcesManager()'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:115: wxrc] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/wxWidgets/build3/utils/wxrc'
make: *** [Makefile:15163: wxrc] Error 2
$ 
However, these functions were compiled in the library:

Code: Select all

$ cd $p/lib
$ grep -r wxAppConsoleBase *
Binary file libwx_baseu-3.1.so matches
Binary file libwx_baseu-3.1.so.1 matches
Binary file libwx_baseu-3.1.so.1.0.0 matches
Binary file libwx_baseu_net-3.1.so matches
Binary file libwx_baseu_net-3.1.so.1 matches
Binary file libwx_baseu_net-3.1.so.1.0.0 matches
Binary file libwx_baseu_xml-3.1.so matches
Binary file libwx_baseu_xml-3.1.so.1 matches
Binary file libwx_baseu_xml-3.1.so.1.0.0 matches
Binary file libwx_gtk2u-3.1.so matches
Binary file libwx_gtk2u-3.1.so.1 matches
Binary file libwx_gtk2u-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_adv-3.1.so matches
Binary file libwx_gtk2u_adv-3.1.so.1 matches
Binary file libwx_gtk2u_adv-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_aui-3.1.so matches
Binary file libwx_gtk2u_aui-3.1.so.1 matches
Binary file libwx_gtk2u_aui-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_core-3.1.so matches
Binary file libwx_gtk2u_core-3.1.so.1 matches
Binary file libwx_gtk2u_core-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_gl-3.1.so matches
Binary file libwx_gtk2u_gl-3.1.so.1 matches
Binary file libwx_gtk2u_gl-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_html-3.1.so matches
Binary file libwx_gtk2u_html-3.1.so.1 matches
Binary file libwx_gtk2u_html-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_media-3.1.so matches
Binary file libwx_gtk2u_media-3.1.so.1 matches
Binary file libwx_gtk2u_media-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_qa-3.1.so matches
Binary file libwx_gtk2u_qa-3.1.so.1 matches
Binary file libwx_gtk2u_qa-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_ribbon-3.1.so matches
Binary file libwx_gtk2u_ribbon-3.1.so.1 matches
Binary file libwx_gtk2u_ribbon-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_richtext-3.1.so matches
Binary file libwx_gtk2u_richtext-3.1.so.1 matches
Binary file libwx_gtk2u_richtext-3.1.so.1.0.0 matches
$ grep -r wxCmdLineParser *
Binary file libwx_baseu-3.1.so matches
Binary file libwx_baseu-3.1.so.1 matches
Binary file libwx_baseu-3.1.so.1.0.0 matches
Binary file libwx_gtk2u-3.1.so matches
Binary file libwx_gtk2u-3.1.so.1 matches
Binary file libwx_gtk2u-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_core-3.1.so matches
Binary file libwx_gtk2u_core-3.1.so.1 matches
Binary file libwx_gtk2u_core-3.1.so.1.0.0 matches
Binary file libwx_gtk2u_gl-3.1.so matches
Binary file libwx_gtk2u_gl-3.1.so.1 matches
Binary file libwx_gtk2u_gl-3.1.so.1.0.0 matches
$ 

What might be wrong here?
I am using the following parameters for configure:

Code: Select all

dirs='--prefix=/data/data/com.termux/files/usr --exec-prefix=/data/data/com.termux/files/usr --sbindir=/data/data/com.termux/files/usr/bin --libexecdir=/data/data/com.termux/files/usr/lib --includedir=/data/data/com.termux/files/usr/include --oldincludedir=/data/data/com.termux/files/usr/include --localedir=/data/data/com.termux/files/usr/share/locale --datarootdir=/data/data/com.termux/files/usr/share'
../configure $dirs --with-gtk=2 --enable-gui >& config.out
igavronski
Knows some wx things
Knows some wx things
Posts: 30
Joined: Mon Jul 15, 2019 12:52 pm

Re: Compiling wxWidgets 3.1.1 in Termux

Post by igavronski »

Could you please paste the last lines of the output of your configure?
Mine looks like:

Code: Select all

Configured wxWidgets 3.1.1 for `aarch64-unknown-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for GTK+ printing libnotify
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.8      no
                                       wxWidgets 3.0      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               sys
                                       png                sys
                                       regex              sys
                                       tiff               sys
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no

DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Compiling wxWidgets 3.1.1 in Termux

Post by DavidHart »

I just did:
../configure --with-gtk=2 --enable-gui --prefix=$(pwd)
i.e. the same as yours but without specifying the other installation dirs (which wouldn't affect the configure output anyway). The output is similar to yours:

Code: Select all

Configured wxWidgets 3.1.1 for `x86_64-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for GTK+ printing libnotify
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.8      no
                                       wxWidgets 3.0      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no
igavronski
Knows some wx things
Knows some wx things
Posts: 30
Joined: Mon Jul 15, 2019 12:52 pm

Re: Compiling wxWidgets 3.1.1 in Termux

Post by igavronski »

Many thanks.
In fact, it seems that I have the right configuration for wxWidgets and Termux. I was also able to compile and open Audacity. I will post the information so other users can reproduce the build and we can then close the case.
I am not able to do so now, but will post soon.
All the best.
AmR EiSa
Earned a small fee
Earned a small fee
Posts: 17
Joined: Tue Jan 09, 2007 12:40 am

Re: Compiling wxWidgets 3.1.1 in Termux

Post by AmR EiSa »

Can you post it now ?
stahta01
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 550
Joined: Fri Nov 03, 2006 2:00 pm

Re: Compiling wxWidgets 3.1.1 in Termux

Post by stahta01 »

Did you find this link? If yes, why does it not answer your question?

https://github.com/igavronski/termux-wx ... /build6/go

Tim S.
Post Reply