External Compiling Issue
I am having an issue getting the example externals to compile correctly when I change the project name. When I build an external from the examples folder, it runs fine. But when I build and run it after changing the project name to something else, it executes the initialization method (main) 5 times, and object appears in the patcher as if you typed an object that was not in Max’s search path (brown with a green border, and no inlets or outlets). This happens both on windows and mac, and is very similar to the issue addressed in the middle of this post:
although I did not find a clear answer to the problem.
I would like to be able to change the project name so that I can make externals that are named something different than the max examples, but with the same settings.
The same error has occurred with Xcode 4.2.1 on OSX 10.7.2 Lion, Xcode 3.1.4 on OSX 10.5.8 Leopard, and Visual C++ 2010 Express on Windows 7. In all cases I was using either Max 5 or Max 6, and MaxSDK 5.1.7.
Here is the code for the patch that works:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 480.3oc0T0ziSCCD8bxuhQ4DH05Memt8FRHjPHNwQBB4l3sw65LNx1YaJq1+ 6X61rTQK6JDRH3RrmO7LyadOkGBCh1HmX5HXM7YHH3gvf.uKmifi1AQ8zoFA U6SKpQ12yPSzhCwLrIi2+6AZOX5Xfl2OHX12.xM2xZL0HEP1ty7C6nZfiZCE Mbpg0tFhmdWVVUdYbMxMPmMdLPUaGcMTO2QAGYMxQz21riNGnllNNt8qJakO .mzhLR7BHorzcjkes6HeEIF9xwGwa8StcbVd8b0uQhFj1y7QdihSEyQvwdNJ XF+ZH4jz07u4SOI01gmxUNZlSN147wvP2mE+gq4WsQPw6dcM9z57jq+tqnjU wmrhJe1MT0+KanDBHGX3OoEYST2UXPIOHJSIvlQtnsFyH.ssEHjq9Hc5Su8C KKHIjpqzs2szmAXjvd4nBzLppoCrKxtZLm.JlY+.Cpi9AWDYUzReqOJxsXnF KHtB.5N4nsbaYFfNXGjIduU2K16y+FoPH2Y4GaE7NbSs0tUta8E40pWT5m6Y 2zpCjbb9kI1h+0HV6OKry0Y75Yp7eMvSqJ7B5Udi3Ki6r+V3127HKieOSo4R zCcGvsv9VoxYVtvaZ0NdSeMiTr64y4mE5p1ige2hYmmO -----------end_max5_patcher-----------
Here is the code for the patch that doesn’t work:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 476.3ocyT0ziSCCD8bxuhQ4BfTq2jz1jt6Mj3BBwINRPH2joMdWmwQNNsorZ +uisSSYEEDqXQ.Wh87lum44beXPzF0.1EA2.eDBBtOLHvC4.BNIGD0vGJk7N uYQDdPs41nYipL3fwCuQo1NAJp7PVylmNgsUQFh2fdMuVK3xIMsbSYsf18YM VZFqjzUKXwyfz04tiEK8BwrX3Sm7g5aDjDM9RJ9QonS7EeJRRYweyVUu4rwN vGBCcel8Da4RUSCRlK542B7FvTiPmnoUhVe.aOa6hB5umpopRJHrT0S9Ra0k ahqeNahjrrwMw0ti7re1pH4e0p3kajb5tWUP+5KO0AV9u0.KYc7iFXY+uNuR XfpEouiQgCb2UnUqFYcoLnrlS6PugmfA2v.LJnv+puHpfVvfM8BYUAsjA7pJ fwt587gO7l2MeEKgkeUW0cy8V376npWCcHWWVC1QXMH15vfZ9djdgA3RMxqN VPqXfFMGawyoBDjxWKijev18ETFy6dWsp2lfcnMBs1ZcPzvMn7n29sJoTcvt qrQvC35Wqbk5vM+PFw5KYDqdNOgV54Eo4izij7+3TBe3hrc9dT2ITjmU33DV FwsJsSLalWzNC0m+wYjF2KlreQnKZOD9ULz8bFF -----------end_max5_patcher-----------
Let me know if you know how to deal with this, or just how to get make an external with a custom name that functions properly some other way.
I guess you’re posting to the wrong forum, there’s another forum which was created explicitly for external development questions: http://cycling74.com/forums/forum.php?id=5
With that said, can you confirm whether you changed the name of your object in your
I didn’t change anything in the code itself. And is that the "Dev" forum? I was wondering about that.. This is my first post. Can you change which forum your post is in after you create it?
*slaps head* Of course. I tried changing the first (name) argument in the "class_new" function as you suggested, and it worked like a charm. Thanks Ádám.
Forums > MaxMSP