Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building issues (cross-compiling) #78

Open
IngwiePhoenix opened this issue Jun 16, 2022 · 4 comments
Open

Building issues (cross-compiling) #78

IngwiePhoenix opened this issue Jun 16, 2022 · 4 comments

Comments

@IngwiePhoenix
Copy link

Hello!

I recently rooted my LG OLED TV and wanted to get a terminal there - when looking for SDL2 based terminals, I came across this one. And while building, a few issues, small ones though.

  1. None of the environment variables are respected. You assign CC via :=, but if you use ?=, the user can override them without having to use make -e, which is what I ended up doing.
  2. Quite a few libraries are missing (mainly the OpenSSL ones). An easy fix is to just add $(pkg-config openssl --libs).
  3. This might just be a problem on my toolchain (GCC 6.2.0) but I also had to add -lz -lstdc++. Thought it'd be standard, but apparently it's not.
  4. -lSDLmain is used but not available on my toolchain - however, from the looks of it, it's also not needed, at least on Linux (host OS is WebOS which runs GNU/Linux).

Just thought I'd leave the info here.

Have a nice day! :)

@M-griffin
Copy link
Owner

Wow thank you for the feedback, appreciated. Things are a bit rough as I've been doing several rewrites over the years as I try different things. So I haven't gotten locked too much into full build system for cross combability and compiling just yet.

I've tried to keep it simple for some of the more common platforms just using the default make files generated from the Codelite IDE then cleaning up hard coded paths. But WebOS is pretty cool, I haven't had a chance to look at that.

If you get time, feel free to copy the changes into a new root webos folder from linux with your build changes and push a branch up, i'd be have to take a look and keep a reference for the platform.

@M-griffin M-griffin added this to TODO in EtherTerm 4.0 Branch via automation Jun 16, 2022
@IngwiePhoenix
Copy link
Author

Will definitively do! I got it to compile completely so now I just need to put it on my TV and try it out. Not particularily hard, but also my first time really doing that... I'll keep you updated. :)

@IngwiePhoenix
Copy link
Author

root@LGwebOSTV:~# /home/root/run-term.sh
EtherTerm Working directory is: /media/developer/apps/usr/palm/applications/com.github.m-griffin.etherterm/
SessionManager Created
Interface Created
[SDL2:SYSTEM:0] SDL Init start with flag : 32
WindowManager Created!
Creating Window and Renderer!
egl_unified_query 94 : status 0
egl_unified_query 94 : status 0
SurfaceManager Created!
Session Created!
Joined SessionManager
InputHandler Created
Renderer Created
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Texture was Created!
ScreenBuffer Created!
SequenceParser Created
SequenceDecoder Created
Protocol
font_set.yaml File Version= 1.0.0
Fontset Created!
SessionIO base
MenuConfig Created!
MenuIO Created!
MenuFunction Created!
MenuManager Created!
Error: unable to read: /media/developer/apps/usr/palm/applications/com.github.m-griffin.etherterm/assets/directory/directory.ini
dialing_directory.yaml File Version= 1.0.1
readDialDirectory - Done
Error Mid ANSI 1: /media/developer/apps/usr/palm/applications/com.github.m-griffin.etherterm/assets/directory/
parseHeader()
sFONT_SET:
m_font_set->font_entries.size(): 9
Error, unable to load front from set!
EtherTerm: ../src/surface_manager.cpp:222: bool SurfaceManager::loadFont(): Assertion `false' failed.
Aborted (core dumped)

So far, so good. Leaving this here in case you have an idea :)

@M-griffin
Copy link
Owner

M-griffin commented Jun 19, 2022

Lets see.. Right here is where it's looking for the old directory.ini file for the dialing directory theme, which points to the ANSI file to display for the dialing directory.

Error: unable to read: /media/developer/apps/usr/palm/applications/com.github.m-griffin.etherterm/assets/directory/directory.ini
dialing_directory.yaml File Version= 1.0.1
readDialDirectory - Done

Then here is where it can't load the ANSI file, looks like it's not set with a filename because it couldn't read the above .ini file.

Error Mid ANSI 1: /media/developer/apps/usr/palm/applications/com.github.m-griffin.etherterm/assets/directory/

My guess is the permissions are off for the assets folder inside of build, or the build folder itself has bad permissions. I'd try checking / resetting the permissions build folder like sudo chmod 0777 * -R should reset it for the directory and subfolders. Hope this helps.

Example of my Start Up

merc@minty:~/code/EtherTerm/build$ ./EtherTerm

EtherTerm Working directory is: /home/merc/code/EtherTerm/build/
SessionManager Created
Interface Created
WindowManager Created!
Creating Window and Renderer!
SurfaceManager Created!
Session Created!
Joined SessionManager
InputHandler Created
Renderer Created
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Surface was Created!
A Texture was Created!
ScreenBuffer Created!
SequenceParser Created
SequenceDecoder Created
Protocol
font_set.yaml File Version= 1.0.0
Fontset Created!
SessionIO base
MenuConfig Created!
MenuIO Created!
MenuFunction Created!
MenuManager Created!
Reading Theme: 
Reading file: /home/merc/code/EtherTerm/build/assets/directory/directory.ini
 $$$ FONT_SET topazPlus-8x16.bmp
dialing_directory.yaml File Version= 1.0.1
readDialDirectory - Done
m_system_entries.size(): 2
parseHeader()
sFONT_SET: topazPlus-8x16.bmp
m_font_set->font_entries.size(): 9
loading Font -> : /home/merc/code/EtherTerm/build/assets/font/topazPlus-8x16.bmp
A Surface was Created!
Read Menu: /home/merc/code/EtherTerm/build/assets/directory/default_theme.menu
Startup Successful!
INFO: Window 2 exposed
INFO: Window 2 gained keyboard focus
INFO: Window 2 lost keyboard focus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants