Hello.
Does it exist a option to compile fpc without Delphi compatibility ?
If no, what do you think about that ?
I know, it will be lot of work (like create a Delhi_Compatiblizer class...)
PS : I absolutely do not want to hurt somebody, it is only a proposition.
-
Many thanks ;-)
--
Vie
>> You recompiled the FPC? Or simple change of fpc.cfg options solves your
problem?
Oops, sorry for the delay.
I only change fpc.cfg options and it solves the problem...
Hum, im really sorry but i do not know what changes do the trick. (i did not
save the old fpc.cfg-not-working, so, i cannot c
@ Fabio Luis Girardi :
Here my working *fpc.cfg*
_
#
# Config file generated by fpcmkcfg on 5-3-14 - 21:58:27
# Example fpc.cfg for Free Pascal Compiler
#
# --
# Defines (preprocessor)
# --
#
# nested
> No problem... what's your fpc version? I'll compare with the right version
of FPC here.
Hum, now it compiles the library using same fpc.cfg with fpc 2.6.2. and
2.7.1 perfectly (the size of library is > with fpc 2.7.1).
It seems to me that the trick was to add lot of -Fu and -Fi search-paths for
Hello.
I try to access fpc libraries with Java.
I can access those libraries with:
=> Python without problems, even callback functions...
=> fpc programs, of course...
But with Java i get trouble...
I try with JNA :
>> https://github.com/twall/jna
But without luck.
Does somebody already had acce
Yep, yep, yep, ... tetra * mega thanks.
Hum, i have very poor knowledge with Java. Of course i can do a "Hello
World" and some other things.
But now, because of some fpc libraries, i explore the "import native
library" part of java.
And, what surprise me, in Java forum, was that lot of Java pro
Yep Leledumbo, this time you kill me.
Your code is working PERFECTLY and trust me, even at StackOverflow.com, they
do not know your trick, there are lot of questions for that without any
working answer.
Your GENIUS trick is to export name => Java_MyLib_MyProcedure.
I do not know if that could be
>And then there are even specific tutorials if you look for "JNI
> tutorial" and maybe some language name and with the advent of Android
>this got even more, because this is the way how you interface native
>with Java code there...
Hum, have you really test those tutorials ?
You must be a very go
>>It's JNI requirement, I wonder it could work without as it may corrupt the
stack.
>>The first parameter is the JVM environment, the second is the Java object
>> (or class in case of static method), the rest is actual parameters to the
>> function.
Yep, you are right, it was working only for f
>>Welcome to real JNI programming :)
Yep, i will study deeply JNI and the JNI Pascal wrapper. See you later. ;-)
Thanks.
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Access-fpc-libraries-with-Java-tp5718791p5718810.html
Sent from th
>> Custom Drawn & Android Module Wizard has JNI wrapper, but they develop
each independently
>> and I have no idea which one is better. Choose wisely.
Yes, but sadly, both do not implement the JStringToString() function from
the original Delphi jni.pas.
OK, i will try to implement JStringToStrin
Whaw, super nice and lot of examples...
Many thanks.
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Some-articles-on-Lazarus-Free-Pascal-tp5718816p5718817.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_
>> OK, i will try to implement JStringToString() function (or find the
conversion-solution)...
Done =>
function JStringtoString(PEnv: PJNIEnv; Obj: JObject; JavaStr: JString) :
String;
var
ifcop : pjboolean;
begin
result := (PEnv^).GetStringUTFChars(PEnv, JavaStr, ifcop);
end;
He, he, he, ..
>> now the last obstacle : Callback procedures...
Hum, i do not find why it is not working ;-(
I follow jni c examples but with no luck.
Does somebody knows how to deal with callback procedures and Java ?
Here Library Pascal code :
procedure formonclick(PEnv: PJNIEnv; Obj: JObject; aproc: JSt
@ Alan and Leledumbo : Many thanks.
@ Alan, i have try with your jni.pas but... i loose.
The only thing that could save my life is.. a working simple example of a
fpc library with only one export procedure.
That procedure will do a callback of a Java procedure.:.
=> simple fpc library code + sim
Yep, i get it ;-)
Explanations on Lazarus forum :
=>
http://forum.lazarus.freepascal.org/index.php/topic,24063.msg144634.html#msg144634
No more obstacle now, Java is in the pocket.
Cheers.
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.co
Hello.
take a look here :
=> http://wiki.freepascal.org/Using_Pascal_Libraries_with_Java
At => "Dealing with callback procedures".
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/JNI-Android-Java-events-calling-pascal-code-tp5718988p571
Hello.
Hum, if you are not obliged to use Java media-player, you may use
=> https://github.com/fredvs/uoslib.
That fpc audio library is Java-comatible and can do easy callbacks...
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/
Hello.
Could it be possible to have some infos ans arguments about this :
Im newbie in Java-link-with-fpc and I would like to understand what
can/cannot be done.
Here what i understood (If im wrong, please, correct me...)
=> All Java os (Android and friends) can only deal with Java class.
=> If
Many thanks Stephano.
>> as my java exposure started only a few days ago.
Same for me. I have successfully adapt some of my fpc native libraries into
Java-native libraries.
Im extremely happy with the result, all the functions/procedures are
exported and working. Even callback procedures.
I am o
Hello wonderful fpc people.
Hum, i want to create a Java wrapper class to access some fpc Java native
libraries.
I have already asked it everywhere, looking in all Java doc, but... without
luck.
Here the unique answer i get (from codeguru.com)
=>
http://forums.codeguru.com/showthread.php?544463-
Hello Stephano.
>> Did you put each class in a separate file?
Yes, of course, it is the goal :
=> a separate wrapper class (TheWrapper.java), with all the methods defined
to use the library,
=> and the main class (test.java) who uses that wrapper class.
So, the same wrapper class way be used by
>> Something like `java test` of rather `java TheWrapper`?
I did first compile both class with* javac test *and *javac TheWrapper.* =>
ok, both compile without error...
Then i run *java test* and get the error message...
>> try to get the wrapper class working with something that simply prints
>>
>> Just a guess here, but what command did you use to "run" the `main class`?
Yep, Ewald, you get it (and me too) :-)
It seems that, indeed, i used the wrong run-parameter.
And guess what... IT WORKS.
Ok, Java is now completely in the basket of fpc libraries.
Time to present to the lucky Java p
>> PS : ASAP, i will update the fpc wiki...
Done => http://wiki.freepascal.org/Using_Pascal_Libraries_with_Java
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Create-and-use-a-wrapper-class-in-java-tp5719072p5719082.html
Sent from the F
Hello.
When a java class use a fpc library that call jni.CallVoidMethod inside a
thread it crash the application.
If the fpc library call jni.CallVoidMethod directly (not via a thread) =>
perfect, it works.
Is that a known problem ?
Maybe does it exist something else than jni.CallVoidMethod fo
>> In general, libraries and threading is not an easy story.
Ok,..., but what is your advice to do a CallVoidMethod inside a thread ?
PS: Everything, inside the thread is working perfectly, only CallVoidMethod
does crash...
Do you think i could have better result with a kind of post-messages ?
>> Did you use AttachCurrentThread and DetachCurrentThread?
Oops, what is that ? How must i use it ?
>> Pay attention to the validity of local references as well as their
>> number.
Idem, what is "local references as well as their number." ?
PS: Im a beginner with Java but, apart CallVoidMetho
>> Posting some code might help.
I may post code but not sure it will help.
The code is the same as
http://wiki.freepascal.org/Using_Pascal_Libraries_with_Java, section dealing
with callback procedure ( but inside a thread).
Hum, i would prefer some demo-working-code from somebody who knows how
Hello.
What is the best way to unthread a procedure ?
I have try with a fptimer outside the thread but the thing that disturb me
is that you need a tcomponent as owner to create it.
And in the library i do not use any tcomponent...
How to create a fptimer without owner ?
I have try with fptimer.cr
Yep, Michael, thanks...
Ok then for Nil owner...
Hum, checksynchronize(), i do not realy understand how to use in the
thread/loop...
In the loop i do not use synchronize, because the procedure that is called
is a java/method and synchronize is for procedure of object outside the
thread... (Or i mi
Hello Sven, hello Michael => many tanks.
I have follow your advices... but...
I have then create a object and a procedure inside that object.
I use then queue() or synchronize() inside the thread to execute that
procedure of object.
That procedure call CallvoidMethod.
OK, everything compiles but
@ Ewald => thanks.
Hum, i did use checksynchronize but it did not help...
Must it be used with fptimer.ontimer too ?
And why fptimer.ontimer is not executed ?
Will i have more luck with other timer like epiktimer from Graeme (or the
new one from Michael) ?
Thanks.
PS : I will try with some more ch
re-@ Ewald :
>> It *must* be called in the context of the main thread (the thread that
>> loaded the library)
OOps, so do you mean that CheckSynchronize must be called by Java ?
So i have to add a "custom" procedure in the fpc library (who will be only a
fpc CheckSynchronize()) ?
Is it that that
Yep, yep, yep some very good news...
1) Added a new procedure in fpc library:
=>
procedure uos_checksynchro(PEnv: PJNIEnv; Obj: JObject) ; cdecl;
begin
checksynchronize();
end;
2) And, of course, in fpc library exported as:
=>
exports
...
uos_checksynchro name 'Java_uos_checksynchro',
...
3
Please read my earlier post before this one
@ Ewald, i have try with :
While true do
Begin
... code ...
CheckSynchronize;
End;
But this does not work...
Thanks
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-ge
>> The question here is: where did you type it?
Inside the loop in thread, after each queue()... and also just before end of
thread.
>> the next thing to go for, is probably be to try to get this
>>`CheckSynchronize;` integrated into java in a decent manner
>> (applicable to most use cases, that
@ Ewald and Sven => many thanks ;-)
> The ideal thing would be to find some java mechanism that allows him to
>`append` this checksynchronize to `the` main loop, some main-loop hook of
sorts.
Yep, i will be hyper-interested by that feature...
So, until that day will come, i will use a Java-timer
>> The ideal thing would be to find some java mechanism that allows him to
>>`append` this checksynchronize to `the` main loop, some main-loop hook
>> of sorts.
Hum, if somebody have some idea how to implement it, he is very welcome to
show his way... ;-)
PS: By the other way, here some conclusio
Hello.
I want to test some fpc libraries with freeBSD.
The compilation is ok but the library fail to run...
There was exactly the same problem in a earlier topic :
=> http://lists.freepascal.org/pipermail/fpc-devel/2013-November/032950.html
Is it solved in trunk fpc version ?
Have try with FPC
Ooops, i forget to note something...
My goal was to expose some pascal library to Java, of course those fpc
libraries follow the "Java-native-library-way".
Those libraries loaded by a Java application work with Linux (tested on Mint
32/64) but fail to work with freeBSD...
Thanks.
Fred.
-
Hello everybody...
Hum... no answers or no ideas ?
Thanks.
Fred
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Calling-fpc-libraries-from-other-languages-on-freebsd-amd64-bis-tp5719667p5719700.html
Sent from the Free Pascal - General m
Hello great fpc people.
if I can do something that would help to have an answer. i will do it with
pleasure...
Many thanks.
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Calling-fpc-libraries-from-other-languages-on-freebsd-amd64-bis-t
Hello.
I have a library-code who compiles perfectly on Linux 32/64 and Windows
32/64 with fpc 2.7 trunk.
Sadly, when i try to compile same code on freeBSD with fpc 2.7 trunk too, i
get that error message :
>> /usr/bin/ld: /usr/home/fred/fpGUI-develop/lib/x86_64-freebsd/fpg_base.o:
>> relocation
Hello.
I try to load a linux-library in freeBSD with
DynLibs.LoadLibrary(libfilename) but it does not load...
Must the loaded library be pure freeBSD library ?
I was thinking that freeBSD is able to run Linux applications.
Is it not true for libraries or must i install something in freeBSD to
Yep, i have some news from freeBSD.
I have installed linux_base-f10 (linux emulator) but it seams that freeBSD
can load only 32-bit-libraries.
Here some comment from freeBSD site :
FreeBSD provides 32-bit binary compatibility with Linux®, allowing users to
install and run most 32-bit Linux®
Hello.
Thanks to Graeme, it is possible to compile libraries on freeBSD ;-)
The solution :=>
>>>
Implementation
{$IFDEF FREEBSD}
// These are missing for FreeBSD in FPC's RTL
const
S_IRWXU = S_IRUSR or S_IWUSR or S_IXUSR;
S_IRWXG = S_IRGRP or S_IWGRP or S_IXGRP;
Thanks Marco, thanks for your light ;-)
Now that i can compile freeBSD libraries (see my last other topic), i will
use that libraries (in place of Linux libraries).
Write you later with the (positive, sure) results.
Fred.
-
Many thanks ;-)
--
View this message in context:
http://free-pa
Hello.
A other issue comes from lpk packages.
Here answer from Super-Graeme that solve my problems... =>
>>
...
The classic down side of using Lazarus Packages (*.lpk files). You
applied a new compiler option to your project, but Lazarus doesn't apply
that to any packages you are using. Same
>> Is it solved in trunk fpc version ?
>Why don't you try?
I have install a brand new trunk version of fpc 2.7.1 64 bit on freeBSD 10
64 bit.
The library was successfully compiled.
But, sadly, i get hat error message while trying to run a java application
who use the library (that java applicat
>> Start providing source code so people can follow what you are trying to
>> do instead of having to guess would be a nice step ;)
First, fpGUI must be installed =>
> https://github.com/graemeg/fpgui/tree/develop
Then. go there =>
> https://github.com/fredvs/fpGUIlib
://github.com/graemeg/fpgui/tree/develop
Then. go there =>
> https://github.com/fredvs/fpGUIlib
Select branch: => freebsd-fixes
- Click on "Download Zip". (middle/end of page) and unzip it.
- In /fpGUIlib/src/ change in extrafpc.cfg the directory of fpGUI according
yours.
Yes, it is still me...
You may try the compiled and binary java demo for Linux 64 bit :=>
>> https://sites.google.com/site/fiensprototyping/demo_Java.tar.gz
Download and unzip the demo.
Then :=>
-In terminal do:
-> cd /demo_Java (go in java demo path)
Then run it with:
-> java -Djava.libr
Aaaargh, difficult t find help here...
In the original thread
>> [fpc-devel] (hack) calling fpc libraries from other languages on
>> freebsd/amd64
>> of Michal Wallace michal.wallace at gmail.com
Michael Wallace said that he has find the solution :=>
>> Anyway, the problem appears to be in thi
Hello.
Fpc library compiled on freeBSD are unusable.
Python, Java and even fpc applications can not use them...
Look at that (works with Linux): =>
>> The fpc library :=>
library test ;
{$mode objfpc}
procedure fpctest();
begin
writeln('OK, it works...');
end;
exports
fpctest
Hello.
For fpc-general it exists :>
http://free-pascal-general.1045716.n5.nabble.com/
Nable is a easy to use forum-web site.
Does it exist a nabble web page for fpc-develop (with all fpc-devel
archives) ?
Thanks.
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-gen
>> I'm the one who registered FPC general to Nabble a couple of years ago.
Many thanks, Leledumbo. I find it very useful, sometimes i check fp-general
mailing list from foreign computers, with Nabble i may respond too ;-)
>> might want to register FPC develop as well.
Hum, im already registere
Hello.
I try to dynamically load libraries in freeBSD 64 bit with
DynLibs.LoadLibrary(reeBSDlibrary), with a fpc-64-bit-freeBSD application
(compilation has no errors.)
But at LoadLibrary(freeBSDlibrary), program crash... ;-)
Here the error message from gdb =>
> Program received signal SIGSEGV,
Hum, little rectif...
It seems that LoadLibrary is not the guilty. I was able to dynamically load
some freeBSD 64 bit libraries.
The crash comes somewhere else, (maybe from DynLibs.GetProcedureAddress).
I will do more investigations to find what is wrong with dealing libraries
for fpc applicati
Hello everybody.
Hum, i try to dynamically load (and run) some freeBSD libraries with a
fpc-freeBSD-appliction.
For testing, i use some library included in /usr/lib (so im sure that the
library is working on freeBSD).
Those test is fully working with Linux.
I can load the library with DynLibs.L
>> Why not go crazy and post (a link to) the actual code of this test
program?
;-) => ok, i will stay crazy...
>> Perhaps people can spot errors just by looking at the code...
Hum, i hope for those people (but im sure there are, sadly, no errors) ...
Write you later.
PS: Is fpc still maintain
Hello everybody.
Good news for fpc: => this examples (with source+libraries+binaries freeBSD
64 bit) =>
>> https://sites.google.com/site/fiensprototyping/bsd_dynlib_test.tar.gz
Show that on freeBSD fpc-applications can dynamically load and run fpc and C
libraries.
1) Test with fpc libraries:
__
Hello.
I use Geany and fpGUI for ages now. ;-)
All you have to do =>
In Geany:
- Click on "Define construct command => In "Compile command" => fpc "%f"
@extrafpc.cfg
extrafpc.cfp is a text file with all your -fu and -fi needed.
Here example of a fpGUI extrafpc.cfg =>
>>
-fPIC
-Fi/ho
i use lot of (complicated) threads with fpGUI => works perfect and no
problems...
I even have done hard-core test.
The only thing that i noticed is when using synchronize() with fpc < 2.7.1
=> i have better synchronization with fpGUI-build-in postmessage().
If queue() (fpc >= 2.7.1) is used => a
Hello Sandro and many thanks for the link.
Hum, i do not know SDL, is it a alternative to PortAudio ?
Does it deal with mp3 and other audio formats ?
Thanks.
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/SDL-Net-vs-Synapse-tp572
Hello.
I do main development on Linux 64.
For Windows, i use wine on Linux 64, (fpc.exe 32/64 installed without
problem) and compile the source via wine-fpc.exe.
The advantage is that you do not have to copy your source to a virtual
machine or a other native Windows.
And you may test your exe to
You may also install Lazarus.exe via wine.
With the SeupLazarus.exe, it install fpc.exe too ;-)
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Cross-compile-vs-native-tp5720834p5720891.html
Sent from the Free Pascal - General mailing lis
Hello.
You may use RTLEvents to pause a thread. =>
Program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}
cthreads,
{$ENDIF}
Classes;
Type
{ THelloThread }
THelloThread = class(TThread)
fSleepTime,fThreadNum:integer;
fEvent:PRTLEvent;
procedure Execute; override;
>> there are dire warnings that TThread.Create() shouldn't be overridden.
>> Should this be in the documentation if it's a significant issue?
> It's the first time I hear it, I've been doing it forever, just like in
> the example in the same wiki page.
Hum... same for me here... ;-(
Do you th
Ooops, in previous mail you should read (sorry)=>
>> there are dire warnings that TThread.Create() shouldn't be overridden.
>> Should this be in the documentation if it's a significant issue?
> It's the first time I hear it, I've been doing it forever, just like in
> the example in the same wik
Hello.
I have some problem with audio internet streaming.
I would like to do it with mpg123 + portaudio libraries but...
Here is the procedure used by mpg123 =>
mpg123_open_fd = function( mh:Tmpg123_handle; fd: Integer).
I have sent to mpg123-forum that question =>
> Hello and congratulation f
Hello everybody and thanks for so much answers.
By the way, Andrew Haines explained how to do.
1) - Use fpPipe in BaseUnix/Unix to create a fifo.
2) - Create a THandleStream using the returned input value of fpPipe.
3) - Use mpg123_open_fd from the output value from fpPipe
4) - Use an instance of
Hello Andrew.
I am very interested by your PulseAudio bindings.
Hum, how many dependencies has PulseAudio ?
Could it be possible (like for PortAudio) to only dynamically load
pulseaudio.so library ?
Or does PulseAudio need to be installed because of too many dependencies ?
Is PulseAudio usable f
Hello.
First of all, congratulation for fpHttpClient.pas.
It works directly, like charms, without to install any dependencies. => wow.
I am able to do internet audio streaming with it, perfect. ;-)
Hum, while trying to access Https sites, i get errors. ;-(
In begin of fpHttpClient.pas, there is
Excellent, thanks.
PS : Do you remember a old topic in Lazarus forum about uos and internet
audio streaming ?
(It was you who converts and helps me to install uos to GitHub).
Now uos does internet audio streaming !
=> https://github.com/fredvs/uos
Thanks Sergio.
-
Many tha
Ooops, in earlier topic => Thanks Silvio. ;-)
And, by the way, who may i thank for that excellent fpHttpClient.pas ?
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/fpHttpClient-and-Https-support-tp5721435p5721443.html
Sent from th
> And, by the way, who may i thank for that excellent fpHttpClient.pas ?
> I plead guilty.
> Michael.
Ha, so MANY THANKS Michael for your excellent. brilliant and easy to use
fpHttpClient.pas
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.
Hello.
In Unix systems File Descriptor can be created with fpPipe(FDInput,
FDOutput).
Then FDInput/FDOutput may be used as file descriptors.
Ok, perfect.
But fpPipe is part of BaseUnix/Unix...
So the question is:
How to create such of File Descriptor with Windows?...
Many thanks.
Fre;D
1)
> Hello.
>
> In Unix systems File Descriptor can be created with fpPipe(FDInput,
> FDOutput).
> Then FDInput/FDOutput may be used as file descriptors.
> Ok, perfect.
>
> But fpPipe is part of BaseUnix/Unix...
>
> So the question is:
>
> How to create such of File Descriptor with Windows?...
>>See
Hello.
Added Pipes in uses section.
Changed => AssignPipe(InHandle, FOutHandle);
Into => CreatePipeHandles (InHandle, FOutHandle, PipeBufferSize);
Then in code =>
var
Http: TFPHTTPClient;
Output: THandleStream = nil;
URL: String;
begin
Http := TFPHTTPClient.Create(nil);
Output := THa
Re-hello.
Tried with this too =>
Change => Output: THandleStream = nil;
into => Output: TOutputPipeStream = nil;
and
Change => Output := THandleStream.Create(FOutHandle);
into => Output:=TOutputPipeStream.Create (FOutHandle);
=> Compiles + works perfect in Linux ;-)
=> Compiles ok but d
> What do you do with the inHandle ?
> Michael.
It is used by mp123 mp3-decoder library.
=>function mpg123_open_fd(mph: Tmpg123_handle; fd: integer);
fp (file descriptor) := InHandle ;
It seems that InHandle as file descriptor does not work on Windows.
But in *nix system, it works.
-
@ Andrew
> Check for writeln's in the htmlthread unit you added.
Hum, i did not add htmlthread unit (only fphttpclient and pipes).
What do you mean ?
@ Martin
> It should work, because TProcess relies on this function to do it's job.
Yes, maybe, but it does not work ;-(
Could it be a problem
> Check for writeln's in the htmlthread unit you added.
Oops, i think i get it (sorry it is Sunday). ;-(
- CreatePipeHandles (InHandle,OutHandle, PipeBufferSize);
- Writeln('Input Handle = ' + inttostr(InHandle) + ' Output Handle = ' +
inttostr(OutHandle));
=> Linux => Input Handle = 3 Output Ha
Yep, there is a answer from mpg123 creator in forum list ;-) =>
>> In Linux, no problem, i use the Input-Handle of a pipe as file
>> descriptor.
>> => mpg123_open_fd(MyMP123Handle, InputHandle)
>> But if using Input-Handle of a pipe in Windows, at mpg123_read() i get
>> that error:
>> MPG123_BAD_R
Hello.
Sorry to sorry to bother you with that file descriptors again... ;-(
There are some answers there on mpg123 forum.
They explain that "simple stdin/stdout file descriptors would work."
Of course all what they explained is in C ;-(
OK, but how can i use "simple stdin/stdout file descriptors
@ Michael =>
> They are available in default variables in the system unit:
> StdInputHandle,StdOutputHandle,StdErrHandle
Yep, good to know, thank-you ;-)
Sadly, it does not solve the problem... ;-(
@ Andrew
> you could use mpg123_replace_reader_handle and mpg123_open_handle
Ok, good idea, i wil
> @ Andrew
> Hum,... by the way,.. if,.. fortuitously (and by chance) you have already
> try it
> with your PulseAudio wrapper, could it be possible to show some code ?
Ooops, i just check my mail now and =>...
Andrew, you are a Angel ;-)
Tetra billion of thanks.
PS: I will test it and give you
> It's not if developers wouldn't decide to make their libraries so *nix
centric...
Or when they will decide to develop their libraries with something else than
C, that gives them compilers choice that are not compatible together (a
library compiled with CGwin is not compatible with one compiled w
Hello.
For info, here answer from mpg123 creator =>
__
> 4) Assisgn input pipe stream =>
> mpg123_open_fd(MyMPHandle,InHandle);
> => Crash on Windows, OK on Linux.
I don't have my head wrapped around the pascal bindings, but are you
hand
> If you build the library from source, you can select
> various output streams during the configure script.
=>
$ sudo apt-get build-dep cairo
$ cd cairo
$ ./configure --disable-libX11
$ make
$ sudo make install
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-
> $ sudo apt-get build-dep cairo
> Interesting. That works in Ubuntu but not in Mint.
> They are more and more distinct.
Ooops, indeed, just try on my Mint 17 => E: Impossible to find source for
cairo package...
> I guess I must download the Cairo sources from somewhere before doing "cd
> cairo
> Where is it?
Hum, from previous mail ;) =>
You may download src from =>
=> http://cairographics.org/releases/cairo-1.14.2.tar.xz
=> unzip it.
=> $ cd cairo-1.14.2
=> $ ./configure --disable-libX11 (or --disable-X11 ?) (or --enable-X11=no
?)
=> $ make
=> $ sudo make install
Fre;D
-
Ma
Hello.
Here the thing: a open-source program, eSpeak (voice synthezer) uses 2
libraries: espeak-library and portaudio.
In eSpeak source =>
- For the Windows version, the libraries are included in the executable
(static linked).
To do run the program => it is easy => just run the executable via
@ Ewald and Mark => thanks for answer. ;-)
Yep, i agree, the process is "exotic" but works so good.
I have to agree too, following Martin Schreiber way: => export
LD_PRELOAD=$LIBPORTAUDIO, before to run the executable works too.
And is maybe safer.
And do not need dynlibs in uses section.
And no
Hello.
With fpchmod(), it is possible to change the permission of a file.
Perfect.
But how to check if a file has executable permission (and if not, change it
with fpchmod(thefile S_IRWXU);) ?
Many thanks.
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-g
@ Bart and Ewald. => excellent, many thanks.
And you give me choice...;-)
I will study your tips and then choose one of them...
Many thanks.
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/How-to-get-the-permission-f-a-file-tp572
Hello.
Sorry to come back with that story... ;-(
I have used inside a script LD_LIBRARY_PATH` and at end runs the espeak
executable.
So a Tprocess run the script.
Ok, it works but... now i do not have access to espeak anymore, not possible
to cancel the speech.
AProcess.terminate has impact on
@ Ewald => many thanks for your help.
Your advices are very promising...
I will test it and write later the result.
Write you soon.
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/loadlibrary-unsafe-tp5721801p5721865.html
Sent fr
Re_hello.
Huh, i am loosed...
Here the working script run by TProcess (but that cannot be canceled)=>
#!/bin/sh
LIBPORTAUDIO=libportaudio.so #portaudio library
ESPEAKBIN=espeak #espeak binary
CALLDIR=${0%/*}/# d
1 - 100 of 536 matches
Mail list logo