Programming gone awry

Thoughts and tutorials on programming

Monday, March 08, 2021

maven using repo.maven.apache.org ... even though central it is overridden in ~/.m2/settings.xml file

I have overridden the <central> repo in my ~/.m2/settings.xml file.  For artifacts and plugins.

Yet I get this failure message:


Downloading from central: https://repo.maven.apache.org/maven2/xxx/version.RELEASE.pom


[ERROR] Failed to execute goal on project artifact-metadata-aggregator: Could not resolve dependencies for project :jar:1.0-SNAPSHOT: Failed to collect dependencies at Failed to find ... in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

Failed to read artifact descriptor fo Could not find artifact xx in central (https://repo.maven.apache.org/maven2) -> [Help 1]


fix: use maven 4.0 instead of 3.6

or add <mirrorOf>* instead of overriding central repo, apparently...

Tuesday, August 25, 2020

invention list/ideas thread

 See the comments for timestamped invention ideas for prior art/defensive publications, each one is a separate entity.

Friday, August 21, 2020

mingw cross compile ffmpeg woe

 ../include/cst_tokenstream.h:134:14: warning: inline function 'ts_utf8_sequence_length' declared but never defined
 __inline int ts_utf8_sequence_length(char c0);
              ^~~~~~~~~~~~~~~~~~~~~~~
x86_64-w64-mingw32-gcc -mtune=generic -O3 -Wall -DCST_NO_SOCKETS -DUNDER_WINDOWS -DWIN32 -shared     -o ../bin/flite_time.exe flite_time_main.o -L../build/x86_64-mingw32/lib -lflite_cmu_time_awb -lflite_usenglish -lflite_cmulex -L../build/x86_64-mingw32/lib -lflite   -lm   
make installing /home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/win64/flite-2.1-release as $ PATH=/home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH make install
Installing
mkdir -p /home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin
mkdir -p /home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib
mkdir -p /home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/include/flite
/usr/bin/install -c -m 644 include/*.h /home/joshua/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/include/flite
/usr/bin/install: cannot stat '../bin/flite_cmu_us_kal.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_time_awb.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_kal16.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_awb.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_rms.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_slt.exe': No such file or directory
make[1]: *** [Makefile:137: install] Error 1
make: *** [Makefile:113: install] Error 2

meant "you need a newer gcc" (?) or possibly mingw-w64 headers

../build/x86_64-mingw32/lib/libflite.a(cst_error.o):cst_error.c:(.text+0x29): undefined reference to `__imp___acrt_iob_func'
../build/x86_64-mingw32/lib/libflite.a(cst_tokenstream.o):cst_tokenstream.c:(.text+0x89f): undefined reference to `__imp___acrt_iob_func'
../build/x86_64-mingw32/lib/libflite.a(cst_tokenstream.o):cst_tokenstream.c:(.text+0xbe5): undefined reference to `__imp___acrt_iob_func'
    
meant "nuke and try again" LOl


Tuesday, August 23, 2011

ruby tempfile windows woe


test.rb:3:in `delete': Permission denied - C:/Users/packrd/AppData/Local/Temp/abc20110823-4296-kao0jx-0 (Errno::EACCES)
from test.rb:3

when doing File.delete tempfile_instance.path

work-around:
do
tempfile_instance.delete instead

Monday, August 22, 2011

ffmpeg mingw msys build woe


libavfilter/asrc_abuffer.c: In function 'init':
libavfilter/asrc_abuffer.c:259:5: error: implicit declaration of function 'strtok_r'

meant "you need to install the pthreads lib" (I think)

Friday, August 19, 2011

ffmpeg woe


c:\dev\ruby\virtual-audio-output-sniffer>ffmpeg -f dshow -i audio="virtual-audio-capturer" captured_audio.mp3
FFmpeg version SVN-r23418, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 2 2010 04:12:01 with gcc 4.4.2
configuration: --target-os=mingw32 --enable-runtime-cpudetect --enable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-librtmp --extra-libs='-lrtmp -lssl -lcrypto -lws2_32 -lgdi32 -lwinmm -lcrypt32 -lz' --arch=x86 --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
libavutil 50.16. 0 / 50.16. 0
libavcodec 52.72. 1 / 52.72. 1
libavformat 52.67. 0 / 52.67. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
Unknown input format: 'dshow'

c:\dev\ruby\virtual-audio-output-sniffer>whichr ffmpeg
higher in the list is executed first
G:\Program Files (x86)\ImageMagick-6.7.1-Q16\ffmpeg.exe
c:\installs\ffmpeg.bat

c:\dev\ruby\virtual-audio-output-sniffer>whichr ffplay
higher in the list is executed first
c:\installs\ffplay.bat


meant "I was accidentally using a different version of ffmpeg--that bundled with imagemagick--instead of the one that does support installed in a different location"

mac os x enumerate windows like windows' EnumDesktopWindows

looks like in order to do it you need to either turn on "universal access" then use either applescript or the access API's in C to do it, or use some internal coregraphics private api's (in C). So for java users, its either ffi or JNA or the like, or call out to an applescript script.

Monday, February 21, 2011

Contributors

Followers