News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Build file

Started by Calexus, December 09, 2011, 09:57:53 AM

Previous topic - Next topic

Calexus

In the manager window/tab whatever it's called if you right click a file in the file tree you can "Build file". As I'm remembering it this is supposed to build only that file, right? i never use it, but thats how I'm remembering it was made for. Anyways I does not work in osx snow leopard. Only thing that appears to be happening is  the following output in the Build Log:  make: *** empty string invalid as file name.  Stop.

I don't have access to a windows/linux machine at my office at the moment so I cant say if it woks under those systems.

C::B rev. 7456 built in late September so I guess this might be kind of old news.

zabzonk

Does it work if the file has been changed? If the build system thinks it is up-to-date, it won't build it - a bit of a misfeature, IMHO.

Calexus

No no difference if the file has been changed.

oBFusCATed

Is this a Makefile project or normal project?
Because here it works for normal projects.
If you're using Makefile your make file should support compiling single files and I guess your doesn't.

Enable full logging to see what is the actual command executed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Calexus

Enabling full logging didn't do anything but I think you are right. This is a custom makfile generated by cmake and even though my cmake is pretty weak it doesn't appear to  contain a "single file" target. Thanks a bunch! I would probably never have thought about that myself, at least not this week :/

Guess I have to track down who ever wrote this cmake mess, or maybe it's a great opportunity to learn some cmake...

Thanks for the help.

Jenna

I just tested it on linux with a cmake project.
Here is a possible solution/workaround:
Open the projects "Build options", swicth to the "make commands" (or something like this) tab, and remove the doublequotes around the $file-variable for the compile-single-file make-command.

Calexus

Thanks jens but it didn't work, it did build but but it built all changed files. Like a normal build. I simply have to learn a bit of cmake if I want to be able to build a single file in this project.