Cabbage Logo
Back to Cabbage Site

Getting new Cabbage install on laptop

I thought that “mscore” would give a list of the MSWindows fonts in particular.
Anyway, I ran the fc-list command and got a list of probably every font ever made. :smiley: So I ran fc-list | grep [ie.Times] and I think I have every font you mentioned!

brian

Can you send me the output of fc-list? Just paste it to a text file and attached it to your post. Cheers.

fc.txt (153.0 KB)

Ok, you are missing some fonts, but there should be enough others one to take their place. So we’re going to have a dig a little deeper. Can you open the file JuceLIbraryCode/modules/juce_graphics/native/juce_linux_Fonts.cpp and add the following code to line 144:

	for(int i=0;i<allFonts.size();i++)
		Logger::writeToLog("Found font: "+allFonts[i]);

Then save and rebuild Cabbage. Now launch Cabbage from the command line. You should see a list of all the fonts that Cabbage has found printed to the command line. Can you copy and paste that list back to me. It shouldn’t be as long as the last one!

I did as you said. I ran the executable from the CabbageBuild directory and got this:

brian@brian-F9E:~/cabbage/Builds/Linux/CabbageBuild$ ./Cabbage
Found font: DejaVu Sans
Found font: DejaVu Sans Mono
Found font: Bitstream Vera Sans
Found font: Bitstream Vera Sans Mono
Found font: Droid Sans Hebrew
Found font: Droid Sans Georgian
Found font: Droid Sans Japanese
Found font: Droid Sans
Found font: Droid Sans Ethiopic
Found font: Droid Sans Mono
Found font: Droid Sans Fallback
Found font: Droid Sans Armenian
Found font: Droid Sans Thai
Found font: FreeSans
Found font: Radis Sans
Found font: BPG DejaVu Sans 2011 GNU-GPL
Found font: BPG Sans GPL&GNU
Found font: BPG Sans Modern GPL&GNU
Found font: BPG Sans Medium GPL&GNU
Found font: BPG Sans Regular GPL&GNU
Found font: Luxi Sans
Found font: Verana Sans Demi
Found font: Verana Sans
Found font: Verana Sans Medium
Found font: Liberation Sans
Found font: Liberation Sans Narrow
Found font: Ubuntu-Title
Found font: Ubuntu Mono
Found font: Ubuntu
Found font: Ubuntu Condensed
Found font: LMSansQuot8
Found font: LMSans10
Found font: LMSansDemiCond10
Found font: Nimbus Sans L
virtual_keyboard real time MIDI plugin for Csound
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.06 (double samples) Nov 6 2015
libsndfile-1.0.25
resetting Csound instance
end of score. overall amps: 0.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
virtual_keyboard real time MIDI plugin for Csound
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.06 (double samples) Nov 6 2015
libsndfile-1.0.25
Welcome to Cabbage, problems with input file…
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
/home/brian/cabbage/Builds/Linux/CabbageBuild/opcodes.txt
======EDITOR DECONSTRCUTOR=========
about to cleanup Csound
Csound cleaned up
virtual_keyboard real time MIDI plugin for Csound
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.06 (double samples) Nov 6 2015
libsndfile-1.0.25
resetting Csound instance
end of score. overall amps: 0.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
virtual_keyboard real time MIDI plugin for Csound
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.06 (double samples) Nov 6 2015
libsndfile-1.0.25
/home/brian/cabbage/Builds/Linux/CabbageBuild/IntroScreen.csd
Csound compiled your file

I still don’t see any letters in the GUI windows though. The installation still gave the “error 1” at the end of each phase. --Is it normal for installation to take about 15 minutes?

It shouldn’t take 15 minutes, but could do depending on how fast your laptop is. Can you post the error 1 message? Also, in that same file you just added some code to can you put DejaVu Sans to the front of the list of fonts:

static String getDefaultSansSerifFontName()
{
    StringArray allFonts;
    FTTypefaceList::getInstance()->getSansSerifNames (allFonts);

    static const char* targets[] = {"DejaVu Sans", "Verdana", "Bitstream Vera Sans", "Luxi Sans",
                                     "Liberation Sans", "Sans", nullptr };
    return pickBestFont (allFonts, targets);
}

Then try building it again. Something is stopping Cabbage form loading the fonts in those files, but I have no idea what it is.

Sorry I was out till just now. Give me 30 minutes and I’ll be at my pc again for a few hours! I’ll do the tests you asked.
The error 1 message is the same as the one I mentioned earlier. It happened at the end of each “phase.” (What I mean by phase, is, it seems the install goes through a procedure and then repeats it in a slightly different way. Sorry I’m not a programmer! Anyway, you know what I mean. :slight_smile: )

brian

Here is the full terminal readout:

fc2.txt (46.8 KB)

So the standalone Cabbage app is building fine, but until you point the make script to the VST sdk it will not build the VST interfaces. Right now I’m more concerned about the fonts not showing. Did you try what I suggested?

Do you mean to run this command: ./buildCabbage “/usr/local/csound” “/usr/lib” “~/SDK” ?

I can do it, but I don’t know which csound folder path to use, as I mentioned. I know that I have to change SDK to SDKs, but if I just change that part it won’t build.

For now just use the same command as before. Let’s fix the font issue first. Did you try the change I suggested? Did it fix the font issue?

I added the text to the linux-Font.cpp file, yes. And I rebuilt. But it didn’t change anything.

Can you download this archive:
https://github.com/julianstorer/JUCE/archive/master.zip
Unzip it, and the from the command line build the JuceDemo project. Cabbage uses this library, and if its demo doesn’t work for you, then I know it’s not a Cabbage issue. This is a strange one. I’ve never come across this issue before.

Ok. Just to make sure I’m doing this right: I go to the Linux/Build directory and run ./Makefile from a terminal?

Run the demo and see if you see any fonts…

done! :slight_smile:

(Sorry for my in-expertise. I’d really like to get good at building and using Cabbage–someday!

What next?

Does it run with fonts showing?

How do I run it?? (yes, I’m new at this…)

When you run make, it builds a binary executable. In this case it built an application called JuceDemo in the build folder contained within Linux/Build. You can run it from the command line, or simple double click and launch it from the file manager. Take a look and see if all the fonts show with that application. There is even a Fonts demo that you can check too. If they all work, then I’m really stumped as to what is preventing them from showing with Cabbage. I have to leave this now, but I’ll check back again tomorrow.