Coder Social home page Coder Social logo

cross compiling for windows issue about fat1.lv2 HOT 6 OPEN

GeorgeNs avatar GeorgeNs commented on September 24, 2024
cross compiling for windows issue

from fat1.lv2.

Comments (6)

x42 avatar x42 commented on September 24, 2024

Without a backtrace, I can only guess.. probably some static d'tor in glib. or, perhaps a symbol conflict between ardour's DLL (pango, cairo, glib,..) and the plugin's if the plugin does not hide symbols of libs it uses and the lib is unloaded.

I spent quite a long time to make robtk and this plugin work reliably cross-platform and test the binary provided at https://x42-plugins.com/x42/x42-eq to work and it's not very likely that is is an issue with the plugin's or robtk/pugl code.

from fat1.lv2.

GeorgeNs avatar GeorgeNs commented on September 24, 2024

You are right,i tried the binaries from your site and there is no issue. fat1 looks has similar structure but in a much simpler form.However, i can't find why crashes ardour,is there any similar command on windows like ldd?i have to search..maybe dumpbin from vs?

By the way, i gave a try with the shared version of mingw and i tested,i don't get the same problem,ardour won't crash once i close window and go to record.However,maybe i will get other issues later that i can't see now...

about glib reconfiguration:
in glib i found only:
$as_echo "#define _GLIB_EXTERN attribute((visibility("default"))) __declspec(dllexport) extern" >>confdefs.h

I deleted __declspec(dllexport) then should i undefine DLL_EXPORT inside quotes or do unset DLL_EXPORT after that line?
Thanks

from fat1.lv2.

x42 avatar x42 commented on September 24, 2024

is there any similar command on windows like ldd?

http://www.dependencywalker.com/

from fat1.lv2.

x42 avatar x42 commented on September 24, 2024

I deleted __declspec(dllexport) then should i undefine DLL_EXPORT

Yep, that sounds about right, same as recently discussed with x-compiling setBfree. As for the details, I'd have to look.

from fat1.lv2.

GeorgeNs avatar GeorgeNs commented on September 24, 2024

I tried to recompile it changing that line so:
$as_echo "#define _GLIB_EXTERN attribute((visibility("default"))) #undefine DLL_EXPORT extern" >>confdefs.h

Then i get many errors.Here are the first of them:

#define GLIB_AVAILABLE_IN_ALL _GLIB_EXTERN
^
../../glib/gvariant.h:368:1: note: in expansion of macro 'GLIB_AVAILABLE_IN_ALL'
GLIB_AVAILABLE_IN_ALL
^
:0:12: error: expected '=', ',', ';', 'asm' or 'attribute' before numeric constant
../../config.h:755:71: note: in expansion of macro 'DLL_EXPORT'
#define _GLIB_EXTERN attribute((visibility("default"))) #undefine DLL_EXPORT extern
^
../../glib/gversionmacros.h:255:49: note: in expansion of macro '_GLIB_EXTERN'
#define GLIB_AVAILABLE_IN_ALL _GLIB_EXTERN
^
../../glib/gvariant.h:368:1: note: in expansion of macro 'GLIB_AVAILABLE_IN_ALL'
GLIB_AVAILABLE_IN_ALL
^
In file included from g-gnulib.h:19:0,
from asnprintf.c:21:
../../config.h:755:61: error: stray '#' in program
#define _GLIB_EXTERN attribute((visibility("default"))) #undefine DLL_EXPORT extern
^
../../glib/gversionmacros.h:255:49: note: in expansion of macro '_GLIB_EXTERN'
#define GLIB_AVAILABLE_IN_ALL _GLIB_EXTERN
^
../../glib/gvariant.h:370:1: note: in expansion of macro 'GLIB_AVAILABLE_IN_ALL'
GLIB_AVAILABLE_IN_ALL

from fat1.lv2.

GeorgeNs avatar GeorgeNs commented on September 24, 2024

Thank you very much,dep walker is great tool,i will have to learn it!
Here is my dwi results.
fat1.zip

from fat1.lv2.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.