Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runtime DLL issues with Haskell and Awesomium

I am trying to run a Haskell program that depends on the Awesomium library. I've compiled it but ran into the following issue at runtime:

Cannot find procedure start address...

Roughly translated, it says that the procedure start address for awe_history_entry_get_visit_count cannot be found in the DLL file [path to my executable].

It seems like it is trying to load that symbol from my program rather than awesomium.dll.

  • I'm on Windows 10
  • I'm using stack as my build tool
  • The program is 32-bit (i386), because that is the only architecture Awesomium supports
  • I've referenced the DLLs I need in the extra-libraries field in the .cabal file

Any help or hints will be much appreciated.

like image 379
SwiftsNamesake Avatar asked Sep 06 '16 15:09

SwiftsNamesake


Video Answer


1 Answers

I eventually managed to solve it on my own. Turns out I was trying to link to a more recent version of the Awesomium SDK.

Having downgraded to Awesomium 1.6.5 and replaced the DLLs in my build folder with the older ones, I am now able to initialise the WebCore and create WebViews.

Unfortunately, I still haven't been able to render any HTML (stuck on loading), but that's for another question...

like image 59
SwiftsNamesake Avatar answered Sep 28 '22 08:09

SwiftsNamesake