kritzikratzi / Oscilloscope

Oscilloscope for Mac/Windows written in OF.
https://oscilloscopemusic.com/osci.php
MIT License
581 stars 47 forks source link

make compilation error #89

Open papiche opened 7 months ago

papiche commented 7 months ago

Following this method

cd
wget -c https://github.com/openframeworks/openFrameworks/releases/download/0.12.0/of_v0.12.0_linux64gcc6_release.tar.gz
tar -zxvf of_v0.12.0_linux64gcc6_release.tar.gz
mv of_v0.12.0_linux64gcc6_release OF
cd OF/scripts/linux/ubuntu
sudo ./install_dependencies.sh
cd
cd OF/apps/myApps
git clone --recursive https://github.com/kritzikratzi/Oscilloscope.git
cd Oscilloscope
scripts/clean.sh
cp -R addons/ofxMightyUI/bin/data/* bin/data/
cp -R addons/ofxFontAwesome/bin/data/* bin/data/
make -j2

leads to

g++: fatal error: cannot execute ‘cc1objplus’: execvp: Aucun fichier ou dossier de ce type
compilation terminated.
make[1]: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:328 : /home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/obj/linux64/Release/addons/ofxNative/src/ofxNative_osx.o] Erreur 1
make[1]: *** Attente des tâches non terminées....
/home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/addons/ofxNative/src/ofxNative_lin.cpp: In function ‘std::string getExecutableName()’:
/home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/addons/ofxNative/src/ofxNative_lin.cpp:17:19: error: ‘g_path_get_basename’ was not declared in this scope
   17 |  char* basename = g_path_get_basename(exe);
      |                   ^~~~~~~~~~~~~~~~~~~
/home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/addons/ofxNative/src/ofxNative_lin.cpp: In function ‘void ofxNative::showFile(std::string)’:
/home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/addons/ofxNative/src/ofxNative_lin.cpp:28:15: error: ‘g_path_get_dirname’ was not declared in this scope
   28 |   char* dir = g_path_get_dirname(filename.c_str());
      |               ^~~~~~~~~~~~~~~~~~
make[1]: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:305 : /home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope/obj/linux64/Release/addons/ofxNative/src/ofxNative_lin.o] Erreur 1
make[1] : on quitte le répertoire « /home/fred/Téléchargements/openframeworks/OF/apps/myApps/Oscilloscope »
make: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129 : Release] Erreur 2

any idea for correcting that ?

cyber199 commented 2 months ago

I am having similar issues

Compiling Oscilloscope for Release
make[1]: Entering directory '/media/dafoex/1TB/Software/OSMusic/OF/apps/myApps/Oscilloscope'
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
../../../libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk:210: *** missing separator. Stop.
make[1]: Leaving directory '/media/dafoex/1TB/Software/OSMusic/OF/apps/myApps/Oscilloscope'
make: *** [../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

My scrollback doesn't show the whole process, but I can try writing it to a file if you need more information For what it's worth I am running Linux Mint 21.3

kritzikratzi commented 1 month ago

@papiche about the first: seems there's a dependency on glib that's not declared. this would be easy enough to fix in the ofxNative plugin (e.g. by switching to c++17 and using std::filesystem instead)

@cyber199 that error is from openFrameworks. is it possible you're grabbed the HEAD release? you can try OF0.10 or OF0.11, that's what it should compile with.

kritzikratzi commented 1 month ago

ps. once those errors are fixed, these will start showing up: https://github.com/kritzikratzi/Oscilloscope/issues/80

cyber199 commented 1 month ago

you can try OF0.10 or OF0.11, that's what it should compile with.

Still learning git, is that as simple as git checkout OF0.10 or am I dumb?

kritzikratzi commented 1 month ago

no, don't use git. OF is huge and a lot of work to build. grab the binary package for your OS here: