[OpenIndiana-discuss] Object Icon on amd64 OI in $HOME
Jason Martin
agrellum at gmail.com
Wed May 12 18:31:55 UTC 2021
This is my way of giving back. I do not do be's, zones, cross-bows,
virtual boxes and etc..
Why this project? "This is what Unix is all about and Robert has done a
really great job."
I could do a "Makefile" but Icon programming languages work better in $HOME.
Check out the no frames and no java-script browser in examples/bin
I test the browser with top 500 sites an 100 odd sites regularly on
OpenBSD 6.7, 6.8, 6.9 and Raspberry Pi OS. [This in not your "Big Time
Browser" but lightly gets some jobs done.]
Lots of other pure X11 goodies.
# You need
pkg install build-essential
pkg install pkg://openindiana.org/developer/versioning/subversion
# IF YOU WANT DATABASE STUFF
pkg install mariadb-101/client
svn checkout https://svn.code.sf.net/p/objecticon/code/trunk objecticon-code
cd objecticon-code
# IF YOU WANT DATABASE STUFF - I PATCH FOR MARIADB
diff -ru a/aclocal.m4 b/aclocal.m4
--- a/aclocal.m4 Wed Sep 9 13:05:21 2020
+++ b/aclocal.m4 Wed Sep 9 13:12:10 2020
@@ -517,12 +517,12 @@
AX_OPT_HEADER(mysql, MySQL)
unset MYSQL_CPPFLAGS MYSQL_LDFLAGS MYSQL_VERSION MYSQL_LIBS
if test "$with_mysql" != "no"; then
- MYSQL_CONFIG="mysqlclient >= 1.0"
+ MYSQL_CONFIG="mariadb"
AC_MSG_CHECKING([for $MYSQL_CONFIG])
if pkg-config $MYSQL_CONFIG; then
MYSQL_CPPFLAGS="`pkg-config --cflags $MYSQL_CONFIG`"
MYSQL_LDFLAGS="`pkg-config --libs-only-L $MYSQL_CONFIG`"
- MYSQL_LIBS=`pkg-config --libs-only-l $MYSQL_CONFIG`
+ MYSQL_LIBS="`pkg-config --libs-only-l $MYSQL_CONFIG |
sed 's/-liconv/''/'`"
MYSQL_VERSION=`pkg-config --modversion $MYSQL_CONFIG`
AC_DEFINE(HAVE_MYSQL)
AC_MSG_RESULT(yes)
diff -ru a/lib/native/gmysql.h b/lib/native/gmysql.h
--- a/lib/native/gmysql.h Wed Sep 9 13:05:21 2020
+++ b/lib/native/gmysql.h Wed Sep 9 13:13:53 2020
@@ -1,2 +1,2 @@
typedef int MYSQL, MYSQL_FIELD, MYSQL_RES,
- MYSQL_FIELD_OFFSET, MYSQL_ROW, MYSQL_ROW_OFFSET, my_ulonglong, bool;
+ MYSQL_FIELD_OFFSET, MYSQL_ROW, MYSQL_ROW_OFFSET, my_ulonglong, my_bool;
diff -ru a/lib/native/mysql.r b/lib/native/mysql.r
--- a/lib/native/mysql.r Wed Sep 9 13:05:24 2020
+++ b/lib/native/mysql.r Wed Sep 9 13:14:32 2020
@@ -160,7 +160,7 @@
*/
const char *str_arg = NULL;
unsigned int int_arg = 0;
- bool bool_arg = false;
+ my_bool bool_arg = 0;
tended struct descrip result;
GetSelfMySql();
patch -p1 < above.patch
autoconf
./configure CC="/usr/gcc/7/bin/gcc" \
CFLAGS="-m64 -O3 -I/usr/include/libjpeg8-turbo
-Wl,-L/usr/lib/libjpeg8-turbo/lib/amd64 \
-Wl,-R/usr/lib/libjpeg8-turbo/lib/amd64" \
LDFLAGS="-m64 -L/usr/lib/libjpeg8-turbo/lib/amd64
-R/usr/lib/libjpeg8-turbo/lib/amd64" \
PKG_CONFIG_PATH="/usr/openssl/1.0/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/mariadb/10.1/share/pkgconfig"
gmake
Finally, you can add what is in objecticon-code/paths.sh to ~/.profile
if you want.
To test:
gmake test
To benchmark:
gmake bmark
To build api documents:
gmake libref
More information about the openindiana-discuss
mailing list