Author Topic: Cannot build from command prompt in OSX  (Read 2353 times)

Offline mariusm

  • Multiple posting newcomer
  • *
  • Posts: 46
Cannot build from command prompt in OSX
« on: February 17, 2023, 02:03:59 pm »
I'm trying to build a project in background without opening the graphics from C::B but cannot build from OSX command prompt.

Even if I gave the command not to open the program, try to open and it say

"Deactivating the compiler plugin is most unwise"

And in terminal:

CodeBlocks[2034:1503] CFURLCreateWithString was passed this invalid URL string: '/System/Library/CoreServices/CommonCocoaPanels.bundle' (a file system path instead of an URL string). The URL created will not work with most file URL functions. CFURLCreateWithFileSystemPath or CFURLCreateWithFileSystemPathRelativeToBase should be used instead.

The command is for 13.12 C::B version

Quote
"Editor_CPP/CodeBlocks.app/Contents/MacOS/CodeBlocks" -ni -ns -nc --debug-log --batch-build-notify --build --target="VST2" "test/Mac/Project.cbp"


Offline mariusm

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Cannot build from command prompt in OSX
« Reply #1 on: February 18, 2023, 09:17:14 am »
I find that the building from command line does not work on the Mac.  :'( :o

It is frustrating to waste a week with this program so that in the end the command line doesn't work. Isn't there a public list of bugs here?


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Cannot build from command prompt in OSX
« Reply #2 on: February 18, 2023, 11:46:30 am »
There is, see here, but 13.12 is 10 years old. There are nightly builds for Mac, see this link, but I do not know if they will work on your version.

Offline mariusm

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Cannot build from command prompt in OSX
« Reply #3 on: February 18, 2023, 12:41:54 pm »
I tried codeblocks-17.12 the newset Mac version with the same result  :-\