Trentonom0r3 / AETK

A modern C++ framework designed to revolutionize the way developers create plugins for Adobe After Effects. Aimed at both newcomers and seasoned plugin developers, AETK provides an extensive suite of tools and abstractions that streamline the development process, enabling more focus on creativity and innovation.
MIT License
6 stars 0 forks source link

aex can not load. #9

Closed luciddream-tsin closed 5 months ago

luciddream-tsin commented 5 months ago

I compiled the LayerDumper successfully, But when I launch AE project, it says: "Couldn't find main entry point for LayerDumper.aex".

Trentonom0r3 commented 5 months ago

I compiled the LayerDumper successfully, But when I launch AE project, it says: "Couldn't find main entry point for LayerDumper.aex".

Can you double check your vcpkg installs?

Usually the "Entry Point not found" error is a result of missing dependencies-- in this case it would most likely be ICU.

luciddream-tsin commented 5 months ago

The only difference is my dir name is x64-windows and yours is x64-windows-static, the following is my vcpkg installed:

tree /f,in  C: /vcpkg / installed / x64-windows /

├─bin
│      icudt74.dll
│      icuin74.dll
│      icuio74.dll
│      icutu74.dll
│      icuuc74.dll
│
├─debug
│  ├─bin
│  │      icudtd74.dll
│  │      icuind74.dll
│  │      icuiod74.dll
│  │      icutud74.dll
│  │      icuucd74.dll
│  │
│  └─lib
│      │  icudtd.lib
│      │  icuind.lib
│      │  icuiod.lib
│      │  icutud.lib
│      │  icuucd.lib
│      │
│      └─pkgconfig
│              icu-i18n.pc
│              icu-io.pc
│              icu-uc.pc
│
├─include
│  │  stb_connected_components.h
│  │  stb_c_lexer.h
│  │  stb_divide.h
│  │  stb_ds.h
│  │  stb_dxt.h
│  │  stb_easy_font.h
│  │  stb_herringbone_wang_tile.h
│  │  stb_hexwave.h
│  │  stb_image.h
│  │  stb_image_resize.h
│  │  stb_image_write.h
│  │  stb_include.h
│  │  stb_leakcheck.h
│  │  stb_perlin.h
│  │  stb_rect_pack.h
│  │  stb_sprintf.h
│  │  stb_textedit.h
│  │  stb_tilemap_editor.h
│  │  stb_truetype.h
│  │  stb_vorbis.c
│  │  stb_voxel_render.h
│  │
│  ├─pybind11
│  │  │  attr.h
│  │  │  buffer_info.h
│  │  │  cast.h
│  │  │  chrono.h
│  │  │  common.h
│  │  │  complex.h
│  │  │  eigen.h
│  │  │  embed.h
│  │  │  eval.h
│  │  │  functional.h
│  │  │  gil.h
│  │  │  gil_safe_call_once.h
│  │  │  iostream.h
│  │  │  numpy.h
│  │  │  operators.h
│  │  │  options.h
│  │  │  pybind11.h
│  │  │  pytypes.h
│  │  │  stl.h
│  │  │  stl_bind.h
│  │  │  type_caster_pyobject_ptr.h
│  │  │  typing.h
│  │  │
│  │  ├─detail
│  │  │      class.h
│  │  │      common.h
│  │  │      descr.h
│  │  │      init.h
│  │  │      internals.h
│  │  │      typeid.h
│  │  │      type_caster_base.h
│  │  │
│  │  ├─eigen
│  │  │      common.h
│  │  │      matrix.h
│  │  │      tensor.h
│  │  │
│  │  └─stl
│  │          filesystem.h
│  │
│  └─unicode
│          alphaindex.h
│          appendable.h
│          basictz.h
│          brkiter.h
│          bytestream.h
│          bytestrie.h
│          bytestriebuilder.h
│          calendar.h
│          caniter.h
│          casemap.h
│          char16ptr.h
│          chariter.h
│          choicfmt.h
│          coleitr.h
│          coll.h
│          compactdecimalformat.h
│          curramt.h
│          currpinf.h
│          currunit.h
│          datefmt.h
│          dbbi.h
│          dcfmtsym.h
│          decimfmt.h
│          displayoptions.h
│          docmain.h
│          dtfmtsym.h
│          dtintrv.h
│          dtitvfmt.h
│          dtitvinf.h
│          dtptngen.h
│          dtrule.h
│          edits.h
│          enumset.h
│          errorcode.h
│          fieldpos.h
│          filteredbrk.h
│          fmtable.h
│          format.h
│          formattednumber.h
│          formattedvalue.h
│          fpositer.h
│          gender.h
│          gregocal.h
│          icudataver.h
│          icuplug.h
│          idna.h
│          listformatter.h
│          localebuilder.h
│          localematcher.h
│          localpointer.h
│          locdspnm.h
│          locid.h
│          measfmt.h
│          measunit.h
│          measure.h
│          messagepattern.h
│          msgfmt.h
│          normalizer2.h
│          normlzr.h
│          nounit.h
│          numberformatter.h
│          numberrangeformatter.h
│          numfmt.h
│          numsys.h
│          parseerr.h
│          parsepos.h
│          platform.h
│          plurfmt.h
│          plurrule.h
│          ptypes.h
│          putil.h
│          rbbi.h
│          rbnf.h
│          rbtz.h
│          regex.h
│          region.h
│          reldatefmt.h
│          rep.h
│          resbund.h
│          schriter.h
│          scientificnumberformatter.h
│          search.h
│          selfmt.h
│          simpleformatter.h
│          simplenumberformatter.h
│          simpletz.h
│          smpdtfmt.h
│          sortkey.h
│          std_string.h
│          strenum.h
│          stringoptions.h
│          stringpiece.h
│          stringtriebuilder.h
│          stsearch.h
│          symtable.h
│          tblcoll.h
│          timezone.h
│          tmunit.h
│          tmutamt.h
│          tmutfmt.h
│          translit.h
│          tzfmt.h
│          tznames.h
│          tzrule.h
│          tztrans.h
│          ubidi.h
│          ubiditransform.h
│          ubrk.h
│          ucal.h
│          ucasemap.h
│          ucat.h
│          uchar.h
│          ucharstrie.h
│          ucharstriebuilder.h
│          uchriter.h
│          uclean.h
│          ucnv.h
│          ucnvsel.h
│          ucnv_cb.h
│          ucnv_err.h
│          ucol.h
│          ucoleitr.h
│          uconfig.h
│          ucpmap.h
│          ucptrie.h
│          ucsdet.h
│          ucurr.h
│          udat.h
│          udata.h
│          udateintervalformat.h
│          udatpg.h
│          udisplaycontext.h
│          udisplayoptions.h
│          uenum.h
│          ufieldpositer.h
│          uformattable.h
│          uformattednumber.h
│          uformattedvalue.h
│          ugender.h
│          uidna.h
│          uiter.h
│          uldnames.h
│          ulistformatter.h
│          uloc.h
│          ulocale.h
│          ulocbuilder.h
│          ulocdata.h
│          umachine.h
│          umisc.h
│          umsg.h
│          umutablecptrie.h
│          unifilt.h
│          unifunct.h
│          unimatch.h
│          unirepl.h
│          uniset.h
│          unistr.h
│          unorm.h
│          unorm2.h
│          unum.h
│          unumberformatter.h
│          unumberoptions.h
│          unumberrangeformatter.h
│          unumsys.h
│          uobject.h
│          upluralrules.h
│          uregex.h
│          uregion.h
│          ureldatefmt.h
│          urename.h
│          urep.h
│          ures.h
│          uscript.h
│          usearch.h
│          uset.h
│          usetiter.h
│          ushape.h
│          usimplenumberformatter.h
│          uspoof.h
│          usprep.h
│          ustdio.h
│          ustream.h
│          ustring.h
│          ustringtrie.h
│          utext.h
│          utf.h
│          utf16.h
│          utf32.h
│          utf8.h
│          utf_old.h
│          utmscale.h
│          utrace.h
│          utrans.h
│          utypes.h
│          uvernum.h
│          uversion.h
│          vtzone.h
│
├─lib
│  │  icudt.lib
│  │  icuin.lib
│  │  icuio.lib
│  │  icutu.lib
│  │  icuuc.lib
│  │
│  └─pkgconfig
│          icu-i18n.pc
│          icu-io.pc
│          icu-uc.pc
│
├─share
│  ├─icu
│  │      copyright
│  │      vcpkg-cmake-wrapper.cmake
│  │      vcpkg.spdx.json
│  │      vcpkg_abi_info.txt
│  │
│  ├─pkgconfig
│  │      pybind11.pc
│  │
│  ├─pybind11
│  │      copyright
│  │      FindPythonLibsNew.cmake
│  │      pybind11Common.cmake
│  │      pybind11Config.cmake
│  │      pybind11ConfigVersion.cmake
│  │      pybind11NewTools.cmake
│  │      pybind11Targets.cmake
│  │      pybind11Tools.cmake
│  │      usage
│  │      vcpkg.spdx.json
│  │      vcpkg_abi_info.txt
│  │
│  ├─stb
│  │      copyright
│  │      FindStb.cmake
│  │      usage
│  │      vcpkg-cmake-wrapper.cmake
│  │      vcpkg.spdx.json
│  │      vcpkg_abi_info.txt
│  │
│  ├─vcpkg-cmake
│  │      copyright
│  │      vcpkg-port-config.cmake
│  │      vcpkg.spdx.json
│  │      vcpkg_abi_info.txt
│  │      vcpkg_cmake_build.cmake
│  │      vcpkg_cmake_configure.cmake
│  │      vcpkg_cmake_install.cmake
│  │
│  └─vcpkg-cmake-config
│          copyright
│          vcpkg-port-config.cmake
│          vcpkg.spdx.json
│          vcpkg_abi_info.txt
│          vcpkg_cmake_config_fixup.cmake
│
└─tools
    └─icu
        ├─bin
        │      derb.exe
        │      genbrk.exe
        │      genccode.exe
        │      gencfu.exe
        │      gencmn.exe
        │      gencnval.exe
        │      gendict.exe
        │      gennorm2.exe
        │      genrb.exe
        │      gensprep.exe
        │      icu-config
        │      icudt74.dll
        │      icuexportdata.exe
        │      icuin74.dll
        │      icuinfo.exe
        │      icuio74.dll
        │      icupkg.exe
        │      icutu74.dll
        │      icuuc74.dll
        │      makeconv.exe
        │      pkgdata.exe
        │      uconv.exe
        │
        └─config
                icucross.inc
                icucross.mk
