Closed anoduck closed 6 months ago
Hi there,
Lemon is distributed as part of SQLite and is just given the same version number as the source SQLite release. Can you confirm the SQLite release you built lemon from?
Best,
Hi there,
Lemon is distributed as part of SQLite and is just given the same version number as the source SQLite release. Can you confirm the SQLite release you built lemon from?
Best,
Oh...nice... Grabbing src "sqlite-src-3380500.zip" and compiled with the basic cc -o lemon lemon.c
.
Regardless of acquiring it from the sqlite src or downloading it directly from sqlite's lemon page, the result appears to be the same. Output of ./lemon -x
is Lemon version 1.0
.
Now, I have more sensical output, and it still fails to build. Now outputs error as Unknown OS!
[1/66] Building CXX object app/CMakeFiles/antimony.dir/app/main.cpp.o
FAILED: app/CMakeFiles/antimony.dir/app/main.cpp.o
/usr/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -I/home/USER/antimony/build/app -I/home/USER/antimony/app -I/home/USER/antimony/build/app/antimony_autogen/include -I/home/USER/antimony/lib/graph/inc -I/home/USER/antimony/lib/fab/inc -isystem /usr/local/include/python3.9 -isystem /usr/local/include -isystem /usr/local/include/X11/qt5 -isystem /usr/local/include/X11/qt5/QtWidgets -isystem /usr/local/include/X11/qt5/QtGui -isystem /usr/X11R6/include -isystem /usr/local/include/X11/qt5/QtCore -isystem /usr/local/lib/qt5/./mkspecs/openbsd-clang -isystem /usr/local/include/X11/qt5/QtOpenGL -isystem /usr/local/include/X11/qt5/QtNetwork -isystem /usr/local/include/X11/qt5/QtConcurrent -Wall -Wextra -g -Werror=switch -O3 -DRELEASE -D'GITREV="'ee525bbd'"' -D'GITTAG=""' -D'GITBRANCH="develop "' -fPIC -std=gnu++11 -MD -MT app/CMakeFiles/antimony.dir/app/main.cpp.o -MF app/CMakeFiles/antimony.dir/app/main.cpp.o.d -o app/CMakeFiles/antimony.dir/app/main.cpp.o -c /home/USER/antimony/app/app/main.cpp
/home/USER/antimony/app/app/main.cpp:65:2: error: "Unknown OS!"
#error "Unknown OS!"
^
1 error generated.
[3/66] Building CXX object app/CMakeFiles/antimony.dir/app/app.cpp.o
FAILED: app/CMakeFiles/antimony.dir/app/app.cpp.o
/usr/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -I/home/USER/antimony/build/app -I/home/USER/antimony/app -I/home/USER/antimony/build/app/antimony_autogen/include -I/home/USER/antimony/lib/graph/inc -I/home/USER/antimony/lib/fab/inc -isystem /usr/local/include/python3.9 -isystem /usr/local/include -isystem /usr/local/include/X11/qt5 -isystem /usr/local/include/X11/qt5/QtWidgets -isystem /usr/local/include/X11/qt5/QtGui -isystem /usr/X11R6/include -isystem /usr/local/include/X11/qt5/QtCore -isystem /usr/local/lib/qt5/./mkspecs/openbsd-clang -isystem /usr/local/include/X11/qt5/QtOpenGL -isystem /usr/local/include/X11/qt5/QtNetwork -isystem /usr/local/include/X11/qt5/QtConcurrent -Wall -Wextra -g -Werror=switch -O3 -DRELEASE -D'GITREV="'ee525bbd'"' -D'GITTAG=""' -D'GITBRANCH="develop "' -fPIC -std=gnu++11 -MD -MT app/CMakeFiles/antimony.dir/app/app.cpp.o -MF app/CMakeFiles/antimony.dir/app/app.cpp.o.d -o app/CMakeFiles/antimony.dir/app/app.cpp.o -c /home/USER/antimony/app/app/app.cpp
/home/USER/antimony/app/app/app.cpp:66:2: error: "Unknown OS!"
#error "Unknown OS!"
^
/home/USER/antimony/app/app/app.cpp:87:27: warning: 'toList' is deprecated: Use values() instead. [-Wdeprecated-declarations]
return existing_paths.toList();
^
/usr/local/include/X11/qt5/QtCore/qset.h:264:5: note: 'toList' has been explicitly marked deprecated here
QT_DEPRECATED_X("Use values() instead.")
^
/usr/local/include/X11/qt5/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/local/include/X11/qt5/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
1 warning and 1 error generated.
[4/66] Building CXX object app/CMakeFiles/antimony.dir/canvas/inspector/export.cpp.o
ninja: build stopped: subcommand failed.
So, OpenBSD might need to be added to source code as a valid OS option.
Yep, different issue. I think you're the first person to try to get it running on OpenBSD.
You're welcome to try building with this line changed to include Q_OS_OPENBSD
, but I expect that other things will not work!
Oh, highly probable. Running OpenBSD is part blessing and part curse.
Let me give a whirl, and see what comes of it. If worse comes to worst, I have a Linux workstation I VNC into, and will just continue to use antimony on it.
It is times like this, I wish I had learned C++ in college.
You're welcome to try building with this line changed to include
Q_OS_OPENBSD
, but I expect that other things will not work!
And boom goes the dynamite! We have now successfully built Antimony on OpenBSD! Which was needed, since there are few CAD options for OpenBSD.
More than line 50 was needed, as Q_OS_OPENBSD
was needed in line 58 of app.cpp and in line 127 of app.cpp. Since OpenBSD is partly influenced by Linux, the parameters are exactly the same, and can be literally copied and pasted. Providing, they are under the Q_OS_OPENBSD
heading/thinga-ma-bobber.
@mkeeter Do you want me to generate a pull request with the changes?
Sure, go for it!
System: OpenBSD Snapshot Current CMake Version: 3.23.1 Ninja Version: 1.11.0 Flex Version: 2.5.39 Lemon Version: ??? (It has more than one version?)
It took some finagling to acquire solely the lemon and lempar source code, but appears to have been successful... I think. Admittedly, compiling antimony on OpenBSD just may not be possible.
Upon running ninja to build antimony, the console erupted with errors and stopped on
lib/fab/CMakeFiles/SbFabTest.dir/tests/main.cpp.0
. Here is the output:If there is anything, let me know.