During configure I got error for a different place OSX places X11, I fixed.
During make I got errors for linux/fb.h missing. I comment to continue.
I still got errors like:
io.c:133:10: error: redefinition of 'timespec'
struct timespec {
^
[...] more errors removed.
and it ends with:
make: *** [libx11basic.so.1.24] Error 1
Last edit: Markus Hoffmann 2016-06-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hm, can you post the config.log file? It looks like you are not using gcc, right? So lets walk through the errors and fix them. The first is, that the X11-environment was not found (therefore it tries to ask for a framebuffer device, missing linux/fb.h).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, thanks. This does not look too bad. So now, lets try to compile a working version of X11-basic. Some fixes might be necessary. First of all, do not run configure again, since we will make manual changes to the defs. I assume, that you have the recent sources from gitlab:
(If you are using git, please let me know, this will improve debugging and working together much)
now please edit options.h
put a
define NOGRAPHICS 1
after the line
define OPTIONS_H
Then please do a
make clean static
This should produce a file xbasic.static which has a version of X11-Basic without graphics commands. I think we should debug this first and make it run.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI, actually I'm not a programmer, I downloaded the source here from sourceforge, I don't know if this is the last from gitlab.
I follow your instruction. Here is the LOG: (NB: yesterday I changed manually the linux/fb.h references in files and replaced with /opt/X11/include/xorg/fb.h )
Hi, OK,
1. The change for fb.h: this is not the right way. fb.h should not be used at all.
2. The change to options.h (NOGRAPHICS) should inactivate this anyways.
3. I did some more changes to the sources which are on gitlab (not sourceforge), which should fix more errors. The easiest way to get them is via git. (do you have git on the MAC? If so, I could talk you through how to use it). Updating the sources can be made by a single command in the terminal: "git pull origin apple" and then you have the exact same sources than I do. If this does not work for you, I could also try to put the new files into attachments of this forum.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, after installation of git, you should open a terminal window and cd to some home folder.
then try to enter the commands given in my earlier post, starting with the "git clone..." statement. This should download the complete source tree (similar to what you got from unpacking the tar.gz file from sourceforge). The commands download and unpack everything and then switch to a special version of the sources, called apple, where I put the fixes (still untested).
To try to compile you should go to the src/ directory and do ./configure (only once) and make.
or modify options.h and do a make static, as mentioned before.
Then you get maybe some errors, let me know about them, I try to fix them.
If you want to check if there are some changes I made, type the "git pull..." command mentioned in an earlier post (from inside the X11Basic directory). this will update the sources. Then you should go on with "make clean" and "make static" and so on.
From time to time you can also try to make the regular version of X11-Basic: undo the modifications to options.h do a make
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, sucess. Now you have xbasic.static (the interpreter) and xbbc.static (the bytecode compiler), both without graphics. But you now can start xbasic.static by entering ./xbasic.static in the src/ directory. type in some BASIC commands ....
get an example program (without graphics, so take them from /calculation or /console from the examples at the web site)
run it with
./xbasic.static example.bas
The next step would be to try to make the full version.
remove the "#define NOGRAPHICS" line in options.h and do a make clean and make static again, and see if everything works out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If the version with X11-Graphics support fails, we still have another option: I see from the output of configure, that you have the SDL library installed and usabel. This could be used instead. But I would prefer to use the X11-libs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying the examples.bas
Some are working fine, some are not working (no sound, and some graphic text do not work or other (puttest) give fatal error X11BASIC-QUIT Segmentation fault: 11)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great! Good to know that X11-Basic works again on Mac-OSX. The last time i did it myself was 2009 or so. Since then I have not tested it on a mac. So the changes made in the branch apple can be merged to the master branch.
Have you tried a make install? I am not sure if the file system hirarchy is the same as on linux.If make install does not work, you can at least use the static binaries just created. Move them whereever you want, mabe in some bin/ folder in your path. E.g. /usr/local/bin/ That could probably be enough to use it in most if the cases.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi, I was trying to install X11 Basic on a Mac, but i got several errors during "make".
Is there a wiki about the installing?
No, not that I am aware of. What errors do you get?
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I try a simple ./configure and make
During configure I got error for a different place OSX places X11, I fixed.
During make I got errors for linux/fb.h missing. I comment to continue.
I still got errors like:
and it ends with:
make: *** [libx11basic.so.1.24] Error 1
Last edit: Markus Hoffmann 2016-06-10
Hm, can you post the config.log file? It looks like you are not using gcc, right? So lets walk through the errors and fix them. The first is, that the X11-environment was not found (therefore it tries to ask for a framebuffer device, missing linux/fb.h).
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Last edit: Markus Hoffmann 2016-06-13
OK, thanks. This does not look too bad. So now, lets try to compile a working version of X11-basic. Some fixes might be necessary. First of all, do not run configure again, since we will make manual changes to the defs. I assume, that you have the recent sources from gitlab:
(If you are using git, please let me know, this will improve debugging and working together much)
now please edit options.h
put a
define NOGRAPHICS 1
after the line
define OPTIONS_H
Then please do a
This should produce a file xbasic.static which has a version of X11-Basic without graphics commands. I think we should debug this first and make it run.
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
HI, actually I'm not a programmer, I downloaded the source here from sourceforge, I don't know if this is the last from gitlab.
I follow your instruction. Here is the LOG: (NB: yesterday I changed manually the linux/fb.h references in files and replaced with /opt/X11/include/xorg/fb.h )
Last edit: Markus Hoffmann 2016-06-10
Hi, OK,
1. The change for fb.h: this is not the right way. fb.h should not be used at all.
2. The change to options.h (NOGRAPHICS) should inactivate this anyways.
3. I did some more changes to the sources which are on gitlab (not sourceforge), which should fix more errors. The easiest way to get them is via git. (do you have git on the MAC? If so, I could talk you through how to use it). Updating the sources can be made by a single command in the terminal: "git pull origin apple" and then you have the exact same sources than I do. If this does not work for you, I could also try to put the new files into attachments of this forum.
OK, after installation of git, you should open a terminal window and cd to some home folder.
then try to enter the commands given in my earlier post, starting with the "git clone..." statement. This should download the complete source tree (similar to what you got from unpacking the tar.gz file from sourceforge). The commands download and unpack everything and then switch to a special version of the sources, called apple, where I put the fixes (still untested).
To try to compile you should go to the src/ directory and do ./configure (only once) and make.
or modify options.h and do a make static, as mentioned before.
Then you get maybe some errors, let me know about them, I try to fix them.
If you want to check if there are some changes I made, type the "git pull..." command mentioned in an earlier post (from inside the X11Basic directory). this will update the sources. Then you should go on with "make clean" and "make static" and so on.
From time to time you can also try to make the regular version of X11-Basic:
undo the modifications to options.h
do a make
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Mh.. maybe I did not understand:
Good: git works.
However:
This was a mistype:
should be:
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank for the instructions. Git worked. Configure worked. I changed the options.h and made a "make static".
Here comes the feedback:
[logfile.log]
Last edit: Markus Hoffmann 2017-05-12
Ok, lets see...
I think, the warnings can be ignored and the one error should be fixed now.
If you do not want to get all warnings again, just leave out the make clean, just do a make static after the "git pull ..."
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi, I made a git pull... and make static:
[logfile.log]
Last edit: Markus Hoffmann 2017-05-12
OK, good. The compilation now worked. Now the linker gives strange messages about undresoved symbols for 64 bit architecture.... Hm...
Ok, I think I have fixed it. Lets look at the next try...
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Here is it!
OK, sucess. Now you have xbasic.static (the interpreter) and xbbc.static (the bytecode compiler), both without graphics. But you now can start xbasic.static by entering ./xbasic.static in the src/ directory. type in some BASIC commands ....
get an example program (without graphics, so take them from /calculation or /console from the examples at the web site)
run it with
The next step would be to try to make the full version.
remove the "#define NOGRAPHICS" line in options.h and do a make clean and make static again, and see if everything works out.
If the version with X11-Graphics support fails, we still have another option: I see from the output of configure, that you have the SDL library installed and usabel. This could be used instead. But I would prefer to use the X11-libs.
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
The without graphics works! I test using some print commands and array.bas and it works.
Now, I try the full one.
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Well, we have a winner :)

Last edit: Anonymous 2016-06-10
View and moderate all "MAC OSX / iOS" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I'm trying the examples.bas
Some are working fine, some are not working (no sound, and some graphic text do not work or other (puttest) give fatal error X11BASIC-QUIT Segmentation fault: 11)
Hi, I have worked a little bit on the 64bit specific errors. You can checkout this version with:
Some more example programs should work now. You can now make limited use of PEEK/POKE/VARPTR etc.
Update 2017-04: I have merged the 64bit stuff to the main branch now. Do bot use the branches apple and 64bit anymore.
Last edit: Markus Hoffmann 2017-05-12
Great! Good to know that X11-Basic works again on Mac-OSX. The last time i did it myself was 2009 or so. Since then I have not tested it on a mac. So the changes made in the branch apple can be merged to the master branch.
Have you tried a make install? I am not sure if the file system hirarchy is the same as on linux.If make install does not work, you can at least use the static binaries just created. Move them whereever you want, mabe in some bin/ folder in your path. E.g. /usr/local/bin/ That could probably be enough to use it in most if the cases.