This is the error I’m getting and I did run both install_codecs.sh and install_dependencies.sh
In file included from /home/archspect/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
/usr/include/sndfile.h:356:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
356 | typedef struct sf_private_tag SNDFILE ;
| ^~~~~~~
In file included from /home/archspect/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
/home/archspect/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.h:18:33: note: previous declaration as 'typedef struct SNDFILE_tag SNDFILE'
18 | typedef struct SNDFILE_tag SNDFILE ;
| ^~~~~~~
make[1]: *** [makefileCommon/compile.core.mk:238: /home/archspect/of_v0.11.2_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1
make: *** [makefileCommon/compile.core.mk:212: Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums
Well, I ran the install_dep and install_codecs script, just like you did. I don’t think I added anything manually to make it work (but who knows, I use this machine for developing other stuff too).
And I always run my machine with the latest updates (Debian 11.4 Testing).
After an upgrade and installing a couple more packages, I managed to run both the CLI and GUI. But then when I want to actually create the project it gives me this error
I can’t reproduce this error on my Debian machine. This is when you run the compiled projectgenerator with the window/GUI?
Can you create an oF project from inside QT Creator, whis is the supported IDE for oF on GNU/Linux? (QT Creator > Create project > openFrameworks > openFrameworks application)
“This is when you run the compiled projectgenerator with the window/GUI?”
Yes
Can you create an oF project from inside QT Creator, whis is the supported IDE for oF on GNU/Linux? (QT Creator > Create project > openFrameworks > openFrameworks application)
Well this is gonna take forever to download (I have very bad internet)
Hi @Archspect , I hope the following is helpful for the errors in your most recent post:
The nightly build now supports c++17. There were some changes made to support a new file system to accomplish this. There is a flag set in the config.linux.common.mk file (line 139), which can be commented out if c++17 is not desired when oF is compiled with the compileOF.sh script:
PLATFORM_CXXVER = -std=c++17
If oF is compiled for c++17 (the default in the nightly), then the projects should be too. So you may have to uncomment and add a flag in the project config.make file (scroll down to the bottom of this file):
PROJECT_CXX += -std=c++17
Or if you’re using Qt Creator you’d set this flag in the project .qbs file.
I added the line in the qbs file and it compiled fine. but when I run it it gives me this error
/home/archspect/untitled1/bin/untitled1_debug: error while loading shared libraries: libfmod.so.12: cannot open shared object file: No such file or directory
It still gives that error after installing libfmod
One other thing: you don’t really need the project generator if it doesn’t work. You can copy another project and edit the files manually. But using QT Creator to create a new project works pretty good.
Hey sure you don’t have to use Qt. I’ve seen some forum threads with linux users who use VSCode for example. I don’t think VSCode is officially supported for linux like Qt Creator, but people have gotten it working, including maybe with code completion. CodeBlocks was officially supported several years ago before Qt Creator. I’ve used Geany on a Raspberry Pi before, so a light-weight editor like that could work. In general, code completion and etc could be an issue with alternative IDEs. Accommodating oF for Arch linux (and related distress) could be a bit more complex too because of the rolling nature of the distro.