<< return to Pixycam.com

Error when building pixymon with ./build_pixymon_src.sh on Linux Mint 17.1

Trying to build PixyMon to get started with Pixy but I get this error and later in the process I can’t run ./PixyMon because it says not such file exists.

When I run ./build_pixymon_src.sh this is what I get at the end:
make: *** [blob.o] Error 1
make: Leaving directory `/home/chris/pixy/build/pixymon/src/host/pixymon’
mkdir: cannot create directory ‘bin’: File exists
cp: cannot stat ‘src/host/pixymon/PixyMon’: No such file or directory
strip: ‘bin/PixyMon’: No such file

If there’s something else I need to post, please let me know. I’m just a beginner trying to see what I can do with Pixy

Thanks

Hey Chris,

I’m guessing you’re probably hitting this issue: cc1plus: error: unrecognized command line option ‘-mno-ms-bitfields’ ?

I documented how to fix it here: http://www.cmucam.org/boards/9/topics/5006 and it’s being discussed here as well: http://www.cmucam.org/boards/9/topics/4865

Basically, just comment out the “QMAKE_CXXFLAGS += -mno-ms-bitfields” line in ~/pixy/src/host/pixymon/pixymon.pro and it should build for you.

Hope this helps!

Hello,

I have exactly the same issue when building ./build_pixymon_src.sh on Linux Mint 17.1:

…/…/common/blobs.cpp: In member function âbool Blobs::analyzeDistances(BlobA**, int16_t, BlobA**, int16_t, BlobA**, BlobA**)â:
…/…/common/blobs.cpp:781:23: error: “DBG” was not declared in this scope
DBG(“not set!”);
^
…/…/common/blobs.cpp: In member function ‘void Blobs::cleanup(BlobA**, int16_t*)’:
…/…/common/blobs.cpp:831:30: error: “DBG” was not declared in this scope
DBG(“eliminated!”);
^
…/…/common/blobs.cpp: In member function ‘void Blobs::printBlobs()’:
…/…/common/blobs.cpp:877:129: error: âDBGâ was not declared in this scope
DBG(“blob %d: %d %d %d %d %d”, i, blobs[i].m_model, blobs[i].m_left, blobs[i].m_right, blobs[i].m_top, blobs[i].m_bottom);
^
make: *** [blobs.o] Error 1
make: Leaving directory `/home/hugo/pixy/build/pixymon/src/host/pixymon’
cp: cannot stat ‘src/host/pixymon/PixyMon’: No such file or directory
strip: ‘bin/PixyMon’: No such file

I tried commenting out the “QMAKE_CXXFLAGS += -mno-ms-bitfields” line in ~/pixy/src/host/pixymon/pixymon.pro but the error remains.

Please help!

Thanks for the quick replies but I’m not getting the error stated as far as I can tell:
cc1plus: error: unrecognized command line option ‘-mno-ms-bitfields’

It’s the same one that Hugo Andrade mentions. I don’t think it quit causes it to ‘crash’ per se but when I go to do later steps, specifically running:
./PixyMon
in the directory stated in the instructions it says that no such file exits and that’s the real issue. I figured getting rid of this error first might have downstream effects

Thanks – John’s latest git commit (last night) fixes these issues.