COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 11-06-2018, 04:25 PM   #1
hannesmenzel
Human being with feelings
 
Join Date: Jul 2018
Posts: 15
Default duplicate.py on own project doesn't compile

I need some help. Just learning c++ and all this stuff and set up a testbed plugin, which somehow works now quite nice. Now I thought, to implement some other ideas, I could duplicate my project jsut to have my code as a basic step for further tweaking. Let me show this, I want to duplicate the project "SRChannel" to "SRExample".

First thing is, duplicate.py seems to have a problem with some git stuff, don't know if this causes the problem since I didn't set up git by now:

Code:
copying gitignore template into project folder
Traceback (most recent call last):
  File "duplicate.py", line 181, in <module>
    main()
  File "duplicate.py", line 176, in main
    copy('gitignore_template', output + "/.gitignore")
  File "C:\Python27amd64\lib\shutil.py", line 133, in copy
    copyfile(src, dst)
  File "C:\Python27amd64\lib\shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'gitignore_template'
Now I want to compile it. I change the plugin ID, now it should compile but it sais:

Code:
3>e:\dsp\wdl-ol\wdl\iplug\iplug_include_in_plug_src.h(278): error C2061: Syntaxfehler: Bezeichner "SRChannel"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(2): warning C4005: "PLUG_NAME": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(2): note: Siehe vorherige Definition von "PLUG_NAME"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(4): warning C4005: "PLUG_CLASS_NAME": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(4): note: Siehe vorherige Definition von "PLUG_CLASS_NAME"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(7): warning C4005: "BUNDLE_NAME": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(7): note: Siehe vorherige Definition von "BUNDLE_NAME"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(9): warning C4005: "PLUG_ENTRY": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(9): note: Siehe vorherige Definition von "PLUG_ENTRY"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(10): warning C4005: "PLUG_FACTORY": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(10): note: Siehe vorherige Definition von "PLUG_FACTORY"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(11): warning C4005: "PLUG_VIEW_ENTRY": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(11): note: Siehe vorherige Definition von "PLUG_VIEW_ENTRY"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(13): warning C4005: "PLUG_ENTRY_STR": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(13): note: Siehe vorherige Definition von "PLUG_ENTRY_STR"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(14): warning C4005: "PLUG_VIEW_ENTRY_STR": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(14): note: Siehe vorherige Definition von "PLUG_VIEW_ENTRY_STR"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(16): warning C4005: "VIEW_CLASS": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(16): note: Siehe vorherige Definition von "VIEW_CLASS"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(17): warning C4005: "VIEW_CLASS_STR": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(17): note: Siehe vorherige Definition von "VIEW_CLASS_STR"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(27): warning C4005: "PLUG_UNIQUE_ID": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(27): note: Siehe vorherige Definition von "PLUG_UNIQUE_ID"
3>e:\dsp\wdl-ol\projects\srexamples\resource.h(40): warning C4005: "PLUG_NAME_PT": Makro-Neudefinition
3>e:\dsp\wdl-ol\projects\srchannel\resource.h(40): note: Siehe vorherige Definition von "PLUG_NAME_PT"
(non German speaker: note: see previous definition of: X; [...] warning C4005: "YZ": new macro definition)

For my newby eyes it looks like the project is using both resources.h files from either projects, but I can't find the place where this is stated. No plain text file in the project contains the path to the old project.

Can someone help?

(using VS 2017 on Win 10)

Last edited by hannesmenzel; 11-06-2018 at 04:41 PM. Reason: Further information
hannesmenzel is offline   Reply With Quote
Old 11-07-2018, 06:07 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,177
Default

Can't help with the Python part but just FYI, there's another way to copy iPlug projects which works fine for me (Win only though).

https://forum.cockos.com/showthread.php?t=169429
nofish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.