luciddream-tsin commented 5 months ago

Here is my c/c++ command line params:

/ifcOutput "x64\Debug\" /FR"x64\Debug\" /GS /W3 /Zc:wchar_t /I"..\..\..\..\AETK" /I"..\..\..\Headers" 
/I"C:\Software\vcpkg\installed\x64-windows\include" /I"..\..\..\Headers\SP" /I"..\..\..\Headers\Win" 
/I"..\..\..\Resources" /I"..\..\..\Util" /Zi /Gm- /Od /Fd"x64\Debug\vc143.pdb" /Zc:inline /fp:precise
/D "MSWindows" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0710" 
/D "_WINDLL" /errorReport:prompt /WX- /Zc:forScope /Gd /MTd /std:c++17 /FC /Fa"x64\Debug\" 
/EHsc /nologo /Fo"x64\Debug\" /Fp"x64\Debug\LayerDumper.pch" /diagnostics:column 

linker params:

/OUT:"C:\Software\AtferEffects\Adobe After Effects 2024\Support Files\Plug-ins\Effects\LayerDumper.aex"
 /MANIFEST /PDB:"x64\Debug\LayerDumper.pdb" /DYNAMICBASE:NO "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuiod.lib" "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuucd.lib"
 "C:\Software\vcpkg\installed\x64-windows\debug\lib\icudtd.lib" "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuind.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" 
