Build on raspberry pi 3

Thomas Steiger steigerth at gmail.com
Thu Apr 4 18:40:41 BST 2019


Dear members,

I posted recently already about this topic. I want to build kst-plot on a
raspberry pi 3. Raspberr pi 3 uses debian stretch (called raspbian os). I
could successfully compile it in a virtual machine with raspbian os but
this was on an Intel CPU. The raspberry pi uses an ARMv8 cpu. So I tried to
compile it directly on the raspberry pi. Everything seems to be fine.

I did again the following:
git clone https://<yourGithubId>@github.com/kst-plot/kst
cmake -Dkst_qt5=1 -Dkst_release=1 -Dkst_merge_files=1 -Dkst_python=1 ../kst
make (I also tried make -j 4 but it makes no difference).

The compilation itself seems to be fine. But at the very end, the following
error appears:
 Scanning dependencies of target kst2
[100%] Building CXX object src/kst/CMakeFiles/kst2.dir/main.cpp.o
[100%] Building CXX object src/kst/CMakeFiles/kst2.dir/qrc_icons.cpp.o
[100%] Building CXX object src/kst/CMakeFiles/kst2.dir/qrc_helppages.cpp.o
[100%] Linking CXX executable ../../build/bin/kst2
CMakeFiles/kst2.dir/main.cpp.o: In function `main':
main.cpp:(.text.startup+0x48): undefined reference to
`Kst::Application::Application(int&, char**)'
main.cpp:(.text.startup+0x1b0): undefined reference to
`Kst::Application::initMainWindow()'
main.cpp:(.text.startup+0x1b8): undefined reference to
`Kst::Application::mainWindow() const'
main.cpp:(.text.startup+0x1bc): undefined reference to
`Kst::MainWindow::initFromCommandLine()'
main.cpp:(.text.startup+0x1cc): undefined reference to
`Kst::Application::mainWindow() const'
main.cpp:(.text.startup+0x1f8): undefined reference to
`Kst::Application::~Application()'
main.cpp:(.text.startup+0x20c): undefined reference to
`Kst::Application::~Application()'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorRequiresOperand'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewAddition(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewLogicalOr(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorMissingClosingParenthesis'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`yyClearErrors()'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewMultiplication(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewFunction(char*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewDivision(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`AppendArgument(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewNegation(void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorEmptyArg'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorTwoOperands'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`yyerror(Kst::ObjectStore*, char const*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`ParenthesizeNode(void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorEmptyParentheses'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewLogicalAnd(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewNotEqualTo(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewGreaterThan(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`yyerrortoken(char)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewGreaterThanEqual(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewBitwiseOr(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewData(Kst::ObjectStore*, char*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewModulo(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewIdentifier(char*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewArgumentList()'
../../build/lib/libkst2math.so.2.0.x: undefined reference to `NewNot(void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewLessThan(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorEmpty'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`EParseErrorNoImplicitMultiply'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewEqualTo(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewSubtraction(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewNumber(double)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`yyErrorCount()'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`DeleteNode(void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewPower(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewBitwiseAnd(void*, void*)'
../../build/lib/libkst2math.so.2.0.x: undefined reference to
`NewLessThanEqual(void*, void*)'
collect2: error: ld returned 1 exit status
src/kst/CMakeFiles/kst2.dir/build.make:291: die Regel f▒r Ziel
▒build/bin/kst2▒ scheiterte
make[2]: *** [build/bin/kst2] Fehler 1
CMakeFiles/Makefile2:447: die Regel f▒r Ziel
▒src/kst/CMakeFiles/kst2.dir/all▒ scheiterte
make[1]: *** [src/kst/CMakeFiles/kst2.dir/all] Fehler 2
Makefile:149: die Regel f▒r Ziel ▒all▒ scheiterte
make: *** [all] Fehler 2
root at raspberrypi:/home/pi/tmp/kst#


Does anybody know how to fix that?

Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20190404/da1e4870/attachment.html>


More information about the Kst mailing list