HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Problems compiling SPARK with SFML on VC++ 2008 EE

View previous topic View next topic Go down 
AuthorMessage
Luinecho
Guest



PostSubject: Problems compiling SPARK with SFML on VC++ 2008 EE   Wed Dec 30, 2009 5:53 pm

Hello,
I'm trying to use your particle engine with sfml and got some problems. I have the exact same code like in tutoral 2 (copied it, after my own spark program didn't work) and linked everything correct. Static SFML Libraries and the static SPARK Libraries. There are no linker errors, but when I try to compile there's one weird error without help:


I don't know what to do. Could you set up a little SPARK program (Like Tutorial 1, just some particles when pressing space or so) in VC++ 2008, which works and post it here (the vc++ 08 project)? This would be very helpful!

Greetings,
Luinechor
Back to top Go down
Luinecho
Guest



PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Wed Dec 30, 2009 6:11 pm

Oh, forgot to post the link to the error. It's this one:
Back to top Go down
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Mon Jan 04, 2010 1:08 pm

Hi,

basically to use static libraries instead of dynamic, there is not a lot to do : simply change the path of the Spark libraries from ../dynamic to ../static and remove the preprocessor define SPK_IMPORT. That s it.
Back to top Go down
View user profile http://spark.developpez.com
Luinecho
Guest



PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Mon Jan 04, 2010 1:28 pm

Tanks for the reply.
Well, that's what I did and all I get is this error:
Linker Tools Error LNK1257
code generation failed
(Guess link in the other posts didn't work cuz' I'm not a registered user)

It work's fine, when the SFML is linked static and SPARK is dynamic. But I'd like to link both of them static, which does not work.
Back to top Go down
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Mon Jan 04, 2010 7:41 pm

I tried in visual 2008 and it works fine.

I ve only done that in the SPARK Tuto 2 project :

  • preprocessor : remove SPK_IMPORT and SFML_DYNAMIC
  • dependencies : change the SFML libs in their static version (-s)
  • additionnal directory for libs : change ..\..\..\lib\vc2008\dynamic to ..\..\..\lib\vc2008\static
Back to top Go down
View user profile http://spark.developpez.com
Luinecho
Guest



PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Sun Jan 24, 2010 5:32 pm

Hey,
sorry for late answer. It works now. Didn't work on the current project so I just created a new one with same settings.
Back to top Go down
Sponsored content




PostSubject: Re: Problems compiling SPARK with SFML on VC++ 2008 EE   Today at 3:38 am

Back to top Go down
 
Problems compiling SPARK with SFML on VC++ 2008 EE
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Selenium installation problems
» Selenium RC with Google Chrome on Windows server 2008
» New here--Kidney problems after taking Relpax?
» problems with voluntary work need advice about what to say
» people comparing their problems to yours

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: