Shop OBEX P1 Docs P2 Docs Learn Events
A case for KDE to replace Win7 - Page 3 — Parallax Forums

A case for KDE to replace Win7

13

Comments

  • Heater.Heater. Posts: 21,230
    edited 2014-08-17 04:57
    Is there a Quartus available for BSD? I don't recall seeing one.

    You may be stuck with a legacy OS for Quartus if you don't want to run Linux.

    Quartus under Linux works just fine by the way.

    Hmm...did I once hear there was some compatibility layer in BSD such that it would run Linux binaries? Sounds messy but might work. If it exists that is.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-17 05:20
    Well I guess I could install VirtualBox equivalent and then install a Linux, but that does not seem right. I noticed that BSD has some kind of jail thingy, and they have either Debian or Gentoo available to use. Not even sure how that works, it sounds kind of weird having something in jail and you are designated the warden, maybe Linux should be in jail.:-)

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-17 05:33
    Ray,
    ...maybe Linux should be in jail...
    Ha hahh, Linux is in jail all the time. It can be in jail and create jails.

    I have not looked into this much but the idea was that you can run an app in some subdirectory that is not your root directory. As far as the app is concerned that sub directory is root (/) and so it has no way to mess with anything else in your system. Quite a nice security idea.

    Basically you can run pretty much a whole OS is such a jail. After all your app is going to need a bunch of libraries and stuff in it's jail in order to work.

    I guess the jail in BSD is similar. Makes me want to look into it even more.

    I believe that somewhere there is an entire Debian distro using the BSD kernel instead of Linux. A different thing of course but it means you can run "Linux" without running Linux at all :)
  • Martin_HMartin_H Posts: 4,051
    edited 2014-08-17 05:50
    I haven't used jails, but I have used Solaris containers which are supposed to be similar. They basically created virtualized userland spaces which look like they hard the entire machine to themselves. Each container could access its local root password and install applications requiring root access, but they didn't install on the host OS. They're different from full virtualization because the host and guest OS are actually the same OS. So you can only run Solaris on Solaris.

    When my work switched from Solaris to Linux we stopped using them. Full virtualization is a little more flexible because you can do something like Windows on Linux or Linux on Linux.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-17 06:24
    I was just glancing through the PC-BSD manual, the best manual I have seen in a while, and they have a section on Linux compatibility mode. I really do not want to become a system administrator, but it seems to get this kind of stuff to work, that is what you have to be. The only concern that I have is if I am able to load and install the Linux version of SimpleIDE, I am still wondering how it will deal with the ports. It would be a real PIA, after all that work, and not being able to access the ports to program the Propeller board. But, I guess I will have to be the one to try it out and see if works, now if they only had a Windows 7 compatibly mode...

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-17 08:21
    Ray,

    My approach would be to build propgcc, the open source Spin compiler and SimplelDE from sources on the PC-BSD. Then you don't have to mess with any compatibility mode.

    I'm sure getting at serial ports is not impossible under BSD.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-17 09:06
    I just downloaded the Linux package from Learn, and extracted the zip, looks like it is missing the essentials like setup.sh, so I guess the Linux compatibility mode is not working on a straight zipped download. Now the next thing is to get the sources and compile it, hopefully I will get something that works.

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-17 09:22
    If something is missing from the zip package I'm sure that is not the fault of any compatibility mode.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-17 09:33
    Hmm, after thinking about it, I think I want too try PropellerIDE first, but I need a refresher course as to how to get the source. Do I need to install something on PC-BSD, to get to where the source is?

    Ray
  • jazzedjazzed Posts: 11,803
    edited 2014-08-17 09:39
    Rsadeika wrote: »
    I just downloaded the Linux package from Learn, and extracted the zip, looks like it is missing the essentials like setup.sh, so I guess the Linux compatibility mode is not working on a straight zipped download. Now the next thing is to get the sources and compile it, hopefully I will get something that works.

    Ray

    We no longer support the old linux package because of the many, many dependencies. Only .deb packages are supported at this time. The .deb packages will work on Debian, Mint, Ubuntu, and other Debian based distributions. Support for other Linux OS distributions is TBD. Please download the Installation Instructions and follow them for the Linux .deb packages.

    If you are using FreeBSD or Linux Distributions not based on Debian you will have to get all the repositories, resolve all dependencies, and build them yourself. I recommend starting with the PropellerIDE easyside project since it does not require building PropellerGCC.

    When you know how to build all this for FreeBSD, then you can teach me.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-17 14:13
    I got the source for PropellerIDE and I tried opening the project, once it got opened up it complains about a kit that is missing, not sure what exactly Qt is looking for because PC-BSD has GCC installed. Not even out of the gate, and I am stalled.

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-17 14:38
    Ray,

    I would suggest building PropellerIDE from the command line following the instructions in the README or INSTALL text that are in the source package.
    Assuming you have all the Qt libs installed correctly and what ever other dependencies that sounds like it should work more easily.

    There is only a simple script to run.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-18 04:43
    I think that Qt is not fully implemented for PC-BSD, everything that I have tried, including building a 'hello' project from scratch, still asks for a kit, which is not implemented when chosen, so I think something is wrong. It is funny because PC-BSD was built using Qt. As for command line instructions within the easyside(PropellerIDE) download, I could not find any. I guess this will have to be put on hold until I can get more information as to what is going on with Qt for PC-BSD.

    As for the general use of PC-BSD, the new distribution still has some minor glitches, some things do not work as expected, for instance the AppCafe, sometimes it works as expected and sometimes it does not.

    I registered with the PC-BSD forum, that is a little different setup, when you post something it does not appear in the thread for at least 12 hours. Not sure if that is just for the newly registered or it affects everyone. I guess that keeps a lot of threads under control, just think if they switched over to that method here.

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-18 06:19
    Ray,

    The thing is that qtcreator can be used to build binaries for many architectures and platforms. From the desktop machine you are running on to Android or Rasperry Pi. So you need to tell it what it should build and which compiler/cross compiler it should use.

    Recent versions of qtcreator introduced the idea of "kits" which is basically how you specify what the build tools will be.

    Assuming you have gcc and the Qt libraries installed you should be able to open up the relevant dialogues where these kits are defined and specify the tools to be used. It normally finds the compiler and libs automatically for you to select.

    You can read about "kits" here : http://qt-project.org/doc/qtcreator-2.6/creator-targets.html

    This is a necessary complication given that Qt is a cross-platform too kit.

    Qt apps can of course be built without qtcreator using qmake from the command line. Which is what the build scripts do, they have to do more than just get the Qt app compiled though.

    I must admit that building PropellerID, SimpleIDE etc has confused me. Starting from the fact that the repositories they live in are not named after the programs the build.

    Just now I have pulled the latest "easyside" repository here. Which actually builds "PropellerIDE". It can be built with a simple:
    $ qmake
    $ make
    
    From the command line. Assuming Qt is installed and qmake is in your PATH.

    I also have the propside sources, which builds into SimpleIDE. The "qt5side" branch of the repo builds with Qt5.3 here by simply using:
    ./plinrelease.sh
    
    That of course assumes you have propgcc installed first...

    The "release_1_0" branch of propgcc builds and installs Propgcc with:
    ./rebuild.sh
    
    The "default" branch of propgcc is built and installed with just "make".

    How easy could it be? :):)

    I have no idea of course how well any of this works under BSD. That is where you come in....
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-18 09:58
    Thanks for the quick tutorial Heater, you will make me love the command line yet. Below is what I get:
    [ray@pcbsd-5490] ~/easyside/ide% qmake *.pro

    CORRECT>make *.pro (y|n|e|a)? yes
    `EzIDE.pro' is up to date.
    [ray@pcbsd-5490] ~/easyside/ide% make *.pro
    `EzIDE.pro' is up to date.

    This not for everyone, we are so used to plug and play, we are lost at the first sign of trouble.

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2014-08-18 10:14
    Who said anything about "qmake *.pro"? A simple "qmake" should do. Followed by "make".

    I will admit that a command line is a bit tougher than a GUI. However in general we cannot do what we want to do in a GUI. For simple cases that you do a lot a GUI is OK. For anything interesting a GUI would be so horribly labyrinthine it's easier to use the command line and hack on config files.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-18 10:51
    I checked on the internet, and some of the examples for using qmake with PC-BSD had 'qmake *.pro'. maybe there is a difference between how qmake is used in PC-BSD and in Linux?

    Ray
    [ray@pcbsd-5490] ~/easyside/ide% qmake

    CORRECT>make (y|n|e|a)? yes
    make: no target to make.

    make: stopped in /usr/home/ray/easyside/ide
    [ray@pcbsd-5490] ~/easyside/ide%
  • Heater.Heater. Posts: 21,230
    edited 2014-08-18 11:00
    Ray,

    Well, now you have got me. Never seen that response to qmake before.

    Dammit I'm going to have try and install PC_BSD again just to try and play along with you.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-18 11:08
    Yes, I have partially converted you to be a UNIX user? Linux was nice, but the real programmers are UNIX made. I will stop while I am still ahead.

    Ray
  • jazzedjazzed Posts: 11,803
    edited 2014-08-18 12:58
    Rsadeika wrote: »

    [ray@pcbsd-5490] ~/easyside/ide% qmake


    CORRECT>make (y|n|e|a)? yes
    make: no target to make.


    make: stopped in /usr/home/ray/easyside/ide
    [ray@pcbsd-5490] ~/easyside/ide%


    It's pretty obvious that you don't have the qt development environment's qmake in your path.

    What command did you use to install qt (if any)?

    I have no idea how to install qt on FreeBSD and am waiting for you to figure it out and tell me.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-18 13:25
    Actually, Qt Creator was already installed when I installed PC-BSD. I did go through an exercise today of uninstalling Qt and then reinstalling it. Basically you have something called AppCafe which holds all the programs that can be installed. So I just type in qt, when the program shows up, I hit the install icon and it installs Qt and all of its parts. Now I am not sure as to how you could verify that everything that is needed got installed, I only assume as much. Lots of digging but not coming up with any real solutions.

    Ray
  • jazzedjazzed Posts: 11,803
    edited 2014-08-18 14:59
    My FreeBSD VM (too derelict to be of any use) has qtcreator but not qmake.

    Maybe this will add qmake for you:

    $ pkg_add -r qconf-1.4

    Packages that have qmake http://www.freebsd.org/cgi/ports.cgi?query=qmake&stype=all
  • Heater.Heater. Posts: 21,230
    edited 2014-08-18 20:50
    Ray,
    [ray@pcbsd-5490] ~/easyside/ide% qmake
    
    
    CORRECT>make (y|n|e|a)? yes
    make: no target to make.
    
    
    make: stopped in /usr/home/ray/easyside/ide
    [ray@pcbsd-5490] ~/easyside/ide%
    
    I have just twigged what is going on here. You typed "qmake" which it cannot find. The nearest thing it could find is "make" which it helpfully asked if you want to run.
    You said "yes" so it went ahead and ran "make" which of course failed as it has no target to build because you have not run qmake yet to set that up.

    The answer to you qmake problem may well be in the post #4 of this PCBSD thread http://forums.pcbsd.org/showthread.php?t=16143


    Note the part about needing to add the path to qmake to your PATH.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-19 05:09
    I am starting to make a some progress.

    Ray
    [ray@pcbsd-5490] ~% cd easyside
    [ray@pcbsd-5490] ~/easyside% cd ide
    [ray@pcbsd-5490] ~/easyside/ide% qmake-qt4
    WARNING: Failure to find: ioapi.h
    WARNING: Failure to find: iowin32.h
    [ray@pcbsd-5490] ~/easyside/ide%
  • Heater.Heater. Posts: 21,230
    edited 2014-08-19 05:21
    Strangely enough I get that warning too. It builds anyway.

    It is possible you need Qt5 to build easyside. But go ahead and type "make", you'll soon find out.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-19 05:23
    I got a fatal error. So, I guess there is stuff that is still missing.

    Ray
    [ray@pcbsd-5490] ~/easyside/ide% make
    /usr/local/bin/uic-qt4 TermPrefs.ui -o ui_TermPrefs.h
    clang++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=1 -DENABLE_AUTO_ENTER -DSPIN_AUTOCOMPLETE -DENABLE_ZIP -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../local/share/qt4/mkspecs/freebsd-clang -I. -I../../../../local/include/qt4/QtCore -I../../../../local/include/qt4/QtGui -I../../../../local/include/qt4 -I../quazip-0.6.2/quazip -I/usr/local/src/3rdparty/zlib -I. -I. -I../../../../local/include/qt4 -I../../../../local/include -o main.o main.cpp
    In file included from main.cpp:3:
    ./mainwindow.h:47:10: fatal error: 'QtWidgets' file not found
    #include <QtWidgets>
    ^
    1 error generated.
    *** Error code 1

    Stop.
    make: stopped in /usr/home/ray/easyside/ide
    [ray@pcbsd-5490] ~/easyside/ide%
  • Heater.Heater. Posts: 21,230
    edited 2014-08-19 05:50
    Ray,

    That looks very much like the kind of error I have seen when tying to build a Qt5 program against Qt4 libraries. Or vice versa.

    Can you do:
    $ cd /
    $ find -name "QtWidgets*"
    And tell us what you get.

    If you can't find a Qt5 package for PC-BSD you can build it all from sources fetched from here http://download.qt-project.org/official_releases/qt/5.3/5.3.1/single/qt-everywhere-opensource-src-5.3.1.tar.gz.mirrorlist

    It's only a 230MByte download!

    I have managed to build Qt from like that a few times.
  • RsadeikaRsadeika Posts: 3,837
    edited 2014-08-19 08:35
    I installed Qt5, some kind of meta version.

    Ray
    [ray@pcbsd-5490] ~/easyside/ide% qmake-qt5

    CORRECT>qmake-qt4 (y|n|e|a)? yes
    WARNING: Failure to find: ioapi.h
    WARNING: Failure to find: iowin32.h
    [ray@pcbsd-5490] ~/easyside/ide%
    [ray@pcbsd-5490] ~/easyside/ide% make
    clang++ -c -pipe -O2 -Wall -W -pthread -D_THREAD_SAFE -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=1 -DENABLE_AUTO_ENTER -DSPIN_AUTOCOMPLETE -DENABLE_ZIP -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../local/share/qt4/mkspecs/freebsd-clang -I. -I../../../../local/include/qt4/QtCore -I../../../../local/include/qt4/QtGui -I../../../../local/include/qt4 -I../quazip-0.6.2/quazip -I/usr/local/src/3rdparty/zlib -I. -I. -I../../../../local/include/qt4 -I../../../../local/include -o main.o main.cpp
    In file included from main.cpp:3:
    ./mainwindow.h:47:10: fatal error: 'QtWidgets' file not found
    #include <QtWidgets>
    ^
    1 error generated.
    *** Error code 1

    Stop.
    make: stopped in /usr/home/ray/easyside/ide
    [ray@pcbsd-5490] ~/easyside/ide%

    Used find.
    [ray@pcbsd-5490] ~/easyside/ide% find / -name "QtWidgets*"
    find: /.dbus: Permission denied
    /usr/local/include/qt5/QtWidgets
    /usr/local/include/qt5/QtWidgets/5.2.1/QtWidgets
    /usr/local/include/qt5/QtWidgets/QtWidgetsDepends
    /usr/local/include/qt5/QtWidgets/QtWidgetsVersion
    /usr/local/include/qt5/QtWidgets/QtWidgets
    find: /usr/local/etc/cups/ssl: Permission denied
    find: /etc/ntp: Permission denied
    find: /root/.local: Permission denied
    find: /root/.config/mc: Permission denied
    find: /root/.cache: Permission denied
    find: /root/.dbus: Permission denied
    find: /var/authpf: Permission denied
    find: /var/cron/tabs: Permission denied
    find: /var/spool/cups: Permission denied
    find: /var/spool/cups-pdf: Permission denied
    find: /var/spool/opielocks: Permission denied
    find: /var/spool/clientmqueue: Permission denied
    find: /var/heimdal: Permission denied
    find: /var/run/ppp: Permission denied
    find: /var/run/PolicyKit: Permission denied
    find: /var/run/cups/certs: Permission denied
    find: /var/run/sudo: Permission denied
    find: /var/audit: Permission denied
    find: /var/db/freebsd-update-check: Permission denied
    find: /var/db/ipf: Permission denied
    find: /var/db/sudo: Permission denied
    find: /var/db/freebsd-update: Permission denied
    find: /var/db/entropy: Permission denied
    find: /var/lib/PolicyKit: Permission denied
    find: /var/lib/polkit-1: Permission denied
    find: /.cache: Permission denied
    find: /tmp/.xrdp/xrdp-ZEw72m: Permission denied
    find: /tmp/.sysupdate0jPD1X: Permission denied
    find: /tmp/.sysupdateAnnyAy: Permission denied
    [ray@pcbsd-5490] ~/easyside/ide%
  • jazzedjazzed Posts: 11,803
    edited 2014-08-19 08:43
    Heater. wrote: »
    Strangely enough I get that warning too. It builds anyway.

    It is possible you need Qt5 to build easyside. But go ahead and type "make", you'll soon find out.


    It builds with Qt4. The plinrelease.sh may suggest Qt5 for a few seconds IIRC, but the script will finish with Qt4.

    Make sure you have the loader branch as suggested in the main easyside page.

    Use the plinrelease.sh script to build without qtcreator. It uses qmake and the whole folder where qmake is installed which must be in your path.
  • JordanCClarkJordanCClark Posts: 198
    edited 2014-08-19 11:28
    Heater. wrote: »
    You are a troll right?

    But just in case you are not a troll do you have any links to any instructions as to how I can do that with the XP or Win 7 I have here. I have never seen it done before.

    Sorry to sidetrack it to a previous sidetrack...

    This registry key sets what shell starts upon boot: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell

    Normally, it's set to explorer.exe, but you can set it to cmd.exe to make it command prompt only.

    I've also had occasion to make a custom shell to do HMI startup tasks and keep the operator from clicking about (sometimes quite disruptively).
Sign In or Register to comment.