Code Monkey home page Code Monkey logo

Comments (6)

hellium6 avatar hellium6 commented on May 27, 2024

Just also tried Textadept 11.2 beta 3 (12 Jun 2021)

gmake deps gave me a slight hiccup:

  inflating: scintilla/curses/scinterm-f8980f045c16b79b6d7b83c06db2c6195e89e3e6/jinx/jinx.c  
   creating: scintilla/curses/scinterm-f8980f045c16b79b6d7b83c06db2c6195e89e3e6/patches/
  inflating: scintilla/curses/scinterm-f8980f045c16b79b6d7b83c06db2c6195e89e3e6/patches/02-caretstyle_curses.patch  
make -C scintilla/curses patch
*** Parse error in /home/user/Downloads/textadept-textadept_11.2_beta_3/src/scintilla/curses: Need an operator in 'DEBUG' (Makefile:10)
*** Parse error: Need an operator in 'else' (Makefile:12)
*** Parse error: Need an operator in 'endif' (Makefile:14)
*** Parse error: Need an operator in '../include' (Makefile:24)
*** Parse error: Need an operator in '../src' (Makefile:25)
gmake: *** [Makefile:381: scintilla/curses] Error 1

So I had to run gmake deps DEBUG=0 to make it work.

Then running gmake GTK3=1 showed me:

cc -c -Os -DLUA_USE_LINUX -Ilua/src -std=c99 -pedantic -DGTK -Iscintilla/include -Igtdialog -Wall -I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/X11R6/include -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/cairo -I/usr/X11R6/include/libdrm -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi -I/usr/local/include -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wno-deprecated-declarations textadept.c -o textadept.o
textadept.c:2447:37: error: use of undeclared identifier 'KERN_PROC_PATHNAME'
  int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
                                    ^
1 error generated.
gmake: *** [Makefile:171: textadept.o] Error 1

from textadept.

orbitalquark avatar orbitalquark commented on May 27, 2024

Sorry for the late response :( GitHub did not e-mail me this issue.

Unfortunately I do not have a BSD box to try and build Textadept with. If you manage to get it working, please let me know so I can apply any necessary patches.

from textadept.

orbitalquark avatar orbitalquark commented on May 27, 2024

In case anyone happens to run into this, I've committed an attempted fix for BSDs here: 2984484

For anyone who tries this, please let me know if it works or doesn't work. Thanks.

from textadept.

kiwec avatar kiwec commented on May 27, 2024

@orbitalquark got a bit further with your fix on OpenBSD 7.1 with the following changes:

  • Added /usr/local/include to CFLAGS so iconv.h is found
  • <unistd.h> also had to be included in textadept.c (and <sys/sysctl.h> removed)

But linking fails:

ld: error: duplicate symbol: focused_view
>>> defined at textadept.c
>>>            textadept.o:(focused_view)
>>> defined at textadept_gtk.c
>>>            textadept_gtk.o:(.bss+0x20)

(+ many more similar duplicates)

Using GTK2=1.

from textadept.

orbitalquark avatar orbitalquark commented on May 27, 2024

from textadept.

kiwec avatar kiwec commented on May 27, 2024

Seems like most of the issues come from gcc dependency, not OpenBSD itself. Building with clang fails on Linux too.

"Builds" with these changes: https://github.com/kiwec/textadept/commit/4caa4928e2bab6a97de808e86d18dfdbe1c71fd3

However it crashes on startup because of linking errors :/

from textadept.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.