Dear Sirs,

Thank you for your help and patience!

It seems that the complexity of our current situation is beyond my initial 
estimation.
In consideration of my simple original intention (hear and debug), I am going 
to take a look at the "faust2w32vst" command.

I will keep paying attention to any breakthrough in this situation.
Thank you again!


Best regards,
Jingjie Zhang

-----Original Messages-----
From:"Kjetil Matheussen" <k.s.matheus...@gmail.com>
Sent Time:2016-06-02 17:03:15 (Thursday)
To: "Kjetil Matheussen" <k.s.matheus...@notam02.no>
Cc: "Julius Smith" <j...@ccrma.stanford.edu>, "Jingjie Zhang" 
<jingjiezhan...@fudan.edu.cn>, "faudiostream-devel@lists.sourceforge.net" 
<faudiostream-devel@lists.sourceforge.net>
Subject: Re: [Faudiostream-devel] Generating standalone Windows application on 
Linux


Seems like "interface" is a reserved keyword in windows.


After hacking around a bit to get around that, and adding this line:

ARCHLIB="$HOME/.wine/drive_c/Program\ Files\ \\\(x86\\\)/Jack/lib/libjack.lib"


I get these errors:

release/test.o:test.cpp:(.text$_ZN9jackaudio15get_sample_rateEv[_ZN9jackaudio15get_sample_rateEv]+0x5):
 undefined reference to `jack_get_sample_rate'
release/test.o:test.cpp:(.text$_ZN9jackaudio15get_buffer_sizeEv[_ZN9jackaudio15get_buffer_sizeEv]+0x5):
 undefined reference to `jack_get_buffer_size'
release/test.o:test.cpp:(.text$_ZN9jackaudio7processEj[_ZN9jackaudio7processEj]+0x5f):
 undefined reference to `jack_port_get_buffer'
...


I give up for now. When I cross compile radium for window, I use weakjack 
linking with jack during compilation (although that is possible somehow):
https://github.com/x42/weakjack




On Thu, Jun 2, 2016 at 10:34 AM, Kjetil Matheussen <k.s.matheus...@gmail.com> 
wrote:

Sorry, the qmake-qt4 executable for mxe is called 
x86_64-w64-mingw32.static-qmake-qt4, not mingw64-qmake-qt4.


I have tried this now. First I had to install windows version of jack using 
wine,

and after that I had to add this line:

CXXFLAGS+=" -I/$HOME/.wine/drive_c/Program\ Files\ \\\(x86\\\)/Jack/includes 
-DNO_JACK_METADATA"


...before the "for p in $FILES; do" line in the faust2jaqt script.



Now I get this compilation error:

test.cpp:8385:38: error: expected ',' or '...' before 'struct'
  virtual void buildUserInterface(UI* interface) {


which I don't know how to fix since the "UI" class is defined in the top of 
test.cpp.

Anyone seen this error before and know how to fix it?




On Thu, Jun 2, 2016 at 12:19 AM, Kjetil Matheussen <k.s.matheus...@gmail.com> 
wrote:

I just looked at the faust2jaqt script. I didn't know that it produced

a complete executable.


The first thing you should do is to change the definition of QMAKE,

on line 19, like this:

-QMAKE=$(which qmake-qt4 || echo qmake)
+QMAKE=mingw64-qmake-qt4


(or mingw32-qmake-qt4 if you want 32 bit executable)


Maybe this is even enough, I haven't tried though since I don't have mxe 
installed

on this computer.






On Wed, Jun 1, 2016 at 10:27 PM, Julius Smith <j...@ccrma.stanford.edu> wrote:
Hi Jingjie,

Search /usr/local/bin/faust2jaqt (for example) for "rm" and comment
that out to keep the temporary files around.

- Julius


On Tue, May 31, 2016 at 9:07 AM, Jingjie Zhang
<jingjiezhan...@fudan.edu.cn> wrote:
>
> Hello, Kjetil!
>
>
> Thank you for your advice!
>
> I have installed the MXE on my Ubuntu today, and I am going to take a look
> at the Jack-qt solution.
>
> However, I still have some doubts:
> I use "faust2jaqt/faust2jack" to generate Linux binaries, but it seems that
> MXE needs the whole qt/gtk program files to do cross-compiling.
> Where can I find these intermediate files that generated by
> "faust2jaqt/faust2jack"?
>
> Thank you again for your kindness!
>
>
> Best regards,
> Jingjie Zhang
>
> -----原始邮件-----
> 发件人:"Kjetil Matheussen" <k.s.matheus...@gmail.com>
> 发送时间:2016-05-31 03:01:50 (星期二)
> 收件人: "Jingjie Zhang" <jingjiezhan...@fudan.edu.cn>
> 抄送: "faudiostream-devel@lists.sourceforge.net"
> <faudiostream-devel@lists.sourceforge.net>
> 主题: Re: [Faudiostream-devel] Generating standalone Windows application on
> Linux
>
>
> On Mon, May 30, 2016 at 5:42 PM, Jingjie Zhang <jingjiezhan...@fudan.edu.cn>
> wrote:
>>
>>
>> Dear Sirs,
>>
>>
>> This is my first post, and call me JJ if you like.
>> I am having trouble compiling a Faust program with a C++ foreign function
>> into a standalone application so that I can hear and debug.
>>
>> I have FaustLive and JACK on Windows, but FaustLive cannot compile the
>> foreign function part.
>> So I managed to set up a virtual Ubuntu with VMware, and successfully
>> built a JACK-GTK standalone application.
>>
>> However, I found that I cannot achieve an acceptable latency with JACK on
>> this virtual Ubuntu.
>> But on the other hand, JACK works really well on my Windows host.
>> So I wonder if there is any way with Faust on Linux to generate a
>> standalone Windows application?
>>
>> I have read some of the previous emails in this list, and it seems that
>> there is a way using mingw and gtk-for-windows.
>> Thus, did anyone succeed in doing this? I need more details.
>
>
>
> Yes, you can cross compile on Linux. MXE is an easy to set up and easy to
> use environment for
> creating windows binaries on linux;  http://mxe.cc/
> When I cross compiled a gtk program last time, there were some
> inconveniences with font handling
> though, so maybe you want to look at compiling jack-qt programs instead, if
> the font handling
> inconveniences are still there. (don't remember the details right now)
>
>

> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Faudiostream-devel mailing list
> Faudiostream-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
>


--
Julius O. Smith III <j...@ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/





------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to