"odbc32.lib" "odbccp32.lib" /IMPLIB:"x64\Debug\/LayerDumper.lib" /DEBUG /DLL /MACHINE:X64 /PGD:"C:\Software\AtferEffects\Adobe After Effects 2024\Support Files\Plug-ins\Effects\LayerDumper.pgd" 
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Debug\LayerDumper.aex.intermediate.manifest" 
/LTCGOUT:"x64\Debug\LayerDumper.iobj" /ERRORREPORT:PROMPT /ILK:"x64\Debug\LayerDumper.ilk" 
/NOLOGO /LIBPATH:"C:\Software\vcpkg\installed\x64-windows\debug\lib" /TLBID:1 
Trentonom0r3 commented 5 months ago

Here is my c/c++ command line params:


/ifcOutput "x64\Debug\" /FR"x64\Debug\" /GS /W3 /Zc:wchar_t /I"..\..\..\..\AETK" /I"..\..\..\Headers" 

/I"C:\Software\vcpkg\installed\x64-windows\include" /I"..\..\..\Headers\SP" /I"..\..\..\Headers\Win" 

/I"..\..\..\Resources" /I"..\..\..\Util" /Zi /Gm- /Od /Fd"x64\Debug\vc143.pdb" /Zc:inline /fp:precise

/D "MSWindows" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0710" 

