Win 64-bit Compile - Fatal error cannot open input file "... .lib"



  • Hi,

    I am trying to compile my Hise project on Win 64 and I have this Fatal error appearing with any type of exports:

    2>LINK : fatal error LNK1181: cannot open input file 'EXPORT_FREEBIE_APP_2_1 x64.lib'
    

    I don't see any ".lib" file in the folder too, looks like it isn't properly created at the end.

    Did someone have the same error?
    How many space does the file need in the disk?

    Specs:
    Win 10 Pro 64-Bit
    VS Studio 2017 Community Edition



  • That's a VS studio error. Try googling it.



  • https://support.microsoft.com/en-us/help/815645/you-receive-a-fatal-error-lnk1181-error-message-when-you-build-a-manag
    I googled it up and VS just can't find the ".lib" file. But this file doesn't exists in the first place.

    When is this file supposed to be created ? At which step?



  • Oh I see, it's a linker error. The file should be created during the compile process and I expect it will be in the Binaries/Builds/VisualStudio2015 folder. Why VS isn't able to find it, or the file isn't being created I don't know.

    What version of HISE are you using?



  • I'm using HISE Version 2.1.0 (Build Version 650)
    Win 10 Pro 64-Bit

    Do you think it's VS 2017?

    I can try and install VS 2015 instead.



  • @Alex-Paradis I don't think 2015 works for compiling HISE 2.1 projects, I'm pretty sure you have to use v2017. Did you export a 32bit version before you tried 64bit?



  • Just tried exporting a 32-bit version and it doesn't create any ".lib" file.

    I also these errors while compiling (any versions):

      c:\users\jera\documents\github\hise-master\hi_dsp\processor.h(968): note: see declaration of 'hise::Processor::id' (c
      ompiling source file ..\..\JuceLibraryCode\include_hi_core.cpp)
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(6): error C2039:
     'impulses': is not a member of 'PresetData' [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_
    10\Binaries\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
      c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\presetdata.h(6): note: se
      e declaration of 'PresetData'
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(6): error C2065:
     'impulses': undeclared identifier [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_10\Binarie
    s\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(6): error C2039:
     'impulsesSize': is not a member of 'PresetData' [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019
    _09_10\Binaries\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
      c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\presetdata.h(6): note: se
      e declaration of 'PresetData'
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(6): error C2065:
     'impulsesSize': undeclared identifier [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_10\Bin
    aries\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(7): error C2039:
     'images': is not a member of 'PresetData' [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_10
    \Binaries\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
      c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\presetdata.h(6): note: se
      e declaration of 'PresetData'
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(7): error C2065:
     'images': undeclared identifier [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_10\Binaries\
    Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(7): error C2039:
     'imagesSize': is not a member of 'PresetData' [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_0
    9_10\Binaries\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
      c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\presetdata.h(6): note: se
      e declaration of 'PresetData'
    c:\users\jera\documents\mntra_dev\3_master\freebie_master_export_2019_09_10\binaries\source\plugin.cpp(7): error C2065:
     'imagesSize': undeclared identifier [C:\Users\Jera\Documents\MNTRA_DEV\3_MASTER\FREEBIE_MASTER_EXPORT_2019_09_10\Binar
    ies\Builds\VisualStudio2017\EXPORT_FREEBIE_APP_2_1_App.vcxproj]
    

    Nowhere in the code it talks about the ".lib" file though.

    Lastly: Is there also a difference in using HISE x64 Debug of Release version?



  • Yes there is a difference between debug and release. Mainly that debug doesn't include any linker optimization and is intended for debugging when developing HISE.

    Nowhere in the code it talks about the ".lib" file though.

    What code are you referring to?

    Have you managed to sucesfully compile any version (32bit or 64bit) of any HISE project?



  • Nowhere in the code it talks about the ".lib" file though.

    What code are you referring to?

    Sorry about the typo. I was referring to the "code" shown in the console (cmd.exe) while compiling.

    Have you managed to sucesfully compile any version (32bit or 64bit) of any HISE project?

    Only on MacOSx for now. A few weeks ago, I had a weird error though with the sample Maps but now it is gone with the last version of the project.

    The project I am trying to export on Win was build on a Mac OS X though. Could it be a bad translation error between the two different computers? Do I have to build an Project from Scratch on Windows?



  • Could it be a bad translation error between the two different computers? Do I have to build an Project from Scratch on Windows?

    No it should be exactly the same on both systems.

    I'm not sure what the problem is, hopefully someone more knowledgable with building on Windows will chime in to help.



  • Have you managed to sucesfully compile any version (32bit or 64bit) of any HISE project?

    No, I haven't be able to succesfully compile on Windows for now (32 or 64).

    I have access to another PC this afternoon, I'll test it out.



  • I just tested on a new PC, and still de ".lib" file is not created.

    Is it because Win 10 is blocking HISE from creating a new file in the Directory?

    Does anyone else has seen that error?
    Is there a workaround on Windows for this?

    @Christoph-Hart Have you ever had that kind of weird error where the ".lib" in the binaries folder was not created on Win10?



  • error C2039: 'impulses': is not a member of 'PresetData' 
    

    That's your problem right here (and the .lib file not being created is just a consequence of the compilation error).

    It seems that the pool files have not been exported correctly. Use this:

    https://docs.hise.audio/working-with-hise/menu-reference/export/index.html#export-pooled-files-to-binary-resource

    then make sure that this:

    https://docs.hise.audio/working-with-hise/settings/development.html#rebuild-pool-files

    is enabled for the future (the default is on, but it might be possible that it isn't if you come from an older version of HISE.



  • @Christoph-Hart

    It's working!

    Thanks so much for the help. I was able to export a 64-bit VST3 on Windows, and I will surely test the other ones later.


Log in to reply
 

12
Online

521
Users

1.9k
Topics

14.7k
Posts