Closed echarlie closed 4 years ago
You should try again with the current master. CaveWhere now builds on Ubuntu 18.04: https://travis-ci.org/Cavewhere/cavewhere/builds
I've also updated the README.md with instructions for building on linux.
did a quick test with qbs 1.15, and it seems to work. However the Readme needs to say qbs build --product CaveWhere...
; the actual product is missing in the current text.
With my quick testing, it seems much happier when I don't explicitly set profile/config (can't find the qml because it's looking in cavewhere/release/install-root/../share/yourapplication//qml/CavewhereMainWindow.qml
instead of release/install-root/qml
). Will continue testing; the test units seem comparitively happy.
For convenience, here's test output.
$ qbs run --products cavewhere-test
WARNING: CPU random generator seem to be failing, disable hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
Restoring build graph from disk
Building for configuration default
Build done for configuration default.
Installing
Starting target. Full command line: /home/eric/programs/cavewhere/default/install-root/cavewhere-test
WARNING: CPU random generator seem to be failing, disable hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cavewhere-test is a Catch v2.4.0 host application.
Run with -? for options
-------------------------------------------------------------------------------
Test that the cavewhere main window remember size and position
-------------------------------------------------------------------------------
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:54
...............................................................................
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:77: FAILED:
CHECK( mainWindow->property("width").toInt() == 1024 )
with expansion:
1356 (0x54c) == 1024 (0x400)
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:78: FAILED:
CHECK( mainWindow->property("height").toInt() == 576 )
with expansion:
944 (0x3b0) == 576 (0x240)
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:96: FAILED:
CHECK( mainWindow2->property("width").toInt() == 250 )
with expansion:
1356 (0x54c) == 250
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:97: FAILED:
CHECK( mainWindow2->property("height").toInt() == 200 )
with expansion:
944 (0x3b0) == 200
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:98: FAILED:
CHECK( mainWindow2->property("x").toInt() == 323 )
with expansion:
1177 (0x499) == 323 (0x143)
/home/eric/programs/cavewhere/testcases/test_CavewhereMainWindow.cpp:99: FAILED:
CHECK( mainWindow2->property("y").toInt() == 386 )
with expansion:
469 (0x1d5) == 386 (0x182)
DelegateModel::cancel: index out range 0 0
Query has no data for id: 271 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 270 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 547 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 560 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 560 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 558 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 547 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 545 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 547 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 560 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 560 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 558 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 547 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 545 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 545 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 558 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 558 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 545 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 547 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 560 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 187 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 187 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
Query has no data for id: 3 /home/eric/programs/cavewhere/src/cwImageProvider.cpp 209
===============================================================================
test cases: 76 | 75 passed | 1 failed
assertions: 19738 | 19732 passed | 6 failed
=================================================================
==3166043==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 860162 byte(s) in 4090 object(s) allocated from:
#0 0x7efbfed61b3a in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7efbf0eb8c9d (/usr/lib/dri/radeonsi_dri.so+0x47ec9d)
SUMMARY: AddressSanitizer: 860162 byte(s) leaked in 4090 allocation(s).
Cool! It looks like all the testcases pass except for the window remembrance. Do you happen to have a high-resolution display? Or multi monitor setup? Or some windows manager that changes the width and height and position when stuff opens?
Can I close this issue?
wrt failed window size: yes, I run a tiling manager (Which seems expected). since this issue is about an old version of cavewhere, yes, I'll close it. currently playing with 0.9 builds, and will open a new issue if needed.
clang 9.0.0 qt 5.13.1 qmake version 3.1 qbs 1.14.0 Linux 5.2.9-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 16 11:29:43 UTC 2019 x86_64 GNU/Linux cpu: ryzen 3600 (has known RDRAND bug)