meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.89k stars 406 forks source link

error: expected constructor, destructor, or type conversion before 'freeimage' - error: stray '@' in program #964

Closed itofficeeu closed 2 months ago

itofficeeu commented 2 months ago

This post contains the problem - and what I found as solution.

The core problem is "error: stray '@' in program".

Problem shows as following, when compiling manually, alias with make.


  CXX      src/gfx/libmega_la-freeimage.lo
src/gfx/freeimage.cpp:2:4: error: stray '@' in program
    2 |  * @file freeimage.cpp
      |    ^
src/gfx/freeimage.cpp:3:4: error: stray '@' in program
    3 |  * @brief Graphics layer using FreeImage
      |    ^
src/gfx/freeimage.cpp:16:4: error: stray '@' in program
   16 |  * @copyright Simplified (2-clause) BSD License.
      |    ^
src/gfx/freeimage.cpp:2:10: error: expected constructor, destructor, or type conversion before 'freeimage'
    2 |  * @file freeimage.cpp
      |          ^~~~~~~~~
src/gfx/freeimage.cpp:13:30: error: 'without' does not name a type
   13 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      |                              ^~~~~~~
src/gfx/freeimage.cpp: In member function 'bool mega::GfxProviderFreeImage::readbitmapFfmpeg(mega::FileSystemAccess*, const mega::LocalPath&, int)':```

Solution:

Open with 

pi@raspberrypi:~/MEGAcmd $ nano sdk/src/gfx/freeimage.cpp

Change the first line from 

//**

to

/*

Save and then exit Nano.

Try again to run:

make

The error should belong to the past.