Post Reply 
[newRPL][How To] Compiling newRPL without QTCreator
11-05-2021, 07:50 AM
Post: #3
RE: [newRPL][How To] Compiling newRPL without QTCreator
(11-05-2021 06:34 AM)erazor Wrote:  You always should do out of source builds.Saves from troubles and you can keep your object files which lets you profit from incremental build speed after update.

You're right. Although in the context of my packaging script it's less important (the process starts from scratch each time) I updated it and it allowed me to remove a "kludgy"
Code:
make clean
I had to do before. Thanks!

I also took the chance to parallelize the build and build both ui and ui-prime:
Code:

git clone https://git.code.sf.net/p/newrpl/sources ~/newrpl
cd ~/newrpl/

NPROC=$(nproc)

mkdir build-elf2rom
cd build-elf2rom/
qmake ../tools/elf2rom//elf2rom.pro
make -j$NPROC
cp elf2rom ../tools-bin/

cd ~/newrpl/
mkdir build-bmp2font
cd build-bmp2font/
qmake ../tools/fonts/bmp2font//bmp2font.pro
make -j$NPROC
cp bmp2font ../tools-bin/

cd ~/newrpl/
mkdir build-comp
cd build-comp/
qmake ../newrpl-comp.pro
make -j$NPROC
cp newrpl-comp ../tools-bin/

cd ~/newrpl/
mkdir build-ui
cd build-ui/
qmake ../newrpl-ui.pro
make -j$NPROC

cd ~/newrpl/
mkdir build-ui-prime
cd build-ui-prime/
qmake ../newrpl-ui-prime.pro
make -j$NPROC

cd ~/newrpl/
mkdir -p $PKG$PREFIX/bin/
cp build-ui/newrpl-ui build-comp/newrpl-comp $PKG$PREFIX/bin/
cp build-ui-prime/newrpl-ui $PKG$PREFIX/bin/newrpl-ui-prime
cp build-elf2rom/elf2rom $PKG$PREFIX/bin/newrpl-elf2rom
cp build-bmp2font/bmp2font $PKG$PREFIX/bin/newrpl-bmp2font
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [newRPL][How To] Compiling newRPL without QTCreator - gwh - 11-05-2021 07:50 AM



User(s) browsing this thread: 1 Guest(s)