You are not logged in.
I'v been trying to make a lot of tarballs, but my terminal won't do it. They have been of many types, but specifically a lightweight audio recorder to record from the microphone jack. Currently, I attempted "flrec", one from the AUR, and then one from
http://www.matteolucarelli.net/flrec/index_en.htm
also, here's my problematic shell output:
[liquidformula@DTR_Arch_Computer flrec-0.12]$ make
g++ -Wall -c `fltk-config --cxxflags` -O2 -o Fl_Simple_File_Chooser.o Fl_Simple_File_Chooser.cpp
g++ -Wall -c `fltk-config --cxxflags` -O2 -o flrecUIeffects.o flrecUIeffects.cpp
flrecUIeffects.cpp: In constructor ‘flrecUIeffects::flrecUIeffects(void (*)(int))’:
flrecUIeffects.cpp:1101:21: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]
Fl_Double_Window* w;
^
g++ -Wall -c `fltk-config --cxxflags` -O2 -o flrecUIsettings.o flrecUIsettings.cpp
flrecUIsettings.cpp: In constructor ‘flrecUIsettings::flrecUIsettings()’:
flrecUIsettings.cpp:122:21: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]
Fl_Double_Window* w;
^
g++ -Wall -c `fltk-config --cxxflags` -O2 -o flrecUImain.o flrecUImain.cpp
flrecUImain.cpp: In constructor ‘flrecUImain::flrecUImain(int (*)(int), int (*)(int))’:
flrecUImain.cpp:1139:21: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]
Fl_Double_Window* w;
^
flrecUImain.cpp: In member function ‘void flrecUImain::refreshfiledim()’:
flrecUImain.cpp:1302:59: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘__off64_t {aka long long int}’ [-Wformat=]
if (buf.st_size<1000) snprintf(str,16,"%li B",buf.st_size);
^
flrecUImain.cpp:1302:59: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘__off64_t {aka long long int}’ [-Wformat=]
g++ -Wall -c `fltk-config --cxxflags` -O2 -o main.o main.c
g++ -Wall -O2 -lpthread -o flrec Fl_Simple_File_Chooser.o flrecUIeffects.o flrecUIsettings.o flrecUImain.o main.o `fltk-config --ldstaticflags`
g++: error: /usr/lib/libfltk.a: No such file or directory
Makefile:30: recipe for target 'flrec' failed
make: *** [flrec] Error 1
Any idea how to fix this this thing??
Last edited by customscrollbar (2013-12-26 03:28:34)
Offline
Static libraries have been removed https://projects.archlinux.org/svntogit … c8ac405fa3
If you need them, you may have to recompile fltk.
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like thisIt makes the code more readable and - in case of longer listings - more convenient to scroll through.
Offline
Okay; I compiled fltk, then tried to
[liquidformula@DTR_Arch_Computer flrec-0.12]$ make
g++ -Wall -O2 -lpthread -o flrec Fl_Simple_File_Chooser.o flrecUIeffects.o flrecUIsettings.o flrecUImain.o main.o `fltk-config --ldstaticflags`
/usr/lib/libfltk.a: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
Makefile:30: recipe for target 'flrec' failed
make: *** [flrec] Error 1output is shorter, but I'm still not sure what to do...
Offline
The first thing you should do is change your topic title to something relevent to your problem -- as far as I can tell, you are not making archives, you are compiling software that tries to build against static libraries (which are not officially supported on Arch Linux).
There are two solutions: 1) recompile Arch packages with static libraries enabled, or 2) modify the Makefile to make the software compile against dynamic libraries. I would recommend 2), unless the program needs static libraries for some reason.
Fortunately it's easy enough to make this program compile against dynamic libraries; just add this to the PKGBUILD, above the build() function:
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's:--ldstaticflags:--ldflags:' Makefile
}Then rerun makepkg. If the program misbehaves with dynamic libraries, then recompile fltk with staticlibs in the options array, then run makepkg against the vanilla PKGBUILD. If you continue to get the above error (you shouldn't), then remove your src directory and try again.
Last edited by WorMzy (2013-12-26 13:51:30)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline