[mythtv-users] problems building mythtv with cmake on raspberry pi

James Abernathy jfabernathy at gmail.com
Tue Feb 11 13:18:28 UTC 2025


I'm still trying to figure out what is missing.

On a fresh RPI4 I installed the dependencies with ansible and added
libv4l-dev and php.

I then built mythtv following the cmake readme. My commands were:

 cmake --preset qt5 -DCMAKE_INSTALL_PREFIX=/home/jim/build/jfa-build-out
 cmake --build build-qt5

When I was finished I did:

sudo cp -R ~/build/jfa-build-out/* /usr/local/

At that point I could run mythfrontend --version and that worked.

I set up the database and mythtv-backend.service and rebooted.

However the web app at localhost:6544 gets a 404.

The log shows code still looking for stuff in
/home/jim/build/jfa-build-out. There seems to be a runtime prefix that is
pointing there?

Feb 11 07:54:30 rpi4 systemd[1]: Started mythtv-backend.service - MythTV
Backend.
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: C thread_unknown
mythcommandlineparser.cpp:2913 (ConfigureLogging) mythbackend version:
master [v35-Pre-788-g9577148ed2] www.mythtv.org
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: C thread_unknown
mythcommandlineparser.cpp:2917 (ConfigureLogging) Qt version: compile:
5.15.8, runtime: 5.15.8
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
mythcommandlineparser.cpp:2919 (ConfigureLogging) Debian GNU/Linux 12
(bookworm) (arm64)
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: N thread_unknown
mythcommandlineparser.cpp:2921 (ConfigureLogging) Enabled verbose msgs:
 general
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: N thread_unknown
logging.cpp:660 (logStart) Setting Log Level to LOG_INFO
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I Logger
logging.cpp:292 (run) Added logging to the console
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I LogForward
loggingserver.cpp:190 (SyslogLogger) Added syslogging
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Interrupt handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Terminated handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Segmentation fault handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Aborted handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Floating point exception
handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Illegal instruction
handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Bus error handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Real-time signal 0 handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I thread_unknown
signalhandling.cpp:184 (SetHandlerPrivate) Setup Hangup handler
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: N thread_unknown
mythdirs.cpp:241 (InitializeMythDirs) Using runtime prefix =
/home/jim/build/jfa-build-out
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: N thread_unknown
mythdirs.cpp:242 (InitializeMythDirs) Using configuration directory =
/home/mythtv/.mythtv
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythcorecontext.cpp:265 (Init) Assumed character encoding: en_GB.UTF-8
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythcontext.cpp:597 (LoadDatabaseSettings) Empty LocalHostName. This is
typical.
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythcontext.cpp:652 (LoadDatabaseSettings) Using a profile name of: 'rpi4'
(Usually the same as this host's name.)
Feb 11 07:54:31 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythcontext.cpp:896 (TestDBconnection) Start up testing connections. DB
localhost, BE , attempt 0, status dbAwake, Delay: 2000
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: N CoreContext
mythcorecontext.cpp:1864 (InitLocale) Setting QT default locale to en_GB
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythcorecontext.cpp:1897 (SaveLocaleDefaults) Current locale en_GB
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: E CoreContext
mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for en_GB,
skipping
Feb 11 07:54:32 rpi4 mythbackend[827]: No setting found for this machine's
BackendServerAddr.
Feb 11 07:54:32 rpi4 mythbackend[827]: MythBackend starting in Web App only
mode for initial setup.
Feb 11 07:54:32 rpi4 mythbackend[827]: Use http://<yourBackend>:6544 to
perform setup.
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythpower.cpp:350 (PowerLevelChanged) Power: On AC power
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythpower.cpp:132 (Init) Power: Supported actions: None
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: E CoreContext
mythtranslation.cpp:70 (load) Error Loading en_us translation for module
mythfrontend
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
schemawizard.cpp:117 (Compare) Current MythTV Schema Version (DBSchemaVer):
1384
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: E CoreContext
mythtranslation.cpp:70 (load) Error Loading en_us translation for module
mythfrontend
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: E CoreContext
mythsocket.cpp:393 (ConnectToHost) MythSocket(55c599af80:-1): Unable to
lookup:
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: N CoreContext
mythbackend_main_helpers.cpp:808 (run_setup_webserver)
***********************************************************************
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: N CoreContext
mythbackend_main_helpers.cpp:809 (run_setup_webserver) ***** MythBackend
starting in Web App only mode for initial setup *****
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: N CoreContext
mythbackend_main_helpers.cpp:810 (run_setup_webserver) ***** Use
http://<yourBackend>:6544
to perform setup              *****
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: N CoreContext
mythbackend_main_helpers.cpp:811 (run_setup_webserver)
***********************************************************************
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythhttpthreadpool.cpp:16 (MythHTTPThreadPool) HTTPPool: Using maximum 8
threads
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: W HTTPServer
mythhttps.cpp:56 (InitSSLServer) SSL: SSL Host key file
(/home/mythtv/.mythtv/certificates/key.pem) does not exist or is not
readable
Feb 11 07:54:32 rpi4 mythbackend[827]: mythbackend[827]: I HTTPServer
serverpool.cpp:421 (listen) Listening on TCP 0.0.0.0:6544
Feb 11 07:54:33 rpi4 mythbackend[827]: mythbackend[827]: I HTTPServer
serverpool.cpp:421 (listen) Listening on TCP [::]:6544
Feb 11 07:54:33 rpi4 mythbackend[827]: mythbackend[827]: I HTTPServer
serverpool.cpp:421 (listen) Listening on TCP 0.0.0.0:6744
Feb 11 07:54:33 rpi4 mythbackend[827]: mythbackend[827]: I HTTPServer
serverpool.cpp:421 (listen) Listening on TCP [::]:6744
Feb 11 07:54:36 rpi4 mythbackend[827]: mythbackend[827]: I HTTPServer
bonjourregister.cpp:116 (BonjourCallback) Bonjour: Service registration
complete: name 'mythbackend on rpi4' type '_http._tcp.' domain: 'local.'
Feb 11 07:55:39 rpi4 mythbackend[827]: mythbackend[827]: I CoreContext
mythpowerdbus.cpp:372 (DeviceAdded) PowerDBus: Added UPower.Device
'/org/freedesktop/UPower/devices/battery_hidpp_battery_0'
Feb 11 07:57:06 rpi4 mythbackend[827]: mythbackend[827]: I HTTP0
mythhttpmetaservice.cpp:126 (MythHTTPMetaService) Service '/services/'
introspection complete
Feb 11 07:57:06 rpi4 mythbackend[827]: mythbackend[827]: W HTTP0
mythhttpfile.cpp:50 (ProcessFile) HTTPFile: Failed to find
'/home/jim/build/jfa-build-out/share/mythtv/html/apps/backend/index.html'
Feb 11 07:57:06 rpi4 mythbackend[827]: mythbackend[827]: W HTTP0
mythhttpfile.cpp:50 (ProcessFile) HTTPFile: Failed to find
'/home/jim/build/jfa-build-out/share/mythtv/html/apps/backend/index.html'

Jim A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250211/9d05781c/attachment.htm>


More information about the mythtv-users mailing list