/D "_WINDLL" /errorReport:prompt /WX- /Zc:forScope /Gd /MTd /std:c++17 /FC /Fa"x64\Debug\" 

/EHsc /nologo /Fo"x64\Debug\" /Fp"x64\Debug\LayerDumper.pch" /diagnostics:column 

linker params:


/OUT:"C:\Software\AtferEffects\Adobe After Effects 2024\Support Files\Plug-ins\Effects\LayerDumper.aex"

 /MANIFEST /PDB:"x64\Debug\LayerDumper.pdb" /DYNAMICBASE:NO "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuiod.lib" "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuucd.lib"

 "C:\Software\vcpkg\installed\x64-windows\debug\lib\icudtd.lib" "C:\Software\vcpkg\installed\x64-windows\debug\lib\icuind.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" 

"odbc32.lib" "odbccp32.lib" /IMPLIB:"x64\Debug\/LayerDumper.lib" /DEBUG /DLL /MACHINE:X64 /PGD:"C:\Software\AtferEffects\Adobe After Effects 2024\Support Files\Plug-ins\Effects\LayerDumper.pgd" 

/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Debug\LayerDumper.aex.intermediate.manifest" 

/LTCGOUT:"x64\Debug\LayerDumper.iobj" /ERRORREPORT:PROMPT /ILK:"x64\Debug\LayerDumper.ilk" 

/NOLOGO /LIBPATH:"C:\Software\vcpkg\installed\x64-windows\debug\lib" /TLBID:1 

Ahhh-- I think that's the issue. It'll compile with the regular version, but when you go to load it won't work properly.

You have two options in that case

1) get the static install 2) move the icu dlls into support files

luciddream-tsin commented 5 months ago

Yes! I installed the static package, it's load successfully. But AE give me a new err msg: LayerDumper plug-in generated an unexpected exception. Do you have any ideas?

Trentonom0r3 commented 5 months ago

Yes! I installed the static package, it's load successfully. But AE give me a new err msg: LayerDumper plug-in generated an unexpected exception. Do you have any ideas?

At what point does that occur? When you try to run the command?

luciddream-tsin commented 5 months ago

Yes! I installed the static package, it's load successfully. But AE give me a new err msg: LayerDumper plug-in generated an unexpected exception. Do you have any ideas?

At what point does that occur? When you try to run the command?

just after launch the project, almost same as before.

Trentonom0r3 commented 5 months ago

Yes! I installed the static package, it's load successfully. But AE give me a new err msg: LayerDumper plug-in generated an unexpected exception. Do you have any ideas?

At what point does that occur? When you try to run the command?

just after launch the project, almost same as before.

Ran some tests. Ran into the same problem--- New commit should fix this!