-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can't compile #4
Comments
Hi Alexey! I'm sorry for this. It's fixed in the latest version of Turbo Vision, but I haven't updated the submodule in this repository for some time. Until I fix it, you can just comment out line 2 of Cheers! |
Updated cmake to ver. 3.19.0-rc1 |
Note that CMake tells you the version of the compiler it's using:
|
I have updated the Turbo Vision submodule in the latest commit. I don't know if Check out the Readme, because the build commands have changed. This is the new way to do it: $ (cd tvision && cmake . -B ./build && cmake --build ./build) # Build tvision.
$ cmake . && cmake --build . # Build Turbo. |
These commands: $ cmake . && cmake --build . # Build Turbo. Did you run them from the Note that the commands to build |
I got this error again (see below). [ 96%] Linking CXX static library libscintilla.a |
It's the same issue as before. You have been able to build When you ran If it's using version 7.5.0 despite having installed g++-8, you can try: rm CMakeCache.txt && CXX=g++-8 cmake . This will tell CMake to use If you are actually using g++ 8, then you need an even newer version. Try g++ 9 or newer. |
Thank you! [ 98%] Building CXX object CMakeFiles/turbo.dir/Unity/unity_1_cxx.cxx.o |
Edit lines 44-53 of Turbo's find_path(TVISION_INCLUDE "tvision/tv.h" HINTS "${CMAKE_CURRENT_SOURCE_DIR}/tvision/include")
+find_path(FMT_INCLUDE "fmt/core.h")
target_include_directories(turbo PRIVATE
${SCINTILLA_INC}
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/src"
"${CMAKE_CURRENT_SOURCE_DIR}/src/platform"
"${TVISION_INCLUDE}"
"${TVISION_INCLUDE}/override"
+ "${FMT_INCLUDE}"
) And try again. |
If the above still fails, you may need to install the development package for the |
OK it works! |
Also it would be good to have something like |
Hooray! There is no support for
Yes, this would be great, but for this to work a package has to be created and published in a repository and maintained by someone. I don't know how to do this and I'm not even using the same Linux distribution as you. I don't have the time to be a package maintainer either. So I'm sorry but I can't promise you this.
Did you have to install an additional package, or were the changes in CMakeLists.txt enough? |
Instruction for building on Linux Ubuntu 20.04.1 LTS
|
Instruction for Ubuntu 18 is also ready (much more difficult), but you need to fix this first please:
|
Okay, I wasn't sure that was necessary to fix the compilation. I just pushed commit 7f32616 with this change. |
Instruction for building on Ubuntu 18.04.5 LTS
Please feel free to use both instructions by any means you like. |
Are there any means to add Ruby syntax highlighting? |
I think it would be nice also to add some instruction on how to pass hotkeys (Alt + F etc.) from Linux terminal to turbo itself (if possible). Now to use the menu I forced to press F12 and then scroll the menus since main hotkey combinations are intercepted by terminal. |
Well, at this point it requires editing the source code. I may be able to do it in a couple of days. Python should be already working.
There's nothing I can do about this. Maybe your terminal application has a setting where you can change this behaviour. For example,
Note that you can press the highlighted key instead of navigating with the cursor. For instance, Cheers! |
Also, thank you very much for the build instructions! I will add them later to the Readme. |
Indeed in Ubuntu default terminal it is sufficient to right-click in it and disable "Show Menubar". After that hotkeys are processed by turbo directly. |
No, I was referring to the "Enable mnemonics" option, which I already disabled. |
Is it possible to show in File Open dialog files starting with dot ('hidden')? |
It's not implemented yet, but I'll add it to my TODO list. |
Contributed by Alexey Chernysh in #4. Co-authored-by: chernish2 <[email protected]>
Hi Alexey. I have changed the way how the project is built. It should be now simpler and faster. The README has been updated with the new build instructions. Can you try it out and confirm that it still works for you? Cheers. |
Hey! Good job! Both instructions works perfectly! |
Hi there. |
Hello! |
Yes, that's enough. |
On Ubuntu 20 completing the instruction, and have errors: -- Looking for pthread.h |
Okay. You have to install
Let me know if it keeps producing errors. |
Yes, then having this: |
Let's try with this:
|
Sorry, doesn't help: May be something like libxcb? |
Yeah, probably. Can you please try that? Or maybe there is a |
sudo apt install libxcb1-dev !! |
So with two libs (pkg-config libxcb1-dev) it builds on Ubuntu 20. Also it would be convenient to have basic options like "Copy", Cut, Paste in Edit menu. |
This works for me. I'll have to test further.
Yes. Thanks for testing! |
And following the instruction for Ubuntu 18 it fails to build turbo: |
|
This helps for Ubuntu 18 to build: Under Ubuntu 18 it pastes from GUI with ctrl+shift+v , but no way to paste from turbo to GUI. |
Also if possible please add autoloading files opened in previous sessions. |
Hi Alexey. Besides my main system, which has the latest version of most packages, I am also testing on Lubuntu 18.04 with the following packages:
I ran across some compilation issues which I managed to fix in the latest commits. The clipboard works between Turbo and GUI applications with just Ctrl+C and Ctrl+V, so I cannot reproduce your situation. Can you rebuild with the latest commit and try again? Please make sure that the following command: echo $DISPLAY Produces some output (e.g.
Okay, but it won't be soon. |
Ok, new commit builds fine on 18. |
If an X11 server is running in your graphical environment (which is likely to be the case if your local system is Linux), you can use the |
Yes, with -X it works! |
here's a debian source package (unfinished, but building, installable, runnable): http://sid.ethz.ch/debian/turbo/ For proper packaging, the deps would be need to get rid of, and tag a release. libfmt-dev already exists in Debian, so that should be used instead a delivered copy of it. |
Hi @alexmyczko, thanks for the support! It is possible to use the system-installed libfmt with the CMake option As for the tagged release, is it really necessary? |
thanks a lot! the tag is not really needed but would be nice sooner or later |
I have just fixed this, so it should now be possible to install Turbo without any interference from the submodules. |
sorry the link (debian packaging) was not working for some time, fixed again... |
Hello!
First of all I'm extremely excited with your revival of TurboVision! It's amazing that someone still remembers it!
I can't compile. I guess it's something related to C++ 17, but I'm not sure since I'm Ruby developer not C++.
Can you help me please?
chernish2@mintbox:
/soft$ cd turbo//soft/turbo$ cd tvision/chernish2@mintbox:
chernish2@mintbox:~/soft/turbo/tvision$ cmake .
CMake Error at CMakeLists.txt:2 (cmake_policy):
Policy "CMP0091" is not known to this version of CMake.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/home/chernish2/soft/turbo/tvision/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered: