CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
625 stars 143 forks source link

CATCH_WARNING() and throws function related error #245

Closed badrik91 closed 7 years ago

badrik91 commented 7 years ago

i have a doubt in catch_warning and throws function. In this, i got error like invalid operands of types ‘const char [11]’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type {aka long unsigned int}’ to binary ‘operator<<’ this and expected primary-expression before ‘)’ token. please give solution i am in new for this project.

jcoffland commented 7 years ago

You need to provide a lot more information here. Please tell us your OS, the version you installed, or code you're building, what instructions you're following and the exact error including line numbers. Otherwise, it's nearly impossible to diagnose the problem you've encountered.

badrik91 commented 7 years ago

I am using ubuntu 16.04 OS,QT 5.9 and i follow this link https://github.com/CauldronDevelopmentLLC/CAMotics and build in linux ,follow the instuction for linux.I installed all dependency which is given in instructionThis is the exactly error . screenshot from 2017-08-11 09-36-36 please give answer. thanks for your reply .

badrik91 commented 7 years ago

I have define this kind of macro then like this, 2 is it right or wrong? then get this kind of error like, 3

jcoffland commented 7 years ago

You cannot build CAMotics from Qt creator. The instructions tell you how to do it from the command line using scons. See: http://camotics.org/download.html#source-code or https://github.com/CauldronDevelopmentLLC/CAMotics#building-from-source

badrik91 commented 7 years ago

Thank you sir for giving reply. But I did this using commandline also but it simply run this in terminal. but i want to build this in framework like Qt,Visual studio.but you said not to build in Qt then where I build this project? Please give solutions.

jcoffland commented 7 years ago

You have to build it on the command line using scons. Follow the instructions I linked above. If you encounter an error then paste it here.

badrik91 commented 7 years ago

Hello Sir, I followed the link you have given but it create direct exe but i want to modify the code for my requirement.so how i get successfully compiled ? please give solution .

On Sun, Aug 13, 2017 at 2:09 PM, Joseph Coffland notifications@github.com wrote:

You have to build it on the command line using scons. Follow the instructions I linked above. If you encounter an error then paste it here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CauldronDevelopmentLLC/CAMotics/issues/245#issuecomment-322029509, or mute the thread https://github.com/notifications/unsubscribe-auth/AOZKopig6c-BY5fXvg5zpWjx_6Du3_tNks5sXrZcgaJpZM4OzWsE .

jcoffland commented 7 years ago

If you want to build from source you must follow the directions I linked to above.

badrik91 commented 7 years ago

Hello Sir, I have a problem in related scon which is given bellow screenshot from 2017-08-17 12-02-44 please give solution . I followed all the steps which you are given .

jcoffland commented 7 years ago

Remove the directory /home/spr/CAMotics/camotics. It is preventing the build from working.

badrik91 commented 7 years ago

How can i remove this?because i have installed source code in /home/spr/CAMotics.so what can i do? please give solution

jcoffland commented 7 years ago

My recommendation is to delete everything in your /home/spr/CAMotics directory and start over. If you follow the directions precisely, it does work. Many other people have compiled CAMotics successfully.

badrik91 commented 7 years ago

Thank you sir.

On Fri, Aug 18, 2017 at 3:08 AM, Joseph Coffland notifications@github.com wrote:

My recommendation is to delete everything in your /home/spr/CAMotics directory and start over. If you follow the directions https://github.com/CauldronDevelopmentLLC/CAMotics#building-from-source precisely, it does work. Many other people have compiled CAMotics successfully.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CauldronDevelopmentLLC/CAMotics/issues/245#issuecomment-323201591, or mute the thread https://github.com/notifications/unsubscribe-auth/AOZKop4N_p1QneDE1I1iAQmwzbi6jK4Gks5sZLLagaJpZM4OzWsE .